public class RunRequest extends java.lang.Object implements org.apache.thrift.TBase<RunRequest,RunRequest._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<RunRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
RunRequest._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<RunRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
RunRequest() |
RunRequest(long scheduledAt,
long periodicity,
java.lang.String path,
java.nio.ByteBuffer content,
boolean compressed,
java.lang.String scheduler) |
RunRequest(RunRequest other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForContent() |
void |
clear() |
int |
compareTo(RunRequest other) |
RunRequest |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(RunRequest that) |
RunRequest._Fields |
fieldForId(int fieldId) |
byte[] |
getContent()
Content of the script
|
java.lang.Object |
getFieldValue(RunRequest._Fields field) |
java.lang.String |
getPath()
Path to the script
|
long |
getPeriodicity()
Periodicity of the script
|
long |
getScheduledAt()
Timestamp at which the script was scheduled
|
java.lang.String |
getScheduler()
Id of the scheduling node
|
int |
hashCode() |
boolean |
isCompressed()
Flag indicating whether the content is compressed or not
|
boolean |
isSet(RunRequest._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressed()
Returns true if field compressed is set (has been assigned a value) and false otherwise
|
boolean |
isSetContent()
Returns true if field content is set (has been assigned a value) and false otherwise
|
boolean |
isSetPath()
Returns true if field path is set (has been assigned a value) and false otherwise
|
boolean |
isSetPeriodicity()
Returns true if field periodicity is set (has been assigned a value) and false otherwise
|
boolean |
isSetScheduledAt()
Returns true if field scheduledAt is set (has been assigned a value) and false otherwise
|
boolean |
isSetScheduler()
Returns true if field scheduler is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
RunRequest |
setCompressed(boolean compressed)
Flag indicating whether the content is compressed or not
|
void |
setCompressedIsSet(boolean value) |
RunRequest |
setContent(byte[] content)
Content of the script
|
RunRequest |
setContent(java.nio.ByteBuffer content) |
void |
setContentIsSet(boolean value) |
void |
setFieldValue(RunRequest._Fields field,
java.lang.Object value) |
RunRequest |
setPath(java.lang.String path)
Path to the script
|
void |
setPathIsSet(boolean value) |
RunRequest |
setPeriodicity(long periodicity)
Periodicity of the script
|
void |
setPeriodicityIsSet(boolean value) |
RunRequest |
setScheduledAt(long scheduledAt)
Timestamp at which the script was scheduled
|
void |
setScheduledAtIsSet(boolean value) |
RunRequest |
setScheduler(java.lang.String scheduler)
Id of the scheduling node
|
void |
setSchedulerIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetCompressed() |
void |
unsetContent() |
void |
unsetPath() |
void |
unsetPeriodicity() |
void |
unsetScheduledAt() |
void |
unsetScheduler() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<RunRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public RunRequest()
public RunRequest(long scheduledAt,
long periodicity,
java.lang.String path,
java.nio.ByteBuffer content,
boolean compressed,
java.lang.String scheduler)
public RunRequest(RunRequest other)
public RunRequest deepCopy()
deepCopy in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public void clear()
clear in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public long getScheduledAt()
public RunRequest setScheduledAt(long scheduledAt)
public void unsetScheduledAt()
public boolean isSetScheduledAt()
public void setScheduledAtIsSet(boolean value)
public long getPeriodicity()
public RunRequest setPeriodicity(long periodicity)
public void unsetPeriodicity()
public boolean isSetPeriodicity()
public void setPeriodicityIsSet(boolean value)
public java.lang.String getPath()
public RunRequest setPath(java.lang.String path)
public void unsetPath()
public boolean isSetPath()
public void setPathIsSet(boolean value)
public byte[] getContent()
public java.nio.ByteBuffer bufferForContent()
public RunRequest setContent(byte[] content)
public RunRequest setContent(java.nio.ByteBuffer content)
public void unsetContent()
public boolean isSetContent()
public void setContentIsSet(boolean value)
public boolean isCompressed()
public RunRequest setCompressed(boolean compressed)
public void unsetCompressed()
public boolean isSetCompressed()
public void setCompressedIsSet(boolean value)
public java.lang.String getScheduler()
public RunRequest setScheduler(java.lang.String scheduler)
public void unsetScheduler()
public boolean isSetScheduler()
public void setSchedulerIsSet(boolean value)
public void setFieldValue(RunRequest._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public java.lang.Object getFieldValue(RunRequest._Fields field)
getFieldValue in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public boolean isSet(RunRequest._Fields field)
isSet in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(RunRequest that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(RunRequest other)
compareTo in interface java.lang.Comparable<RunRequest>public RunRequest._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<RunRequest,RunRequest._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException