Java Doc for DefaultMeasurePoint.java in  » Profiler » JMeasurement » de » mcs » jmeasurement » 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 » Profiler » JMeasurement » de.mcs.jmeasurement 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.mcs.jmeasurement.DefaultMeasurePoint

DefaultMeasurePoint
public class DefaultMeasurePoint implements MeasurePoint(Code)
This is the implementing class of a measure point. This class stores all the measured data.
author:
   w.klaas


Field Summary
final public static  StringDATA_KEY_ACCESS_COUNT
     key for the getData and setData methodes.
final public static  StringDATA_KEY_ACTIVE
     key for the getData and setData methodes.
final public static  StringDATA_KEY_AVERAGE_MSEC
     key for the getData and setData methodes.
final public static  StringDATA_KEY_DEATH_COUNT
     key for the getData and setData methodes.
final public static  StringDATA_KEY_DEVIATION
     key for the getData and setData methodes.
final public static  StringDATA_KEY_EXCEPTION_COUNT
     key for the getData and setData methodes.
final public static  StringDATA_KEY_EXCEPTION_LIST
     key for the getData and setData methodes.
final public static  StringDATA_KEY_LAST_ACTIVATION
     key for the getData and setData methodes.
final public static  StringDATA_KEY_MAX_ACTIVE
     key for the getData and setData methodes.
final public static  StringDATA_KEY_MAX_MSEC
     key for the getData and setData methodes.
final public static  StringDATA_KEY_MIN_MSEC
     key for the getData and setData methodes.
final public static  StringDATA_KEY_POINT_NAME
     key for the getData and setData methodes.
final public static  StringDATA_KEY_PRIORITY
     key for the getData and setData methodes.
final public static  StringDATA_KEY_TOTAL_MSEC
     key for the getData and setData methodes.
final public static  StringDATA_KEY_USER_DATA
     key for the getData and setData methodes.

Constructor Summary
public  DefaultMeasurePoint(String name, JMConfig aOptions)
     create a new measurement point with the name pointName.
public  DefaultMeasurePoint(String name, int aPriority, JMConfig aOptions)
     create a new measurement point with the name pointName.

Method Summary
final public  voidactivateMonitor(Monitor monitor)
     one monitor has to be activated.
final public  StringasString()
     Getting the measurement data as simple string.
final public  Objectclone()
     cloning this Measure point.
final public  voiddeathMonitor(Monitor monitor)
     This methode will be called from the DefaultMonitor if the monitor will be finalized before stopped.
final public  MeasureData[]getData()
     Getting the data values of this measure point.
final public  MeasureDatagetData(String name)
    
final public  ClassgetDataClass(String name)
    
final public  MapgetMap()
     getting all data as a hashmap with sting as keys and values.
final public  MeasureDataCallbackgetMeasureDataCallback()
     This methode will return the call back object set with setMeasureDataCallback().
final public  MonitorgetMonitor()
    
final public  StringgetName()
    
final public  intgetPriority()
    
final public  IUserDatagetUserData()
    
final public  booleanhasActiveMonitors()
    
final public  longincreaseCount()
    
final public  voidprocessMonitor(Monitor monitor)
    
final public  voidsetConfig(JMConfig aConfig)
     for deserialsation we must offer a methode to set the config to the right one.
final public  voidsetData(MeasureData[] datas)
    
final public  voidsetMeasureDataCallback(MeasureDataCallback aMeasureDataCallback)
     With this methode a call back object will be set.
final public  voidsetPriority(int aPriority)
    
final public  voidsetUserData(IUserData aUserData)
    
final public  Monitorstart()
    
final public  voidtoXML(DataWriter writer)
     Converting all parameters of this measurepoint into an xml structure.

Field Detail
DATA_KEY_ACCESS_COUNT
final public static String DATA_KEY_ACCESS_COUNT(Code)
key for the getData and setData methodes.



DATA_KEY_ACTIVE
final public static String DATA_KEY_ACTIVE(Code)
key for the getData and setData methodes.



DATA_KEY_AVERAGE_MSEC
final public static String DATA_KEY_AVERAGE_MSEC(Code)
key for the getData and setData methodes.



DATA_KEY_DEATH_COUNT
final public static String DATA_KEY_DEATH_COUNT(Code)
key for the getData and setData methodes.



DATA_KEY_DEVIATION
final public static String DATA_KEY_DEVIATION(Code)
key for the getData and setData methodes. *
since:
   0.65



DATA_KEY_EXCEPTION_COUNT
final public static String DATA_KEY_EXCEPTION_COUNT(Code)
key for the getData and setData methodes.
since:
   0.64



DATA_KEY_EXCEPTION_LIST
final public static String DATA_KEY_EXCEPTION_LIST(Code)
key for the getData and setData methodes.
since:
   0.64



DATA_KEY_LAST_ACTIVATION
final public static String DATA_KEY_LAST_ACTIVATION(Code)
key for the getData and setData methodes.



DATA_KEY_MAX_ACTIVE
final public static String DATA_KEY_MAX_ACTIVE(Code)
key for the getData and setData methodes.



DATA_KEY_MAX_MSEC
final public static String DATA_KEY_MAX_MSEC(Code)
key for the getData and setData methodes.



DATA_KEY_MIN_MSEC
final public static String DATA_KEY_MIN_MSEC(Code)
key for the getData and setData methodes.



DATA_KEY_POINT_NAME
final public static String DATA_KEY_POINT_NAME(Code)
key for the getData and setData methodes.



