|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.jmx.server.mx4j.DefaultJrmpRemotingImpl
This is the default and very simple implementation of a JRMP admin server built via the functionality in the MX4J JMX implementation. It opens a basic RMI over JRMP administration listener to the MX4J client adaptor.
Copyright 2002 Sapient
Field Summary | |
private static String |
ADAPTOR_CLASS_NAME
Name of adapter class. |
private static String |
ADAPTOR_OBJECT_NAME_STRING
JMX Adapter object name string. |
private mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean |
adaptorMBean
The Adapter MBean. |
private javax.management.ObjectName |
adaptorObjectName
The Jmx object name for the adapter. |
private String |
hostname
Hostname. |
private Class |
initialContextFactoryClass
Class for the initial context factory. |
private org.apache.commons.logging.Log |
log
Provides a handle to Apache-commons logger |
private MBeanServerService |
mbeanServerService
MBeanServerService being exposed remotely. |
private static String |
NAMING_SERVICE_CLASS_NAME
Class to use for the naming service. |
private int |
port
Port to expose on. |
private static String |
REGISTRY_OBJECT_NAME_STRING
The Jmx type string. |
private javax.management.ObjectInstance |
registryObjectInstance
Object instance for the registry. |
private javax.management.ObjectName |
registryObjectName
Object name for the registry. |
private static String |
URL_ID
Protocol prefix to the URL. |
Constructor Summary | |
DefaultJrmpRemotingImpl()
|
Method Summary | |
void |
configure(ComponentConfiguration componentConfiguration)
Configures the component. |
javax.management.MBeanServer |
getMBeanServer()
Gets the MBeanServer. |
void |
start()
Starts the service. |
void |
stop()
Stops the service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
private javax.management.ObjectName registryObjectName
private javax.management.ObjectInstance registryObjectInstance
private static final String REGISTRY_OBJECT_NAME_STRING
private static final String NAMING_SERVICE_CLASS_NAME
private javax.management.ObjectName adaptorObjectName
private mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean adaptorMBean
private static final String ADAPTOR_OBJECT_NAME_STRING
private static final String ADAPTOR_CLASS_NAME
private static final String URL_ID
private Class initialContextFactoryClass
private String hostname
private int port
private MBeanServerService mbeanServerService
Constructor Detail |
public DefaultJrmpRemotingImpl()
Method Detail |
public void configure(ComponentConfiguration componentConfiguration) throws Exception
configure
in interface Configurable
componentConfiguration
- JrmpRemotingConfiguration
to configure the component
Exception
- indicates an error configuring the componentpublic void start() throws Exception
start
in interface Startable
Exception
- indicates an error starting the servicepublic void stop() throws Exception
stop
in interface Startable
Exception
- indicates an error stopping the servicepublic javax.management.MBeanServer getMBeanServer() throws MBeanServerRetreiveException
getMBeanServer
in interface MBeanServerService
MBeanServerRetreiveException
- indicates and error
retreiving the MBean server
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |