Java Doc for ResultSetMonitor.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.ResultSetMonitor

ResultSetMonitor
public class ResultSetMonitor extends Monitor (Code)
Provides support for event driven monitoring of active AggregationResultSet(s) on the aggregation agent. Maintains a collection of monitored result sets 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 result sets or
  • add update listener(s) to 'live' result sets provided by monitor and receive events only for those objects



Constructor Summary
public  ResultSetMonitor(String serverURL, int updateMethod)
     Create a new monitor to monitor a set of objects on the aggregation agent.

Method Summary
protected  StringcreateIdTag(Object identifier)
     Provides a xml representation of a given query identifier.
Parameters:
  identifier - an object that uniquely identifies an object on theaggregation agent.
public  AggregationResultSetmonitorResultSet(String queryId)
     Monitor a result set managed by the aggregation agent.
protected  Objectremove(Element monitoredElement)
     Called when a remove event is reported by the aggregation agent to a result set described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the removedresult set.
public  AggregationResultSetstopMonitoringResultSet(String queryId)
     Remove this result set from the set of result sets being monitored. This method has a negligible effect if monitor-all is turned on (old live result set object will die, but new one will take it's place if that object is still on the log plan).
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this result set.
protected  Objectupdate(Element monitoredElement)
     Called when a update event (either add or change) is reported by the aggregation agent to a result set described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the updatedresult set.


Constructor Detail
ResultSetMonitor
public ResultSetMonitor(String serverURL, int updateMethod)(Code)
Create a new monitor to monitor a set of objects on the aggregation agent. Each monitor is used to monitor a single type of object (e.g. AlertMonitor, ResultSetMonitor).
Parameters:
  serverURL - aggregation agent cluster's text URL
Parameters:
  updateMethod - method used to keep monitored objects updatedPULL_METHOD - periodically pull incremental updatesfrom passive session on aggregationagent. Create new connection witheach pull.KEEP_ALIVE_METHOD - create keep alive sessionwith aggregation agent. Incrementalupdates are pushed to the clientover this pipe.




Method Detail
createIdTag
protected String createIdTag(Object identifier)(Code)
Provides a xml representation of a given query identifier.
Parameters:
  identifier - an object that uniquely identifies an object on theaggregation agent. Must be able to use this objectas a hashtable key (i.e. must have proper equals()and hashcode() methods). a xml representation of given query identifier.



monitorResultSet
public AggregationResultSet monitorResultSet(String queryId)(Code)
Monitor a result set managed by the aggregation agent. Returns a 'live' result set 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 result set is added to this monitor's set of monitored objects.
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this result set. a live result set that is actively being updated to match asubject object on the aggregation agent.



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



stopMonitoringResultSet
public AggregationResultSet stopMonitoringResultSet(String queryId)(Code)
Remove this result set from the set of result sets being monitored. This method has a negligible effect if monitor-all is turned on (old live result set object will die, but new one will take it's place if that object is still on the log plan).
Parameters:
  queryId - id of query result adapter on aggregation agent that ismaintaining this result set. previously live result set 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 a result set described by the given xml element tree.
Parameters:
  monitoredElement - xml element tree that describes the updatedresult set. a live result set object 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.