backtype.storm.generated
Class TopologyInfo

java.lang.Object
  extended by backtype.storm.generated.TopologyInfo
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TopologyInfo>, org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

public class TopologyInfo
extends Object
implements org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class TopologyInfo._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<TopologyInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
TopologyInfo()
           
TopologyInfo(String id, String name, int uptime_secs, List<ExecutorSummary> executors, String status, Map<String,List<ErrorInfo>> errors)
           
TopologyInfo(TopologyInfo other)
          Performs a deep copy on other.
 
Method Summary
 void add_to_executors(ExecutorSummary elem)
           
 void clear()
           
 int compareTo(TopologyInfo other)
           
 TopologyInfo deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TopologyInfo that)
           
 TopologyInfo._Fields fieldForId(int fieldId)
           
 int get_errors_size()
           
 Map<String,List<ErrorInfo>> get_errors()
           
 Iterator<ExecutorSummary> get_executors_iterator()
           
 int get_executors_size()
           
 List<ExecutorSummary> get_executors()
           
 String get_id()
           
 String get_name()
           
 String get_status()
           
 int get_uptime_secs()
           
 Object getFieldValue(TopologyInfo._Fields field)
           
 int hashCode()
           
 boolean is_set_errors()
          Returns true if field errors is set (has been assigned a value) and false otherwise
 boolean is_set_executors()
          Returns true if field executors is set (has been assigned a value) and false otherwise
 boolean is_set_id()
          Returns true if field id is set (has been assigned a value) and false otherwise
 boolean is_set_name()
          Returns true if field name is set (has been assigned a value) and false otherwise
 boolean is_set_status()
          Returns true if field status 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 isSet(TopologyInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 void put_to_errors(String key, List<ErrorInfo> val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void set_errors_isSet(boolean value)
           
 void set_errors(Map<String,List<ErrorInfo>> errors)
           
 void set_executors_isSet(boolean value)
           
 void set_executors(List<ExecutorSummary> executors)
           
 void set_id_isSet(boolean value)
           
 void set_id(String id)
           
 void set_name_isSet(boolean value)
           
 void set_name(String name)
           
 void set_status_isSet(boolean value)
           
 void set_status(String status)
           
 void set_uptime_secs_isSet(boolean value)
           
 void set_uptime_secs(int uptime_secs)
           
 void setFieldValue(TopologyInfo._Fields field, Object value)
           
 String toString()
           
 void unset_errors()
           
 void unset_executors()
           
 void unset_id()
           
 void unset_name()
           
 void unset_status()
           
 void unset_uptime_secs()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<TopologyInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TopologyInfo

public TopologyInfo()

TopologyInfo

public TopologyInfo(String id,
                    String name,
                    int uptime_secs,
                    List<ExecutorSummary> executors,
                    String status,
                    Map<String,List<ErrorInfo>> errors)

TopologyInfo

public TopologyInfo(TopologyInfo other)
Performs a deep copy on other.

Method Detail

deepCopy

public TopologyInfo deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

get_id

public String get_id()

set_id

public void set_id(String id)

unset_id

public void unset_id()

is_set_id

public boolean is_set_id()
Returns true if field id is set (has been assigned a value) and false otherwise


set_id_isSet

public void set_id_isSet(boolean value)

get_name

public String get_name()

set_name

public void set_name(String name)

unset_name

public void unset_name()

is_set_name

public boolean is_set_name()
Returns true if field name is set (has been assigned a value) and false otherwise


set_name_isSet

public void set_name_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_executors_size

public int get_executors_size()

get_executors_iterator

public Iterator<ExecutorSummary> get_executors_iterator()

add_to_executors

public void add_to_executors(ExecutorSummary elem)

get_executors

public List<ExecutorSummary> get_executors()

set_executors

public void set_executors(List<ExecutorSummary> executors)

unset_executors

public void unset_executors()

is_set_executors

public boolean is_set_executors()
Returns true if field executors is set (has been assigned a value) and false otherwise


set_executors_isSet

public void set_executors_isSet(boolean value)

get_status

public String get_status()

set_status

public void set_status(String status)

unset_status

public void unset_status()

is_set_status

public boolean is_set_status()
Returns true if field status is set (has been assigned a value) and false otherwise


set_status_isSet

public void set_status_isSet(boolean value)

get_errors_size

public int get_errors_size()

put_to_errors

public void put_to_errors(String key,
                          List<ErrorInfo> val)

get_errors

public Map<String,List<ErrorInfo>> get_errors()

set_errors

public void set_errors(Map<String,List<ErrorInfo>> errors)

unset_errors

public void unset_errors()

is_set_errors

public boolean is_set_errors()
Returns true if field errors is set (has been assigned a value) and false otherwise


set_errors_isSet

public void set_errors_isSet(boolean value)

setFieldValue

public void setFieldValue(TopologyInfo._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

getFieldValue

public Object getFieldValue(TopologyInfo._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

isSet

public boolean isSet(TopologyInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TopologyInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TopologyInfo other)
Specified by:
compareTo in interface Comparable<TopologyInfo>

fieldForId

public TopologyInfo._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TopologyInfo,TopologyInfo._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.