@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class TxnInfo extends java.lang.Object implements org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<TxnInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
TxnInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
TxnInfo() |
TxnInfo(long id,
TxnState state,
java.lang.String user,
java.lang.String hostname) |
TxnInfo(TxnInfo other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(TxnInfo other) |
TxnInfo |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(TxnInfo that) |
TxnInfo._Fields |
fieldForId(int fieldId) |
java.lang.String |
getAgentInfo() |
java.lang.Object |
getFieldValue(TxnInfo._Fields field) |
int |
getHeartbeatCount() |
java.lang.String |
getHostname() |
long |
getId() |
long |
getLastHeartbeatTime() |
java.lang.String |
getMetaInfo() |
long |
getStartedTime() |
TxnState |
getState() |
java.lang.String |
getUser() |
int |
hashCode() |
boolean |
isSet(TxnInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAgentInfo()
Returns true if field agentInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetHeartbeatCount()
Returns true if field heartbeatCount is set (has been assigned a value) and false otherwise
|
boolean |
isSetHostname()
Returns true if field hostname is set (has been assigned a value) and false otherwise
|
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise
|
boolean |
isSetLastHeartbeatTime()
Returns true if field lastHeartbeatTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetaInfo()
Returns true if field metaInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetStartedTime()
Returns true if field startedTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetState()
Returns true if field state is set (has been assigned a value) and false otherwise
|
boolean |
isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setAgentInfo(java.lang.String agentInfo) |
void |
setAgentInfoIsSet(boolean value) |
void |
setFieldValue(TxnInfo._Fields field,
java.lang.Object value) |
void |
setHeartbeatCount(int heartbeatCount) |
void |
setHeartbeatCountIsSet(boolean value) |
void |
setHostname(java.lang.String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setId(long id) |
void |
setIdIsSet(boolean value) |
void |
setLastHeartbeatTime(long lastHeartbeatTime) |
void |
setLastHeartbeatTimeIsSet(boolean value) |
void |
setMetaInfo(java.lang.String metaInfo) |
void |
setMetaInfoIsSet(boolean value) |
void |
setStartedTime(long startedTime) |
void |
setStartedTimeIsSet(boolean value) |
void |
setState(TxnState state) |
void |
setStateIsSet(boolean value) |
void |
setUser(java.lang.String user) |
void |
setUserIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetAgentInfo() |
void |
unsetHeartbeatCount() |
void |
unsetHostname() |
void |
unsetId() |
void |
unsetLastHeartbeatTime() |
void |
unsetMetaInfo() |
void |
unsetStartedTime() |
void |
unsetState() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TxnInfo()
public TxnInfo(long id,
TxnState state,
java.lang.String user,
java.lang.String hostname)
public TxnInfo(TxnInfo other)
public TxnInfo deepCopy()
deepCopy in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public void clear()
clear in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public long getId()
public void setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public void unsetUser()
public boolean isSetUser()
public void setUserIsSet(boolean value)
public java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
public void unsetHostname()
public boolean isSetHostname()
public void setHostnameIsSet(boolean value)
public java.lang.String getAgentInfo()
public void setAgentInfo(java.lang.String agentInfo)
public void unsetAgentInfo()
public boolean isSetAgentInfo()
public void setAgentInfoIsSet(boolean value)
public int getHeartbeatCount()
public void setHeartbeatCount(int heartbeatCount)
public void unsetHeartbeatCount()
public boolean isSetHeartbeatCount()
public void setHeartbeatCountIsSet(boolean value)
public java.lang.String getMetaInfo()
public void setMetaInfo(java.lang.String metaInfo)
public void unsetMetaInfo()
public boolean isSetMetaInfo()
public void setMetaInfoIsSet(boolean value)
public long getStartedTime()
public void setStartedTime(long startedTime)
public void unsetStartedTime()
public boolean isSetStartedTime()
public void setStartedTimeIsSet(boolean value)
public long getLastHeartbeatTime()
public void setLastHeartbeatTime(long lastHeartbeatTime)
public void unsetLastHeartbeatTime()
public boolean isSetLastHeartbeatTime()
public void setLastHeartbeatTimeIsSet(boolean value)
public void setFieldValue(TxnInfo._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public java.lang.Object getFieldValue(TxnInfo._Fields field)
getFieldValue in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public boolean isSet(TxnInfo._Fields field)
isSet in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(TxnInfo that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(TxnInfo other)
compareTo in interface java.lang.Comparable<TxnInfo>public TxnInfo._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2013-2021. All Rights Reserved.