org.objectweb.easybeans.server.ra
Class EasyBeansResourceAdapter.EmbeddedStarter

java.lang.Object
  extended by java.lang.Thread
      extended by org.objectweb.easybeans.server.ra.EasyBeansResourceAdapter.EmbeddedStarter
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
EasyBeansResourceAdapter

public class EasyBeansResourceAdapter.EmbeddedStarter
extends java.lang.Thread

This inner class will wait until the JOnAS server is ready and start the embedded server.

Author:
Florent Benoit

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  JLog logger
          Logger.
private static int SLEEP_TIME
          Sleep time for this waiter thread (1 second).
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
EasyBeansResourceAdapter.EmbeddedStarter()
           
 
Method Summary
private  boolean jonasIsReady()
           
 void run()
          Wait until JOnAS is started.
Then, start embedded object.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SLEEP_TIME

private static final int SLEEP_TIME
Sleep time for this waiter thread (1 second).

See Also:
Constant Field Values

logger

private JLog logger
Logger.

Constructor Detail

EasyBeansResourceAdapter.EmbeddedStarter

public EasyBeansResourceAdapter.EmbeddedStarter()
Method Detail

run

public void run()
Wait until JOnAS is started.
Then, start embedded object.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

jonasIsReady

private boolean jonasIsReady()
Returns:
true if the JOnAS server is ready, else false