| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.management.runtime.component
|
+--com.newstep.solid.management.runtime.component.Component
public abstract class Component
A initializable and manageable component in the system.
Ability to start within a node (given its own classloader) or in a stand
alone mode. Each component has an environment ComponentEnvironment
that is available in containment or stand-alone mode
In Stand Alone
Mode: initStandAlone - provides all start-up necessary given a particular
managment configuration. It does the following:
In Containment Mode: Given an appropriate deployment descriptor the
component will run the same as it would if it were in its own vm. There
loading and environment is not the same but will be transparent to the
component as if it were running stand-alone. Since many of the services are
shared amongst components in this mode, including
- ActiveAgent (or the underlying MBean Server)
- shutdown thread
- Alarm Notifier
- Sampler
- Directory client
- Beacon
The component makes an attempt at cleaning up ComponentStateListener,
when an appropriate end state is reached. A component becomes unmanageable
when clean up is called.
Version:
1.0
Author:
msimonsen
Abstract.
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
protected
Generalization Generalization Link
A initializable and manageable component in the system.
Ability to start within a node (given its own classloader) or in a stand
alone mode. Each component has an environment ComponentEnvironment
that is available in containment or stand-alone mode
In Stand Alone
Mode: initStandAlone - provides all start-up necessary given a particular
managment configuration. It does the following:
- Starts an ActiveAgent
com.newstep.solid.management.runtime.ActiveAgent
- Builds an appropriate environment
- Makes itself manageable ComponentManager
- Starts an alarm Notifier
- Starts a OM sampler
- News and initializes a ComponentLogger ComponentLogger
- Attempts to establish contact with the directory server for registration
purposes
- Sets up a shutdown thread ShutDownThread
- Initializes a status beacon - for TaskManager integration
In Containment Mode: Given an appropriate deployment descriptor the
component will run the same as it would if it were in its own vm. There
loading and environment is not the same but will be transparent to the
component as if it were running stand-alone. Since many of the services are
shared amongst components in this mode, including
- ActiveAgent (or the underlying MBean Server)
- shutdown thread
- Alarm Notifier
- Sampler
- Directory client
- Beacon
The component makes an attempt at cleaning up ComponentStateListener,
when an appropriate end state is reached. A component becomes unmanageable
when clean up is called.
Author:
msimonsen
Custom properties
version:
1.0
| Field Summary |
private final static String |
|
|
|
|
|
|
|
private static Logger |
|
| Constructor Summary |
protected void |
|
| Method Summary |
protected void |
|
|
|
public String |
|
protected void |
|
public abstract void |
|
|
|
public void |
|
private final static String className
Final.
Multiplicity:
1
Static.
Multiplicity:
1
Multiplicity:
1
Multiplicity:
1
private static Logger logger
Multiplicity:
1
Static.
protected void Component ()
Default constructor. Initiate a component Loggger.
Stereotype:
create
protected void cleanUp ()
Performs clean up on the component. This will most likely be called when
a end-state of the component is reached - ComponentStateListener
Throws:
IOException
Return:
ComponentEnvironment
public String getName ()
Get the name of the component. This component's manager + subsystem are
registered under this domain name.
Return:
The name of the component - corresponds to its manageable domain.
protected void init (String args)
Initializes a component in stand-alone mode. Allows component to start
the managment framework. The component must write its own main method.
Parameters:
args -
the command line arguments
Throws:
ExecutableException,ConfigurationException
public abstract void init (Configuration configuration, String args)
A component implementation will be initialized by either the node in
which is sits resident or from the standAlone mode.
Parameters:
configuration
args
Abstract.
Throws:
ExecutableException
An implementation of Component must know how to load its own
configuration.
Parameters:
args
Return:
ComponentConfiguration - The components loaded configuration
Abstract.
Throws:
ConfigurationException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|