org.ow2.jonas.jmx.internal
Class JOnASJMXService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jonas.lib.reconfig.ReconfigEmitter
          extended by org.ow2.jonas.lib.service.AbsServiceImpl
              extended by org.ow2.jonas.jmx.internal.BaseJMXService
                  extended by org.ow2.jonas.jmx.internal.JOnASJMXService
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, JmxService, Service

public class JOnASJMXService
extends BaseJMXService

JMX Service implementation. Provides specific doStart() and doStop() methods to start /stop JOnAS JMX Service.

Author:
Adriana Danes, S. Ali Tokmen

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JOnASJMXService()
           
 
Method Summary
 void doStart()
          Start the Service.
 void doStop()
          Stop this service.
 JMXServiceURL[] getConnectorServerURLs()
           
 JNamingManager getNamingManager()
           
 void setAuthenticationMethod(String authenticationMethod)
           
 void setAuthenticationParameter(String authenticationParameter)
           
 void setAuthorizationMethod(String authorizationMethod)
           
 void setAuthorizationParameter(String authorizationParameter)
           
 void setJmxSecured(boolean jmxSecured)
           
 void setNamingManager(JNamingManager namingManager)
           
 void setRegistryService(RegistryService registryService)
           
 
Methods inherited from class org.ow2.jonas.jmx.internal.BaseJMXService
findManagedBean, getJmxServer, getJmxServerConnection, getLogger, getObjectName, loadDescriptors, registerMBean, registerMBean, registerMBean, registerModelMBean, registerModelMBean, registerModelMBean, setMBeanServer, setMBeanServerID, unregisterMBean, unregisterMBean, unregisterModelMBean
 
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString
 
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.jmx.JmxService
getDomainName, getJonasServerName
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Constructor Detail

JOnASJMXService

public JOnASJMXService()
Method Detail

doStart

public void doStart()
             throws ServiceException
Start the Service. Only need to create a RMI connector

Overrides:
doStart in class BaseJMXService
Throws:
ServiceException - the service could not be started

doStop

public void doStop()
Stop this service.

Overrides:
doStop in class BaseJMXService

getConnectorServerURLs

public JMXServiceURL[] getConnectorServerURLs()
Returns:
The actual adresses on which listen the created connector servers

setRegistryService

public void setRegistryService(RegistryService registryService)
Parameters:
registryService - the registryService to set

getNamingManager

public JNamingManager getNamingManager()
Returns:
the naming manager reference

setNamingManager

public void setNamingManager(JNamingManager namingManager)
Parameters:
namingManager - the namingManager to set

setJmxSecured

public void setJmxSecured(boolean jmxSecured)
Parameters:
jmxSecured - Whether the JMX server is secured.

setAuthenticationMethod

public void setAuthenticationMethod(String authenticationMethod)
Parameters:
authenticationMethod - Authentication method used when JMX server secured.

setAuthenticationParameter

public void setAuthenticationParameter(String authenticationParameter)
Parameters:
authenticationParameter - Authentication method's parameter used when JMX server secured.

setAuthorizationMethod

public void setAuthorizationMethod(String authorizationMethod)
Parameters:
authorizationMethod - Authorization method used when JMX server secured.

setAuthorizationParameter

public void setAuthorizationParameter(String authorizationParameter)
Parameters:
authorizationParameter - Authorization method's parameter used when JMX server secured.


Copyright © 2010 OW2 Consortium. All Rights Reserved.