|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.cascading.RemoteAgent
This class implements the cascading agent service.
Cascading agents enable you to implement a hierarchy of master agents and subagents.The m-beans in a subagent is mirrored in the master agent. A master agent can contain more than one remote agent, but must contain one remote agent for each subagent it communicates with.
When instantiating the remote agent, the following properties can be specified in the object name or non-default constructor:
AdaptorMO
, Serialized FormConstructor Summary | |
RemoteAgent()
Constructs a RemoteAgent . |
|
RemoteAgent(java.lang.String host,
java.lang.String adpName,
java.lang.String protocol,
int port)
Constructs a RemoteAgent . |
Method Summary | |
void |
deleteCmf()
Unregisters all the objects cascaded by the remote agent. |
java.lang.String |
getAdpName()
Getter for the "AdpName" property. |
java.lang.String |
getClassVersion()
Returns the version of this class. |
java.lang.Boolean |
getConnected()
Getter for the "Connected" property. |
java.lang.String |
getHost()
Getter for the "Host" property. |
AdaptorMO |
getMOFactory()
Getter for the "MOFactory" property. |
java.lang.Integer |
getNbOfRemoteObjects()
Getter for the "NbOfRemoteObjects" property. |
java.lang.Integer |
getPort()
Getter for the "Port" property. |
java.lang.String |
getProtocol()
Getter for the "Protocol" property. |
java.lang.String |
getServerAdpName()
Getter for the "ServerAdpName" property. |
void |
handleFrameworkEvent(FrameworkEventMO ev)
Processes a framework event emitted by the core management framework. |
void |
initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
Initializes the remote agent. |
boolean |
isActive()
Tests if the RemoteAgent is active. |
void |
performSetup(java.lang.Object param)
Configures the Adaptor. |
void |
performStart()
Activates the RemoteAgent service. |
void |
performStop()
Deactivates the RemoteAgent service. |
void |
setServerAdpName(java.lang.String servName)
Setter for the "ServerAdpName" property. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RemoteAgent()
RemoteAgent
.
Initializes a newly created RemoteAgent
with the following
default values:
public RemoteAgent(java.lang.String host, java.lang.String adpName, java.lang.String protocol, int port)
RemoteAgent
.
In order to initialize the remote agent, implementation names of the different services required by the core management framework must be provided.
host
- name of the host of the remote agent.adpName
- name of the client adaptor to connect to the remote agent.protocol
- the connection protocol.port
- the connection port number.Method Detail |
public void initCmf(Framework cmf, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException
The method declares the object to the core management framework.
For internal use only.
agent
- The core management framework to register the service with.name
- Object name containing configuration information.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.public AdaptorMO getMOFactory()
public java.lang.String getHost()
public java.lang.String getAdpName()
public void setServerAdpName(java.lang.String servName)
public java.lang.String getServerAdpName()
public java.lang.String getProtocol()
public java.lang.Integer getPort()
public java.lang.Boolean getConnected()
public java.lang.Integer getNbOfRemoteObjects()
public void handleFrameworkEvent(FrameworkEventMO ev)
ev
- The framework event to be processed.public void deleteCmf()
public void performSetup(java.lang.Object param)
param
- Parameters to be set.AdaptorMO.setup(java.lang.Object)
public void performStart()
RemoteAgent
service.public void performStop()
RemoteAgent
service.public boolean isActive()
RemoteAgent
is active.public java.lang.String getClassVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |