Class InitMessageResponse

java.lang.Object
org.teamapps.universaldb.cluster.message.InitMessageResponse
All Implemented Interfaces:
ClusterMessage

public class InitMessageResponse
extends java.lang.Object
implements ClusterMessage
  • Constructor Details

    • InitMessageResponse

      public InitMessageResponse​(int nodeId, long lastTransactionId, long currentTransactionId, long transactionCount, Schema schema, ClusterOperationMode clusterOperationMode, ClusterNodeRole currentType, ClusterNodeRole preferredType) throws java.io.IOException
      Throws:
      java.io.IOException
    • InitMessageResponse

      public InitMessageResponse​(byte[] data) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • 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:
      getType in interface ClusterMessage
    • getData

      public byte[] getData()
      Specified by:
      getData in interface ClusterMessage