Package de.hybris.platform.cluster
Class PingBroadcastHandler
java.lang.Object
de.hybris.platform.cluster.PingBroadcastHandler
- All Implemented Interfaces:
BroadcastMessageListener
Sends and receives ping broadcast messages to and from the hybris cluster.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddestroy()protected longprotected intstatic PingBroadcastHandlergetNodes()booleanisNodeAlive(int nodeID) voidbooleanprocessMessage(RawMessage message) protected booleanprocessPingMessage(RawMessage message) protected voidsendPing()protected voidsendPingAnswer(long remoteDynamicNode)
-
Field Details
-
KIND_PING
public static final int KIND_PING- See Also:
-
CFG_PING_INTERVAL
- See Also:
-
PING_INTERVAL
public static final int PING_INTERVAL- See Also:
-
DELIMITER
- See Also:
-
COMMAND_PING
- See Also:
-
COMMAND_PING_RESULT
- See Also:
-
-
Constructor Details
-
PingBroadcastHandler
-
-
Method Details
-
getInstance
-
destroy
public void destroy() -
processMessage
- Specified by:
processMessagein interfaceBroadcastMessageListener
-
isNodeAlive
public boolean isNodeAlive(int nodeID) -
getNodes
-
addNode
-
pingNodes
public void pingNodes() -
sendPing
protected void sendPing() -
sendPingAnswer
protected void sendPingAnswer(long remoteDynamicNode) -
processPingMessage
-
getClusterNodeID
protected int getClusterNodeID() -
getClusterIslandPK
protected long getClusterIslandPK()
-