| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.management.runtime
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
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 |
|
public String |
|
protected JMXConnectorServer |
|
public String |
|
public MBeanServerConnection |
|
public String |
|
public String |
|
public MBeanServerConnection |
|
public int |
|
private void |
|
public boolean |
|
public void |
|
public void |
|
protected void |
|
protected void |
|
protected void |
|
public void |
|
private String agentHost
Multiplicity:
1
String agentHost
private static String cName
Multiplicity:
1
Static.
private JMXConnectorServer connectorServer
Multiplicity:
1
protected String defaultDomain
Multiplicity:
1
private String defaultUrl
Multiplicity:
1
private boolean isClient
Multiplicity:
1
private String jmxURL
Multiplicity:
1
String jmxURL
private static Logger logger
Multiplicity:
1
Static.
MBeanServerConnection mbeanServer
private MBeanServerConnection mbeanServer
Multiplicity:
1
private static int numInst
Multiplicity:
1
Static.
private int rmiPort
Multiplicity:
1
int rmiPort
protected void DefaultActiveAgent ()
Stereotype:
create
protected void cleanUp ()
Throws:
IOException
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.
public String getAgentHost ()
protected JMXConnectorServer getConnectorServer ()
public String getConnectorUrl ()
Return:
The string representation of this mbean server's connector.
If we are in client mode == null.
public MBeanServerConnection getDefaultServer ()
public String getDomain ()
public String getJmxURL ()
Return:
The string representation of this server's connector.
Null if we're in client mode.
public MBeanServerConnection getMbeanServer ()
The managing OR implementing mbean server.
Return:
The managing server.
public int getRmiPort ()
In server mode.
Return:
the rmi connector port
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
public boolean isClient ()
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.
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.
Throws:
IOException
protected void setConnectorServer (JMXConnectorServer connectorServer)
protected void setDefaultDomain (String defaultDomain)
public void unRegister (ObjectName name)
Unregister with the Active Agent.
Throws:
InstanceNotFoundException,MBeanRegistrationException,IOException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|