org.objectweb.jonas.jmx.vjadmin
Interface ManagementRepr

All Known Implementing Classes:
Mx4jManagementReprImpl, ManagementReprImpl

public interface ManagementRepr

Defines all the management operations invoked by Jadmin through the JonasManagementRepr class


Method Summary
 java.lang.Object getAttribute(javax.management.ObjectName on, java.lang.String attribute)
           
 javax.naming.Context getContext()
           
 java.lang.String getCurrentRMIConnectorName()
           
 java.lang.String getJonasNamingServiceURL()
           
 javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name)
           
 java.util.Set getRMIConnectorsNames()
           
 java.lang.Object invoke(javax.management.ObjectName on, java.lang.String operation, java.lang.Object[] param, java.lang.String[] signature)
           
 boolean isRegistered(javax.management.ObjectName on)
           
 java.util.Set queryNames(javax.management.ObjectName on)
           
 void resetCurrentRMIConnectorName()
          Set the currentRMIConnectorName to null
 void setAttribute(javax.management.ObjectName on, java.lang.String attribute, java.lang.Object value)
           
 void setCurrentRMIConnectorName(java.lang.String name)
          Set the currentRMIConnectorName to the specified value
 void setJonasNamingServiceURL(java.lang.String url)
          Sets the PROVIDER_URL property to the specified value.
 void setNamingEnvCtx(java.util.Properties env)
          Create a new naming context based on the given env. properties
 

Method Detail

isRegistered

public boolean isRegistered(javax.management.ObjectName on)
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
Parameters:
on - The ObjectName of the MBean of which the attribute is to be retrieved.
attribute - A String specifying the name of the attribute to be retrieved.
Returns:
The value of the attribute.

setAttribute

public void setAttribute(javax.management.ObjectName on,
                         java.lang.String attribute,
                         java.lang.Object value)
                  throws ManagementException
Parameters:
on - The ObjectName of the MBean of which the attribute is to be set.
attribute - A String specifying the name of the attribute to be set.
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
Parameters:
on -  

queryNames

public java.util.Set queryNames(javax.management.ObjectName on)
                         throws ManagementException
Returns:
A set containing the ObjectNames for the MBeans selected.

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name)
                                        throws ManagementException
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
Returns:
Context the current application context.

getCurrentRMIConnectorName

public java.lang.String getCurrentRMIConnectorName()
Returns:
String the name of the current RMI connector.

setCurrentRMIConnectorName

public void setCurrentRMIConnectorName(java.lang.String name)
                                throws java.lang.Exception
Set the currentRMIConnectorName to the specified value

resetCurrentRMIConnectorName

public void resetCurrentRMIConnectorName()
Set the currentRMIConnectorName to null

getRMIConnectorsNames

public java.util.Set getRMIConnectorsNames()
                                    throws javax.naming.NamingException
Returns:
Set a set containning all RMI connector names available in the current context.

getJonasNamingServiceURL

public java.lang.String getJonasNamingServiceURL()
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.

setNamingEnvCtx

public void setNamingEnvCtx(java.util.Properties env)
                     throws javax.naming.NamingException
Create a new naming context based on the given env. properties