|
||||||||||
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 |
---|
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, 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,
java.lang.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, java.lang.String name, LoopConfig config) throws java.lang.Exception
parent
- The AssemblyLine this LoopComponent belongs inname
- The name of this LoopComponentconfig
- The configuration for this LoopComponent
java.lang.Exception
- Any Exception that might be thrownMethod Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in class BranchingComponent
java.lang.Exception
- If this is a Collection Loop, and attribute names are missingpublic Entry getNextEntry(Entry meta) throws java.lang.Exception
meta
- The work Entry
java.lang.Exception
- Any Exception thrown by the Connectorpublic void setFirstLoop(boolean value)
value
- The value to setpublic int getLoopType()
public boolean willExecute(Entry work) throws java.lang.Exception
willExecute
in class BranchingComponent
work
- The work Entry
java.lang.Exception
- if a problem occurspublic int getType()
getType
in class BranchingComponent
public void checkLoopAttribute(Entry work)
work
- The work Entrypublic void checkConnectorInit(Entry work) throws java.lang.Exception
work
- The work Entry
java.lang.Exception
- if a problem occurspublic void setConnectorParams(Entry work) throws java.lang.Exception
work
- The work Entry
java.lang.Exception
- if a problem occurspublic void add(Entry meta) throws java.lang.Exception
add
in class BranchingComponent
meta
- The work Entry
java.lang.Exception
- if a problem occurspublic void close() throws java.lang.Exception
close
in class BranchingComponent
java.lang.Exception
- if a problem occurs.public AssemblyLineComponent getAssemblyLineComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |