com.rhi.architecture.parc
Interface ExecutionStrategy

All Known Implementing Classes:
AbstractExecutionStrategy

public interface ExecutionStrategy

Strategy Interface for use w/ Interface applications. Execution is performed by the strategy so that arbitrary execution processing strategy can be used w/o changing the application. Normal strategies might include continous loop, or single run.

Since:
1.0
Author:
Pete McKinstry

Method Summary
 void cleanup()
          cleanup is called when the process is complete, allowing the strategy to close any required resources.
 void init(java.util.Properties p)
          init method to load properties
 void run()
          The run method provides the strategy implementation It should run the pipeline using whatever strategy it provides.
 void setInputAdapter(InputAdapter ia)
          The interface application class uses this method to intialize the strategy object w/ the correct concrete input adapter.
 void setOutputAdapter(OutputAdapter oa)
          The interface application class uses this method to intialize the strategy object w/ the correct concrete output adapter.
 void setPipeline(Pipeline p)
          The interface application class uses this method to intialize the strategy object w/ the correct concrete Pipeline
 

Method Detail

init

public void init(java.util.Properties p)
init method to load properties

Parameters:
p -

run

public void run()
         throws ProcessingException
The run method provides the strategy implementation It should run the pipeline using whatever strategy it provides.

Throws:
ProcessingException
Since:
1.0

cleanup

public void cleanup()
cleanup is called when the process is complete, allowing the strategy to close any required resources.


setInputAdapter

public void setInputAdapter(InputAdapter ia)
The interface application class uses this method to intialize the strategy object w/ the correct concrete input adapter.

Parameters:
ia -
Since:
1.0

setOutputAdapter

public void setOutputAdapter(OutputAdapter oa)
The interface application class uses this method to intialize the strategy object w/ the correct concrete output adapter.

Parameters:
oa -
Since:
1.0

setPipeline

public void setPipeline(Pipeline p)
The interface application class uses this method to intialize the strategy object w/ the correct concrete Pipeline

Parameters:
p -
Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.