org.jboss.mx.remoting.service
Class JMXConnectorServerService

java.lang.Object
  extended by org.jboss.mx.remoting.service.JMXConnectorServerService
All Implemented Interfaces:
MBeanRegistration, JMXConnectorServerServiceMBean

public class JMXConnectorServerService
extends Object
implements JMXConnectorServerServiceMBean

Service mbean for starting the JMX Remoting (JSR-160) connector server.

Author:
Tom Elrod, Dimitris Andreadis

Field Summary
static String JNDI_PATH_DEFAULT
          Default jndi path used to specify location of connector server.
 
Constructor Summary
JMXConnectorServerService()
           
 
Method Summary
 void create()
           
 void destroy()
           
 String getBindAddress()
           
 String getJndiPath()
           
 int getRegistryPort()
           
 void postDeregister()
           
 void postRegister(Boolean aBoolean)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName)
           
 void setBindAddress(String bindAddress)
           
 void setJndiPath(String jndiPath)
           
 void setRegistryPort(int registryPort)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_PATH_DEFAULT

public static final String JNDI_PATH_DEFAULT
Default jndi path used to specify location of connector server. Value is '/jmxconnector'.

See Also:
Constant Field Values
Constructor Detail

JMXConnectorServerService

public JMXConnectorServerService()
Method Detail

setRegistryPort

public void setRegistryPort(int registryPort)
Specified by:
setRegistryPort in interface JMXConnectorServerServiceMBean

getRegistryPort

public int getRegistryPort()
Specified by:
getRegistryPort in interface JMXConnectorServerServiceMBean

setBindAddress

public void setBindAddress(String bindAddress)
                    throws UnknownHostException
Specified by:
setBindAddress in interface JMXConnectorServerServiceMBean
Throws:
UnknownHostException

getBindAddress

public String getBindAddress()
Specified by:
getBindAddress in interface JMXConnectorServerServiceMBean

getJndiPath

public String getJndiPath()
Specified by:
getJndiPath in interface JMXConnectorServerServiceMBean

setJndiPath

public void setJndiPath(String jndiPath)
Specified by:
setJndiPath in interface JMXConnectorServerServiceMBean

create

public void create()
            throws Exception
Specified by:
create in interface JMXConnectorServerServiceMBean
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface JMXConnectorServerServiceMBean
Throws:
Exception

stop

public void stop()
          throws IOException
Specified by:
stop in interface JMXConnectorServerServiceMBean
Throws:
IOException

destroy

public void destroy()
Specified by:
destroy in interface JMXConnectorServerServiceMBean

preRegister

public ObjectName preRegister(MBeanServer mBeanServer,
                              ObjectName objectName)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean aBoolean)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.