edu.ucsb.adl.middleware.rmi
Class UnreferenceServiceImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--edu.ucsb.adl.middleware.rmi.UnreferenceServiceImpl
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, UnreferenceService

public final class UnreferenceServiceImpl
extends java.rmi.server.UnicastRemoteObject
implements UnreferenceService

Bridge between the RMI interface to the ADL unreference service and the unreference service itself.

Version:
$Header: /export/home/gjanee/middleware/edu/ucsb/adl/middleware/rmi/RCS/UnreferenceServiceImpl.java,v 1.1 2001/09/14 21:55:28 gjanee Exp $

$Log: UnreferenceServiceImpl.java,v $ Revision 1.1 2001/09/14 21:55:28 gjanee Initial revision

Author:
Greg Janée
Alexandria Digital Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
UnreferenceServiceImpl(java.lang.String configurationFile)
          Creates an UnreferenceServiceImpl.
 
Method Summary
protected  void finalize()
          Frees all resources held by the bridge.
 void performUnreferenceService(java.lang.String collection)
          Performs the ADL unreference service.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnreferenceServiceImpl

public UnreferenceServiceImpl(java.lang.String configurationFile)
                       throws InternalErrorException,
                              java.rmi.RemoteException
Creates an UnreferenceServiceImpl.

Parameters:
configurationFile - The filename of an ADL middleware configuration file.
Throws:
InternalErrorException - If the initialization of the service fails.
java.rmi.RemoteException - If an RMI error occurs.
Method Detail

performUnreferenceService

public void performUnreferenceService(java.lang.String collection)
                               throws MiddlewareException,
                                      java.rmi.RemoteException
Performs the ADL unreference service.

Specified by:
performUnreferenceService in interface UnreferenceService
Parameters:
collection - The local name of the collection to unreference, e.g., "adl_catalog".
Throws:
BadRequestException - If collection is not the local name of a remote collection.
NoAuthorizationException - If the request is valid but not allowed.
java.rmi.RemoteException - If an RMI error occurs.
InternalErrorException - If the request cannot otherwise be completed.
MiddlewareException

finalize

protected void finalize()
Frees all resources held by the bridge.

Overrides:
finalize in class java.lang.Object