org.ow2.petals.jmx
Class AdminServiceClient

java.lang.Object
  extended by org.ow2.petals.jmx.AbstractServiceClient
      extended by org.ow2.petals.jmx.AdminServiceClient

public class AdminServiceClient
extends AbstractServiceClient

Client API of the JMX Admin service.

Author:
rnaudin - EBM Websourcing

Field Summary
 
Fields inherited from class org.ow2.petals.jmx.AbstractServiceClient
JMX_FIELD_NAME, JMX_FIELD_TYPE, JMX_SERVICE_TYPE, mbeanName, mBeanServerConnection, petalsDomain
 
Constructor Summary
AdminServiceClient(java.lang.String petalsDomain, javax.management.MBeanServerConnection beanServerConnection)
          Creates a new instance of AdminServiceClient
 
Method Summary
 javax.management.ObjectName[] getBindingComponents()
          Get the Binding Components of the PEtALS Container
 javax.management.ObjectName getComponentByName(java.lang.String component)
          Get the Component with the given name
 javax.management.ObjectName[] getEngineComponents()
          Get the Services Engines of the PEtALS Container
 java.lang.String getSystemInfo()
          Get the version of the kernel of the PEtALS container
 
Methods inherited from class org.ow2.petals.jmx.AbstractServiceClient
getAttribute, getAttribute, performAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminServiceClient

public AdminServiceClient(java.lang.String petalsDomain,
                          javax.management.MBeanServerConnection beanServerConnection)
                   throws AdminDoesNotExistException,
                          AdminServiceErrorException
Creates a new instance of AdminServiceClient

Parameters:
petalsDomain -
beanServerConnection -
Throws:
AdminDoesNotExistException
AdminServiceErrorException
Method Detail

getSystemInfo

public java.lang.String getSystemInfo()
                               throws AdminServiceErrorException
Get the version of the kernel of the PEtALS container

Returns:
the version of PEtALS.
Throws:
PerformActionErrorException
AdminServiceErrorException
See Also:
AdminServiceMBean.getSystemInfo()

getBindingComponents

public javax.management.ObjectName[] getBindingComponents()
                                                   throws AdminServiceErrorException
Get the Binding Components of the PEtALS Container

Returns:
the binding components of the PEtALS Container
Throws:
AdminServiceErrorException
See Also:
AdminServiceMBean.getBindingComponents()

getEngineComponents

public javax.management.ObjectName[] getEngineComponents()
                                                  throws AdminServiceErrorException
Get the Services Engines of the PEtALS Container

Returns:
the services engines of the PEtALS Container
Throws:
AdminServiceErrorException

getComponentByName

public javax.management.ObjectName getComponentByName(java.lang.String component)
                                               throws AdminServiceErrorException
Get the Component with the given name

Returns:
null if no component has been found, the ObjectName of the component otherwise
Throws:
AdminServiceErrorException - if an error occurs while performing the action


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.