Package org.apache.storm.generated
Class SupervisorSummary
java.lang.Object
org.apache.storm.generated.SupervisorSummary
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<SupervisorSummary>
,org.apache.storm.thrift.TBase<SupervisorSummary,
,SupervisorSummary._Fields> org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)")
public class SupervisorSummary
extends Object
implements org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>, Serializable, Cloneable, Comparable<SupervisorSummary>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Map<SupervisorSummary._Fields,
org.apache.storm.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorDescriptionSupervisorSummary
(String host, int uptime_secs, int num_workers, int num_used_workers, String supervisor_id) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
compareTo
(SupervisorSummary other) deepCopy()
boolean
boolean
equals
(SupervisorSummary that) fieldForId
(int fieldId) double
double
get_host()
int
int
int
int
double
int
double
int
hashCode()
boolean
boolean
Returns true if field blacklisted is set (has been assigned a value) and false otherwiseboolean
Returns true if field fragmented_cpu is set (has been assigned a value) and false otherwiseboolean
Returns true if field fragmented_mem is set (has been assigned a value) and false otherwiseboolean
Returns true if field host is set (has been assigned a value) and false otherwiseboolean
Returns true if field num_used_workers is set (has been assigned a value) and false otherwiseboolean
Returns true if field num_workers is set (has been assigned a value) and false otherwiseboolean
Returns true if field supervisor_id is set (has been assigned a value) and false otherwiseboolean
Returns true if field total_resources is set (has been assigned a value) and false otherwiseboolean
Returns true if field uptime_secs is set (has been assigned a value) and false otherwiseboolean
Returns true if field used_cpu is set (has been assigned a value) and false otherwiseboolean
Returns true if field used_generic_resources is set (has been assigned a value) and false otherwiseboolean
Returns true if field used_mem is set (has been assigned a value) and false otherwiseboolean
Returns true if field version is set (has been assigned a value) and false otherwiseboolean
isSet
(SupervisorSummary._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoid
put_to_total_resources
(String key, double val) void
put_to_used_generic_resources
(String key, double val) void
read
(org.apache.storm.thrift.protocol.TProtocol iprot) void
set_blacklisted
(boolean blacklisted) void
set_blacklisted_isSet
(boolean value) void
set_fragmented_cpu
(double fragmented_cpu) void
set_fragmented_cpu_isSet
(boolean value) void
set_fragmented_mem
(double fragmented_mem) void
set_fragmented_mem_isSet
(boolean value) void
void
set_host_isSet
(boolean value) void
set_num_used_workers
(int num_used_workers) void
set_num_used_workers_isSet
(boolean value) void
set_num_workers
(int num_workers) void
set_num_workers_isSet
(boolean value) void
set_supervisor_id
(String supervisor_id) void
set_supervisor_id_isSet
(boolean value) void
set_total_resources
(Map<String, Double> total_resources) void
set_total_resources_isSet
(boolean value) void
set_uptime_secs
(int uptime_secs) void
set_uptime_secs_isSet
(boolean value) void
set_used_cpu
(double used_cpu) void
set_used_cpu_isSet
(boolean value) void
set_used_generic_resources
(Map<String, Double> used_generic_resources) void
set_used_generic_resources_isSet
(boolean value) void
set_used_mem
(double used_mem) void
set_used_mem_isSet
(boolean value) void
set_version
(String version) void
set_version_isSet
(boolean value) void
setFieldValue
(SupervisorSummary._Fields field, Object value) toString()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
validate()
void
write
(org.apache.storm.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<SupervisorSummary._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
SupervisorSummary
public SupervisorSummary() -
SupervisorSummary
-
SupervisorSummary
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
clear
public void clear()- Specified by:
clear
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
get_host
-
set_host
-
unset_host
public void unset_host() -
is_set_host
public boolean is_set_host()Returns true if field host is set (has been assigned a value) and false otherwise -
set_host_isSet
public void set_host_isSet(boolean value) -
get_uptime_secs
public int get_uptime_secs() -
set_uptime_secs
public void set_uptime_secs(int 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_num_workers
public int get_num_workers() -
set_num_workers
public void set_num_workers(int num_workers) -
unset_num_workers
public void unset_num_workers() -
is_set_num_workers
public boolean is_set_num_workers()Returns true if field num_workers is set (has been assigned a value) and false otherwise -
set_num_workers_isSet
public void set_num_workers_isSet(boolean value) -
get_num_used_workers
public int get_num_used_workers() -
set_num_used_workers
public void set_num_used_workers(int num_used_workers) -
unset_num_used_workers
public void unset_num_used_workers() -
is_set_num_used_workers
public boolean is_set_num_used_workers()Returns true if field num_used_workers is set (has been assigned a value) and false otherwise -
set_num_used_workers_isSet
public void set_num_used_workers_isSet(boolean value) -
get_supervisor_id
-
set_supervisor_id
-
unset_supervisor_id
public void unset_supervisor_id() -
is_set_supervisor_id
public boolean is_set_supervisor_id()Returns true if field supervisor_id is set (has been assigned a value) and false otherwise -
set_supervisor_id_isSet
public void set_supervisor_id_isSet(boolean value) -
get_version
-
set_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_total_resources_size
public int get_total_resources_size() -
put_to_total_resources
-
get_total_resources
-
set_total_resources
-
unset_total_resources
public void unset_total_resources() -
is_set_total_resources
public boolean is_set_total_resources()Returns true if field total_resources is set (has been assigned a value) and false otherwise -
set_total_resources_isSet
public void set_total_resources_isSet(boolean value) -
get_used_mem
public double get_used_mem() -
set_used_mem
public void set_used_mem(double used_mem) -
unset_used_mem
public void unset_used_mem() -
is_set_used_mem
public boolean is_set_used_mem()Returns true if field used_mem is set (has been assigned a value) and false otherwise -
set_used_mem_isSet
public void set_used_mem_isSet(boolean value) -
get_used_cpu
public double get_used_cpu() -
set_used_cpu
public void set_used_cpu(double used_cpu) -
unset_used_cpu
public void unset_used_cpu() -
is_set_used_cpu
public boolean is_set_used_cpu()Returns true if field used_cpu is set (has been assigned a value) and false otherwise -
set_used_cpu_isSet
public void set_used_cpu_isSet(boolean value) -
get_fragmented_mem
public double get_fragmented_mem() -
set_fragmented_mem
public void set_fragmented_mem(double fragmented_mem) -
unset_fragmented_mem
public void unset_fragmented_mem() -
is_set_fragmented_mem
public boolean is_set_fragmented_mem()Returns true if field fragmented_mem is set (has been assigned a value) and false otherwise -
set_fragmented_mem_isSet
public void set_fragmented_mem_isSet(boolean value) -
get_fragmented_cpu
public double get_fragmented_cpu() -
set_fragmented_cpu
public void set_fragmented_cpu(double fragmented_cpu) -
unset_fragmented_cpu
public void unset_fragmented_cpu() -
is_set_fragmented_cpu
public boolean is_set_fragmented_cpu()Returns true if field fragmented_cpu is set (has been assigned a value) and false otherwise -
set_fragmented_cpu_isSet
public void set_fragmented_cpu_isSet(boolean value) -
is_blacklisted
public boolean is_blacklisted() -
set_blacklisted
public void set_blacklisted(boolean blacklisted) -
unset_blacklisted
public void unset_blacklisted() -
is_set_blacklisted
public boolean is_set_blacklisted()Returns true if field blacklisted is set (has been assigned a value) and false otherwise -
set_blacklisted_isSet
public void set_blacklisted_isSet(boolean value) -
get_used_generic_resources_size
public int get_used_generic_resources_size() -
put_to_used_generic_resources
-
get_used_generic_resources
-
set_used_generic_resources
-
unset_used_generic_resources
public void unset_used_generic_resources() -
is_set_used_generic_resources
public boolean is_set_used_generic_resources()Returns true if field used_generic_resources is set (has been assigned a value) and false otherwise -
set_used_generic_resources_isSet
public void set_used_generic_resources_isSet(boolean value) -
setFieldValue
- Specified by:
setFieldValue
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
getFieldValue
- Specified by:
getFieldValue
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<SupervisorSummary>
-
fieldForId
- Specified by:
fieldForId
in interfaceorg.apache.storm.thrift.TBase<SupervisorSummary,
SupervisorSummary._Fields>
-
read
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException - Specified by:
read
in 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:
write
in interfaceorg.apache.storm.thrift.TSerializable
- Throws:
org.apache.storm.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-