public class MonKeyImp extends Object implements MonKey
This could be implemented like the following.
LinkedHashMap lm=new LinkedHashMap();
lm.put("Label", "mypakcage.myclass");
lm.put(""Units", "ms.");
MonKey mk=new MonKeyBase(lm);
LABEL_HEADER, UNITS_HEADER
DEFAULT_INSTANCE_NAME, INSTANCE_HEADER
Constructor and Description |
---|
MonKeyImp(MonKeyItem keyItem,
String units) |
MonKeyImp(String summaryLabel,
Object details,
String units)
Object details can be an Object[], a Collection, or a Java Object.
|
MonKeyImp(String summaryLabel,
String units) |
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)
i.e.
|
List |
getBasicRowData(List rowData)
Get all data for a row excluding row ranges, and put key data into one cell
|
Object |
getDetails() |
List |
getDisplayHeader(List header)
i.e.
|
List |
getHeader(List header)
i.e.
|
String |
getInstanceName() |
String |
getLabel()
Returns the label for the monitor
|
Object |
getParam()
Used to get any arbitrary Object into the key.
|
String |
getRangeKey()
Uses this value to look up an associated Range
|
List |
getRowData(List rowData)
Get all data for a row including range data
|
List |
getRowDisplayData(List rowData)
Get data excluding ranges, but break out key columns
|
int |
getSize()
Returns the size of the key in characters within the key.
|
String |
getUnits()
Returns the units for the monitor
|
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.
|
void |
setParam(Object param)
Used to set any arbitrary Object into the key.
|
String |
toString() |
public MonKeyImp(String summaryLabel, Object details, String units)
public MonKeyImp(MonKeyItem keyItem, String units)
public String getLabel()
public String getUnits()
public Object getDetails()
getDetails
in interface MonKeyItem
public void setDetails(Object details)
setDetails
in interface MonKeyItem
public void setInstanceName(String instanceName)
MonKeyItem
setInstanceName
in interface MonKeyItem
public String getInstanceName()
getInstanceName
in interface MonKeyItem
public Object getValue(String key)
public Object getParam()
public void setParam(Object param)
public boolean equals(Object compareKey)
public int hashCode()
public List getDisplayHeader(List header)
public List getHeader(List header)
public List getBasicRowData(List rowData)
public List getRowDisplayData(List rowData)
public String getRangeKey()
MonKey
getRangeKey
in interface MonKey
public int getSize()
MonKey
Copyright © 2015. All rights reserved.