org.apache.avalon.activation.appliance.impl
Class BlockThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.avalon.activation.appliance.impl.BlockThread
All Implemented Interfaces:
Runnable

public class BlockThread
extends Thread

The DefaultBlockThread provides support for the execution of a block.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/10 08:56:10 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BlockThread(Block block)
          Creation of a block thread.
 
Method Summary
 void decommission()
          Set the termination flag to true.
 Throwable getError()
          Returns an error contition that may occur during startup.
 void run()
          Thread execution during which the component managed by the block will be deployed.
 boolean started()
          Return the started state of the block thread.
 boolean stopped()
          Return the stoppped state of the block thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockThread

public BlockThread(Block block)
            throws Exception
Creation of a block thread.

Parameters:
block - the block
Method Detail

run

public void run()
Thread execution during which the component managed by the block will be deployed.


decommission

public void decommission()
Set the termination flag to true.


started

public boolean started()
Return the started state of the block thread.


stopped

public boolean stopped()
Return the stoppped state of the block thread.


getError

public Throwable getError()
Returns an error contition that may occur during startup.

Returns:
the error or null if no error encountered


Copyright © Apache Software Foundation. All Rights Reserved.