Package com.tailf.cdb

Class CdbTxId

Object
com.tailf.cdb.CdbTxId

public class CdbTxId extends Object
Data structure received from Cdb.getTxId() method. Represents the last known transaction that CDB did. This can be used to compare states for a managed object. If configuration needs to be re-read or not, in case of restarts.
  • Method Details

    • getNode

      public String getNode()
      Get the host node;
      Returns:
      String the host node
    • getS1

      public int getS1()
      Get the s1 part of timestamp
      Returns:
      int s1 part of timestamp
    • getS2

      public int getS2()
      Get the s2 part of timestamp
      Returns:
      int s2 part of timestamp
    • getS3

      public int getS3()
      Get the s3 part of timestamp
      Returns:
      int s3 part of timestamp
    • equals

      public boolean equals(Object anObject)
      Compares this CdbTxId to the specified object. The result is true if and only if the argument is not null and is a CdbTxId object that represents the same internal values (e.g timestamp from a node) as this object.
      Overrides:
      equals in class Object
      Parameters:
      anObject - Object to compare against
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Return a string representation of this object.
      Overrides:
      toString in class Object