org.gcube.dataanalysis.executor.job.management
Class QueueJobManager

java.lang.Object
  extended by org.gcube.dataanalysis.executor.job.management.QueueJobManager

public class QueueJobManager
extends Object


Nested Class Summary
 class QueueJobManager.Broadcaster
           
 class QueueJobManager.ComputationTimerWatcher
           
 class QueueJobManager.StatusListener
           
 
Field Summary
protected  boolean abort
           
protected  int activeNodes
           
protected  int actualNumberOfNodes
           
protected static int broadcastTimePeriod
           
protected static int computationWatcherTimerPeriod
           
protected  int computingNodes
           
protected  org.gcube.dataanalysis.executor.messagequeue.Consumer consumer
           
 int currentNumberOfStages
           
protected  List<org.apache.axis.message.addressing.EndpointReferenceType> eprs
           
protected  List<String> filenames
           
protected  List<String> fileurls
           
protected  org.gcube.common.core.scope.GCUBEScope gscope
           
protected  int maxFailureTries
           
protected static int maxNumberOfComputationRetries
           
protected static int maxNumberOfStages
           
protected static int maxSilenceTimeBeforeComputationStop
           
protected  boolean messagesresent
           
protected  int numberOfMessages
           
protected  org.gcube.dataanalysis.executor.messagequeue.Producer producer
           
protected  String queueName
           
protected  String queuePWD
           
protected  String queueResponse
           
protected  String queueURL
           
protected  String queueUSER
           
static int queueWatcherMaxwaitingTime
           
 int[] resentMessages
           
protected  String scope
           
protected  String session
           
protected  boolean shutdown
           
protected  float status
           
protected  int totalNumberOfMessages
           
protected  int totalNumberOfStages
           
protected  boolean yetstopped
           
 
Constructor Summary
QueueJobManager(String scope, int numberOfNodes)
           
QueueJobManager(String scope, int numberOfNodes, List<org.apache.axis.message.addressing.EndpointReferenceType> eprs)
           
 
Method Summary
 void abort()
           
 void deleteRemoteFolder()
           
 int getActiveNodes()
           
 int getNumberOfNodes()
           
 float getStatus()
           
 boolean hasResentMessages()
           
 void purgeQueues()
           
 void setNumberOfNodes(int newNumberOfNodes)
           
 void stop()
           
 boolean uploadAndExecuteChunkized(String serviceClass, String serviceName, String owner, String localDir, String remoteDir, String outputDir, String script, List<String> arguments, String configuration, boolean deletefiles, boolean forceUpload)
           
 void waitForMessages()
           
 boolean wasAborted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

broadcastTimePeriod

protected static int broadcastTimePeriod

maxSilenceTimeBeforeComputationStop

protected static int maxSilenceTimeBeforeComputationStop

maxNumberOfComputationRetries

protected static int maxNumberOfComputationRetries

computationWatcherTimerPeriod

protected static int computationWatcherTimerPeriod

maxNumberOfStages

protected static int maxNumberOfStages

queueWatcherMaxwaitingTime

public static int queueWatcherMaxwaitingTime

maxFailureTries

protected int maxFailureTries

scope

protected String scope

gscope

protected org.gcube.common.core.scope.GCUBEScope gscope

session

protected String session

yetstopped

protected boolean yetstopped

messagesresent

protected boolean messagesresent

status

protected float status

abort

protected boolean abort

shutdown

protected boolean shutdown

eprs

protected List<org.apache.axis.message.addressing.EndpointReferenceType> eprs

activeNodes

protected int activeNodes

computingNodes

protected int computingNodes

numberOfMessages

protected int numberOfMessages

totalNumberOfMessages

protected int totalNumberOfMessages

actualNumberOfNodes

protected int actualNumberOfNodes

totalNumberOfStages

protected int totalNumberOfStages

currentNumberOfStages

public int currentNumberOfStages

filenames

protected List<String> filenames

fileurls

protected List<String> fileurls

queueName

protected String queueName

queueResponse

protected String queueResponse

queueURL

protected String queueURL

queueUSER

protected String queueUSER

queuePWD

protected String queuePWD

consumer

protected org.gcube.dataanalysis.executor.messagequeue.Consumer consumer

producer

protected org.gcube.dataanalysis.executor.messagequeue.Producer producer

resentMessages

public int[] resentMessages
Constructor Detail

QueueJobManager

public QueueJobManager(String scope,
                       int numberOfNodes)
                throws Exception
Throws:
Exception

QueueJobManager

public QueueJobManager(String scope,
                       int numberOfNodes,
                       List<org.apache.axis.message.addressing.EndpointReferenceType> eprs)
                throws Exception
Throws:
Exception
Method Detail

getActiveNodes

public int getActiveNodes()

getStatus

public float getStatus()

getNumberOfNodes

public int getNumberOfNodes()

setNumberOfNodes

public void setNumberOfNodes(int newNumberOfNodes)

uploadAndExecuteChunkized

public boolean uploadAndExecuteChunkized(String serviceClass,
                                         String serviceName,
                                         String owner,
                                         String localDir,
                                         String remoteDir,
                                         String outputDir,
                                         String script,
                                         List<String> arguments,
                                         String configuration,
                                         boolean deletefiles,
                                         boolean forceUpload)
                                  throws Exception
Throws:
Exception

hasResentMessages

public boolean hasResentMessages()

waitForMessages

public void waitForMessages()
                     throws Exception
Throws:
Exception

wasAborted

public boolean wasAborted()

purgeQueues

public void purgeQueues()
                 throws Exception
Throws:
Exception

stop

public void stop()

deleteRemoteFolder

public void deleteRemoteFolder()
                        throws Exception
Throws:
Exception

abort

public void abort()


Copyright © 2013. All Rights Reserved.