Java Doc for MetricsInitializerPlugin.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » runtime » plugin » 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 » Science » Cougaar12_4 » org.cougaar.tools.csmart.runtime.plugin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.tools.csmart.runtime.plugin.CSMARTPlugin
   org.cougaar.tools.csmart.runtime.plugin.MetricsInitializerPlugin

MetricsInitializerPlugin
public class MetricsInitializerPlugin extends CSMARTPlugin implements MetricsConstants(Code)
MetricsInitializerPlugin : Launch a number of tasks and wait for them to flow through the system, measuring the time and memory expended. We can also open a back door to a controller process to publish the outcome. Startup Procedure As organizations with MetricsProvider capability report in, we send them an "AreYouReady" task. This task is intended to yield a 100% confidence allocation result when all the Agents have initialized. When 100% ready reponses have been received from a number of MetricsProvider organizations that equals the numProviders parameter, we send a "Start" task to them indicating that they should begin collecting statistics. If sampleInterval is non-zero, then after every sampleInterval seconds have been completed a statistics sample is taken by issuing a "Sample" control task. The 100% completion of the sample tasks causes a "Finish" task to be sent which gathers the final statistics.

Inner Class :class PluginAlarm implements Alarm

Field Summary
final static  intFINISHED
    
final static  intFINISHING
    
final static  intINITIAL
    
final static  intRUNNING
    
final static  intSAMPLING
    
final static  intSAMPLING_AND_DONE
    
final static  intSTARTING
    
final static  intWAITING
    
 HashMapmetricsProviders
    
 intstate
    


Method Summary
protected  voidaddMetricsProviders(HasRelationships localAsset)
    
public  voidexecute()
     Execute plugin.
public  voidsetupSubscriptions()
    

Field Detail
FINISHED
final static int FINISHED(Code)



FINISHING
final static int FINISHING(Code)



INITIAL
final static int INITIAL(Code)



RUNNING
final static int RUNNING(Code)



SAMPLING
final static int SAMPLING(Code)



SAMPLING_AND_DONE
final static int SAMPLING_AND_DONE(Code)



STARTING
final static int STARTING(Code)



WAITING
final static int WAITING(Code)



metricsProviders
HashMap metricsProviders(Code)



state
int state(Code)





Method Detail
addMetricsProviders
protected void addMetricsProviders(HasRelationships localAsset)(Code)



execute
public void execute()(Code)
Execute plugin. We use a simple state machine to take us through the steps needed. The only somewhat complicated part involves the SAMPLING state. Periodically (every so many tasks), we can initiate a statistics sample. The statistics sample is taken in a fashion similar to all the other control steps: send a control task and wait for everyone to respond.



setupSubscriptions
public void setupSubscriptions()(Code)



Fields inherited from org.cougaar.tools.csmart.runtime.plugin.CSMARTPlugin
protected LoggingService log(Code)(Java Doc)
protected PlanningFactory theLDMF(Code)(Java Doc)

Methods inherited from org.cougaar.tools.csmart.runtime.plugin.CSMARTPlugin
abstract protected void execute()(Code)(Java Doc)
public UID getUID()(Code)(Java Doc)
public void load() throws StateModelException(Code)(Java Doc)
final protected void publishAdd(Object o)(Code)(Java Doc)
final protected void publishAdd(Object o, UnaryPredicate pred)(Code)(Java Doc)
final protected void publishChange(Object o)(Code)(Java Doc)
final protected void publishChange(Object o, UnaryPredicate pred)(Code)(Java Doc)
final protected void publishRemove(Object o)(Code)(Java Doc)
final protected void publishRemove(Object o, UnaryPredicate pred)(Code)(Java Doc)
abstract protected void setupSubscriptions()(Code)(Java Doc)
protected Subscription subscribe(UnaryPredicate pred)(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.