org.sapia.ubik.rmi.server
Class ServerRuntime

java.lang.Object
  extended by org.sapia.ubik.rmi.server.ServerRuntime

public class ServerRuntime
extends java.lang.Object

Implements the server-side behavior of RMI.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Field Summary
 MultiDispatcher dispatcher
          The dispatcher of events destined to be intercepted by Interceptor instances.
 ServerGC gc
          The object implementing the server-side distributed GC mechanism.
 ObjectTable objectTable
          Holds OID-to-object mappings.
 RMICommandProcessor processor
          The processor handling incoming RMICommand instances.
 ServerTable server
          The single Server held by this instance.
 
Method Summary
 void addInterceptor(java.lang.Class eventClass, Interceptor it)
          Adds an interceptor of server-side events to this instance.
 void dispatchEvent(Event event)
          Dispatches the given event to the underlying server-side interceptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectTable

public final ObjectTable objectTable
Holds OID-to-object mappings. Keeps distributed object references so that the latter are spared from the VM GC while remote applications might still access to the said references.


dispatcher

public final MultiDispatcher dispatcher
The dispatcher of events destined to be intercepted by Interceptor instances. Dispatches server-side events. This mechanism can conveniently be used by client apps to dispatch their own custom events.


gc

public final ServerGC gc
The object implementing the server-side distributed GC mechanism.


processor

public final RMICommandProcessor processor
The processor handling incoming RMICommand instances.

See Also:
RMICommand

server

public final ServerTable server
The single Server held by this instance.

Method Detail

addInterceptor

public void addInterceptor(java.lang.Class eventClass,
                           Interceptor it)
                    throws InvalidInterceptorException
Adds an interceptor of server-side events to this instance.

Throws:
InvalidInterceptorException
See Also:
Interceptor, MultiDispatcher.addInterceptor(Class, Interceptor)

dispatchEvent

public void dispatchEvent(Event event)
Dispatches the given event to the underlying server-side interceptors.

See Also:
MultiDispatcher.dispatch(Event)


Copyright © 2010 Sapia OSS. All Rights Reserved.