|
|||||||||||
| 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.LoopComponent
public class LoopComponent
This class is used by an AssemblyLine to mark the beginning of a loop
| 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.BranchingComponent |
|---|
branchingConfig, psc, value |
| Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
|---|
addmap, CHECKPOINT_GETS, 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 | |
|---|---|
LoopComponent(AssemblyLine parent,
String name,
LoopConfig config)
Constructor for the LoopComponent object |
|
| Method Summary | |
|---|---|
void |
add(Entry meta)
If necessary, move a value from the stored Attribute values to the work Entry |
void |
checkConnectorInit(Entry work)
Check what to do with our connector when we enter the loop. |
void |
checkLoopAttribute(Entry work)
Copy values from work entry attribute |
void |
close()
Releases resource. |
AssemblyLineComponent |
getAssemblyLineComponent()
Returns the associated AssemblyLineComponent with the Connector. |
int |
getLoopType()
Returns the source for this loop component (e.g. |
Entry |
getNextEntry(Entry meta)
Returns the next Entry if this is a Connector loop |
int |
getType()
Returns the type of this component. |
void |
initialize()
This method initializes the LoopComponent |
void |
setConnectorParams(Entry work)
Executes the attribute map for the connector params |
void |
setFirstLoop(boolean value)
Set the internal firstLoop variable to the parameter value. |
boolean |
willExecute(Entry work)
This method will execute the Loop condition/connector and determine whether there are more loops to do. |
| Methods inherited from class com.ibm.di.server.BranchingComponent |
|---|
add1, checkWillExecute, 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 LoopComponent(AssemblyLine parent,
String name,
LoopConfig config)
throws Exception
parent - The AssemblyLine this LoopComponent belongs inname - The name of this LoopComponentconfig - The configuration for this LoopComponent
Exception - Any Exception that might be thrown| Method Detail |
|---|
public void initialize()
throws Exception
initialize in class BranchingComponentException - If this is a Collection Loop, and attribute names are missing
public Entry getNextEntry(Entry meta)
throws Exception
meta - The work Entry
Exception - Any Exception thrown by the Connectorpublic void setFirstLoop(boolean value)
value - The value to setpublic int getLoopType()
public boolean willExecute(Entry work)
throws Exception
willExecute in class BranchingComponentwork - The work Entry
Exception - if a problem occurspublic int getType()
getType in class BranchingComponentpublic void checkLoopAttribute(Entry work)
work - The work Entry
public void checkConnectorInit(Entry work)
throws Exception
work - The work Entry
Exception - if a problem occurs
public void setConnectorParams(Entry work)
throws Exception
work - The work Entry
Exception - if a problem occurs
public void add(Entry meta)
throws Exception
add in class BranchingComponentmeta - The work Entry
Exception - if a problem occurs
public void close()
throws Exception
close in class BranchingComponentException - if a problem occurs.public AssemblyLineComponent getAssemblyLineComponent()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||