org.exolab.core.util
Class RmiRegistryService

java.lang.Object
  extended by org.exolab.core.service.Service
      extended by org.exolab.core.util.RmiRegistryService
All Implemented Interfaces:
java.io.Serializable, Serviceable

public class RmiRegistryService
extends Service

RmiRegistryService is a service that starts an embedded RMI registry.

Version:
$Revision: 1.8 $ $Date: 2003/06/09 06:28:42 $
Author:
romefort
See Also:
BasicService, Serialized Form

Field Summary
static java.lang.String DEFAULT_NAME
          The default service name
static int DEFAULT_PORT
          The default registry port
 
Constructor Summary
RmiRegistryService()
          Construct a service.
RmiRegistryService(int port)
          Construct the service to run on the specified port.
RmiRegistryService(java.lang.String name, int port)
          Construct an instance of this service with the specified name.
 
Method Summary
 int getPort()
          Return the port that the registry is listening on
 
Methods inherited from class org.exolab.core.service.Service
getName, getState, restart, setState, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
The default service name

See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
The default registry port

See Also:
Constant Field Values
Constructor Detail

RmiRegistryService

public RmiRegistryService()
                   throws ServiceException
Construct a service. If the service cannot be started then throw a ServiceException

Throws:
ServiceException

RmiRegistryService

public RmiRegistryService(int port)
                   throws ServiceException
Construct the service to run on the specified port.

Parameters:
port - the port number
Throws:
ServiceException - if the registry cannot be created for the port

RmiRegistryService

public RmiRegistryService(java.lang.String name,
                          int port)
                   throws ServiceException
Construct an instance of this service with the specified name.

Parameters:
name - the name of the service
port - the port number
Throws:
ServiceException - if the registry cannot be created for the port
Method Detail

getPort

public int getPort()
Return the port that the registry is listening on

Returns:
the registry port


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.