Package com.jalios.jcms
Class JcmsJSyncListener
- java.lang.Object
-
- com.jalios.jcms.JcmsJSyncListener
-
- All Implemented Interfaces:
JSyncConstants
,JSyncListener
,JaliosConstants
public class JcmsJSyncListener extends java.lang.Object implements JSyncListener, JSyncConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected Channel
channel
-
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
-
Fields inherited from interface com.jalios.jstore.jsync.JSyncConstants
REVISION, SC_BAD_ADDRESS, SC_BAD_LEADER, SC_BAD_MESSAGE, SC_DISCONNECTED, SC_INTERNAL_SERVER_ERROR, SC_JOIN_REJECTED, SC_LEADER_CANNOT_JOIN, SC_NO_ACK, SC_NO_SEND, SC_OK, SC_UNKNOWN, SC_UNKNOWN_URID, SC_URID_ALREADY_ADDED, STATUS_DISCONNECTED, STATUS_LEADER, STATUS_LONE, STATUS_MEMBER, STATUS_SUBLEADER
-
Fields inherited from interface com.jalios.jstore.jsync.JSyncListener
REVISION
-
-
Constructor Summary
Constructors Constructor Description JcmsJSyncListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleJSyncEvent(JSyncEvent event)
This methods is called when a JSyncEvent occursprotected boolean
isJoinIn(JSyncEvent event)
protected boolean
isJoinOut(JSyncEvent event)
protected boolean
isOK(JSyncEvent event)
-
-
-
Field Detail
-
channel
protected Channel channel
-
-
Method Detail
-
handleJSyncEvent
public void handleJSyncEvent(JSyncEvent event)
Description copied from interface:JSyncListener
This methods is called when a JSyncEvent occurs- Specified by:
handleJSyncEvent
in interfaceJSyncListener
- Parameters:
event
- the JSyncEvent
-
isOK
protected boolean isOK(JSyncEvent event)
-
isJoinIn
protected boolean isJoinIn(JSyncEvent event)
-
isJoinOut
protected boolean isJoinOut(JSyncEvent event)
-
-