Java Dynamic Management Kit 3.2 Programming Guide
[ Previous ][ Fast Back ]Chapter 10. Base Services - Customizing the Framework[ Fast Forward ][ Next ]

Initializing the Framework

An agent developed with the Java Dynamic Management Kit must contain one instance of the framework, that is, one instance of the com.sun.jaw.reference.agent.cmf.Framework class. The constructors of this class provide the following options for initializing the framework:

Default Initialization

To obtain the default initialization of the framework, invoke the no-argument constructor Framework(). This instantiates the framework with the default implementation of the repository and thread allocation services (com.sun.jaw.impl.agent.services.light.RepositorySrv and com.sun.jaw.impl.agent.services.light.ThreadAllocatorSrv, respectively). The default domain name (defaultDomain) is assigned to the framework.

Initialization With a Specific Domain

To initialize the framework with a specific domain, invoke the Framework(String) constructor. You have to pass the domain to be associated with the framework as an argument to the framework constructor. This instantiates the framework with the default implementation of the repository and thread allocator services (com.sun.jaw.impl.agent.services.light.RepositorySrv and com.sun.jaw.impl.agent.services.light.ThreadAllocatorSrv, respectively).

Initialization With a Specific Repository Service and Domain

To initialize the framework with a specific repository service and domain, invoke the Framework(MoRepSrvIf, String) constructor. You must first instantiate the repository service yourself. You then pass this repository service and the domain to be associated with the framework as arguments to the framework constructor. This will instantiate the framework with the default implementation of the thread allocator service (com.sun.jaw.impl.agent.services.light.ThreadAllocSrv).

Initialization With a Specific Repository, Thread Allocator and Domain

To specify the repository and thread allocator services as well as the domain for the framework, invoke the Framework(MoRepSrvIf, ThreadAllocatorSrvIf, String) constructor. You must first instantiate the repository and thread allocator services yourself. You then pass these services and the domain to be associated with the framework as arguments to the framework constructor.


[ Previous ][ Home ][ Next ]
Base Services - Customizing the Framework[ Up ]Repository Service