Class InitMessage
- java.lang.Object
-
- org.teamapps.universaldb.cluster.message.InitMessage
-
- All Implemented Interfaces:
ClusterMessage
public class InitMessage extends java.lang.Object implements ClusterMessage
-
-
Constructor Summary
Constructors Constructor Description InitMessage(byte[] data)InitMessage(int nodeId, long lastTransactionId, long currentTransactionId, long transactionCount, Schema schema, ClusterOperationMode clusterOperationMode, ClusterNodeRole currentType, ClusterNodeRole preferredType)
-
Method Summary
Modifier and Type Method Description ClusterOperationModegetClusterOperationMode()longgetCurrentTransactionId()ClusterNodeRolegetCurrentType()byte[]getData()longgetLastTransactionId()intgetNodeId()ClusterNodeRolegetPreferredType()SchemagetSchema()longgetTransactionCount()MessageTypegetType()
-
-
-
Constructor Detail
-
InitMessage
public InitMessage(int nodeId, long lastTransactionId, long currentTransactionId, long transactionCount, Schema schema, ClusterOperationMode clusterOperationMode, ClusterNodeRole currentType, ClusterNodeRole preferredType) throws java.io.IOException- Throws:
java.io.IOException
-
InitMessage
public InitMessage(byte[] data) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getNodeId
public int getNodeId()
-
getSchema
public Schema getSchema()
-
getLastTransactionId
public long getLastTransactionId()
-
getCurrentTransactionId
public long getCurrentTransactionId()
-
getTransactionCount
public long getTransactionCount()
-
getClusterOperationMode
public ClusterOperationMode getClusterOperationMode()
-
getCurrentType
public ClusterNodeRole getCurrentType()
-
getPreferredType
public ClusterNodeRole getPreferredType()
-
getType
public MessageType getType()
- Specified by:
getTypein interfaceClusterMessage
-
getData
public byte[] getData()
- Specified by:
getDatain interfaceClusterMessage
-
-