|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.AbstractExecutionStrategy
Abstract Execution Strategy
Field Summary | |
static java.lang.String |
DEFAULT_SLEEP_TIME
the default sleep time |
static java.lang.String |
SLEEP_TIME
Between execution cycles, sleep for this amount of time. |
Constructor Summary | |
AbstractExecutionStrategy()
|
Method Summary | |
void |
cleanup()
cleanup is called when the process is complete, allowing the strategy to close any required resources. |
protected int |
doRun()
ExecutionStrategies can use this method to run the pipeline using shared standard logic. |
InputAdapter |
getInputAdapter()
Get input adapter. |
OutputAdapter |
getOutputAdapter()
Get output adapter. |
Pipeline |
getPipeline()
Get Pipeline |
protected java.util.Properties |
getProperties()
Get the configuration settings from the ConfigFacility |
long |
getSleepTime()
|
protected void |
hookupChannels()
Method configureChannels. |
void |
init(java.util.Properties p)
init method to load properties |
void |
logStats(java.lang.String msg)
Log performance statistics w/ a different logger than normal application logging messages. |
void |
setInputAdapter(InputAdapter ia)
Set method to tell the strategy what input adapter to use. |
void |
setOutputAdapter(OutputAdapter oa)
Set method to tell the strategy what output adapter to use. |
void |
setPipeline(Pipeline p)
Set method to tell the strategy what pipeline to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.rhi.architecture.parc.ExecutionStrategy |
run |
Field Detail |
public static final java.lang.String SLEEP_TIME
public static final java.lang.String DEFAULT_SLEEP_TIME
Constructor Detail |
public AbstractExecutionStrategy()
Method Detail |
public void init(java.util.Properties p)
ExecutionStrategy
init
in interface ExecutionStrategy
p
- Resource.init(java.util.Properties)
public void cleanup()
ExecutionStrategy
cleanup
in interface ExecutionStrategy
ExecutionStrategy.cleanup()
public long getSleepTime()
public void setInputAdapter(InputAdapter ia)
setInputAdapter
in interface ExecutionStrategy
ia
- public InputAdapter getInputAdapter()
public void setOutputAdapter(OutputAdapter oa)
setOutputAdapter
in interface ExecutionStrategy
oa
- public OutputAdapter getOutputAdapter()
public void setPipeline(Pipeline p)
setPipeline
in interface ExecutionStrategy
p
- public Pipeline getPipeline()
protected int doRun() throws ProcessingException
ProcessingException
protected void hookupChannels()
protected java.util.Properties getProperties() throws ProcessingException
ProcessingException
public void logStats(java.lang.String msg)
msg
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |