org.gcube.dataanalysis.executor.plugin
Class GenericWorkerPlugin

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.vremanagement.executor.state.TaskRuntime>
      extended by org.gcube.dataanalysis.executor.plugin.GenericWorkerPlugin
All Implemented Interfaces:
org.gcube.common.core.utils.handlers.GCUBEIHandler<org.gcube.vremanagement.executor.state.TaskRuntime>, org.gcube.common.core.utils.handlers.lifetime.Lifetime<org.gcube.vremanagement.executor.state.TaskRuntime>, org.gcube.vremanagement.executor.plugin.ExecutorTask

public class GenericWorkerPlugin
extends org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.vremanagement.executor.state.TaskRuntime>
implements org.gcube.vremanagement.executor.plugin.ExecutorTask


Field Summary
static Consumer activeT
           
static Boolean creating
           
static Boolean processing
           
static QueueWatcher qWatcher
           
static Hashtable<String,String> sessionBlackList
           
 
Fields inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
handled, logger, producer
 
Constructor Summary
GenericWorkerPlugin()
           
 
Method Summary
static boolean getCreating()
           
static boolean getProcessing()
           
 void resetAll()
           
static void resetWatcher()
           
 void run()
           
static void setCreating(boolean state)
           
static void setProcessing(boolean state)
           
 void stop()
           
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.common.core.utils.handlers.lifetime.Lifetime
getState
 
Methods inherited from interface org.gcube.common.core.utils.handlers.GCUBEIHandler
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, subscribe, undo, unsubscribe
 

Field Detail

activeT

public static Consumer activeT

qWatcher

public static QueueWatcher qWatcher

sessionBlackList

public static Hashtable<String,String> sessionBlackList

processing

public static Boolean processing

creating

public static Boolean creating
Constructor Detail

GenericWorkerPlugin

public GenericWorkerPlugin()
Method Detail

stop

public void stop()
          throws UnsupportedOperationException,
                 Exception
Specified by:
stop in interface org.gcube.vremanagement.executor.plugin.ExecutorTask
Throws:
UnsupportedOperationException
Exception

run

public void run()
         throws Exception
Specified by:
run in interface org.gcube.common.core.utils.handlers.GCUBEIHandler<org.gcube.vremanagement.executor.state.TaskRuntime>
Specified by:
run in class org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.vremanagement.executor.state.TaskRuntime>
Throws:
Exception

setProcessing

public static void setProcessing(boolean state)

getProcessing

public static boolean getProcessing()

getCreating

public static boolean getCreating()

setCreating

public static void setCreating(boolean state)

resetWatcher

public static void resetWatcher()

resetAll

public void resetAll()


Copyright © 2012. All Rights Reserved.