org.objectweb.carol.util.configuration
Class CarolCurrentConfiguration
java.lang.Object
org.objectweb.carol.util.configuration.CarolCurrentConfiguration
public class CarolCurrentConfiguration
extends java.lang.Object
Class CarolCurrentConfiguration
For handling active
configuration
Version:
- Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
- Jacques Cayuela (Jacques.Cayuela@bull.net)
getCurrent
public static CarolCurrentConfiguration getCurrent()
Method getCurrent
- CarolCurrentConfiguration return the current
getCurrentInitialContext
public Context getCurrentInitialContext()
throws NamingException
Get current protocol Initial Context
- InitialContext the initial Context
getCurrentPortableRemoteObject
public PortableRemoteObjectDelegate getCurrentPortableRemoteObject()
Get current protocol PROD
- PortableRemoteObjectDelegate the portable remote object
getCurrentRMIName
public String getCurrentRMIName()
Get current protocol RMI name
- String the RMI name
getNewContextHashtable
public Hashtable getNewContextHashtable(Hashtable env)
throws NamingException
Get the Context Hashtable
- Hashtable the hashtable of Context
getPortableRemoteObjectHashtable
public Hashtable getPortableRemoteObjectHashtable()
Get the Portable Remote Object Hashtable
- Hashtable the hashtable of PROD
getRMIProperties
public Properties getRMIProperties(String name)
throws NamingException
Get RMI properties
- the corresponding RMI properties (null if RMI name not exists)
setDefault
public void setDefault()
set the default protocol
setRMI
public void setRMI(String s)
This method if for setting one rmi context
s
- the rmi name
toString
public String toString()
To string method