限定符 | 构造器和说明 |
---|---|
protected |
CounterGroup(String name) |
protected |
CounterGroup(String name,
String displayName) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object genericRight) |
Counter |
findCounter(String counterName) |
protected Counter |
findCounter(String counterName,
String displayName)
Internal to find a counter in a group.
|
String |
getDisplayName()
Get the display name of the group.
|
String |
getName()
Get the internal name of the group
|
static ResourceBundle |
getResourceBundle(String enumClassName)
Returns the specified resource bundle, or throws an exception.
|
int |
hashCode() |
void |
incrAllCounters(CounterGroup rightGroup) |
Iterator<Counter> |
iterator() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
int |
size()
Returns the number of counters in this group.
|
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
protected CounterGroup(String name)
@InterfaceAudience.Private public static ResourceBundle getResourceBundle(String enumClassName) throws MissingResourceException
MissingResourceException
- if the bundle isn't foundpublic String getName()
public String getDisplayName()
protected Counter findCounter(String counterName, String displayName)
counterName
- the name of the counterdisplayName
- the display name of the counterpublic void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public int size()
public void incrAllCounters(CounterGroup rightGroup)
Copyright © 2009 The Apache Software Foundation