eu.xtreemos.xosd.localallocmgr.frontend
Class Executor

java.lang.Object
  extended by java.lang.Thread
      extended by eu.xtreemos.xosd.localallocmgr.frontend.Executor
All Implemented Interfaces:
java.lang.Runnable

public class Executor
extends java.lang.Thread

translates the request command into something that can be done with the time-table. logs actions, TODO: log, remember errors

Author:
urosjovanovic

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  ResourceDirectory rdir
           
private  RequestQueue rqLink
           
private static int SLEEP_TIME
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Executor(RequestQueue rq, ResourceDirectory rdir)
           
 
Method Summary
 boolean execute(Request req)
           
private  boolean execute(TTElmRequest req)
           
 void run()
           
 
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 int SLEEP_TIME

rqLink

private RequestQueue rqLink

rdir

private ResourceDirectory rdir
Constructor Detail

Executor

public Executor(RequestQueue rq,
                ResourceDirectory rdir)
Method Detail

execute

private boolean execute(TTElmRequest req)

execute

public boolean execute(Request req)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread