Java Doc for MonitorComposite.java in  » UML » MetaBoss » com » jamonapi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » MetaBoss » com.jamonapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jamonapi.MonitorComposite

MonitorComposite
public class MonitorComposite implements MinimalMonitor,CompositeNode,MonitorReportInterface(Code)
MonitorComposite can contain other MonitorComposite and TimingMonitors (at the leaf level) *




Method Summary
public  voidaddCompositeNode(String childNodeName, CompositeNode addNode)
     Add a CompositeNode to the data structure if it doesn't exist.
public  voidaddLeafNode(String childNodeName, LeafNode addNode)
     Add a LeafNode to the data structure if it doesn't exist.
public  booleancompositeNodeExists(String childNodeName)
     Does the passed in CompositeNode exist.
public  longgetAccrued()
     Returns the accrued value of all Monitors underneath this MonitorComposite.
public  StringgetAccruedString()
    
public  CompositeNodegetCompositeNode(String childNodeName)
     This is CompositeNode interface method that returns the child MonitorComposite identified by the given label or it creates a new CompositeMonitor.
public  StringgetCompositeNodeKey(String nodeName)
     getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa.
public  voidgetData(ArrayList rowData)
    
public  String[][]getData()
     Return the contents of this MonitorComposite as a 2 dimensional array of Strings.
public  String[][]getData(String label)
     Return the contents of this MonitorComposite as a 2 dimensional array of Strings.
public  CompositeNodegetExistingCompositeNode(String childNodeName)
     Returns the CompositeNode if it exists.
public  LeafNodegetExistingLeafNode(String childNodeName)
     Returns the LeafNode if it exists.
public  voidgetHeader(ArrayList header)
    
protected static  String[]getHeader()
    
protected  StringgetLabelFromKey(String key)
    
