Package org.apache.storm.generated
Class SupervisorInfo
- java.lang.Object
-
- org.apache.storm.generated.SupervisorInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SupervisorInfo>,org.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>,org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)") public class SupervisorInfo extends Object implements org.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>, Serializable, Cloneable, Comparable<SupervisorInfo>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupervisorInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<SupervisorInfo._Fields,org.apache.storm.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description SupervisorInfo()SupervisorInfo(long time_secs, String hostname)SupervisorInfo(SupervisorInfo other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_to_meta(long elem)voidadd_to_used_ports(long elem)voidclear()intcompareTo(SupervisorInfo other)SupervisorInfodeepCopy()booleanequals(Object that)booleanequals(SupervisorInfo that)SupervisorInfo._FieldsfieldForId(int fieldId)Stringget_assignment_id()Stringget_hostname()List<Long>get_meta()Iterator<Long>get_meta_iterator()intget_meta_size()Map<String,Double>get_resources_map()intget_resources_map_size()Map<String,String>get_scheduler_meta()intget_scheduler_meta_size()intget_server_port()longget_time_secs()longget_uptime_secs()List<Long>get_used_ports()Iterator<Long>get_used_ports_iterator()intget_used_ports_size()Stringget_version()ObjectgetFieldValue(SupervisorInfo._Fields field)inthashCode()booleanis_set_assignment_id()Returns true if field assignment_id is set (has been assigned a value) and false otherwisebooleanis_set_hostname()Returns true if field hostname is set (has been assigned a value) and false otherwisebooleanis_set_meta()Returns true if field meta is set (has been assigned a value) and false otherwisebooleanis_set_resources_map()Returns true if field resources_map is set (has been assigned a value) and false otherwisebooleanis_set_scheduler_meta()Returns true if field scheduler_meta is set (has been assigned a value) and false otherwisebooleanis_set_server_port()Returns true if field server_port is set (has been assigned a value) and false otherwisebooleanis_set_time_secs()Returns true if field time_secs is set (has been assigned a value) and false otherwisebooleanis_set_uptime_secs()Returns true if field uptime_secs is set (has been assigned a value) and false otherwisebooleanis_set_used_ports()Returns true if field used_ports is set (has been assigned a value) and false otherwisebooleanis_set_version()Returns true if field version is set (has been assigned a value) and false otherwisebooleanisSet(SupervisorInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoidput_to_resources_map(String key, double val)voidput_to_scheduler_meta(String key, String val)voidread(org.apache.storm.thrift.protocol.TProtocol iprot)voidset_assignment_id(String assignment_id)voidset_assignment_id_isSet(boolean value)voidset_hostname(String hostname)voidset_hostname_isSet(boolean value)voidset_meta(List<Long> meta)voidset_meta_isSet(boolean value)voidset_resources_map(Map<String,Double> resources_map)voidset_resources_map_isSet(boolean value)voidset_scheduler_meta(Map<String,String> scheduler_meta)voidset_scheduler_meta_isSet(boolean value)voidset_server_port(int server_port)voidset_server_port_isSet(boolean value)voidset_time_secs(long time_secs)voidset_time_secs_isSet(boolean value)voidset_uptime_secs(long uptime_secs)voidset_uptime_secs_isSet(boolean value)voidset_used_ports(List<Long> used_ports)voidset_used_ports_isSet(boolean value)voidset_version(String version)voidset_version_isSet(boolean value)voidsetFieldValue(SupervisorInfo._Fields field, Object value)StringtoString()voidunset_assignment_id()voidunset_hostname()voidunset_meta()voidunset_resources_map()voidunset_scheduler_meta()voidunset_server_port()voidunset_time_secs()voidunset_uptime_secs()voidunset_used_ports()voidunset_version()voidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
metaDataMap
public static final Map<SupervisorInfo._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
SupervisorInfo
public SupervisorInfo()
-
SupervisorInfo
public SupervisorInfo(long time_secs, String hostname)
-
SupervisorInfo
public SupervisorInfo(SupervisorInfo other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public SupervisorInfo deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
get_time_secs
public long get_time_secs()
-
set_time_secs
public void set_time_secs(long time_secs)
-
unset_time_secs
public void unset_time_secs()
-
is_set_time_secs
public boolean is_set_time_secs()
Returns true if field time_secs is set (has been assigned a value) and false otherwise
-
set_time_secs_isSet
public void set_time_secs_isSet(boolean value)
-
get_hostname
public String get_hostname()
-
set_hostname
public void set_hostname(String hostname)
-
unset_hostname
public void unset_hostname()
-
is_set_hostname
public boolean is_set_hostname()
Returns true if field hostname is set (has been assigned a value) and false otherwise
-
set_hostname_isSet
public void set_hostname_isSet(boolean value)
-
get_assignment_id
public String get_assignment_id()
-
set_assignment_id
public void set_assignment_id(String assignment_id)
-
unset_assignment_id
public void unset_assignment_id()
-
is_set_assignment_id
public boolean is_set_assignment_id()
Returns true if field assignment_id is set (has been assigned a value) and false otherwise
-
set_assignment_id_isSet
public void set_assignment_id_isSet(boolean value)
-
get_used_ports_size
public int get_used_ports_size()
-
add_to_used_ports
public void add_to_used_ports(long elem)
-
unset_used_ports
public void unset_used_ports()
-
is_set_used_ports
public boolean is_set_used_ports()
Returns true if field used_ports is set (has been assigned a value) and false otherwise
-
set_used_ports_isSet
public void set_used_ports_isSet(boolean value)
-
get_meta_size
public int get_meta_size()
-
add_to_meta
public void add_to_meta(long elem)
-
unset_meta
public void unset_meta()
-
is_set_meta
public boolean is_set_meta()
Returns true if field meta is set (has been assigned a value) and false otherwise
-
set_meta_isSet
public void set_meta_isSet(boolean value)
-
get_scheduler_meta_size
public int get_scheduler_meta_size()
-
unset_scheduler_meta
public void unset_scheduler_meta()
-
is_set_scheduler_meta
public boolean is_set_scheduler_meta()
Returns true if field scheduler_meta is set (has been assigned a value) and false otherwise
-
set_scheduler_meta_isSet
public void set_scheduler_meta_isSet(boolean value)
-
get_uptime_secs
public long get_uptime_secs()
-
set_uptime_secs
public void set_uptime_secs(long uptime_secs)
-
unset_uptime_secs
public void unset_uptime_secs()
-
is_set_uptime_secs
public boolean is_set_uptime_secs()
Returns true if field uptime_secs is set (has been assigned a value) and false otherwise
-
set_uptime_secs_isSet
public void set_uptime_secs_isSet(boolean value)
-
get_version
public String get_version()
-
set_version
public void set_version(String version)
-
unset_version
public void unset_version()
-
is_set_version
public boolean is_set_version()
Returns true if field version is set (has been assigned a value) and false otherwise
-
set_version_isSet
public void set_version_isSet(boolean value)
-
get_resources_map_size
public int get_resources_map_size()
-
put_to_resources_map
public void put_to_resources_map(String key, double val)
-
unset_resources_map
public void unset_resources_map()
-
is_set_resources_map
public boolean is_set_resources_map()
Returns true if field resources_map is set (has been assigned a value) and false otherwise
-
set_resources_map_isSet
public void set_resources_map_isSet(boolean value)
-
get_server_port
public int get_server_port()
-
set_server_port
public void set_server_port(int server_port)
-
unset_server_port
public void unset_server_port()
-
is_set_server_port
public boolean is_set_server_port()
Returns true if field server_port is set (has been assigned a value) and false otherwise
-
set_server_port_isSet
public void set_server_port_isSet(boolean value)
-
setFieldValue
public void setFieldValue(SupervisorInfo._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
getFieldValue
public Object getFieldValue(SupervisorInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
isSet
public boolean isSet(SupervisorInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
equals
public boolean equals(SupervisorInfo that)
-
compareTo
public int compareTo(SupervisorInfo other)
- Specified by:
compareToin interfaceComparable<SupervisorInfo>
-
fieldForId
public SupervisorInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.storm.thrift.TBase<SupervisorInfo,SupervisorInfo._Fields>
-
read
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException- Specified by:
readin interfaceorg.apache.storm.thrift.TSerializable- Throws:
org.apache.storm.thrift.TException
-
write
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException- Specified by:
writein interfaceorg.apache.storm.thrift.TSerializable- Throws:
org.apache.storm.thrift.TException
-
validate
public void validate() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-
-