|
||||||||||
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
com.ibm.di.server.SwitchComponent
public class SwitchComponent
This class is used by an AssemblyLine
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.BranchingComponent |
---|
branchingConfig, psc, value |
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 | |
---|---|
SwitchComponent(AssemblyLine parent,
java.lang.String name,
BranchingConfig config)
Constructor for the BranchingComponent object |
Method Summary | |
---|---|
void |
add(Entry meta)
This method does nothing |
boolean |
getCaseExecuted()
Returns true if any contained CASE component executed this cycle |
java.lang.String |
getCaseExecutedBy()
Returns the name of the CASE component that executed this cycle |
java.lang.String |
getLastExpression()
Returns the value from the last evaluated expression. |
SwitchComponent |
getParentSwitch()
Returns the SWITCH component to which this CASE belongs. |
int |
getType()
Gets the type attribute of the BranchingComponent object |
void |
initialize()
Initializes this SwitchComponent |
void |
setCaseExecutedBy(java.lang.String name)
Sets the name of the CASE component that executed this cycle (called by CASE components) |
boolean |
willExecute(Entry work)
Return true/false if this component should be executed. |
Methods inherited from class com.ibm.di.server.BranchingComponent |
---|
add1, checkWillExecute, close, componentCount, evaluateCondition, evaluateConditions, getBaseConfiguration, getBranchType, getConfiguration, isExecuted, trigger, trigger, trigger |
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 SwitchComponent(AssemblyLine parent, java.lang.String name, BranchingConfig config) throws java.lang.Exception
parent
- The AssemblyLine that contains this SwitchComponentname
- The name of this SwitchComponentconfig
- The configuration for this SwitchComponent
java.lang.Exception
Method Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in class BranchingComponent
java.lang.Exception
- Not really, but subclasses may throw Exceptionspublic int getType()
getType
in class BranchingComponent
public boolean willExecute(Entry work) throws java.lang.Exception
willExecute
in class BranchingComponent
work
- The work Entry
java.lang.Exception
- Any Exception that might be thrownpublic void add(Entry meta) throws java.lang.Exception
add
in class BranchingComponent
meta
- parameter
java.lang.Exception
- if problem occurspublic java.lang.String getLastExpression()
public SwitchComponent getParentSwitch()
public boolean getCaseExecuted()
public java.lang.String getCaseExecutedBy()
public void setCaseExecutedBy(java.lang.String name)
name
- The name of the CASE component that executed this cycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |