org.objectweb.jonas.jmx.ManagementReprImpl Class Reference

Inherits org.objectweb.jonas.jmx.ManagementRepr.

Inheritance diagram for org.objectweb.jonas.jmx.ManagementReprImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.jmx.ManagementReprImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

boolean isRegistered (ObjectName on)
Object getAttribute (ObjectName on, String attribute) throws ManagementException
AttributeList getAttributes (ObjectName on, String[] attributes) throws ManagementException
void setAttribute (ObjectName on, String attribute, Object value) throws ManagementException
AttributeList setAttributes (ObjectName on, AttributeList attributes) throws ManagementException
Object invoke (ObjectName on, String operation, Object[] param, String[] signature) throws ManagementException
java.util.Set queryNames (ObjectName on) throws ManagementException
MBeanInfo getMBeanInfo (ObjectName name) throws ManagementException
Context getContext () throws javax.naming.NamingException
String getCurrentRMIConnectorName ()
void setCurrentRMIConnectorName (String name) throws Exception
void resetCurrentRMIConnectorName ()
Set getRMIConnectorsNames () throws javax.naming.NamingException
String getJonasNamingServiceURL ()
void setJonasNamingServiceURL (String url) throws javax.naming.NamingException
void setNamingEnvCtx (Properties env) throws javax.naming.NamingException

Detailed Description

Provides a management representative to be used by JMX based management applications.
Author:
Adriana Danes

Definition at line 49 of file ManagementReprImpl.java.


Member Function Documentation

Object org.objectweb.jonas.jmx.ManagementReprImpl.getAttribute ObjectName  on,
String  attribute
throws ManagementException
 

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.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 76 of file ManagementReprImpl.java.

AttributeList org.objectweb.jonas.jmx.ManagementReprImpl.getAttributes ObjectName  on,
String[]  attributes
throws ManagementException
 

Parameters:
on The ObjectName of the MBean of which attribute are to be retrieved.
attributes A list of the attributes to be retrieved.
Returns:
Thelist of retrieved attributes.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 92 of file ManagementReprImpl.java.

Context org.objectweb.jonas.jmx.ManagementReprImpl.getContext  )  throws javax.naming.NamingException
 

Returns:
Context the current application context, create an initial context if there is no current context.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 235 of file ManagementReprImpl.java.

String org.objectweb.jonas.jmx.ManagementReprImpl.getCurrentRMIConnectorName  ) 
 

Returns:
String the name of the current RMI connector. Return null if no RMI connector is available.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 245 of file ManagementReprImpl.java.

String org.objectweb.jonas.jmx.ManagementReprImpl.getJonasNamingServiceURL  ) 
 

Returns:
String the value of the PROVIDER_URL property in the current context.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 279 of file ManagementReprImpl.java.

MBeanInfo org.objectweb.jonas.jmx.ManagementReprImpl.getMBeanInfo ObjectName  name  )  throws ManagementException
 

Returns:
An instance of MBeanInfo allowing the retrieval of all attributes and operations of this MBean.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 217 of file ManagementReprImpl.java.

Set org.objectweb.jonas.jmx.ManagementReprImpl.getRMIConnectorsNames  )  throws javax.naming.NamingException
 

Returns:
Set a set containning all RMI connector names available in the current context.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 270 of file ManagementReprImpl.java.

Object org.objectweb.jonas.jmx.ManagementReprImpl.invoke ObjectName  on,
String  operation,
Object[]  param,
String[]  signature
throws ManagementException
 

Parameters:
on 

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 143 of file ManagementReprImpl.java.

boolean org.objectweb.jonas.jmx.ManagementReprImpl.isRegistered ObjectName  on  ) 
 

Returns:
True if the MBean is already registered in the MBean server, false otherwise or if an exception is catched.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 63 of file ManagementReprImpl.java.

java.util.Set org.objectweb.jonas.jmx.ManagementReprImpl.queryNames ObjectName  on  )  throws ManagementException
 

Returns:
A set containing the ObjectNames for the MBeans selected.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 199 of file ManagementReprImpl.java.

void org.objectweb.jonas.jmx.ManagementReprImpl.resetCurrentRMIConnectorName  ) 
 

Set the currentRMIConnectorName to null

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 262 of file ManagementReprImpl.java.

void org.objectweb.jonas.jmx.ManagementReprImpl.setAttribute ObjectName  on,
String  attribute,
Object  value
throws ManagementException
 

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.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 108 of file ManagementReprImpl.java.

AttributeList org.objectweb.jonas.jmx.ManagementReprImpl.setAttributes ObjectName  on,
AttributeList  attributes
throws ManagementException
 

Parameters:
on The ObjectName of the MBean of which the attribute is to be set.
attributes A list of attributes: The identification of the attribute to be set and the value it is to be set to
Returns:
The list of attributes that were set, with their new values.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 129 of file ManagementReprImpl.java.

void org.objectweb.jonas.jmx.ManagementReprImpl.setCurrentRMIConnectorName String  name  )  throws Exception
 

Set the currentRMIConnectorName to the specified value

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 253 of file ManagementReprImpl.java.

void org.objectweb.jonas.jmx.ManagementReprImpl.setJonasNamingServiceURL String  url  )  throws javax.naming.NamingException
 

Sets the PROVIDER_URL property to the specified value.

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 287 of file ManagementReprImpl.java.

void org.objectweb.jonas.jmx.ManagementReprImpl.setNamingEnvCtx Properties  env  )  throws javax.naming.NamingException
 

Create a new naming context based on the given env. properties

Parameters:
env properties to create a new naming context

Implements org.objectweb.jonas.jmx.ManagementRepr.

Definition at line 297 of file ManagementReprImpl.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:02 2005 for JOnAS by  doxygen 1.3.9.1