public class MonKeyBase extends Object implements MonKey
LABEL_HEADER, UNITS_HEADER
DEFAULT_INSTANCE_NAME, INSTANCE_HEADER
Constructor and Description |
---|
MonKeyBase(LinkedHashMap keyMap)
Calls the other constructor.
|
MonKeyBase(String rangeKeyStr,
LinkedHashMap keyMap)
The LinkHashMap will contain key value pairs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object compareKey)
This method is called automatically by a HashMap when this class is used
as a HashMap key.
|
List |
getBasicHeader(List header)
Puts the word 'Label' into the list.
|
List |
getBasicRowData(List rowData)
Returns the values assoicated with the key as a comma delimited entry in the list.
|
Object |
getDetails() |
List |
getDisplayHeader(List header)
Returns each key in the map as a header element in the list
|
List |
getHeader(List header)
Returns each key in the map as a header element in the list
|
String |
getInstanceName() |
String |
getLabel() |
Map |
getMonKeyMap()
Return the map underlying this Object
|
String |
getRangeKey()
Returns either the passed in range key, or it builds the key from the maps keys concatenated
|
List |
getRowData(List rowData)
Add each value from the map at an element to the list.
|
List |
getRowDisplayData(List rowData)
Add each value from the map at an element to the list.
|
int |
getSize()
Returns the size of the key in characters within the key.
|
Object |
getValue(String key)
Returns any object that has a named key.
|
int |
hashCode()
Used when key is put into a Map to look up the monitor
|
void |
setDetails(Object details) |
void |
setInstanceName(String instanceName)
Now that jamon can track data on multiple vm's we need a way to better identify the keys.
|
String |
toString()
Returns a string representation of this object: JAMon Key, firstname=steve, lastname=souza, age=44
|
public MonKeyBase(LinkedHashMap keyMap)
public MonKeyBase(String rangeKeyStr, LinkedHashMap keyMap)
public Object getValue(String key)
public boolean equals(Object compareKey)
public int hashCode()
public Map getMonKeyMap()
public void setInstanceName(String instanceName)
MonKeyItem
setInstanceName
in interface MonKeyItem
public String getInstanceName()
getInstanceName
in interface MonKeyItem
public List getBasicHeader(List header)
public List getDisplayHeader(List header)
public List getHeader(List header)
public List getBasicRowData(List rowData)
public List getRowData(List rowData)
public List getRowDisplayData(List rowData)
public String toString()
public String getRangeKey()
getRangeKey
in interface MonKey
public Object getDetails()
getDetails
in interface MonKeyItem
public void setDetails(Object details)
setDetails
in interface MonKeyItem
public int getSize()
MonKey
Copyright © 2015. All rights reserved.