Class FailoverInfo

    • Field Detail

      • failoverVersion

        public long failoverVersion
      • failoverStartTimestamp

        public long failoverStartTimestamp
      • failoverExpireTimestamp

        public long failoverExpireTimestamp
      • completedShardCount

        public int completedShardCount
      • pendingShards

        public java.util.List<java.lang.Integer> pendingShards
      • metaDataMap

        public static final java.util.Map<FailoverInfo._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
    • Constructor Detail

      • FailoverInfo

        public FailoverInfo()
      • FailoverInfo

        public FailoverInfo​(FailoverInfo other)
        Performs a deep copy on other.
    • Method Detail

      • getFailoverVersion

        public long getFailoverVersion()
      • setFailoverVersion

        public FailoverInfo setFailoverVersion​(long failoverVersion)
      • unsetFailoverVersion

        public void unsetFailoverVersion()
      • isSetFailoverVersion

        public boolean isSetFailoverVersion()
        Returns true if field failoverVersion is set (has been assigned a value) and false otherwise
      • setFailoverVersionIsSet

        public void setFailoverVersionIsSet​(boolean value)
      • getFailoverStartTimestamp

        public long getFailoverStartTimestamp()
      • setFailoverStartTimestamp

        public FailoverInfo setFailoverStartTimestamp​(long failoverStartTimestamp)
      • unsetFailoverStartTimestamp

        public void unsetFailoverStartTimestamp()
      • isSetFailoverStartTimestamp

        public boolean isSetFailoverStartTimestamp()
        Returns true if field failoverStartTimestamp is set (has been assigned a value) and false otherwise
      • setFailoverStartTimestampIsSet

        public void setFailoverStartTimestampIsSet​(boolean value)
      • getFailoverExpireTimestamp

        public long getFailoverExpireTimestamp()
      • setFailoverExpireTimestamp

        public FailoverInfo setFailoverExpireTimestamp​(long failoverExpireTimestamp)
      • unsetFailoverExpireTimestamp

        public void unsetFailoverExpireTimestamp()
      • isSetFailoverExpireTimestamp

        public boolean isSetFailoverExpireTimestamp()
        Returns true if field failoverExpireTimestamp is set (has been assigned a value) and false otherwise
      • setFailoverExpireTimestampIsSet

        public void setFailoverExpireTimestampIsSet​(boolean value)
      • getCompletedShardCount

        public int getCompletedShardCount()
      • setCompletedShardCount

        public FailoverInfo setCompletedShardCount​(int completedShardCount)
      • unsetCompletedShardCount

        public void unsetCompletedShardCount()
      • isSetCompletedShardCount

        public boolean isSetCompletedShardCount()
        Returns true if field completedShardCount is set (has been assigned a value) and false otherwise
      • setCompletedShardCountIsSet

        public void setCompletedShardCountIsSet​(boolean value)
      • getPendingShardsSize

        public int getPendingShardsSize()
      • getPendingShardsIterator

        public java.util.Iterator<java.lang.Integer> getPendingShardsIterator()
      • addToPendingShards

        public void addToPendingShards​(int elem)
      • getPendingShards

        public java.util.List<java.lang.Integer> getPendingShards()
      • setPendingShards

        public FailoverInfo setPendingShards​(java.util.List<java.lang.Integer> pendingShards)
      • unsetPendingShards

        public void unsetPendingShards()
      • isSetPendingShards

        public boolean isSetPendingShards()
        Returns true if field pendingShards is set (has been assigned a value) and false otherwise
      • setPendingShardsIsSet

        public void setPendingShardsIsSet​(boolean value)
      • isSet

        public boolean isSet​(FailoverInfo._Fields field)
        Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
        Specified by:
        isSet in interface org.apache.thrift.TBase<FailoverInfo,​FailoverInfo._Fields>
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(FailoverInfo other)
        Specified by:
        compareTo in interface java.lang.Comparable<FailoverInfo>
      • read

        public void read​(org.apache.thrift.protocol.TProtocol iprot)
                  throws org.apache.thrift.TException
        Specified by:
        read in interface org.apache.thrift.TBase<FailoverInfo,​FailoverInfo._Fields>
        Throws:
        org.apache.thrift.TException
      • write

        public void write​(org.apache.thrift.protocol.TProtocol oprot)
                   throws org.apache.thrift.TException
        Specified by:
        write in interface org.apache.thrift.TBase<FailoverInfo,​FailoverInfo._Fields>
        Throws:
        org.apache.thrift.TException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validate

        public void validate()
                      throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException