|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.server.AssemblyLineComponent
com.ibm.di.server.ScriptComponent
public class ScriptComponent
This class is used by the AssemblyLine for scripts.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
---|
addmap, CHECKPOINT_GETS, config, connConfig, connector, connPool, END_OF_DATA, handler, HOOKS_INVOKED, imap, INITIALIZE, initializeCount, LAST_CONN, LAST_ERROR, log, modmap, name, NUM_ADD, NUM_CALLREPLY, NUM_DELETE, NUM_ERRORS, NUM_GET, NUM_GET_TRIES, NUM_GETCLIENT, NUM_GETCLIENT_TRIES, NUM_IGNORED, NUM_LOOKUP, NUM_MODIFY, NUM_NOCHANGE, NUM_SKIPPED, parent, pooledConnector, reusingConnector, SELECT, stats, SUCCESSFUL |
Constructor Summary | |
---|---|
ScriptComponent(AssemblyLine parent,
java.lang.String name,
ConnectorConfig config,
ConnectorInterface conn)
Constructor for the script component object. |
|
ScriptComponent(AssemblyLine parent,
java.lang.String name,
ScriptConfig config,
ConnectorInterface conn)
Constructor. |
Method Summary | |
---|---|
void |
add(Entry meta)
This method executes the script. |
void |
add1(Entry meta)
This method executes the script. |
void |
close()
This method closes the script engine. |
ConnectorConfig |
getConfiguration()
This method returns the Connector configuration |
ScriptConfig |
getScriptConfiguration()
This method returns the Script configuration. |
int |
getType()
Returns ServerConstants.TYPE_SCRIPT |
void |
initialize()
This method initializes the script engine. |
boolean |
trigger(java.lang.String oper)
Calls the hook named oper. |
boolean |
trigger(java.lang.String oper,
Entry work)
Calls the hook named oper, declaring work as the corresponding bean. |
boolean |
trigger(java.lang.String oper,
Entry work,
Entry conn)
Calls the hook named oper, declaring work and conn as the corresponding beans. |
boolean |
willExecute(Entry work)
Return true/false if this component should be executed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public ScriptComponent(AssemblyLine parent, java.lang.String name, ScriptConfig config, ConnectorInterface conn) throws java.lang.Exception
parent
- the AssemblyLine using this componentname
- the name of hte componentconfig
- script configuration of this componentconn
- an optional connector to use if needed
java.lang.Exception
- if problem occurspublic ScriptComponent(AssemblyLine parent, java.lang.String name, ConnectorConfig config, ConnectorInterface conn) throws java.lang.Exception
parent
- the parent AssemblyLine.name
- the component's name given by the ÀssemblyLine.config
- the configuration.conn
- an optional connector to use if needed
java.lang.Exception
- if problem occursMethod Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in class AssemblyLineComponent
java.lang.Exception
- if initialization encounters problemspublic void close()
close
in class AssemblyLineComponent
public ConnectorConfig getConfiguration()
getConfiguration
in class AssemblyLineComponent
public ScriptConfig getScriptConfiguration()
public int getType()
getType
in class AssemblyLineComponent
ServerConstants.TYPE_SCRIPT
valuepublic void add(Entry meta) throws java.lang.Exception
add
in class AssemblyLineComponent
meta
- Entry parameter
java.lang.Exception
- if error occurspublic void add1(Entry meta) throws java.lang.Exception
meta
- Entry parameter
java.lang.Exception
- if error occurspublic boolean trigger(java.lang.String oper)
trigger
in class AssemblyLineComponent
oper
- Name of the hook to call.
public boolean trigger(java.lang.String oper, Entry work)
trigger
in class AssemblyLineComponent
oper
- Name of the hook to call.work
- This will be the work bean in the hook.
public boolean trigger(java.lang.String oper, Entry work, Entry conn)
trigger
in class AssemblyLineComponent
oper
- Name of the hook to call.work
- This will be the work bean in the hook.conn
- This will be the conn bean in the hook
public boolean willExecute(Entry work) throws java.lang.Exception
willExecute
in class AssemblyLineComponent
work
- the work Entry object
true
if this component should be executed,
otherwise false
java.lang.Exception
- if problem occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |