Class ClusterNodeStateInfo
java.lang.Object
org.teamapps.universaldb.cluster.message.ClusterNodeStateInfo
- All Implemented Interfaces:
ClusterMessage
public class ClusterNodeStateInfo extends java.lang.Object implements ClusterMessage
-
Constructor Summary
Constructors Constructor Description ClusterNodeStateInfo(byte[] data)ClusterNodeStateInfo(int nodeId, int headNodeId, ClusterNodeRole operatingRole, ClusterNodeRole preferredRole, ClusterNodeState nodeState, int connectedNodesCount, int clusterQuorum, int electoralClusterNodes, int syncingWithNodeId, long syncingTransactionStarted, long lastTransactionId, long currentTransactionId, long transactionCount) -
Method Summary
Modifier and Type Method Description intgetClusterQuorum()intgetConnectedNodesCount()longgetCurrentTransactionId()byte[]getData()intgetElectoralClusterNodes()intgetHeadNodeId()longgetLastTransactionId()intgetNodeId()ClusterNodeStategetNodeState()ClusterNodeRolegetOperatingRole()ClusterNodeRolegetPreferredRole()longgetSyncingTransactionStarted()intgetSyncingWithNodeId()longgetTransactionCount()MessageTypegetType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ClusterNodeStateInfo
public ClusterNodeStateInfo(int nodeId, int headNodeId, ClusterNodeRole operatingRole, ClusterNodeRole preferredRole, ClusterNodeState nodeState, int connectedNodesCount, int clusterQuorum, int electoralClusterNodes, int syncingWithNodeId, long syncingTransactionStarted, long lastTransactionId, long currentTransactionId, long transactionCount) -
ClusterNodeStateInfo
public ClusterNodeStateInfo(byte[] data)
-
-
Method Details
-
getNodeId
public int getNodeId() -
getHeadNodeId
public int getHeadNodeId() -
getOperatingRole
-
getPreferredRole
-
getNodeState
-
getConnectedNodesCount
public int getConnectedNodesCount() -
getClusterQuorum
public int getClusterQuorum() -
getElectoralClusterNodes
public int getElectoralClusterNodes() -
getSyncingWithNodeId
public int getSyncingWithNodeId() -
getSyncingTransactionStarted
public long getSyncingTransactionStarted() -
getLastTransactionId
public long getLastTransactionId() -
getCurrentTransactionId
public long getCurrentTransactionId() -
getTransactionCount
public long getTransactionCount() -
getType
- Specified by:
getTypein interfaceClusterMessage
-
getData
public byte[] getData()- Specified by:
getDatain interfaceClusterMessage
-