DATA_KEY_PRIORITY
final public static String DATA_KEY_PRIORITY(Code)
key for the getData and setData methodes.



DATA_KEY_TOTAL_MSEC
final public static String DATA_KEY_TOTAL_MSEC(Code)
key for the getData and setData methodes.



DATA_KEY_USER_DATA
final public static String DATA_KEY_USER_DATA(Code)
key for the getData and setData methodes.




Constructor Detail
DefaultMeasurePoint
public DefaultMeasurePoint(String name, JMConfig aOptions)(Code)
create a new measurement point with the name pointName. Priority is set to 0.
Parameters:
  name - name of this measurement point
Parameters:
  aOptions - options for this point



DefaultMeasurePoint
public DefaultMeasurePoint(String name, int aPriority, JMConfig aOptions)(Code)
create a new measurement point with the name pointName. Priority is set to aPriority.
Parameters:
  name - name of this measurement point
Parameters:
  aPriority - priority of this point
Parameters:
  aOptions - options for this point




Method Detail
activateMonitor
final public void activateMonitor(Monitor monitor)(Code)
one monitor has to be activated.
Parameters:
  monitor - the monitor that has been activated



asString
final public String asString()(Code)
Getting the measurement data as simple string. String with a key=value list of all measurement data



clone
final public Object clone()(Code)
cloning this Measure point. Object



deathMonitor
final public void deathMonitor(Monitor monitor)(Code)
This methode will be called from the DefaultMonitor if the monitor will be finalized before stopped. Or is you explicit call this methode for a monitor. The active counting will be reduced and the death counting will be increased.
Parameters:
  monitor - the monitor which is death.
See Also:   de.mcs.jmeasurement.MeasurePoint.deathMonitor(de.mcs.jmeasurement.Monitor)



getData
final public MeasureData[] getData()(Code)
Getting the data values of this measure point.
The following data value are present:
name type of value description
pointName String full qualified name of this point
priority Integer priority of this point
accessCount Long how often is this point accessed
averageMSec Long average time of all accesses
totalMSec Long total time of all measurements
minMSec Long minimal time of all measurements
maxMSec Long maxmimal time of all measurements
active Long number of actual active monitors
maxActive Long maxmimal time of all measurements
deathCount Long counting of all death monitors
lastActivation Date last activation of the measure point
deviation Float standard deviation of all measurements (if activate)
exceptionCount Long count of exceptions, only set in use with proxies
exceptionList String[] list of all exceptions
userData Object user data storage of this point

See Also:   de.mcs.jmeasurement.MeasurePoint.getData Array of MeasureData objects



getData
final public MeasureData getData(String name)(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.getData(java.lang.String)
Parameters:
  name - name of the data to get MeasureData



getDataClass
final public Class getDataClass(String name)(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.getData(java.lang.String)
Parameters:
  name - name of the data to get MeasureData



getMap
final public Map getMap()(Code)
getting all data as a hashmap with sting as keys and values. HashMap



getMeasureDataCallback
final public MeasureDataCallback getMeasureDataCallback()(Code)
This methode will return the call back object set with setMeasureDataCallback(). This callback will be activate, when monitor datas will be added to the measurement point. Returns the measureDataCallback.



getMonitor
final public Monitor getMonitor()(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.getMonitor Monitor getting a new monitor for this measure point



getName
final public String getName()(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.getName String Fully qualified name of this MeasurePoint.



getPriority
final public int getPriority()(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.getPriority int Getting the priority of this MeasurePoint



getUserData
final public IUserData getUserData()(Code)
Returns the userData.



hasActiveMonitors
final public boolean hasActiveMonitors()(Code)
true if this measurepoint has actually activemonitors, otherwise false



increaseCount
final public long increaseCount()(Code)
increasing the counter and get back the actual value.
See Also:   de.mcs.jmeasurement.MeasurePoint.increaseCount



processMonitor
final public void processMonitor(Monitor monitor)(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.processMonitor(de.mcs.jmeasurement.Monitor)
Parameters:
  monitor - the monitor to add the values to



setConfig
final public void setConfig(JMConfig aConfig)(Code)
for deserialsation we must offer a methode to set the config to the right one.
Parameters:
  aConfig - the config to be used.



setData
final public void setData(MeasureData[] datas)(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.setData(de.mcs.jmeasurement.MeasureData[])
Parameters:
  datas - the MeasureData list to add



setMeasureDataCallback
final public void setMeasureDataCallback(MeasureDataCallback aMeasureDataCallback)(Code)
With this methode a call back object will be set. This callback will be activate, when monitor datas will be added to the measurement point.
Parameters:
  aMeasureDataCallback - The measureDataCallback to set.



setPriority
final public void setPriority(int aPriority)(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.setPriority(int)
Parameters:
  aPriority - Setting the priority of this MeasurePoint



setUserData
final public void setUserData(IUserData aUserData)(Code)

Parameters:
  aUserData - The userData to set.



start
final public Monitor start()(Code)

See Also:   de.mcs.jmeasurement.MeasurePoint.start Monitor Getting an monitor for this measurepoint and start it.



toXML
final public void toXML(DataWriter writer) throws SAXException, IOException(Code)
Converting all parameters of this measurepoint into an xml structure.
Parameters:
  writer - the writer to use for XML writing
throws:
  SAXException - if something goes wrong in xml writing
throws:
  IOException - serialisation of the user data could throw an exception.



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.