com.sleepycat.je.rep.impl.node
Class MonitorEventManager

java.lang.Object
  extended by com.sleepycat.je.rep.impl.node.MonitorEventManager

public class MonitorEventManager
extends Object

The class for firing MonitorChangeEvents. Each time when there happens a MonitorChangeEvents, it refreshes the group information so that it can send messages to current monitors.


Constructor Summary
MonitorEventManager(RepNode repNode)
           
 
Method Summary
 void disableLeaveGroupEvent()
           
 long getJoinTime()
           
 void notifyGroupChange(String nodeName, GroupChangeEvent.GroupChangeType opType)
          Fire a GroupChangeEvent.
 void notifyJoinGroup()
          Fire a JoinGroupEvent.
 void notifyLeaveGroup(LeaveGroupEvent.LeaveReason reason)
          Fire a LeaveGroupEvent and wait for responses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorEventManager

public MonitorEventManager(RepNode repNode)
Method Detail

getJoinTime

public long getJoinTime()

disableLeaveGroupEvent

public void disableLeaveGroupEvent()

notifyGroupChange

public void notifyGroupChange(String nodeName,
                              GroupChangeEvent.GroupChangeType opType)
                       throws DatabaseException
Fire a GroupChangeEvent.

Throws:
DatabaseException

notifyJoinGroup

public void notifyJoinGroup()
                     throws DatabaseException
Fire a JoinGroupEvent.

Throws:
DatabaseException

notifyLeaveGroup

public void notifyLeaveGroup(LeaveGroupEvent.LeaveReason reason)
                      throws DatabaseException,
                             InterruptedException
Fire a LeaveGroupEvent and wait for responses.

Throws:
DatabaseException
InterruptedException


Copyright (c) 2004-2012 Oracle. All rights reserved.