Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.management.runtime
Class DefaultActiveAgent
All Implemented Interfaces:
       ActiveAgent
Direct Known Subclasses:
       ComponentActiveAgent, NodeActiveAgent, SampleActiveAgent

public class DefaultActiveAgent      
A default implementation of com.newstep.solid.management.runtime.ActiveAgent.


It can only be intiated within this package or for those
that extend it.


It starts gets/creates the platform jmx server, and an RMI
connector. If its a client then the Active Agent turns into
a proxy to a JMX server.

This class should only be available to those inside this package
and its children packages.
Implements:
ActiveAgent
 
Links:
Implementation Implementation Link
to Interface ActiveAgent
A default implementation of com.newstep.solid.management.runtime.ActiveAgent.


It can only be intiated within this package or for those
that extend it.


It starts gets/creates the platform jmx server, and an RMI
connector. If its a client then the Active Agent turns into
a proxy to a JMX server.

This class should only be available to those inside this package
and its children packages.
 
 

Field Summary
int
String
MBeanServerConnection
String
private String
private static String
private JMXConnectorServer
protected String
private String
private boolean
private String
private static Logger
private MBeanServerConnection
private static int
private int
Constructor Summary
protected void
Method Summary
protected void
public ObjectName
generateName(Object obj)
public String
protected JMXConnectorServer
public String
public MBeanServerConnection
public String
public String
public MBeanServerConnection
public int
private void
public boolean
public void
register(Object mbean)
public void
register(Object mbean, ObjectName name)
protected void
protected void
setConnectorServer(JMXConnectorServer connectorServer)
protected void
setDefaultDomain(String defaultDomain)
public void
unRegister(ObjectName name)
Field Detail
agentHost
private String agentHost
Multiplicity:
1
 

agentHost
String agentHost
 

cName
private static String cName
Multiplicity:
1
Static.
 

connectorServer
private JMXConnectorServer connectorServer
Multiplicity:
1
 

defaultDomain
protected String defaultDomain
Multiplicity:
1
 

defaultUrl
private String defaultUrl
Multiplicity:
1
 

isClient
private boolean isClient
Multiplicity:
1
 

jmxURL
private String jmxURL
Multiplicity:
1
 

jmxURL
String jmxURL
 

logger
private static Logger logger
Multiplicity:
1
Static.
 

mbeanServer
MBeanServerConnection mbeanServer
 

mbeanServer
private MBeanServerConnection mbeanServer
Multiplicity:
1
 

numInst
private static int numInst
Multiplicity:
1
Static.
 

rmiPort
private int rmiPort
Multiplicity:
1
 

rmiPort
int rmiPort
 
Constructor Detail
DefaultActiveAgent
protected void DefaultActiveAgent ()
 
Stereotype:
create
 
Method Detail
cleanUp
protected void cleanUp ()
 
Throws:
IOException
 

generateName
public ObjectName generateName (Object obj)
 
Generate an object name of the form:
domain:type=FQN,name=hashCode
Throws:
MalformedObjectNameException
Custom properties
param obj:
- The managed object.
 

getAgentHost
public String getAgentHost ()
 
 

getConnectorServer
protected JMXConnectorServer getConnectorServer ()
 
 

getConnectorUrl
public String getConnectorUrl ()
 
 
Return:
The string representation of this mbean server's connector.
If we are in client mode == null.
 

getDefaultServer
public MBeanServerConnection getDefaultServer ()
 
 

getDomain
public String getDomain ()
 
 

getJmxURL
public String getJmxURL ()
 
 
Return:
The string representation of this server's connector.
Null if we're in client mode.
 

getMbeanServer
public MBeanServerConnection getMbeanServer ()
 
The managing OR implementing mbean server.
Return:
The managing server.
 

getRmiPort
public int getRmiPort ()
 
In server mode.
Return:
the rmi connector port
 

initRMIRegistry
private void initRMIRegistry ()
 
Attempt to initialize RMI registry, by first getting the registry
and if that fails try and create it.
If the creation fails then throw an exception.
Throws:
RemoteException
 

isClient
public boolean isClient ()
 
 

register
public void register (Object mbean)
 
Register with the Active Agent.
Throws:
InstanceAlreadyExistsException,MBeanRegistrationException,NotCompliantMBeanException,ReflectionException,MBeanException,IOException,MalformedObjectNameException
Custom properties
param mbean:
- the managed object.
 

register
public void register (Object mbean, ObjectName name)
 
Register with the Active Agent.
Throws:
InstanceAlreadyExistsException,MBeanRegistrationException,NotCompliantMBeanException,ReflectionException,MBeanException,IOException
Custom properties
param mbean:
- the managed object
param name:
- the name.
 

run
protected void run (ManagementConfig config)
 
Throws:
IOException
 

setConnectorServer
protected void setConnectorServer (JMXConnectorServer connectorServer)
 
 

setDefaultDomain
protected void setDefaultDomain (String defaultDomain)
 
 

unRegister
public void unRegister (ObjectName name)
 
Unregister with the Active Agent.
Throws:
InstanceNotFoundException,MBeanRegistrationException,IOException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD