@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class Metric extends Object implements org.apache.thrift.TBase<Metric,Metric._Fields>, Serializable, Cloneable, Comparable<Metric>
Modifier and Type | Class and Description |
---|---|
static class |
Metric._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<Metric._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Metric() |
Metric(Metric other)
Performs a deep copy on other.
|
Metric(String instance,
String hostname,
String instanceId,
String name,
double value,
Map<String,String> tags) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(Metric other) |
Metric |
deepCopy() |
boolean |
equals(Metric that) |
boolean |
equals(Object that) |
Metric._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(Metric._Fields field) |
String |
getHostname() |
String |
getInstance() |
String |
getInstanceId() |
String |
getName() |
Map<String,String> |
getTags() |
int |
getTagsSize() |
double |
getValue() |
int |
hashCode() |
boolean |
isSet(Metric._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetHostname()
Returns true if field hostname is set (has been assigned a value) and false otherwise
|
boolean |
isSetInstance()
Returns true if field instance is set (has been assigned a value) and false otherwise
|
boolean |
isSetInstanceId()
Returns true if field instanceId is set (has been assigned a value) and false otherwise
|
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise
|
boolean |
isSetTags()
Returns true if field tags is set (has been assigned a value) and false otherwise
|
boolean |
isSetValue()
Returns true if field value is set (has been assigned a value) and false otherwise
|
void |
putToTags(String key,
String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(Metric._Fields field,
Object value) |
Metric |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
Metric |
setInstance(String instance) |
Metric |
setInstanceId(String instanceId) |
void |
setInstanceIdIsSet(boolean value) |
void |
setInstanceIsSet(boolean value) |
Metric |
setName(String name) |
void |
setNameIsSet(boolean value) |
Metric |
setTags(Map<String,String> tags) |
void |
setTagsIsSet(boolean value) |
Metric |
setValue(double value) |
void |
setValueIsSet(boolean value) |
String |
toString() |
void |
unsetHostname() |
void |
unsetInstance() |
void |
unsetInstanceId() |
void |
unsetName() |
void |
unsetTags() |
void |
unsetValue() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Metric._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Metric()
public Metric(String instance, String hostname, String instanceId, String name, double value, Map<String,String> tags)
public Metric(Metric other)
public Metric deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public String getInstance()
public void unsetInstance()
public boolean isSetInstance()
public void setInstanceIsSet(boolean value)
public String getHostname()
public void unsetHostname()
public boolean isSetHostname()
public void setHostnameIsSet(boolean value)
public String getInstanceId()
public void unsetInstanceId()
public boolean isSetInstanceId()
public void setInstanceIdIsSet(boolean value)
public String getName()
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public double getValue()
public Metric setValue(double value)
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean value)
public int getTagsSize()
public void unsetTags()
public boolean isSetTags()
public void setTagsIsSet(boolean value)
public void setFieldValue(Metric._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public Object getFieldValue(Metric._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public boolean isSet(Metric._Fields field)
isSet
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public boolean equals(Metric that)
public int compareTo(Metric other)
compareTo
in interface Comparable<Metric>
public Metric._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Metric,Metric._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.