Package com.uber.cadence
Class FailoverInfo
- java.lang.Object
-
- com.uber.cadence.FailoverInfo
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<FailoverInfo>
,org.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2023-08-08") public class FailoverInfo extends java.lang.Object implements org.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<FailoverInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FailoverInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description int
completedShardCount
long
failoverExpireTimestamp
long
failoverStartTimestamp
long
failoverVersion
static java.util.Map<FailoverInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
java.util.List<java.lang.Integer>
pendingShards
-
Constructor Summary
Constructors Constructor Description FailoverInfo()
FailoverInfo(FailoverInfo other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToPendingShards(int elem)
void
clear()
int
compareTo(FailoverInfo other)
FailoverInfo
deepCopy()
boolean
equals(FailoverInfo that)
boolean
equals(java.lang.Object that)
FailoverInfo._Fields
fieldForId(int fieldId)
int
getCompletedShardCount()
long
getFailoverExpireTimestamp()
long
getFailoverStartTimestamp()
long
getFailoverVersion()
java.lang.Object
getFieldValue(FailoverInfo._Fields field)
java.util.List<java.lang.Integer>
getPendingShards()
java.util.Iterator<java.lang.Integer>
getPendingShardsIterator()
int
getPendingShardsSize()
int
hashCode()
boolean
isSet(FailoverInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetCompletedShardCount()
Returns true if field completedShardCount is set (has been assigned a value) and false otherwiseboolean
isSetFailoverExpireTimestamp()
Returns true if field failoverExpireTimestamp is set (has been assigned a value) and false otherwiseboolean
isSetFailoverStartTimestamp()
Returns true if field failoverStartTimestamp is set (has been assigned a value) and false otherwiseboolean
isSetFailoverVersion()
Returns true if field failoverVersion is set (has been assigned a value) and false otherwiseboolean
isSetPendingShards()
Returns true if field pendingShards is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
FailoverInfo
setCompletedShardCount(int completedShardCount)
void
setCompletedShardCountIsSet(boolean value)
FailoverInfo
setFailoverExpireTimestamp(long failoverExpireTimestamp)
void
setFailoverExpireTimestampIsSet(boolean value)
FailoverInfo
setFailoverStartTimestamp(long failoverStartTimestamp)
void
setFailoverStartTimestampIsSet(boolean value)
FailoverInfo
setFailoverVersion(long failoverVersion)
void
setFailoverVersionIsSet(boolean value)
void
setFieldValue(FailoverInfo._Fields field, java.lang.Object value)
FailoverInfo
setPendingShards(java.util.List<java.lang.Integer> pendingShards)
void
setPendingShardsIsSet(boolean value)
java.lang.String
toString()
void
unsetCompletedShardCount()
void
unsetFailoverExpireTimestamp()
void
unsetFailoverStartTimestamp()
void
unsetFailoverVersion()
void
unsetPendingShards()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
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
-
deepCopy
public FailoverInfo deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
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)
-
setFieldValue
public void setFieldValue(FailoverInfo._Fields field, java.lang.Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
getFieldValue
public java.lang.Object getFieldValue(FailoverInfo._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
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 interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(FailoverInfo that)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(FailoverInfo other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FailoverInfo>
-
fieldForId
public FailoverInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.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 interfaceorg.apache.thrift.TBase<FailoverInfo,FailoverInfo._Fields>
- Throws:
org.apache.thrift.TException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-