org.objectweb.carol.util.configuration
Class RMIConfiguration

java.lang.Object
  |
  +--org.objectweb.carol.util.configuration.RMIConfiguration

public class RMIConfiguration
extends java.lang.Object


Field Summary
 java.lang.String rmiName
          RMI Architecture name
 
Constructor Summary
RMIConfiguration(java.lang.String name, java.util.Properties rmiProperties, java.util.Properties jndiProperties)
          Constructor, This constructor make a validation of the properties
 
Method Summary
 void activate()
          activate this rmi
 void desactivate()
          desactivate this rmi
 java.util.Properties getJndiProperties()
           
 java.lang.String getName()
           
 java.lang.String getNameService()
           
 int getPort()
           
 java.lang.String getPro()
           
 boolean isActivate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rmiName

public java.lang.String rmiName
RMI Architecture name

Constructor Detail

RMIConfiguration

public RMIConfiguration(java.lang.String name,
                        java.util.Properties rmiProperties,
                        java.util.Properties jndiProperties)
                 throws RMIConfigurationException
Constructor, This constructor make a validation of the properties

Parameters:
name - the RMI architecture name
rmiProperties - The rmi properties, can not be null
jndiProperties - The jndi properties, should be null if the jndi properties informations are set in the rmiProperties
Throws:
RMIConfigurationException - if one of the properties below missing: - - to be set (see the carol specifications) -
Method Detail

getName

public java.lang.String getName()
Returns:
name

activate

public void activate()
activate this rmi


desactivate

public void desactivate()
desactivate this rmi


isActivate

public boolean isActivate()
Returns:
boolean for activation

getPro

public java.lang.String getPro()
Returns:
Portable Remote Delegate for this protocol

getJndiProperties

public java.util.Properties getJndiProperties()
Returns:
the jndi properties for this protocol

getPort

public int getPort()
Returns:
the jndi properties port for this protocol name service -1 if the port is not configured

getNameService

public java.lang.String getNameService()
Returns:
the name service class name