openr66.context.task
Class AbstractExecJavaTask

java.lang.Object
  extended by openr66.context.task.AbstractExecJavaTask
All Implemented Interfaces:
Runnable, R66Runnable
Direct Known Subclasses:
TestExecJavaTask

public abstract class AbstractExecJavaTask
extends Object
implements R66Runnable

Dummy Runnable Task that only logs

Author:
Frederic Bregier

Field Summary
protected  String[] args
           
protected  boolean callFromBusiness
           
protected  String classname
           
protected  int delay
           
protected  String fullarg
           
protected  boolean isToValidate
           
protected  R66Session session
           
protected  int status
           
protected  boolean useLocalExec
           
protected  boolean waitForValidation
           
 
Constructor Summary
AbstractExecJavaTask()
           
 
Method Summary
 void finalValidate(Object object)
          To be called by the requester when finished
 int getFinalStatus()
           
 void invalid()
          To be used if abnormal usage is made of one Java Method
 void run()
           
 void setArgs(R66Session session, boolean waitForValidation, boolean useLocalExec, int delay, String[] args)
          The way the parameter will be set
 String toString()
           
 void validate(BusinessRequestPacket packet)
          Server side methode to validate the request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delay

protected int delay

args

protected String[] args

status

protected int status

session

protected R66Session session

waitForValidation

protected boolean waitForValidation

useLocalExec

protected boolean useLocalExec

classname

protected String classname

fullarg

protected String fullarg

isToValidate

protected boolean isToValidate

callFromBusiness

protected boolean callFromBusiness
Constructor Detail

AbstractExecJavaTask

public AbstractExecJavaTask()
Method Detail

validate

public void validate(BusinessRequestPacket packet)
Server side methode to validate the request

Parameters:
packet -

finalValidate

public void finalValidate(Object object)
To be called by the requester when finished

Parameters:
object - special object to get back

invalid

public void invalid()
To be used if abnormal usage is made of one Java Method


run

public void run()
Specified by:
run in interface Runnable

setArgs

public void setArgs(R66Session session,
                    boolean waitForValidation,
                    boolean useLocalExec,
                    int delay,
                    String[] args)
Description copied from interface: R66Runnable
The way the parameter will be set

Specified by:
setArgs in interface R66Runnable
Parameters:
session - The current R66Session
waitForValidation - True if the caller will wait up to delay time in ms
useLocalExec - True if currently R66 is configured to use LocalExec (may be ignored)
delay - Delay in ms used only if waitForValidation is True
args - First arg is the Class name used

getFinalStatus

public int getFinalStatus()
Specified by:
getFinalStatus in interface R66Runnable
Returns:
the final status where 0 is OK, 1 is Warning, 2 is Error

toString

public String toString()
Specified by:
toString in interface R66Runnable
Overrides:
toString in class Object
Returns:
Information on task


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.