org.sapia.ubik.rmi.server.transport.socket
Class SocketRmiServerThreadPool

java.lang.Object
  extended by org.sapia.ubik.net.Pool
      extended by org.sapia.ubik.net.ThreadPool
          extended by org.sapia.ubik.rmi.server.transport.socket.SocketRmiServerThreadPool

public class SocketRmiServerThreadPool
extends ThreadPool

Implements a pool of SocketRmiServerThreads in a SocketRmiServer instance.

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
 
Fields inherited from class org.sapia.ubik.net.Pool
_currentCount, _lastUsageTime, _maxSize, _objects, NO_MAX, NO_TIME_OUT
 
Constructor Summary
SocketRmiServerThreadPool(java.lang.String name, boolean daemon, int maxSize)
          Constructor for RMIServerThreadPool.
 
Method Summary
protected  PooledThread newThread()
          This method must be overridden by inheriting classes; the returned thread must not be started by this method; the pool implements this behavior.
 
Methods inherited from class org.sapia.ubik.net.ThreadPool
disableStats, doNewObject, enabledStats, getDurationStat, getRpsStat, getThreadCount, onAcquire, onRelease, shutdown, shutdown
 
Methods inherited from class org.sapia.ubik.net.Pool
acquire, acquire, acquireCreate, cleanup, fill, getCreatedCount, getLastUsageTime, release, shrinkTo, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketRmiServerThreadPool

public SocketRmiServerThreadPool(java.lang.String name,
                                 boolean daemon,
                                 int maxSize)
Constructor for RMIServerThreadPool.

Parameters:
name -
daemon -
maxSize -
Method Detail

newThread

protected PooledThread newThread()
                          throws java.lang.Exception
Description copied from class: ThreadPool
This method must be overridden by inheriting classes; the returned thread must not be started by this method; the pool implements this behavior.

Specified by:
newThread in class ThreadPool
Returns:
a PooledThread instance.
Throws:
java.lang.Exception
See Also:
ThreadPool.newThread()


Copyright © 2010 Sapia OSS. All Rights Reserved.