|
||||||||||
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
Field Summary |
---|
Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
---|
addmap, CHECKPOINT_GETS, connConfig, connector, connPool, handler, imap, INITIALIZE, log, modmap, name, parent, pooledConnector, restartCycle, reusingConnector, SELECT, stats |
Constructor Summary | |
---|---|
ScriptComponent(AssemblyLine parent,
String name,
ConnectorConfig 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 |
int |
getType()
This method returns the mode in which we are executing (e.g. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptComponent(AssemblyLine parent, String name, ConnectorConfig config, ConnectorInterface conn) throws Exception
Exception
Method Detail |
---|
public void initialize() throws Exception
initialize
in class AssemblyLineComponent
Exception
- any exception, which occurs during the initialization of the component
and is not handled by the reconnect mechanism or the error hooks;
it is also possible that the exception is thrown by some of the initialize hookspublic void close()
close
in class AssemblyLineComponent
public ConnectorConfig getConfiguration()
getConfiguration
in class AssemblyLineComponent
public int getType()
getType
in class AssemblyLineComponent
public void add(Entry meta) throws Exception
add
in class AssemblyLineComponent
meta
- The work entry to add
Exception
- the component is not initialized or
the underlying Connector raised an error or
some of the user-defined hooks raised an errorpublic void add1(Entry meta) throws Exception
Exception
public boolean trigger(String oper)
AssemblyLineComponent
trigger
in class AssemblyLineComponent
oper
- Name of the hook to call
public boolean trigger(String oper, Entry work)
AssemblyLineComponent
trigger
in class AssemblyLineComponent
oper
- Name of the hook to callwork
- This will be the work bean in the hook
public boolean trigger(String oper, Entry work, Entry conn)
AssemblyLineComponent
trigger
in class AssemblyLineComponent
oper
- Name of the hook to callwork
- This will be the work bean in the hookconn
- This will be the conn bean in the hook
public boolean willExecute(Entry work) throws Exception
willExecute
in class AssemblyLineComponent
work
- The current work Entry
Exception
- Any exception thrown by the executed hook
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |