org.apache.geronimo.remoting.transport.async
Class Registry

java.lang.Object
  extended byorg.apache.geronimo.remoting.transport.async.Registry

public class Registry
extends Object

An application wide registry to hold objects that must be shared accross application components.

Version:
$Revision: 1.6 $ $Date: 2004/03/10 09:59:20 $

Field Summary
protected  EDU.oswego.cs.dl.util.concurrent.ClockDaemon clockDaemon
          Manages the thread that can used to schedule short running tasks in the future.
static Registry instance
           
static int MAX_CONNECTION_POOL_SIZE
          The maximum number of open connections that are allowed per pool.
 boolean MOCK_APPLET_SECURITY
           
static long REQUEST_TIMEOUT
          The amount of time that must pass before a request is considered timedout.
static TransportContext transportContext
           
 
Constructor Summary
Registry()
           
 
Method Summary
 org.apache.geronimo.remoting.transport.async.RemoteRef exportObject(Object object)
           
 EDU.oswego.cs.dl.util.concurrent.ClockDaemon getClockDaemon()
           
 AbstractServer getDefaultServer()
          Sets the application wide server.
 AbstractServer getServerForClientRequest()
          Gets the system wide AbstractServer.
 EDU.oswego.cs.dl.util.concurrent.Executor getWorkManager()
          Provides a thread pool that can be shared accros components.
protected  Object importObject(org.apache.geronimo.remoting.transport.async.RemoteRef ref)
           
 void setDefaultServer(AbstractServer server)
          Sets the application wide server.
 boolean unexportObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_TIMEOUT

public static final long REQUEST_TIMEOUT
The amount of time that must pass before a request is considered timedout.


MAX_CONNECTION_POOL_SIZE

public static final int MAX_CONNECTION_POOL_SIZE
The maximum number of open connections that are allowed per pool. A new pool is allocated to each sever this vm connects to.


instance

public static final Registry instance

clockDaemon

protected EDU.oswego.cs.dl.util.concurrent.ClockDaemon clockDaemon
Manages the thread that can used to schedule short running tasks in the future.


MOCK_APPLET_SECURITY

public boolean MOCK_APPLET_SECURITY

transportContext

public static final TransportContext transportContext
Constructor Detail

Registry

public Registry()
Method Detail

getWorkManager

public EDU.oswego.cs.dl.util.concurrent.Executor getWorkManager()
Provides a thread pool that can be shared accros components.


getClockDaemon

public EDU.oswego.cs.dl.util.concurrent.ClockDaemon getClockDaemon()
Returns:

getServerForClientRequest

public AbstractServer getServerForClientRequest()
Gets the system wide AbstractServer. If a AbstractServer has not been registed explicitly, It attempts to create an AsynchChannelServer that listens on an annonymous port. Returns a BackChannelServer if a normal server could not be bound.


setDefaultServer

public void setDefaultServer(AbstractServer server)
Sets the application wide server. This gets called when running in the sever and the server is explicity configured.

Parameters:
server -

getDefaultServer

public AbstractServer getDefaultServer()
Sets the application wide server. This gets called when running in the sever and the server is explicity configured.


exportObject

public org.apache.geronimo.remoting.transport.async.RemoteRef exportObject(Object object)
                                                                    throws IOException
Returns:
Throws:
IOException

unexportObject

public boolean unexportObject(Object object)

importObject

protected Object importObject(org.apache.geronimo.remoting.transport.async.RemoteRef ref)
Returns:


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.