public  LeafNodegetLeafNode(String childNodeName, 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.
public  StringgetLeafNodeKey(String nodeName)
     getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa.
public  StringgetReport()
     Return the contents of this MonitorComposite as an HTML table.
public  StringgetReport(int sortCol, String sortOrder)
     Return the contents of this MonitorComposite as an HTML table sorted by the specified column number in ascending or descending order.
public  CompositeNodegetRootNode()
    
public  voidincrease(long increaseValue)
    
 voiditerate(Command command)
     Iterate through the MonitorComposite executing the passed in Command object.
 voiditerateMapEntries(Command command)
    
public  booleanleafNodeExists(String childNodeName)
     Does the passed in leaf node exist.
public  voidreset()
    
public static  voidsetDisplayDelimiter(String localDisplayDelimiter)
     Delimiter to be used when displaying the monitor label returned by the getReport() and getData() methods.
public  StringtoString()
    



Method Detail
addCompositeNode
public void addCompositeNode(String childNodeName, CompositeNode addNode)(Code)
Add a CompositeNode to the data structure if it doesn't exist. *



addLeafNode
public void addLeafNode(String childNodeName, LeafNode addNode)(Code)
Add a LeafNode to the data structure if it doesn't exist. *



compositeNodeExists
public boolean compositeNodeExists(String childNodeName)(Code)
Does the passed in CompositeNode exist. Returns true if there has been a CompositeNode created with this label. Sample Call: monitorComposite.compositeNodeExists("myApp.jsp");



getAccrued
public long getAccrued()(Code)
Returns the accrued value of all Monitors underneath this MonitorComposite. Note this method will recursively call getAccrued() for any nested MonitorComposites. Note this method uses the Gang of 4's Command pattern.



getAccruedString
public String getAccruedString()(Code)
Return the accrued value in String format *



getCompositeNode
public CompositeNode getCompositeNode(String childNodeName)(Code)
This is CompositeNode interface method that returns the child MonitorComposite identified by the given label or it creates a new CompositeMonitor. This method is used by the factory classes to create MonitorComposites. Sample Call: monitorComposite.getCompositeNode("myApp.jsp")



getCompositeNodeKey
public String getCompositeNodeKey(String nodeName)(Code)
getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. For example the following 2 entries could both be simultaneously valid even though their labels are identical. Leaf Node: pages.homePage Composite Node: pages.homePage This is because leafs and composites have different keys behind the scenes. Using the example above the keys may look something like: Leaf Node Key: pagesC.homePageL Composite Node: pagesC.homePageC



getData
public void getData(ArrayList rowData)(Code)



getData
public String[][] getData()(Code)
Return the contents of this MonitorComposite as a 2 dimensional array of Strings. This is the data minus the formatting of what is returned by the getReport() method.



getData
public String[][] getData(String label)(Code)
Return the contents of this MonitorComposite as a 2 dimensional array of Strings. The passed "label" will be prepended to the first column in the array. Sample Call: String[][] arr=monitorComposite.getData("myLabel");



getExistingCompositeNode
public CompositeNode getExistingCompositeNode(String childNodeName)(Code)
Returns the CompositeNode if it exists. Sample Call: monitorComposite.compositeNodeExists("myApp.jsp");



getExistingLeafNode
public LeafNode getExistingLeafNode(String childNodeName)(Code)
Returns the LeafNode if it exists. Sample Call: monitorComposite.compositeNodeExists("myApp.jsp");



getHeader
public void getHeader(ArrayList header)(Code)



getHeader
protected static String[] getHeader()(Code)
Return an array that contains the Header to be used in reports *



getLabelFromKey
protected String getLabelFromKey(String key)(Code)
This reverses getCompositeNodeKey() and getLeafNodeKey() *



getLeafNode
public LeafNode getLeafNode(String childNodeName, String childNodeType)(Code)
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. This method is used by the factory classes to create TimingMonitors. Sample Call: monitorComposite.getCompositeNode("myApp.jsp");



getLeafNodeKey
public String getLeafNodeKey(String nodeName)(Code)
getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. For example the following 2 entries could both be simultaneously valid even though their labels are identical. Leaf Node: pages.homePage Composite Node: pages.homePage This is because leafs and composites have different keys behind the scenes. Using the example above the keys may look something like: Leaf Node Key: pagesC.homePageL Composite Node: pagesC.homePageC



getReport
public String getReport() throws Exception(Code)
Return the contents of this MonitorComposite as an HTML table. This method is called to display the data in a MonitorComposite in a servlet or JSP. See www.jamonapi.com for a sample of what the report shoud look like. Sample Call: String html=monitorComposite.getReport();



getReport
public String getReport(int sortCol, String sortOrder) throws Exception(Code)
Return the contents of this MonitorComposite as an HTML table sorted by the specified column number in ascending or descending order. This method is called to display the data in a MonitorComposite in a servlet or JSP. See www.jamonapi.com for a sample of what the report shoud look like. Sample Call: String html=monitorComposite.getReport(2, "asc"); // return the html report sorted by column 2 in ascending order



getRootNode
public CompositeNode getRootNode()(Code)
Return this MonitorComposite as a CompositeNode *



increase
public void increase(long increaseValue)(Code)
Call increase(long) on all Monitors that this MonitorComposite instance contains *



iterate
void iterate(Command command)(Code)
Iterate through the MonitorComposite executing the passed in Command object. Note This is an example of the Gang of 4's Command and Iterator patterns



iterateMapEntries
void iterateMapEntries(Command command)(Code)



leafNodeExists
public boolean leafNodeExists(String childNodeName)(Code)
Does the passed in leaf node exist. Returns true if there has been a LeafNode created with this label. Sample Call: monitorComposite.leafNodeExists("myApp.jsp.homePage");



reset
public void reset()(Code)
Call reset() on all Monitors that this MonitorComposite instance contains *



setDisplayDelimiter
public static void setDisplayDelimiter(String localDisplayDelimiter)(Code)
Delimiter to be used when displaying the monitor label returned by the getReport() and getData() methods. The default is a period. A better approach would have been to simply display the delimeter that was used on the MonitorComposites creation



toString
public String toString()(Code)
Display the accrued value as a string *



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.