|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jamonapi.MonitorComposite
MonitorComposite can contain other MonitorComposite and TimingMonitors (at the leaf level)
Constructor Summary | |
MonitorComposite()
|
Method Summary | |
void |
addCompositeNode(java.lang.String childNodeName,
CompositeNode addNode)
Add a CompositeNode to the data structure if it doesn't exist. |
void |
addLeafNode(java.lang.String childNodeName,
LeafNode addNode)
Add a LeafNode to the data structure if it doesn't exist. |
boolean |
compositeNodeExists(java.lang.String childNodeName)
Does the passed in CompositeNode exist. |
long |
getAccrued()
Returns the accrued value of all Monitors underneath this MonitorComposite. |
java.lang.String |
getAccruedString()
Return the accrued value in String format |
CompositeNode |
getCompositeNode(java.lang.String childNodeName)
This is CompositeNode interface method that returns the child MonitorComposite identified by the given label or it creates a new CompositeMonitor. |
java.lang.String |
getCompositeNodeKey(java.lang.String nodeName)
getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. |
java.lang.String[][] |
getData()
Return the contents of this MonitorComposite as a 2 dimensional array of Strings. |
void |
getData(java.util.ArrayList rowData)
Add this elements value to the ArrayList. |
java.lang.String[][] |
getData(java.lang.String label)
Return the contents of this MonitorComposite as a 2 dimensional array of Strings. |
CompositeNode |
getExistingCompositeNode(java.lang.String childNodeName)
Returns the CompositeNode if it exists. |
LeafNode |
getExistingLeafNode(java.lang.String childNodeName)
Returns the LeafNode if it exists. |
void |
getHeader(java.util.ArrayList header)
Add this elements header value to an ArrayList. |
LeafNode |
getLeafNode(java.lang.String childNodeName,
java.lang.String childNodeType)
This is CompositeNode interface method that returns a leaf node identified by the given label or it creates a new leaf node by calling the Leaf. |
java.lang.String |
getLeafNodeKey(java.lang.String nodeName)
getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. |
java.lang.String |
getReport()
Return the contents of this MonitorComposite as an HTML table. |
java.lang.String |
getReport(int sortCol,
java.lang.String sortOrder)
Return the contents of this MonitorComposite as an HTML table sorted by the specified column number in ascending or descending order. |
CompositeNode |
getRootNode()
Return this MonitorComposite as a CompositeNode |
void |
increase(long increaseValue)
Call increase(long) on all Monitors that this MonitorComposite instance contains |
boolean |
leafNodeExists(java.lang.String childNodeName)
Does the passed in leaf node exist. |
void |
reset()
Call reset() on all Monitors that this MonitorComposite instance contains |
static void |
setDisplayDelimiter(java.lang.String localDisplayDelimiter)
Delimiter to be used when displaying the monitor label returned by the getReport() and getData() methods. |
java.lang.String |
toString()
Display the accrued value as a string |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MonitorComposite()
Method Detail |
public long getAccrued()
getAccrued
in interface MinimalMonitor
public java.lang.String toString()
toString
in class java.lang.Object
public void reset()
reset
in interface MinimalMonitor
public void increase(long increaseValue)
increase
in interface MinimalMonitor
public void getData(java.util.ArrayList rowData)
MinimalMonitor
getData
in interface MinimalMonitor
public void getHeader(java.util.ArrayList header)
MinimalMonitor
getHeader
in interface MinimalMonitor
public java.lang.String getReport() throws java.lang.Exception
getReport
in interface MonitorReportInterface
java.lang.Exception
public java.lang.String getReport(int sortCol, java.lang.String sortOrder) throws java.lang.Exception
java.lang.Exception
public java.lang.String[][] getData()
getData
in interface MonitorReportInterface
public java.lang.String[][] getData(java.lang.String label)
getData
in interface MonitorReportInterface
public static void setDisplayDelimiter(java.lang.String localDisplayDelimiter)
public CompositeNode getCompositeNode(java.lang.String childNodeName)
getCompositeNode
in interface CompositeNode
public LeafNode getLeafNode(java.lang.String childNodeName, java.lang.String childNodeType)
getLeafNode
in interface CompositeNode
public void addCompositeNode(java.lang.String childNodeName, CompositeNode addNode)
addCompositeNode
in interface CompositeNode
public boolean leafNodeExists(java.lang.String childNodeName)
leafNodeExists
in interface CompositeNode
public boolean compositeNodeExists(java.lang.String childNodeName)
compositeNodeExists
in interface CompositeNode
public CompositeNode getExistingCompositeNode(java.lang.String childNodeName)
public LeafNode getExistingLeafNode(java.lang.String childNodeName)
public void addLeafNode(java.lang.String childNodeName, LeafNode addNode)
addLeafNode
in interface CompositeNode
public CompositeNode getRootNode()
getRootNode
in interface CompositeNode
public java.lang.String getCompositeNodeKey(java.lang.String nodeName)
getCompositeNodeKey
in interface CompositeNode
public java.lang.String getLeafNodeKey(java.lang.String nodeName)
getLeafNodeKey
in interface CompositeNode
public java.lang.String getAccruedString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |