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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
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 Details
-
getNodeId
public int getNodeId() -
getSchema
-
getLastTransactionId
public long getLastTransactionId() -
getCurrentTransactionId
public long getCurrentTransactionId() -
getTransactionCount
public long getTransactionCount() -
getClusterOperationMode
-
getCurrentType
-
getPreferredType
-
getType
- Specified by:
getTypein interfaceClusterMessage
-
getData
public byte[] getData()- Specified by:
getDatain interfaceClusterMessage
-