|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.AbleDefaultAgent
com.ibm.able.agents.AbleScriptAgent
com.ibm.able.agents.AbleJavaScriptAgent
An Agent whose behavior can be specified using JavaScript scripts.
| Field Summary | |
|---|---|
static java.lang.String |
defaultName
Value assigned to name by default. |
protected java.lang.String |
initScript
The initScript object is created from a JavaScript named by the initScriptFileName when the agent is initialized. |
protected com.ibm.bsf.BSFManager |
mgr
|
protected java.lang.String |
processScript
The processScript object is created from a JavaScript named by the processScriptFileName when the agent is initialized. |
protected java.lang.String |
processTimerScript
The processTimerScript object is created from a JavaScript named by the processTimerScriptFileName when the agent is initialized. |
protected com.ibm.bsf.BSFEngine |
rhinoEngine
|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
| Fields inherited from class com.ibm.able.agents.AbleScriptAgent |
|---|
initScriptFileName, processScriptFileName, processTimerScriptFileName |
| Fields inherited from class com.ibm.able.AbleDefaultAgent |
|---|
activeDataSource, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AbleJavaScriptAgent()
|
|
| Method Summary | |
|---|---|
void |
addBean(AbleBean theAbleBean)
Register the bean with the manager and then call super.addBean. |
void |
init()
Create the scripting engine to process the scripts. |
void |
process()
Execute the processScript. |
void |
processTimerEvent()
Execute the processTimerScript. |
void |
removeBean(AbleBean theAbleBean)
De-register the bean with the manager and then call super.removeBean. |
| Methods inherited from class com.ibm.able.agents.AbleScriptAgent |
|---|
getInitScript, getInitScriptFileName, getProcessScript, getProcessScriptFileName, getProcessTimerScript, getProcessTimerScriptFileName, reset, setDefaults, setInitScriptFileName, setProcessScriptFileName, setProcessTimerScriptFileName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.able.AbleBean |
|---|
getComment, getLogger, getName, getParent, getProperties, getProperty, getState, getTraceLogger, init, isChanged, process, removeProperty, setChanged, setComment, setLogger, setName, setParent, setProperties, setProperty, setState, setTraceLogger |
| Methods inherited from interface com.ibm.able.AbleEventListenerManager |
|---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
|---|
processAbleEvent, processNoEventProcessingEnabledSituation |
| Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
|---|
addPropertyChangeListener, addPropertyConnection, getPropertyChangeListeners, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
| Methods inherited from interface com.ibm.able.AbleSerializable |
|---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
| Methods inherited from interface com.ibm.able.AbleBeanContainer |
|---|
getName |
| Field Detail |
public static final java.lang.String defaultName
protected static final long serialVersionUID
protected transient com.ibm.bsf.BSFManager mgr
protected transient com.ibm.bsf.BSFEngine rhinoEngine
protected java.lang.String initScript
protected java.lang.String processScript
protected java.lang.String processTimerScript
| Constructor Detail |
public AbleJavaScriptAgent()
throws AbleException
| Method Detail |
public void init()
throws AbleException
init in interface AbleBeaninit in class AbleScriptAgentAbleException
public void process()
throws AbleException
process in interface AbleBeanprocess in class AbleScriptAgentAbleException
public void processTimerEvent()
throws AbleException
processTimerEvent in interface AbleEventQueueProcessorprocessTimerEvent in class AbleScriptAgentAbleException
public void addBean(AbleBean theAbleBean)
throws AbleException
addBean in interface AbleBeanContaineraddBean in class AbleDefaultAgenttheAbleBean - The bean to be added to this container.
AbleException - If an error occurs.
public void removeBean(AbleBean theAbleBean)
throws AbleException
removeBean in interface AbleBeanContainerremoveBean in class AbleDefaultAgenttheAbleBean - A bean that is to be removed from this container.
AbleException - If an error occurs.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||