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

java.lang.Object
  extended by java.lang.Thread
      extended by org.sapia.ubik.net.PooledThread
          extended by org.sapia.ubik.rmi.server.transport.socket.SocketRmiServerThread
All Implemented Interfaces:
java.lang.Runnable

public class SocketRmiServerThread
extends PooledThread

Implements a thread 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.sapia.ubik.net.PooledThread
_duration, _tps
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
protected  void doExec(java.lang.Object task)
          Executes the "task" passed in, which is an arbitrary application-specific unit of work that this method performs.
protected  void handleExecutionException(java.lang.Exception e)
           
 void interrupt()
           
 
Methods inherited from class org.sapia.ubik.net.PooledThread
exec, run, shutdown
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

interrupt

public void interrupt()
Overrides:
interrupt in class java.lang.Thread
See Also:
Thread.interrupt()

doExec

protected void doExec(java.lang.Object task)
Description copied from class: PooledThread
Executes the "task" passed in, which is an arbitrary application-specific unit of work that this method performs. In fact, it will probably be, in most cases, some data on which this method's implementation will perform some actions. If the object passed in is eventually shared between multiple threads, it should provide a proper thread-safe behavior.

This template method is to be implemented by subclasses.

Specified by:
doExec in class PooledThread
See Also:
PooledThread.doExec(Object)

handleExecutionException

protected void handleExecutionException(java.lang.Exception e)
Specified by:
handleExecutionException in class PooledThread


Copyright © 2010 Sapia OSS. All Rights Reserved.