|
||||||||||
| 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
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.server.BranchingComponent |
|---|
config, parent, psc, value |
| Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
|---|
addmap, CHECKPOINT_GETS, connConfig, connector, connPool, handler, imap, INITIALIZE, log, modmap, name, pooledConnector, restartCycle, reusingConnector, SELECT, stats |
| Constructor Summary | |
|---|---|
SwitchComponent(AssemblyLine parent,
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 |
String |
getCaseExecutedBy()
Returns the name of the CASE component that executed this cycle |
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(String name)
Sets the name of the CASE component that executed this cycle (called by CASE components) |
void |
setParentSwitch(SwitchComponent ps)
Sets the SWITCH component to which this CASE belongs |
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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwitchComponent(AssemblyLine parent,
String name,
BranchingConfig config)
throws Exception
parent - The AssemblyLine that contains this SwitchComponentname - The name of this SwitchComponentconfig - The configuration for this SwitchComponent
Exception| Method Detail |
|---|
public void initialize()
throws Exception
initialize in class BranchingComponentException - Not really, but subclasses may throw Exceptionspublic int getType()
getType in class BranchingComponent
public boolean willExecute(Entry work)
throws Exception
willExecute in class BranchingComponentwork - The work Entry
Exception - Any Exception that might be thrown
public void add(Entry meta)
throws Exception
add in class BranchingComponentmeta - 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 String getLastExpression()
public SwitchComponent getParentSwitch()
public void setParentSwitch(SwitchComponent ps)
public boolean getCaseExecuted()
public String getCaseExecutedBy()
public void setCaseExecutedBy(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 | |||||||||