|
|||||||||||
| 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 |
|---|
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,
String name,
ConnectorConfig config,
ConnectorInterface conn)
Constructor for the script component object. |
|
ScriptComponent(AssemblyLine parent,
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(String oper)
Calls the hook named oper. |
boolean |
trigger(String oper,
Entry work)
Calls the hook named oper, declaring work as the corresponding bean. |
boolean |
trigger(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,
String name,
ScriptConfig config,
ConnectorInterface conn)
throws Exception
parent - the AssemblyLine using this componentname - the name of hte componentconfig - script configuration of this componentconn - an optional connector to use if needed
Exception - if problem occurs
public ScriptComponent(AssemblyLine parent,
String name,
ConnectorConfig config,
ConnectorInterface conn)
throws 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
Exception - if problem occurs| Method Detail |
|---|
public void initialize()
throws Exception
initialize in class AssemblyLineComponentException - if initialization encounters problemspublic void close()
close in class AssemblyLineComponentpublic ConnectorConfig getConfiguration()
getConfiguration in class AssemblyLineComponentpublic ScriptConfig getScriptConfiguration()
public int getType()
getType in class AssemblyLineComponentServerConstants.TYPE_SCRIPT value
public void add(Entry meta)
throws Exception
add in class AssemblyLineComponentmeta - Entry parameter
Exception - if error occurs
public void add1(Entry meta)
throws Exception
meta - Entry parameter
Exception - if error occurspublic boolean trigger(String oper)
trigger in class AssemblyLineComponentoper - Name of the hook to call.
public boolean trigger(String oper,
Entry work)
trigger in class AssemblyLineComponentoper - Name of the hook to call.work - This will be the work bean in the hook.
public boolean trigger(String oper,
Entry work,
Entry conn)
trigger in class AssemblyLineComponentoper - 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 Exception
willExecute in class AssemblyLineComponentwork - the work Entry object
true if this component should be executed,
otherwise false
Exception - if problem occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||