public class TaskDesc extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<TaskDesc>
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskDesc.Builder |
| Modifier and Type | Field and Description |
|---|---|
HostAddr |
host |
static int |
HOST |
int |
job_id |
static int |
JOB_ID |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
start_time |
static int |
START_TIME |
JobStatus |
status |
static int |
STATUS |
long |
stop_time |
static int |
STOP_TIME |
int |
task_id |
static int |
TASK_ID |
| Constructor and Description |
|---|
TaskDesc() |
TaskDesc(int task_id,
HostAddr host,
JobStatus status,
long start_time,
long stop_time,
int job_id) |
TaskDesc(TaskDesc other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static TaskDesc.Builder |
builder() |
int |
compareTo(TaskDesc other) |
TaskDesc |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
HostAddr |
getHost() |
int |
getJob_id() |
long |
getStart_time() |
JobStatus |
getStatus() |
long |
getStop_time() |
int |
getTask_id() |
int |
hashCode() |
boolean |
isSetHost() |
boolean |
isSetJob_id() |
boolean |
isSetStart_time() |
boolean |
isSetStatus() |
boolean |
isSetStop_time() |
boolean |
isSetTask_id() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
TaskDesc |
setHost(HostAddr host) |
void |
setHostIsSet(boolean __value) |
TaskDesc |
setJob_id(int job_id) |
void |
setJob_idIsSet(boolean __value) |
TaskDesc |
setStart_time(long start_time) |
void |
setStart_timeIsSet(boolean __value) |
TaskDesc |
setStatus(JobStatus status) |
void |
setStatusIsSet(boolean __value) |
TaskDesc |
setStop_time(long stop_time) |
void |
setStop_timeIsSet(boolean __value) |
TaskDesc |
setTask_id(int task_id) |
void |
setTask_idIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetHost() |
void |
unsetJob_id() |
void |
unsetStart_time() |
void |
unsetStatus() |
void |
unsetStop_time() |
void |
unsetTask_id() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public int task_id
public HostAddr host
public long start_time
public long stop_time
public int job_id
public static final int TASK_ID
public static final int HOST
public static final int STATUS
public static final int START_TIME
public static final int STOP_TIME
public static final int JOB_ID
public TaskDesc()
public TaskDesc(int task_id,
HostAddr host,
JobStatus status,
long start_time,
long stop_time,
int job_id)
public TaskDesc(TaskDesc other)
public static TaskDesc.Builder builder()
public TaskDesc deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic int getTask_id()
public TaskDesc setTask_id(int task_id)
public void unsetTask_id()
public boolean isSetTask_id()
public void setTask_idIsSet(boolean __value)
public HostAddr getHost()
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean __value)
public void unsetStatus()
public boolean isSetStatus()
public void setStatusIsSet(boolean __value)
public long getStart_time()
public TaskDesc setStart_time(long start_time)
public void unsetStart_time()
public boolean isSetStart_time()
public void setStart_timeIsSet(boolean __value)
public long getStop_time()
public TaskDesc setStop_time(long stop_time)
public void unsetStop_time()
public boolean isSetStop_time()
public void setStop_timeIsSet(boolean __value)
public int getJob_id()
public TaskDesc setJob_id(int job_id)
public void unsetJob_id()
public boolean isSetJob_id()
public void setJob_idIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(TaskDesc other)
compareTo in interface Comparable<TaskDesc>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.