org.ow2.easybeans.api.jmx
Interface EZBManagementIdentifier<ManagedType>

Type Parameters:
ManagedType - Managed resource Type

public interface EZBManagementIdentifier<ManagedType>

JMX Identifier, used to create a JMX ObjectName from an Object.

Author:
Guillaume Sauthier

Method Summary
 String getAdditionnalProperties(ManagedType instance)
           
 String getDomain()
           
 String getNamePropertyValue(ManagedType instance)
           
 String getTypeName()
           
 String getTypeProperty()
          May differ if JSR77 MBean or "normal" MBean.
A JSR77 MBean has j2eeType=XX, but a "normal" MBean has type=YY.
 String getTypeValue()
          This method has to be implemented by each EZBManagementIdentifier.
 void setDomain(String domainName)
          Sets the domain for this identifier.
 void setServerName(String serverName)
          Sets the Server name for this identifier.
 

Method Detail

getDomain

String getDomain()
Returns:
Returns the JMX Domain name of the MBean.

getTypeProperty

String getTypeProperty()
May differ if JSR77 MBean or "normal" MBean.
A JSR77 MBean has j2eeType=XX, but a "normal" MBean has type=YY. Will probably be implemented by an abstract class.

Returns:
Returns the type=type_name couple.

getTypeName

String getTypeName()
Returns:
Returns the 'type' property name : j2eeType for JSR 77 and type for others.

getTypeValue

String getTypeValue()
This method has to be implemented by each EZBManagementIdentifier.

Returns:
Returns the type value. (example : J2EEServer)

getNamePropertyValue

String getNamePropertyValue(ManagedType instance)
Parameters:
instance - Managed instance from which the name will be extracted.
Returns:
Returns the ObjectName 'name' property value.

getAdditionnalProperties

String getAdditionnalProperties(ManagedType instance)
Parameters:
instance - Managed instance from which the additionnal properties will be extracted.
Returns:
Returns a comma separated(,) list of properties (name=value)

setDomain

void setDomain(String domainName)
Sets the domain for this identifier.

Parameters:
domainName - the JMX Domain name of the MBean.

setServerName

void setServerName(String serverName)
Sets the Server name for this identifier.

Parameters:
serverName - the JMX Server name of this MBean.


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.