org.objectweb.carol.util.multi
Class ProtocolCurrent

java.lang.Object
  |
  +--org.objectweb.carol.util.multi.ProtocolCurrent

public class ProtocolCurrent
extends java.lang.Object

Class ProtocolCurrentFor handling the association Rmi/ Thread

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Method Summary
 java.util.Hashtable getContextHashtable()
          Get the Context Hashtable
static ProtocolCurrent 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 getPortableRemoteObjectHashtable()
          Get the Portable Remote Object Hashtable
 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 ProtocolCurrent getCurrent()
Method getCurrent

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

getContextHashtable

public java.util.Hashtable getContextHashtable()
Get the Context Hashtable

Returns:
Hashtable the hashtable of Context

getCurrentPortableRemoteObject

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

Returns:
PortableRemoteObjectDelegate the portable remote object

getCurrentInitialContext

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

Returns:
InitialContext the initial Context

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

Overrides:
toString in class java.lang.Object