org.objectweb.carol.util.configuration
Class CarolCurrentConfiguration

java.lang.Object
  extended byorg.objectweb.carol.util.configuration.CarolCurrentConfiguration

public class CarolCurrentConfiguration
extends java.lang.Object

Class CarolCurrentConfiguration For handling active configuration

Version:
1.0, 27/01/2004
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr), Jacques Cayuela (Jacques.Cayuela@bull.net)

Method Summary
static CarolCurrentConfiguration getCurrent()
          Method getCurrent
 javax.naming.Context getCurrentInitialContext()
          Get current protocol Initial Context
 javax.rmi.CORBA.PortableRemoteObjectDelegate getCurrentPortableRemoteObject()
          Get current protocol PROD
 java.lang.String getCurrentRMIName()
          Get current protocol RMI name
 java.util.Hashtable getNewContextHashtable(java.util.Hashtable env)
          Get the Context Hashtable
 java.util.Hashtable getPortableRemoteObjectHashtable()
          Get the Portable Remote Object Hashtable
 java.util.Properties getRMIProperties(java.lang.String name)
          Get RMI properties
 void setDefault()
          set the default protocol
 void setRMI(java.lang.String s)
          This method if for setting one rmi context
 java.lang.String toString()
          To string method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCurrent

public static CarolCurrentConfiguration getCurrent()
Method getCurrent

Returns:
CarolCurrentConfiguration return the current

setRMI

public void setRMI(java.lang.String s)
This method if for setting one rmi context

Parameters:
s - the rmi name

setDefault

public void setDefault()
set the default protocol


getPortableRemoteObjectHashtable

public java.util.Hashtable getPortableRemoteObjectHashtable()
Get the Portable Remote Object Hashtable

Returns:
Hashtable the hashtable of PROD

getNewContextHashtable

public java.util.Hashtable getNewContextHashtable(java.util.Hashtable env)
                                           throws javax.naming.NamingException
Get the Context Hashtable

Returns:
Hashtable the hashtable of Context
Throws:
javax.naming.NamingException

getCurrentPortableRemoteObject

public javax.rmi.CORBA.PortableRemoteObjectDelegate getCurrentPortableRemoteObject()
Get current protocol PROD

Returns:
PortableRemoteObjectDelegate the portable remote object

getCurrentInitialContext

public javax.naming.Context getCurrentInitialContext()
                                              throws javax.naming.NamingException
Get current protocol Initial Context

Returns:
InitialContext the initial Context
Throws:
javax.naming.NamingException

getRMIProperties

public java.util.Properties getRMIProperties(java.lang.String name)
                                      throws javax.naming.NamingException
Get RMI properties

Returns:
the corresponding RMI properties (null if RMI name not exists)
Throws:
javax.naming.NamingException

getCurrentRMIName

public java.lang.String getCurrentRMIName()
Get current protocol RMI name

Returns:
String the RMI name

toString

public java.lang.String toString()
To string method