| java.lang.Object org.objectweb.jonas.jmx.ConnectorFactory
ConnectorFactory | public class ConnectorFactory (Code) | | Manages the current "jonas provided" RMIConnector used to communicate with the MBEanServer.
author: Bruno Michel and Guillaume Riviere |
getCurrentRMIConnectorName | public static String getCurrentRMIConnectorName()(Code) | | String the name of the current RMI connector.If no RMI connector is selected, returns the first RMI connectorfound with the getRMIConnectorsNames method.Return null if no RMI connector is available. |
getJonasNamingServiceURL | public static String getJonasNamingServiceURL()(Code) | | String the value of the PROVIDER_URL property in the current context.If a javax.naming.NamingException is catch, the exception message is returned. |
lookupRMIConnector | public static void lookupRMIConnector() throws NamingException(Code) | | Lookup for the RMI connector registered with the currentRMIConnectorName JNDI name.
|
resetCurrentRMIConnectorName | public static void resetCurrentRMIConnectorName()(Code) | | Set the currentRMIConnectorName to null
|
setCurrentRMIConnectorName | public static void setCurrentRMIConnectorName(String name) throws NamingException(Code) | | Set the currentRMIConnectorName to the specified value, then lookup for the RMI connector
|
setJonasNamingServiceURL | public static void setJonasNamingServiceURL(String url) throws javax.naming.NamingException(Code) | | Sets the PROVIDER_URL property to the specified value. Then, sets the current RMI connector to null.
|
setNamingEnvCtx | public static void setNamingEnvCtx(Properties env) throws javax.naming.NamingException(Code) | | Create a new naming context based on the given env. properties
Parameters: env - properties to create a new naming context |
|
|