public class BalanceTask extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<BalanceTask>
| Modifier and Type | Class and Description |
|---|---|
static class |
BalanceTask.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
command |
static int |
COMMAND |
byte[] |
id |
static int |
ID |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
TaskResult |
result |
static int |
RESULT |
long |
start_time |
static int |
START_TIME |
long |
stop_time |
static int |
STOP_TIME |
| Constructor and Description |
|---|
BalanceTask() |
BalanceTask(BalanceTask other)
Performs a deep copy on other.
|
BalanceTask(byte[] id,
byte[] command,
TaskResult result,
long start_time,
long stop_time) |
| Modifier and Type | Method and Description |
|---|---|
static BalanceTask.Builder |
builder() |
int |
compareTo(BalanceTask other) |
BalanceTask |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
byte[] |
getCommand() |
Object |
getFieldValue(int fieldID) |
byte[] |
getId() |
TaskResult |
getResult() |
long |
getStart_time() |
long |
getStop_time() |
int |
hashCode() |
boolean |
isSetCommand() |
boolean |
isSetId() |
boolean |
isSetResult() |
boolean |
isSetStart_time() |
boolean |
isSetStop_time() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
BalanceTask |
setCommand(byte[] command) |
void |
setCommandIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
BalanceTask |
setId(byte[] id) |
void |
setIdIsSet(boolean __value) |
BalanceTask |
setResult(TaskResult result) |
void |
setResultIsSet(boolean __value) |
BalanceTask |
setStart_time(long start_time) |
void |
setStart_timeIsSet(boolean __value) |
BalanceTask |
setStop_time(long stop_time) |
void |
setStop_timeIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCommand() |
void |
unsetId() |
void |
unsetResult() |
void |
unsetStart_time() |
void |
unsetStop_time() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] id
public byte[] command
public TaskResult result
TaskResultpublic long start_time
public long stop_time
public static final int ID
public static final int COMMAND
public static final int RESULT
public static final int START_TIME
public static final int STOP_TIME
public BalanceTask()
public BalanceTask(byte[] id,
byte[] command,
TaskResult result,
long start_time,
long stop_time)
public BalanceTask(BalanceTask other)
public static BalanceTask.Builder builder()
public BalanceTask deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getId()
public BalanceTask setId(byte[] id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean __value)
public byte[] getCommand()
public BalanceTask setCommand(byte[] command)
public void unsetCommand()
public boolean isSetCommand()
public void setCommandIsSet(boolean __value)
public TaskResult getResult()
TaskResultpublic BalanceTask setResult(TaskResult result)
TaskResultpublic void unsetResult()
public boolean isSetResult()
public void setResultIsSet(boolean __value)
public long getStart_time()
public BalanceTask setStart_time(long start_time)
public void unsetStart_time()
public boolean isSetStart_time()
public void setStart_timeIsSet(boolean __value)
public long getStop_time()
public BalanceTask setStop_time(long stop_time)
public void unsetStop_time()
public boolean isSetStop_time()
public void setStop_timeIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(BalanceTask other)
compareTo in interface Comparable<BalanceTask>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.