gr.uoa.di.madgik.workflow.adaptor.utils.grid
Class JobStatusBreakLoopFilter

java.lang.Object
  extended by gr.uoa.di.madgik.workflow.adaptor.utils.grid.JobStatusBreakLoopFilter
All Implemented Interfaces:
gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

public class JobStatusBreakLoopFilter
extends Object
implements gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

The Class JobStatusBreakLoopFilter processes its input that expects to be a serialization of one of the values defined by JobStatusExternalFilter.JobStatus. Depending on the value of the input it returns either true or false is returned. True is returned in case the input is one of the JobStatusExternalFilter.JobStatus.Ready, JobStatusExternalFilter.JobStatus.Running, JobStatusExternalFilter.JobStatus.Scheduled, JobStatusExternalFilter.JobStatus.Submitted, JobStatusExternalFilter.JobStatus.Waiting.

Author:
gpapanikos

Field Summary
 String JobStatusOutputVariableName
          The variable name to store the output at
 String JobStatusVariableName
          The variable name containing the input to process
 boolean StoreOutput
          The output of the filter should be stored or not
 
Constructor Summary
JobStatusBreakLoopFilter()
           
 
Method Summary
 void FromXML(Node XML)
           
 Set<String> GetInputVariableNames()
           
 Set<String> GetStoreOutputVariableName()
           
 Object Process(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
           
 Object ProcessOnLine(Object OnLineFilteredValue, Set<gr.uoa.di.madgik.execution.datatype.NamedDataType> AdditionalValueProviders, gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
           
 boolean StoreOutput()
           
 boolean SupportsOnLineFiltering()
           
 String ToXML()
           
 void Validate()
           
 void ValidateForOnlineFiltering()
           
 void ValidatePreExecution(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle, Set<String> ExcludeAvailableConstraint)
           
 void ValidatePreExecutionForOnlineFiltering(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle, Set<String> ExcludeAvailableConstraint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

StoreOutput

public boolean StoreOutput
The output of the filter should be stored or not


JobStatusVariableName

public String JobStatusVariableName
The variable name containing the input to process


JobStatusOutputVariableName

public String JobStatusOutputVariableName
The variable name to store the output at

Constructor Detail

JobStatusBreakLoopFilter

public JobStatusBreakLoopFilter()
Method Detail

GetInputVariableNames

public Set<String> GetInputVariableNames()
Specified by:
GetInputVariableNames in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

GetStoreOutputVariableName

public Set<String> GetStoreOutputVariableName()
Specified by:
GetStoreOutputVariableName in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

StoreOutput

public boolean StoreOutput()
Specified by:
StoreOutput in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

Validate

public void Validate()
              throws gr.uoa.di.madgik.execution.exception.ExecutionValidationException
Specified by:
Validate in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionValidationException

ValidateForOnlineFiltering

public void ValidateForOnlineFiltering()
                                throws gr.uoa.di.madgik.execution.exception.ExecutionValidationException
Specified by:
ValidateForOnlineFiltering in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionValidationException

ValidatePreExecution

public void ValidatePreExecution(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle,
                                 Set<String> ExcludeAvailableConstraint)
                          throws gr.uoa.di.madgik.execution.exception.ExecutionValidationException
Specified by:
ValidatePreExecution in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionValidationException

ValidatePreExecutionForOnlineFiltering

public void ValidatePreExecutionForOnlineFiltering(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle,
                                                   Set<String> ExcludeAvailableConstraint)
                                            throws gr.uoa.di.madgik.execution.exception.ExecutionValidationException
Specified by:
ValidatePreExecutionForOnlineFiltering in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionValidationException

SupportsOnLineFiltering

public boolean SupportsOnLineFiltering()
Specified by:
SupportsOnLineFiltering in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter

Process

public Object Process(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
               throws gr.uoa.di.madgik.execution.exception.ExecutionRunTimeException
Specified by:
Process in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionRunTimeException

ProcessOnLine

public Object ProcessOnLine(Object OnLineFilteredValue,
                            Set<gr.uoa.di.madgik.execution.datatype.NamedDataType> AdditionalValueProviders,
                            gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
                     throws gr.uoa.di.madgik.execution.exception.ExecutionRunTimeException
Specified by:
ProcessOnLine in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionRunTimeException

ToXML

public String ToXML()
             throws gr.uoa.di.madgik.execution.exception.ExecutionSerializationException
Specified by:
ToXML in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionSerializationException

FromXML

public void FromXML(Node XML)
             throws gr.uoa.di.madgik.execution.exception.ExecutionSerializationException
Specified by:
FromXML in interface gr.uoa.di.madgik.execution.plan.element.filter.IExternalFilter
Throws:
gr.uoa.di.madgik.execution.exception.ExecutionSerializationException


Copyright © 2012. All Rights Reserved.