org.ow2.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<String> getActiveProtocolNames()
           
 String getDefaultProtocolName()
           
 int getExportedObjectPort(String protocolName)
           
 String getInitialContextFactoryName(String protocolName)
           
 URI getProviderURL(String protocolName)
           
 InitialContext getRegistryContext()
          Gets the initial context.
 void setDefaultProtocol(String protocolName)
          Set the current protocol to the given parameter.
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

getActiveProtocolNames

List<String> 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.

getRegistryContext

InitialContext getRegistryContext()
Gets the initial context.

Returns:
the initial context


Copyright © 2010 OW2 Consortium. All Rights Reserved.