|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.carol.util.configuration.CommunicationConfiguration
Field Summary | |
static java.lang.String |
CAROL_FILE_NAME
rmi properties file name |
static java.lang.String |
JNDI_FILE_NAME
jndi properties file name |
Constructor Summary | |
CommunicationConfiguration()
Constructor Read the communication context |
Method Summary | |
static void |
activateRMI(java.lang.String rmiName)
This method activate a rmi architecture with is name. |
static void |
desactivateRMI(java.lang.String rmiName)
This method desactivate a rmi architecture with is name. |
static java.util.Hashtable |
getAllRMIConfiguration()
Get all RMI environment |
static java.lang.String |
getConfigurationString()
public static toString method |
static RMIConfiguration |
getDefaultProtocol()
Get the default rmi |
static RMIConfiguration |
getRMIConfiguration(java.lang.String name)
Get a RMI environment with his architecture name |
static void |
loadCarolConfiguration()
This method read all the the orbX.properties, jndiX.properties file for protocols configurations |
static void |
loadCarolConfiguration(java.util.Properties rmiProps,
java.util.Properties jndiProps)
This method read a rmi configuration from 2 Properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CAROL_FILE_NAME
public static final java.lang.String JNDI_FILE_NAME
Constructor Detail |
public CommunicationConfiguration() throws RMIConfigurationException
Method Detail |
public static RMIConfiguration getRMIConfiguration(java.lang.String name) throws RMIConfigurationException
RMIConfigurationException
public static java.util.Hashtable getAllRMIConfiguration() throws RMIConfigurationException
RMIConfigurationException
public static RMIConfiguration getDefaultProtocol() throws RMIConfigurationException
RMIConfigurationException
public static void loadCarolConfiguration() throws RMIConfigurationException
RMIConfigurationException
- if a problem occurs in the configuration loadingpublic static void loadCarolConfiguration(java.util.Properties rmiProps, java.util.Properties jndiProps) throws RMIConfigurationException
rmiProps
- The orbX environment (can be null)jndiProps
- The jndiX environment (can be null)
RMIConfigurationException
- if a there is a problem with those environment (field missing for example)public static void activateRMI(java.lang.String rmiName) throws RMIConfigurationException
RMIConfigurationException
- if a the carol configuration is not loaded (by the loadCarolConfiguration method)
RMIConfigurationException
- if the rmi name doesn't exist in the carol configurationpublic static void desactivateRMI(java.lang.String rmiName) throws RMIConfigurationException
RMIConfigurationException
- if a the carol configuration is not loaded (by the loadCarolConfiguration method)
RMIConfigurationException
- if the rmi name doesn't exist in the carol configurationpublic static java.lang.String getConfigurationString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |