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

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

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

The Class JobLogInfoFilter scans through the output of a glite-WMS-job-logging-info command and parses it into a series of records. The expected input is expected to be of the following form : ********************************************************************** LOGGING INFORMATION: Printing info for the Job: https://lxshare0310.cern.ch:9000/C_CBUJKqc6Zqd4clQaCUTQ - - - Event: RegJob - source = UserInterface - timestamp = Fri Feb 20 10:30:16 2004 - - - Event: Transfer - destination = NetworkServer - result = START - source = UserInterface - timestamp = Fri Feb 20 10:30:16 2004 - - - Event: Transfer - destination = NetworkServer - result = OK - source = UserInterface - timestamp = Fri Feb 20 10:30:19 2004 - - - Event: Accepted - source = NetworkServer - timestamp = Fri Feb 20 10:29:17 2004 - - - Event: EnQueued - result = OK - source = NetworkServer - timestamp = Fri Feb 20 10:29:18 2004 [...] ********************************************************************** Every event extracted is send back to the caller in the form of an ExecutionExternalProgressReportStateEvent. The call to Process(ExecutionHandle) does not produce any output other than the events it emits while it processes the provided input.

Author:
gpapanikos

Field Summary
 String JobLogInfoVariableName
          The Job log info variable name.
 String PlanNodeID
          The Plan node id.
 
Constructor Summary
JobLogInfoFilter()
           
 
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

JobLogInfoVariableName

public String JobLogInfoVariableName
The Job log info variable name.


PlanNodeID

public String PlanNodeID
The Plan node id.

Constructor Detail

JobLogInfoFilter

public JobLogInfoFilter()
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 © 2013. All Rights Reserved.