@Generated(value="Autogenerated by Thrift Compiler (0.13.0)") public class SupervisorSummary extends Object implements org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>, Serializable, Cloneable, Comparable<SupervisorSummary>
Modifier and Type | Class and Description |
---|---|
static class |
SupervisorSummary._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<SupervisorSummary._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
SupervisorSummary() |
SupervisorSummary(String host,
int uptime_secs,
int num_workers,
int num_used_workers,
String supervisor_id) |
SupervisorSummary(SupervisorSummary other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(SupervisorSummary other) |
SupervisorSummary |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(SupervisorSummary that) |
SupervisorSummary._Fields |
fieldForId(int fieldId) |
double |
get_fragmented_cpu() |
double |
get_fragmented_mem() |
String |
get_host() |
int |
get_num_used_workers() |
int |
get_num_workers() |
String |
get_supervisor_id() |
int |
get_total_resources_size() |
Map<String,Double> |
get_total_resources() |
int |
get_uptime_secs() |
double |
get_used_cpu() |
double |
get_used_mem() |
String |
get_version() |
Object |
getFieldValue(SupervisorSummary._Fields field) |
int |
hashCode() |
boolean |
is_set_fragmented_cpu()
Returns true if field fragmented_cpu is set (has been assigned a value) and false otherwise
|
boolean |
is_set_fragmented_mem()
Returns true if field fragmented_mem is set (has been assigned a value) and false otherwise
|
boolean |
is_set_host()
Returns true if field host is set (has been assigned a value) and false otherwise
|
boolean |
is_set_num_used_workers()
Returns true if field num_used_workers is set (has been assigned a value) and false otherwise
|
boolean |
is_set_num_workers()
Returns true if field num_workers is set (has been assigned a value) and false otherwise
|
boolean |
is_set_supervisor_id()
Returns true if field supervisor_id is set (has been assigned a value) and false otherwise
|
boolean |
is_set_total_resources()
Returns true if field total_resources is set (has been assigned a value) and false otherwise
|
boolean |
is_set_uptime_secs()
Returns true if field uptime_secs is set (has been assigned a value) and false otherwise
|
boolean |
is_set_used_cpu()
Returns true if field used_cpu is set (has been assigned a value) and false otherwise
|
boolean |
is_set_used_mem()
Returns true if field used_mem is set (has been assigned a value) and false otherwise
|
boolean |
is_set_version()
Returns true if field version is set (has been assigned a value) and false otherwise
|
boolean |
isSet(SupervisorSummary._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
void |
put_to_total_resources(String key,
double val) |
void |
read(org.apache.storm.thrift.protocol.TProtocol iprot) |
void |
set_fragmented_cpu_isSet(boolean value) |
void |
set_fragmented_cpu(double fragmented_cpu) |
void |
set_fragmented_mem_isSet(boolean value) |
void |
set_fragmented_mem(double fragmented_mem) |
void |
set_host_isSet(boolean value) |
void |
set_host(String host) |
void |
set_num_used_workers_isSet(boolean value) |
void |
set_num_used_workers(int num_used_workers) |
void |
set_num_workers_isSet(boolean value) |
void |
set_num_workers(int num_workers) |
void |
set_supervisor_id_isSet(boolean value) |
void |
set_supervisor_id(String supervisor_id) |
void |
set_total_resources_isSet(boolean value) |
void |
set_total_resources(Map<String,Double> total_resources) |
void |
set_uptime_secs_isSet(boolean value) |
void |
set_uptime_secs(int uptime_secs) |
void |
set_used_cpu_isSet(boolean value) |
void |
set_used_cpu(double used_cpu) |
void |
set_used_mem_isSet(boolean value) |
void |
set_used_mem(double used_mem) |
void |
set_version_isSet(boolean value) |
void |
set_version(String version) |
void |
setFieldValue(SupervisorSummary._Fields field,
Object value) |
String |
toString() |
void |
unset_fragmented_cpu() |
void |
unset_fragmented_mem() |
void |
unset_host() |
void |
unset_num_used_workers() |
void |
unset_num_workers() |
void |
unset_supervisor_id() |
void |
unset_total_resources() |
void |
unset_uptime_secs() |
void |
unset_used_cpu() |
void |
unset_used_mem() |
void |
unset_version() |
void |
validate() |
void |
write(org.apache.storm.thrift.protocol.TProtocol oprot) |
public static final Map<SupervisorSummary._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
public SupervisorSummary()
public SupervisorSummary(String host, int uptime_secs, int num_workers, int num_used_workers, String supervisor_id)
public SupervisorSummary(SupervisorSummary other)
Performs a deep copy on other.
public SupervisorSummary deepCopy()
deepCopy
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public void clear()
clear
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public String get_host()
public void set_host(String host)
public void unset_host()
public boolean is_set_host()
Returns true if field host is set (has been assigned a value) and false otherwise
public void set_host_isSet(boolean value)
public int get_uptime_secs()
public void set_uptime_secs(int uptime_secs)
public void unset_uptime_secs()
public boolean is_set_uptime_secs()
Returns true if field uptime_secs is set (has been assigned a value) and false otherwise
public void set_uptime_secs_isSet(boolean value)
public int get_num_workers()
public void set_num_workers(int num_workers)
public void unset_num_workers()
public boolean is_set_num_workers()
Returns true if field num_workers is set (has been assigned a value) and false otherwise
public void set_num_workers_isSet(boolean value)
public int get_num_used_workers()
public void set_num_used_workers(int num_used_workers)
public void unset_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
public void set_num_used_workers_isSet(boolean value)
public String get_supervisor_id()
public void set_supervisor_id(String supervisor_id)
public void unset_supervisor_id()
public boolean is_set_supervisor_id()
Returns true if field supervisor_id is set (has been assigned a value) and false otherwise
public void set_supervisor_id_isSet(boolean value)
public String get_version()
public void set_version(String version)
public void unset_version()
public boolean is_set_version()
Returns true if field version is set (has been assigned a value) and false otherwise
public void set_version_isSet(boolean value)
public int get_total_resources_size()
public void put_to_total_resources(String key, double val)
public void unset_total_resources()
public boolean is_set_total_resources()
Returns true if field total_resources is set (has been assigned a value) and false otherwise
public void set_total_resources_isSet(boolean value)
public double get_used_mem()
public void set_used_mem(double used_mem)
public void unset_used_mem()
public boolean is_set_used_mem()
Returns true if field used_mem is set (has been assigned a value) and false otherwise
public void set_used_mem_isSet(boolean value)
public double get_used_cpu()
public void set_used_cpu(double used_cpu)
public void unset_used_cpu()
public boolean is_set_used_cpu()
Returns true if field used_cpu is set (has been assigned a value) and false otherwise
public void set_used_cpu_isSet(boolean value)
public double get_fragmented_mem()
public void set_fragmented_mem(double fragmented_mem)
public void unset_fragmented_mem()
public boolean is_set_fragmented_mem()
Returns true if field fragmented_mem is set (has been assigned a value) and false otherwise
public void set_fragmented_mem_isSet(boolean value)
public double get_fragmented_cpu()
public void set_fragmented_cpu(double fragmented_cpu)
public void unset_fragmented_cpu()
public boolean is_set_fragmented_cpu()
Returns true if field fragmented_cpu is set (has been assigned a value) and false otherwise
public void set_fragmented_cpu_isSet(boolean value)
public void setFieldValue(SupervisorSummary._Fields field, Object value)
setFieldValue
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public Object getFieldValue(SupervisorSummary._Fields field)
getFieldValue
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public boolean isSet(SupervisorSummary._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
isSet
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public boolean equals(SupervisorSummary that)
public int compareTo(SupervisorSummary other)
compareTo
in interface Comparable<SupervisorSummary>
public SupervisorSummary._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.storm.thrift.TBase<SupervisorSummary,SupervisorSummary._Fields>
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException
read
in interface org.apache.storm.thrift.TSerializable
org.apache.storm.thrift.TException
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException
write
in interface org.apache.storm.thrift.TSerializable
org.apache.storm.thrift.TException
public void validate() throws org.apache.storm.thrift.TException
org.apache.storm.thrift.TException
Copyright © 2022 The Apache Software Foundation. All rights reserved.