org.cougaar.core.util |
This package contains the Cougaar
core utility classes, primarily {@link org.cougaar.core.util.UID}
support.
For more detail, see the
Cougaar Developers' Guide.
|
Java Source File Name | Type | Comment |
CheckJarsServlet.java | Class | This component loads the "/showJars" servlet, which displays
the jars loaded by the agent's ClassLoader. |
ComponentViewServlet.java | Class | This component loads the "/components" servlet, which displays
information from the component model's
ViewService .
Load with:
<component class="org.cougaar.core.util.ComponentViewServlet">
<argument>/components</argument>
</component>
The supported URL-parameter arguments can easily be seen
in the zero-parameter printUsage method's page.
This servlet generates XML. |
OwnedUniqueObject.java | Class | A
UniqueObject with an agent "owner" field and allocation
stack context. |
PropertyNameValue.java | Class | A simple "name=value" pair. |
Reflection.java | Class | Reflection helper methods. |
SimpleUniqueObject.java | Class | A
UniqueObject that records the allocation stack and
complains if the
UID is reset. |
StrongReference.java | Class | A proxy class for a strongly reachable object, similar to the reference
types in java.lang.ref .
This class is simply used for objects that can be GC'ed when the client
is done processing the referent. |
UID.java | Class | A globally Unique object IDentifier generated by
the
org.cougaar.core.service.UIDService .
Although the details of this implementation are subject to change,
developers may want to know more about the design to aid
debugging: UIDs are currently implemented as an "AGENT/COUNTER"
pair, where the initial COUNTER is the JVM startTime.
Compare to
java.rmi.server.UID , which can block to prevent
the COUNTER from growing faster than one-per-millisecond. |
UniqueObject.java | Interface | An object with a
UID created by the
org.cougaar.core.service.UIDService .
The UID is often set by a
org.cougaar.core.domain.Domainorg.cougaar.core.domain.Factory , and/or as a final field
set in the object's constructor.
Objects that implement UniqueObject often use the UID for the
"equals(Object)" and "hashCode()" methods, e.g.
public class X implements UniqueObject .. |
UniqueObjectBase.java | Class | Minimal base class for UniqueObjects that use the UID for equality. |
XMLWriter.java | Class | A simple XML formatter.
For an example use, see the
ComponentViewServlet . |