org.ow2.petals.jmx
Class AbstractServiceClient

java.lang.Object
  extended by org.ow2.petals.jmx.AbstractServiceClient
Direct Known Subclasses:
AdminServiceClient, ComponentClient, ConfigurationInstallerComponentClient, DeploymentServiceClient, EndpointRegistryClient, InstallationServiceClient, InstallerComponentClient, LoggerServiceClient, PetalsAdminServiceClient, RouterMonitorServiceClient, RuntimeConfigurationComponentClient, SystemMonitoringServiceClient

public abstract class AbstractServiceClient
extends java.lang.Object

The Petals JMX Client API

Author:
cdeneux - Capgemini Sud

Field Summary
protected static java.lang.String JMX_FIELD_NAME
           
protected static java.lang.String JMX_FIELD_TYPE
           
protected static java.lang.String JMX_SERVICE_TYPE
           
protected  javax.management.ObjectName mbeanName
           
protected  javax.management.MBeanServerConnection mBeanServerConnection
           
protected  java.lang.String petalsDomain
           
 
Constructor Summary
AbstractServiceClient(java.lang.String petalsDomain, javax.management.MBeanServerConnection mBeanServerConnection)
          Creates a new instance of AbstractServiceClient
 
Method Summary
protected  java.lang.Object getAttribute(javax.management.ObjectName mbeanName, java.lang.String attributeName)
           
protected  java.lang.Object getAttribute(java.lang.String attributeName)
           
protected  java.lang.Object performAction(java.lang.String action, java.lang.Object[] objectsLoad, java.lang.String[] stringsLoad)
          Perform an action on the MBean service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMX_FIELD_TYPE

protected static final java.lang.String JMX_FIELD_TYPE
See Also:
Constant Field Values

JMX_FIELD_NAME

protected static final java.lang.String JMX_FIELD_NAME
See Also:
Constant Field Values

JMX_SERVICE_TYPE

protected static final java.lang.String JMX_SERVICE_TYPE
See Also:
Constant Field Values

petalsDomain

protected java.lang.String petalsDomain

mbeanName

protected javax.management.ObjectName mbeanName

mBeanServerConnection

protected javax.management.MBeanServerConnection mBeanServerConnection
Constructor Detail

AbstractServiceClient

public AbstractServiceClient(java.lang.String petalsDomain,
                             javax.management.MBeanServerConnection mBeanServerConnection)
Creates a new instance of AbstractServiceClient

Parameters:
petalsDomain -
mBeanServerConnection -
Method Detail

performAction

protected java.lang.Object performAction(java.lang.String action,
                                         java.lang.Object[] objectsLoad,
                                         java.lang.String[] stringsLoad)
                                  throws PerformActionErrorException
Perform an action on the MBean service

Parameters:
action -
Returns:
Throws:
PerformActionErrorException

getAttribute

protected java.lang.Object getAttribute(java.lang.String attributeName)
                                 throws AttributeErrorException
Throws:
AttributeErrorException

getAttribute

protected java.lang.Object getAttribute(javax.management.ObjectName mbeanName,
                                        java.lang.String attributeName)
                                 throws AttributeErrorException
Throws:
AttributeErrorException


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