|
|||||||||||
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.BranchingComponent
public class BranchingComponent
This class is used by the AssemblyLine for branches
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
protected BranchingConfig |
branchingConfig
The configuration |
protected ParameterSubstitutionCache |
psc
Helper object for parameter substitutions |
Object |
value
The return value from script execution |
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 | |
---|---|
BranchingComponent()
Constructor. |
|
BranchingComponent(AssemblyLine parent,
String name,
BranchingConfig config)
Constructor for the BranchingComponent object |
Method Summary | |
---|---|
void |
add(Entry meta)
Do nothing in the add method |
void |
add1(Entry meta)
This method executes the script. |
boolean |
checkWillExecute(Entry work)
Evaluates the expression in this branch |
void |
close()
This method closes the script engine. |
int |
componentCount()
Deprecated. |
boolean |
evaluateCondition(Entry work,
BranchCondition c,
int index)
Returns the result of a single condition |
boolean |
evaluateConditions(Entry work)
Returns the result of the test conditions |
BaseConfiguration |
getBaseConfiguration()
This method returns the BaseConfiguration |
int |
getBranchType()
Returns the branch type. |
ConnectorConfig |
getConfiguration()
This method returns the Connector configuration |
int |
getType()
Gets the type attribute of the BranchingComponent object |
void |
initialize()
Initializes the component. |
boolean |
isExecuted()
Determines whether the component has been executed. |
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 or false, depending on what the expression in the branch evaluates to This method is called by the AssemblyLine. |
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 |
Field Detail |
---|
protected BranchingConfig branchingConfig
public Object value
protected ParameterSubstitutionCache psc
Constructor Detail |
---|
public BranchingComponent()
public BranchingComponent(AssemblyLine parent, String name, BranchingConfig config) throws Exception
parent
- The AssemblyLine that contains this BranchingComponentname
- The name of this BranchingComponentconfig
- The configuration for this BranchingComponent
Exception
- if problem occursMethod Detail |
---|
public void initialize() throws Exception
initialize
in class AssemblyLineComponent
Exception
- Not really, but subclasses may throw Exceptionspublic void close() throws Exception
close
in class AssemblyLineComponent
Exception
- if problem occurspublic ConnectorConfig getConfiguration()
getConfiguration
in class AssemblyLineComponent
public BaseConfiguration getBaseConfiguration()
getBaseConfiguration
in class AssemblyLineComponent
public int getType()
getType
in class AssemblyLineComponent
public boolean willExecute(Entry work) throws Exception
willExecute
in class AssemblyLineComponent
work
- The work Entry
Exception
- Any Exception that might be thrownpublic boolean checkWillExecute(Entry work) throws Exception
work
- The work Entry
Exception
- Any Exception that might be thrown during script executionpublic boolean evaluateConditions(Entry work) throws Exception
work
- The work Entry
Exception
- if problem occurspublic boolean evaluateCondition(Entry work, BranchCondition c, int index) throws Exception
work
- The work Entryc
- One BranchConditionindex
- The number of this BranchCondition, for error messages throws
Exception if the left hand side of the condition is null
Exception
- if problem occurspublic int componentCount()
public void add(Entry meta) throws Exception
add
in class AssemblyLineComponent
meta
- parameter
Exception
- if problem occurspublic void add1(Entry meta) throws Exception
meta
- the work Entry
Exception
- if problem occurspublic boolean trigger(String oper)
trigger
in class AssemblyLineComponent
oper
- Name of the hook to call.
public boolean trigger(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(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 int getBranchType()
public boolean isExecuted()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |