org.objectweb.carol.util.configuration

Class CarolCurrentConfiguration


public class CarolCurrentConfiguration
extends java.lang.Object

Class CarolCurrentConfiguration For handling active configuration

Version:
1.0, 27/01/2004

Authors:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
Jacques Cayuela (Jacques.Cayuela@bull.net)

Method Summary

static CarolCurrentConfiguration
getCurrent()
Method getCurrent
Context
getCurrentInitialContext()
Get current protocol Initial Context
PortableRemoteObjectDelegate
getCurrentPortableRemoteObject()
Get current protocol PROD
String
getCurrentRMIName()
Get current protocol RMI name
Hashtable
getNewContextHashtable(Hashtable env)
Get the Context Hashtable
Hashtable
getPortableRemoteObjectHashtable()
Get the Portable Remote Object Hashtable
Properties
getRMIProperties(String name)
Get RMI properties
void
setDefault()
set the default protocol
void
setRMI(String s)
This method if for setting one rmi context
String
toString()
To string method

Method Details

getCurrent

public static CarolCurrentConfiguration getCurrent()
Method getCurrent

Returns:
CarolCurrentConfiguration return the current


getCurrentInitialContext

public Context getCurrentInitialContext()
            throws NamingException
Get current protocol Initial Context

Returns:
InitialContext the initial Context


getCurrentPortableRemoteObject

public PortableRemoteObjectDelegate getCurrentPortableRemoteObject()
Get current protocol PROD

Returns:
PortableRemoteObjectDelegate the portable remote object


getCurrentRMIName

public String getCurrentRMIName()
Get current protocol RMI name

Returns:
String the RMI name


getNewContextHashtable

public Hashtable getNewContextHashtable(Hashtable env)
            throws NamingException
Get the Context Hashtable

Returns:
Hashtable the hashtable of Context


getPortableRemoteObjectHashtable

public Hashtable getPortableRemoteObjectHashtable()
Get the Portable Remote Object Hashtable

Returns:
Hashtable the hashtable of PROD


getRMIProperties

public Properties getRMIProperties(String name)
            throws NamingException
Get RMI properties

Returns:
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

Parameters:
s - the rmi name


toString

public String toString()
To string method