org.objectweb.jonas.jmx.JmxServiceImpl Class Reference

Inherits org.objectweb.jonas.jmx.AbsJmxServiceImpl.

Inheritance diagram for org.objectweb.jonas.jmx.JmxServiceImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.jmx.JmxServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getRmiConnectorName ()
void doInit (Context ctx) throws ServiceException
void doStart () throws ServiceException
void doStop ()
JMXServiceURL[] getConnectorServerURLs ()
void handleNotification (Notification notification, Object handback)
void addServer (String domainName, String serverName, String connectorServerURL)
void removeServer (String domainName, String serverName)
MBeanServerConnection getServerConnection (String serverName)

Detailed Description

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

Author:
Adriana Danes.

Definition at line 72 of file JmxServiceImpl.java.


Member Function Documentation

void org.objectweb.jonas.jmx.JmxServiceImpl.addServer String  domainName,
String  serverName,
String  connectorServerURL
 

Add a JOnAS server in the management domain in order update the management domain configuration.

Parameters:
domainName name of the management domain the server belongs to
serverName server name
connectorServerURL connector server url

Definition at line 442 of file JmxServiceImpl.java.

References org.objectweb.jonas.jmx.JmxService.getDomainName().

Referenced by org.objectweb.jonas.jmx.JmxServiceImpl.handleNotification().

Here is the call graph for this function:

void org.objectweb.jonas.jmx.JmxServiceImpl.doInit Context  ctx  )  throws ServiceException
 

Init the logger and then use super method.

Parameters:
ctx configuration for the init method
Exceptions:
ServiceException if initialization failed

Reimplemented from org.objectweb.jonas.jmx.AbsJmxServiceImpl.

Definition at line 155 of file JmxServiceImpl.java.

void org.objectweb.jonas.jmx.JmxServiceImpl.doStart  )  throws ServiceException [virtual]
 

Start the Service. Only need to create a RMI connector

Exceptions:
ServiceException the service could not be started

Implements org.objectweb.jonas.jmx.AbsJmxServiceImpl.

Definition at line 195 of file JmxServiceImpl.java.

References org.objectweb.jonas.jmx.AbsJmxServiceImpl.getJmxServer(), org.objectweb.jonas.jmx.JmxService.getJonasServerName(), and org.objectweb.jonas.jmx.AbsJmxServiceImpl.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas.jmx.JmxServiceImpl.doStop  )  [virtual]
 

Stop this service

Implements org.objectweb.jonas.jmx.AbsJmxServiceImpl.

Definition at line 316 of file JmxServiceImpl.java.

References org.objectweb.jonas.jmx.JmxService.getDomainName(), org.objectweb.jonas.jmx.AbsJmxServiceImpl.getJmxServer(), org.objectweb.jonas.jmx.JmxService.getJonasServerName(), org.objectweb.jonas.jmx.AbsJmxServiceImpl.getLogger(), and org.objectweb.jonas.jmx.AbsJmxServiceImpl.releaseJmxServer().

Here is the call graph for this function:

JMXServiceURL [] org.objectweb.jonas.jmx.JmxServiceImpl.getConnectorServerURLs  )  [virtual]
 

Returns:
The actual adresses on which listen the created connector servers

Implements org.objectweb.jonas.jmx.AbsJmxServiceImpl.

Definition at line 355 of file JmxServiceImpl.java.

String org.objectweb.jonas.jmx.JmxServiceImpl.getRmiConnectorName  ) 
 

Returns:
The JNDI name of the JOnAS RMI connector

Implements org.objectweb.jonas.jmx.JmxService.

Definition at line 99 of file JmxServiceImpl.java.

MBeanServerConnection org.objectweb.jonas.jmx.JmxServiceImpl.getServerConnection String  serverName  ) 
 

Return a connection to the JMX serverver of a given JOnAS server

Parameters:
serverName The name of the server a connection to its JMX server its needed
Returns:
A connection to that server's JMX server

Implements org.objectweb.jonas.jmx.JmxService.

Definition at line 578 of file JmxServiceImpl.java.

void org.objectweb.jonas.jmx.JmxServiceImpl.handleNotification Notification  notification,
Object  handback
 

Treat REGISTRATION/UNREGISTRATION MBeanServerNotification generated for "management" MBeans Treat also notifications generated by Enroller MBean

Parameters:
notification received notification
handback received handback

Definition at line 365 of file JmxServiceImpl.java.

References org.objectweb.jonas.jmx.JmxServiceImpl.addServer(), org.objectweb.jonas.discovery.DiscEvent.getConnectorURL(), org.objectweb.jonas.discovery.DiscEvent.getDomainName(), org.objectweb.jonas.jmx.AbsJmxServiceImpl.getJmxServer(), org.objectweb.jonas.discovery.DiscEvent.getServerName(), org.objectweb.jonas.discovery.DiscEvent.getState(), and org.objectweb.jonas.jmx.JmxServiceImpl.removeServer().

Here is the call graph for this function:

void org.objectweb.jonas.jmx.JmxServiceImpl.removeServer String  domainName,
String  serverName
 

Add a JOnAS server in the management domain

Parameters:
domainName name of the management domain the server belongs
serverName server name

Definition at line 554 of file JmxServiceImpl.java.

References org.objectweb.jonas.jmx.JmxService.getDomainName().

Referenced by org.objectweb.jonas.jmx.JmxServiceImpl.handleNotification().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:59 2005 for JOnAS by  doxygen 1.3.9.1