public interface Strategy
Strategy object to be executed.| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static final String STRATEGY_MESSAGES
static final String CLASSPATH_PROPERTYNAME
void dataReceived(Object inData)
inData - an Object valueString getScript()
String valueLanguage getLanguage()
Language valueString getName()
String valueProperties getParameters()
Properties valuevoid start()
throws StrategyException
StrategyException - if the strategy cannot startvoid 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 lifecycleCopyright © 2015. All Rights Reserved.