Class ClusterNotificationTupleFields

java.lang.Object
com.streambase.sb.ClusterNotificationTupleFields

public class ClusterNotificationTupleFields extends Object
A class that captures the fields of tuples on the control stream relating to HA cluster notifications.
  • Field Details

    • subsystem

      protected String subsystem
      Subsystem
    • id

      protected int id
      Identifier
    • params

      protected String[] params
      Parameters
  • Method Details

    • newTuple

      public static Tuple newTuple(int clusterEventType, String param0, String param1, String param2) throws TupleException
      Return a new ClusterNotification tuple.
      Parameters:
      clusterEventType - Constants.CLUSTER_EVENT_TYPE_QUORUM, CLUSTER_EVENT_TYPE_NODE, or CLUSTER_EVENT_TYPE_PARTITION
      param0 - parameter 0
      param1 - parameter 1
      param2 - parameter 2
      Returns:
      a new cluster notification tuple
      Throws:
      TupleException - on error
    • getSubsystem

      protected String getSubsystem()
      Get subsystem
      Returns:
      subsystem
    • getId

      protected int getId()
      Get identifier
      Returns:
      identifier
    • getParams

      protected String[] getParams()
      Get parameters
      Returns:
      parameters