org.cougaar.core.node

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.core.node 
org.cougaar.core.node
This package contains the Cougaar JVM node and node-level services.

The {@link org.cougaar.core.node.Node} contains the top-level

  public static void main(String[] args) {..}
that is typically loaded by the {@link org.cougaar.bootstrap.Bootstrapper}.

The node creates the root {@link org.cougaar.core.component.ServiceBroker} and {@link org.cougaar.core.agent.AgentContainer}. Additional details can be found in the agent package javadoc.

This package also contains the {@link org.cougaar.core.node.ComponentInitializerService} provider components:

  1. The standard XML-based configuration reader, which supports XSL templates ({@link org.cougaar.core.node.XMLComponentInitializerServiceComponent}).
  2. The deprecated INI-based configuration reader ({@link org.cougaar.core.node.FileComponentInitializerServiceComponent}).
  3. The deprecated database configuration reader ({@link org.cougaar.core.node.DBComponentInitializerServiceComponent}).

Another notable component is the {@link org.cougaar.core.node.AgentLoader}, which loads the node's child agents.

For more detail, see the Cougaar Developers' Guide.

Java Source File NameTypeComment
AddServiceComponent.javaClass This component can be used to import an external service into the node agent.

For example, the NodeApplet uses this component to advertise the org.cougaar.core.service.AppletService .

Two parameters are required:
   1) The Service class or classname.
   2) The Service class, classname, or instance, or the      ServiceProvider class, classname, or instance.
A third parameter is optional:
   3) "true" to use the root ServiceBroker, defaults to false.

Reflection is used wrap the 2nd parameter as the correct API, even if it doesn't implement the correct interface.

AgentLoader.javaClass This component loads the initial set of agents into the node and persists the names of dynamically added/removed agents.
ComponentInitializerService.javaInterface This service provides access to the initial component model ComponentDescription list, specifying which components to load into the agents.
ComponentMessage.javaClass
ConfigurationServiceComponent.javaClass This component advertises the ConfigurationService , wrapping the ConfigFinder .
ConfiguratorBase.javaClass This component is a base class for ComponentInitializerService override implementations.
DBComponentInitializerServiceComponent.javaClass This component advertises the DBInitializerService and CSMART-database ComponentInitializerService .
DBComponentInitializerServiceProvider.javaClassServiceProvider for a ComponentInitializerService backed by the DBInitializerService .
DBInitializerService.javaInterface This service provides access to database configuration data.
DBInitializerServiceImpl.javaClass Implementation of DBInitializerService .
DefaultAgentIdentityComponent.javaClass This component advertises a dummy implementation of the AgentIdentityService , if not already advertised.
DummyMessageSecurityManager.javaClass A trivial MessageSecurityManager .

This implementation looks like a MessageSecurityManager , but doesn't actually add any real security at all.

FileComponentInitializerServiceComponent.javaClass This component advertises the INI-based ComponentInitializerService .
FileComponentInitializerServiceProvider.javaClassServiceProvider for the FileComponentInitializerServiceComponent that uses the INIParser .
GetServiceCallback.javaInterface A callback for GetServiceComponent .
GetServiceComponent.javaClass This component can be used to export an internal service out to an external framework.

For example, the NodeApplet uses this component to get the NodeControlService .

Two parameters are required:
   1) The Service class or classname, which can be ServiceBroker .
   2) The GetServiceCallback listener, which can be
     specified as a class, classname, or instance.
A third parameter is optional:
   3) The service requestor, or "this" for this component, which
     defaults to "this".
A fourth parameter is optional:
   4) Use a late-binding service listener if the service is not
     available at load time, defaults to "true".

Reflection is used to wrap the callback as the GetServiceCallback API, even if it doesn't implement that API.

Heartbeat.javaClass A low-priority "heartbeat" function that prints a period every few seconds when nothing else is happening.
HeartbeatComponent.javaClass This component loads the Heartbeat class.
Incarnation.javaClass This component provides the IncarnationService that monitors agent incarnation (version) numbers in the WhitePagesService and notifies clients of any changes.
INIParser.javaClass Parse an INI stream into an ComponentDescription[].
KeyRing.javaClass A container for security keystore information and functionality.
LoggingServiceComponent.javaClass This component advertises the LoggingService to all agents.
NaturalTimeComponent.javaClass This component advertises the NaturalTimeService , which is wrapped by each agent's org.cougaar.core.service.AlarmService .

