|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Strategy
A Strategy object to be executed.
| Field Summary | |
|---|---|
static String |
CLASSPATH_PROPERTYNAME
environment property name used to indicate the source directory of included strategy scripts |
static String |
STRATEGY_MESSAGES
logger category which collects strategy messages |
| Method Summary | |
|---|---|
void |
dataReceived(Object inData)
Sends data received from an external source to a strategy. |
String |
getDefaultNamespace()
Returns the default namespace for this strategy. |
org.marketcetera.strategy.Executor |
getExecutor()
Returns the executor used to execute this strategy, if one has been assigned. |
Language |
getLanguage()
Gets the language in which to interpret the strategy script. |
String |
getName()
Get the name value. |
Properties |
getParameters()
Gets the parameters to pass to the strategy script. |
String |
getScript()
Gets the script to execute. |
org.marketcetera.strategy.ServicesProvider |
getServicesProvider()
Returns the services provider for this Strategy to use. |
Status |
getStatus()
Gets the strategy status. |
void |
start()
Starts the execution of the strategy. |
void |
stop()
Stops the execution of the strategy. |
| Field Detail |
|---|
static final String STRATEGY_MESSAGES
static final String CLASSPATH_PROPERTYNAME
| Method Detail |
|---|
void dataReceived(Object inData)
inData - an Object valueString getScript()
String valueLanguage getLanguage()
Language valueString getName()
String valueProperties getParameters()
Properties value
void start()
throws StrategyException
StrategyException - if the strategy cannot start
void stop()
throws Exception
Exception - if an error occurred while stopping the strategyStatus getStatus()
Status valueorg.marketcetera.strategy.ServicesProvider getServicesProvider()
Strategy to use.
ServicesProvider valueString getDefaultNamespace()
String valueorg.marketcetera.strategy.Executor getExecutor()
Executor value or null depending on the progress of the
strategy in its lifecycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||