org.objectweb.jonas.jmx.vjadmin
Class Mx4jManagementReprImpl
java.lang.Object
|
+--org.objectweb.jonas.jmx.vjadmin.Mx4jManagementReprImpl
- All Implemented Interfaces:
- ManagementRepr
- public class Mx4jManagementReprImpl
- extends java.lang.Object
- implements ManagementRepr
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mx4jManagementReprImpl
protected Mx4jManagementReprImpl()
isRegistered
public boolean isRegistered(javax.management.ObjectName on)
- Specified by:
isRegistered
in interface ManagementRepr
- Returns:
- True if the MBean is already registered in the MBean server, false otherwise or if an exception is catched.
getAttribute
public java.lang.Object getAttribute(javax.management.ObjectName on,
java.lang.String attribute)
throws ManagementException
- Specified by:
getAttribute
in interface ManagementRepr
- Parameters:
on
- The ObjectName of the MBean from which the attribute is to be retrieved.attribute
- A String specifying the name of the attribute to be retrieve.- Returns:
- The value of the attribute.
setAttribute
public void setAttribute(javax.management.ObjectName on,
java.lang.String attribute,
java.lang.Object value)
throws ManagementException
- Specified by:
setAttribute
in interface ManagementRepr
- Parameters:
on
- The ObjectName of the MBean within which the attribute is to be set.attribute
- A String specifying the name of the attribute to be retrieve.value
- The value to set to the attribute.
invoke
public java.lang.Object invoke(javax.management.ObjectName on,
java.lang.String operation,
java.lang.Object[] param,
java.lang.String[] signature)
throws ManagementException
- Specified by:
invoke
in interface ManagementRepr
- Parameters:
on
-
queryNames
public java.util.Set queryNames(javax.management.ObjectName on)
throws ManagementException
- Specified by:
queryNames
in interface ManagementRepr
- Returns:
- A set containing the ObjectNames for the MBeans selected.
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name)
throws ManagementException
- Specified by:
getMBeanInfo
in interface ManagementRepr
- Returns:
- An instance of MBeanInfo allowing the retrieval of all
attributes and operations of this MBean.
getContext
public javax.naming.Context getContext()
throws javax.naming.NamingException
- Specified by:
getContext
in interface ManagementRepr
- Returns:
- Context the current application context, create an initial context
if there is no current context.
getCurrentRMIConnectorName
public java.lang.String getCurrentRMIConnectorName()
- Specified by:
getCurrentRMIConnectorName
in interface ManagementRepr
- Returns:
- String the name of the current RMI connector.
Return null if no RMI connector is available.
setCurrentRMIConnectorName
public void setCurrentRMIConnectorName(java.lang.String name)
throws java.lang.Exception
- Set the currentRMIConnectorName to the specified value
- Specified by:
setCurrentRMIConnectorName
in interface ManagementRepr
resetCurrentRMIConnectorName
public void resetCurrentRMIConnectorName()
- Set the currentRMIConnectorName to null
- Specified by:
resetCurrentRMIConnectorName
in interface ManagementRepr
getRMIConnectorsNames
public java.util.Set getRMIConnectorsNames()
throws javax.naming.NamingException
- Specified by:
getRMIConnectorsNames
in interface ManagementRepr
- Returns:
- Set a set containning all RMI connector names available in the current context.
getJonasNamingServiceURL
public java.lang.String getJonasNamingServiceURL()
- Specified by:
getJonasNamingServiceURL
in interface ManagementRepr
- Returns:
- String the value of the PROVIDER_URL property in the current context.
setJonasNamingServiceURL
public void setJonasNamingServiceURL(java.lang.String url)
throws javax.naming.NamingException
- Sets the PROVIDER_URL property to the specified value.
- Specified by:
setJonasNamingServiceURL
in interface ManagementRepr
setNamingEnvCtx
public void setNamingEnvCtx(java.util.Properties env)
throws javax.naming.NamingException
- Create a new naming context based on the given env. properties
- Specified by:
setNamingEnvCtx
in interface ManagementRepr
- Parameters:
env
- properties to create a new naming context