public class GenericWorkerPlugin
extends org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.vremanagement.executor.state.TaskRuntime>
implements org.gcube.vremanagement.executor.plugin.ExecutorTask
| Modifier and Type | Class and Description |
|---|---|
class |
GenericWorkerPlugin.ConsumerWatcher2 |
| Modifier and Type | Field and Description |
|---|---|
static Consumer |
activeT |
static GenericWorkerPlugin.ConsumerWatcher2 |
consumerwatcher |
static Timer |
consumerWatcherTimer |
static Boolean |
creating |
static Boolean |
processing |
static QueueWatcher |
qWatcher |
static Hashtable<String,String> |
sessionBlackList |
| Constructor and Description |
|---|
GenericWorkerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
createConsumer(String uniqueTopicName,
String session,
String user,
String password,
String queueURL,
String nodeAddress) |
static boolean |
eraseConsumer() |
static boolean |
getCreating() |
static boolean |
getProcessing() |
static void |
purgeConsumerWatcher() |
static void |
resetGenericWorker() |
void |
run() |
static void |
setCreating(boolean state) |
static void |
setProcessing(boolean state) |
void |
stop() |
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, subscribe, undo, unsubscribepublic static Consumer activeT
public static QueueWatcher qWatcher
public static Boolean processing
public static Boolean creating
public static GenericWorkerPlugin.ConsumerWatcher2 consumerwatcher
public static Timer consumerWatcherTimer
public void stop()
throws UnsupportedOperationException,
Exception
stop in interface org.gcube.vremanagement.executor.plugin.ExecutorTaskUnsupportedOperationExceptionExceptionpublic void run()
throws Exception
run in interface org.gcube.common.core.utils.handlers.GCUBEIHandler<org.gcube.vremanagement.executor.state.TaskRuntime>run in class org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.vremanagement.executor.state.TaskRuntime>Exceptionpublic static void setProcessing(boolean state)
public static boolean getProcessing()
public static boolean getCreating()
public static void setCreating(boolean state)
public static boolean eraseConsumer()
public void createConsumer(String uniqueTopicName, String session, String user, String password, String queueURL, String nodeAddress)
public static void resetGenericWorker()
public static void purgeConsumerWatcher()
Copyright © 2015. All Rights Reserved.