org.objectweb.carol.util.configuration
Interface ProtocolConfiguration

All Known Implementing Classes:
ProtocolConfigurationImpl

public interface ProtocolConfiguration

This interface defines an rmi configuration that is used by Carol.

Author:
Florent Benoit

Method Summary
 void configure(java.util.Properties properties)
          Configure this configuration with a given properties object
 java.lang.String getHost()
           
 javax.naming.Context getInitialContext(java.util.Hashtable env)
          Build an initial context with the given environment using our configuration
 java.lang.String getName()
           
 int getPort()
           
 java.util.Properties getProperties()
           
 Protocol getProtocol()
           
 java.lang.String getProviderURL()
           
 

Method Detail

getProtocol

Protocol getProtocol()
Returns:
the protocol used by this configuration.

getName

java.lang.String getName()
Returns:
the name of this configuration

getInitialContext

javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Build an initial context with the given environment using our configuration

Parameters:
env - parameters for the initial context
Returns:
an InitialContext
Throws:
javax.naming.NamingException - if the context is not created

getProperties

java.util.Properties getProperties()
Returns:
properties of this configuration

getHost

java.lang.String getHost()
Returns:
the host.

getPort

int getPort()
Returns:
the port for this protocol name service

getProviderURL

java.lang.String getProviderURL()
Returns:
the Provider URL attribute

configure

void configure(java.util.Properties properties)
               throws ConfigurationException
Configure this configuration with a given properties object

Parameters:
properties - given properties
Throws:
ConfigurationException - if the given config is invalid