org.objectweb.jonas.jmx.ConnectorFactory Class Reference

Collaboration diagram for org.objectweb.jonas.jmx.ConnectorFactory:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

Context getContext () throws javax.naming.NamingException
String getCurrentRMIConnectorName ()
void setCurrentRMIConnectorName (String name) throws NamingException
void resetCurrentRMIConnectorName ()
Set getRMIConnectorsNames () throws javax.naming.NamingException
String getJonasNamingServiceURL ()
void setNamingEnvCtx (Properties env) throws javax.naming.NamingException
void setJonasNamingServiceURL (String url) throws javax.naming.NamingException
RMIConnector getRMIConnector () throws NamingException
void lookupRMIConnector () throws NamingException

Detailed Description

Manages the current "jonas provided" RMIConnector used to communicate with the MBEanServer.
Author:
Bruno Michel and Guillaume Riviere

Definition at line 48 of file ConnectorFactory.java.


Member Function Documentation

Context org.objectweb.jonas.jmx.ConnectorFactory.getContext  )  throws javax.naming.NamingException [static]
 

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

Definition at line 59 of file ConnectorFactory.java.

String org.objectweb.jonas.jmx.ConnectorFactory.getCurrentRMIConnectorName  )  [static]
 

Returns:
String the name of the current RMI connector. If no RMI connector is selected, returns the first RMI connector found with the getRMIConnectorsNames method. Return null if no RMI connector is available.

Definition at line 72 of file ConnectorFactory.java.

String org.objectweb.jonas.jmx.ConnectorFactory.getJonasNamingServiceURL  )  [static]
 

Returns:
String the value of the PROVIDER_URL property in the current context. If a javax.naming.NamingException is catch, the exception message is returned.

Definition at line 130 of file ConnectorFactory.java.

RMIConnector org.objectweb.jonas.jmx.ConnectorFactory.getRMIConnector  )  throws NamingException [static]
 

Returns:
RMIConnector the current RMI connector, if null, lookup for a new one.

Definition at line 183 of file ConnectorFactory.java.

Set org.objectweb.jonas.jmx.ConnectorFactory.getRMIConnectorsNames  )  throws javax.naming.NamingException [static]
 

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

Definition at line 107 of file ConnectorFactory.java.

void org.objectweb.jonas.jmx.ConnectorFactory.lookupRMIConnector  )  throws NamingException [static]
 

Lookup for the RMI connector registered with the currentRMIConnectorName JNDI name.

Definition at line 193 of file ConnectorFactory.java.

void org.objectweb.jonas.jmx.ConnectorFactory.resetCurrentRMIConnectorName  )  [static]
 

Set the currentRMIConnectorName to null

Definition at line 100 of file ConnectorFactory.java.

void org.objectweb.jonas.jmx.ConnectorFactory.setCurrentRMIConnectorName String  name  )  throws NamingException [static]
 

Set the currentRMIConnectorName to the specified value, then lookup for the RMI connector

Definition at line 91 of file ConnectorFactory.java.

void org.objectweb.jonas.jmx.ConnectorFactory.setJonasNamingServiceURL String  url  )  throws javax.naming.NamingException [static]
 

Sets the PROVIDER_URL property to the specified value. Then, sets the current RMI connector to null.

Definition at line 151 of file ConnectorFactory.java.

void org.objectweb.jonas.jmx.ConnectorFactory.setNamingEnvCtx Properties  env  )  throws javax.naming.NamingException [static]
 

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

Parameters:
env properties to create a new naming context

Definition at line 142 of file ConnectorFactory.java.


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