This component is typically loaded into the node-agent, allowing the Timer to be shared by all agents.

Node.javaClass This component is the root component of the Cougaar Agent Architecture, containing the Node.main method.
NodeAgent.javaClass
NodeApplet.javaClass This component loads a Cougaar Node as a browser Applet .

The server requires an HTML file to load this applet, e.g.:

 <html><body><applet
 code=org.cougaar.core.node.NodeApplet.class
 archive="lib/bootstrap.jar,lib/util.jar,lib/core.jar,lib/your_code.jar,sys/log4j.jar"
 width=400 height=400>
 <param name="properties" value="
 -Dorg.cougaar.node.name=MyNode
 -Dorg.cougaar.society.file=MyNode.xml
 "/>
 Unable to load Applet.
 </applet></body></html>
 
In addition to the above jars, the server directory will also require your agent XML file (e.g.
NodeBusyComponent.javaClass This component advertises the NodeBusyService to all agents.
NodeBusyService.javaInterface This service is used by agents to note when they are busy in an action that may block communication, such as persistence.
NodeControlService.javaInterface This service s provided by the Node to node-agent components for access to the node-wide root ServiceBroker and AgentContainer .

Access is restricted to node-agent components.

NodeIdentificationService.javaInterface This service provides the local node's MessageAddress .
NodeIdentificationServiceProvider.javaClassServiceProvider for the NodeIdentificationService .
NodeMessage.javaClass
NodeMetrics.javaClass This component advertises the NodeMetricsService .
NodeMetricsServiceProvider.javaClassServiceProvider for the NodeMetricsService .
QuiescenceReportComponent.javaClass This component advertises the QuiescenceReportService to all agents.
QuiescenceReportServiceProvider.javaClassServiceProvider for the QuiescenceReportService .

The QRS collects quiescence information from the Agent Distributors and other QRS clients in the Node.

QuiescenceState.javaClass
QuiescenceStateServlet.javaClass This component is a javax.servlet.Servlet that displays the agents registered with the node's AgentQuiescenceStateService , and allow an agent to be marked as "dead" (for use when the agent has been restarted elsewhere and the original instance should be ignored).
RealTimeComponent.javaClass This component advertises the RealTimeService , which is wrapped by each agent's org.cougaar.core.service.AlarmService .

This component is typically loaded into the node-agent, allowing the Timer to be shared by all agents.

RegisterAgentService.javaInterface This service is used by agents to register themselves with the nodes dynamic agent add/remove tracker.

The node persists the names of live agents and rehydrate only those agents.

SecureMessage.javaInterface A marker interface for securing the contents of a message using cryptography.

Note that there is no additional public api for getting at the contents of the object.

SetProperties.javaClass This component simply copies its parameters into Java's System Properties.

Note that only "-D" system properties are supported.

SetPropertiesComponent.javaClass This component can be used to set SystemProperties values and initialize the properties map.
SignedMessageSecurityManager.javaClass A useful MessageSecurityManager which signs each message, but depends on the destination to recover the public key of the sender.
StateDumpService.javaInterface
StateDumpServiceComponent.javaClass
SuicideServiceComponent.javaClass This component advertises the SuicideService .
TimeServiceBase.javaClass A base class for timer service implementations.
XMLComponentInitializerServiceComponent.javaClass This component advertises the XML-based ComponentInitializerService .
XMLComponentInitializerServiceProvider.javaClassServiceProvider for the XML-based ComponentInitializerService that uses the XSLTransformer .
XMLConfigHandler.javaClass SAX org.xml.sax.ContentHandler that handles the society config parsing.
XMLConfigParser.javaClass Utility class used by the XMLComponentInitializerServiceComponent to parse the agent configurations.
XSLTransformer.javaClass Generic XSL transformer that supports two-stage XSL transforms.

If neither the "default" or "dynamic" XSL filenames are specified, and the "use_xsl_stylesheet" is disabled or the XML file lacks a top-level "<?xml-stylesheet ..?>" instruction, then no transform is done and the XML file is simply parsed to the ContentHandler.

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