org.objectweb.jonas.registry
Interface RegistryService

All Superinterfaces:
Service
All Known Implementing Classes:
CarolRegistryService

public interface RegistryService
extends Service

Registry Service interface.

Author:
Julien Lehembre (Libelis)

Method Summary
 List getActiveProtocolNames()
           
 String getDefaultProtocolName()
           
 int getExportedObjectPort(String protocolName)
           
 String getInitialContextFactoryName(String protocolName)
           
 URI getProviderURL(String protocolName)
           
 void setDefaultProtocol(String protocolName)
          Set the current protocol to the given parameter.
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

getActiveProtocolNames

List getActiveProtocolNames()
Returns:
Returns a List of currently active protocols names (rmi, irmi, iiop, ...).

getProviderURL

URI getProviderURL(String protocolName)
Parameters:
protocolName - protocol name
Returns:
Returns the given protocol provider URL.

getExportedObjectPort

int getExportedObjectPort(String protocolName)
Parameters:
protocolName - protocol name
Returns:
Returns the given protocol port where objects are exported. Returns 0 if unset.

getInitialContextFactoryName

String getInitialContextFactoryName(String protocolName)
Parameters:
protocolName - protocol name
Returns:
Returns the InitialContextFactory classname of the given protocol.

getDefaultProtocolName

String getDefaultProtocolName()
Returns:
Returns the default protocol name.

setDefaultProtocol

void setDefaultProtocol(String protocolName)
Set the current protocol to the given parameter.

Parameters:
protocolName - the new default protocol name.


Copyright © 2007 OW2 Consortium. All Rights Reserved.