Java Dynamic Management Kit 3.2 Programming Guide | ||||
---|---|---|---|---|
![]() | ![]() | Chapter 10. Base Services - Customizing 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
Initialization with a specific domain
Initialization with a specific repository service and domain
Initialization with a specific repository, thread allocator and domain
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.
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).
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).
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.
![]() | ![]() | ![]() |
Base Services - Customizing the Framework | ![]() | Repository Service |