Java Doc for AlertMonitor.java in  » Science » Cougaar12_4 » org » cougaar » lib » aggagent » client » 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.lib.aggagent.client 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.lib.aggagent.client.Monitor
      org.cougaar.lib.aggagent.client.AlertMonitor

AlertMonitor
public class AlertMonitor extends Monitor (Code)
Provides support for event driven monitoring of active Alert(s) on the aggregation agent. Maintains a collection of monitored alerts and keeps them updated based on changes on the aggregation agent's blackboard. To react to these changes either:
  • add update listener(s) to this monitor class and receive events for changes to all monitored alerts or
  • add update listener(s) to 'live' alerts provided by this monitor and receive events only for those objects



Constructor Summary
public  AlertMonitor(String serverURL, int updateMethod)
    

Method Summary
protected  StringcreateIdTag(Object identifier)
     Provides a xml representation of a given alert identifier.
Parameters:
  identifier - an object that uniquely identifies an alert on theaggregation agent.
public  booleanisMonitoring(String queryId, String alertName)
     Returns true if an alert matching the given identifiers is currently being updated by this monitor.
public  AlertDescriptormonitorAlert(String queryId, String alertName)
     Monitor an alert managed by the aggregation agent.
protected  Objectremove(Element monitoredElement)
     Called when a remove event is reported by the aggregation agent to an alert described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the removedalert.
public  AlertDescriptorstopMonitoringAlert(String queryId, String alertName)
     Remove this alert from the set of alerts being monitored.
protected  Objectupdate(Element monitoredElement)
     Called when a update event (either add or change) is reported by the aggregation agent to an alert described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the updatedalert.


Constructor Detail
AlertMonitor
public AlertMonitor(String serverURL, int updateMethod)(Code)




Method Detail
createIdTag
protected String createIdTag(Object identifier)(Code)
Provides a xml representation of a given alert identifier.
Parameters:
  identifier - an object that uniquely identifies an alert on theaggregation agent. a xml representation of given alert identifier.



isMonitoring
public boolean isMonitoring(String queryId, String alertName)(Code)
Returns true if an alert matching the given identifiers is currently being updated by this monitor.
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this alert.
Parameters:
  alertName - name of alert to monitor true if an alert matching the given identifiers is currentlybeing updated by this monitor.



monitorAlert
public AlertDescriptor monitorAlert(String queryId, String alertName)(Code)
Monitor an alert managed by the aggregation agent. Returns a 'live' alert descriptor for a given persistent query. Update listeners can be added to this live object to react to changes to that object. If monitor is not set to monitor-all-objects, this alert is added to this monitor's set of monitored objects.
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this alert.
Parameters:
  alertName - name of alert to monitor a live alert descriptor that is actively being updated to matcha subject alert on the aggregation agent.



remove
protected Object remove(Element monitoredElement)(Code)
Called when a remove event is reported by the aggregation agent to an alert described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the removedalert. previously live alert descriptor that was removed.



stopMonitoringAlert
public AlertDescriptor stopMonitoringAlert(String queryId, String alertName)(Code)
Remove this alert from the set of alerts being monitored. This method has a negligible effect if monitor-all is turned on (old live alert object will die, but new one will take it's place if that alert is still on the log plan).
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this alert.
Parameters:
  alertName - name of alert to monitor previously live alert descriptor that was removed.



update
protected Object update(Element monitoredElement)(Code)
Called when a update event (either add or change) is reported by the aggregation agent to an alert described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the updatedalert. a live alert descriptor updated based on the given xml



Fields inherited from org.cougaar.lib.aggagent.client.Monitor
final public static int KEEP_ALIVE_METHOD(Code)(Java Doc)
final public static int PULL_METHOD(Code)(Java Doc)

Methods inherited from org.cougaar.lib.aggagent.client.Monitor
public void addUpdateListener(UpdateListener ul)(Code)(Java Doc)
public boolean cancel()(Code)(Java Doc)
abstract protected String createIdTag(Object identifier)(Code)(Java Doc)
protected Object getMonitoredObject(Object identifier)(Code)(Java Doc)
public Collection getMonitoredObjects()(Code)(Java Doc)
public TimerTask getPullTask()(Code)(Java Doc)
public boolean isMonitoring(Object identifier)(Code)(Java Doc)
public void monitorAllObjects()(Code)(Java Doc)
protected Object monitorObject(Object identifier, Object monitoredObj)(Code)(Java Doc)
abstract protected Object remove(Element monitoredElement)(Code)(Java Doc)
public void removeUpdateListener(UpdateListener ul)(Code)(Java Doc)
protected Object stopMonitoringObject(Object identifier)(Code)(Java Doc)
abstract protected Object update(Element monitoredElement)(Code)(Java Doc)

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.