Package com.ibm.di.server
Class EndLoopComponent
- java.lang.Object
-
- com.ibm.di.server.AssemblyLineComponent
-
- com.ibm.di.server.EndLoopComponent
-
- All Implemented Interfaces:
java.util.Map
public class EndLoopComponent extends AssemblyLineComponent
This class is used by the Assemblyline to mark the end of a loop
-
-
Field Summary
-
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, SELECT, stats, SUCCESSFUL
-
-
Constructor Summary
Constructors Constructor Description EndLoopComponent(AssemblyLine parent, LoopComponent loop)
This constructor is used to insert the EndLoop component in the AL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Entry meta)
Tells the AssemblyLine to go back to the start of the loopvoid
close()
Releases resourcesint
getType()
Return the type of this componentvoid
handleException(java.lang.String oper, java.lang.Throwable e, Entry meta)
Handles Exceptions by rethrowing themvoid
initialize()
This method does nothing.boolean
trigger(java.lang.String oper, Entry work)
Calls Hooks.boolean
trigger(java.lang.String oper, Entry work, Entry conn)
Calls Hooks.boolean
willExecute(Entry work)
This method always returns true.-
Methods inherited from class com.ibm.di.server.AssemblyLineComponent
callreply, checkInitialize, checkTerminate, clear, componentInitialized, containsKey, containsValue, debug, delete, deleteEntry, delta, doConnectorInitialize, doConnectorTerminate, doConnectorTerminate, dumpEntry, dumpObjects, entrySet, executeOperation, expandParameters, failBack, failOver, get, getBaseConfiguration, getConfig, getConfiguration, getConnector, getConnectorParam, getCriteria, getCurrent, getDebug, getDuplicateEntryCount, getFirstDuplicateEntry, getHandler, getLastEntry, getLastReadEntry, getLog, getName, getnext, getnext, getnextClient, getNextDuplicateEntry, getRestartInfoEntry, getSimulatingState, getStats, handleSuccess, isCheckpointRestartEnabled, isDeltaMode, isEmpty, isEnabled, isExceptionFatal, isFailOvered, keySet, logmsg, lookup, lookup, mapEntry, modify, pushback, put, putAll, reconnect, remove, reply, resetStatus, setConnectorParam, setCriteria, setCriteria, setCurrent, setDebug, setDuplicateEntryCount, setErrorObject, setName, setRestartInfoEntry, setSimulatingState, setSuccessful, size, toString, trigger, triggerImpl, update, useAttributeMap, useAttributeMap, useAttributeMap, useInputMap, useMap, useMap, useOutputMap, values, verifySchema, wasConfigurationModified, wasSuccessful
-
-
-
-
Constructor Detail
-
EndLoopComponent
public EndLoopComponent(AssemblyLine parent, LoopComponent loop)
This constructor is used to insert the EndLoop component in the AL- Parameters:
parent
- The AssemblyLine this EndLoopComponent is part ofloop
- The LoopComponent that we end
-
-
Method Detail
-
initialize
public void initialize()
This method does nothing.- Overrides:
initialize
in classAssemblyLineComponent
-
willExecute
public boolean willExecute(Entry work)
This method always returns true.- Overrides:
willExecute
in classAssemblyLineComponent
- Parameters:
work
- an Entry object- Returns:
true
-
getType
public int getType()
Return the type of this component- Overrides:
getType
in classAssemblyLineComponent
- Returns:
- ServerConstants.TYPE_LOOP
-
add
public void add(Entry meta) throws java.lang.Exception
Tells the AssemblyLine to go back to the start of the loop- Overrides:
add
in classAssemblyLineComponent
- Parameters:
meta
- The work Entry. Ignored- Throws:
java.lang.Exception
- if we cannot go back to the start of the loop
-
handleException
public void handleException(java.lang.String oper, java.lang.Throwable e, Entry meta) throws java.lang.Exception
Handles Exceptions by rethrowing them- Overrides:
handleException
in classAssemblyLineComponent
- Parameters:
oper
- Ignorede
- The Throwable that is rethrownmeta
- The work Entry. Ignored- Throws:
java.lang.Exception
- e
-
trigger
public boolean trigger(java.lang.String oper, Entry work, Entry conn)
Calls Hooks. There are no Hooks.- Overrides:
trigger
in classAssemblyLineComponent
- Parameters:
oper
- a Srting for the operationwork
- an Entry objectconn
- an Entry object- Returns:
- always
false
-
trigger
public boolean trigger(java.lang.String oper, Entry work)
Calls Hooks. There are no Hooks.- Overrides:
trigger
in classAssemblyLineComponent
- Parameters:
oper
- an Entry objectwork
- an Entry object- Returns:
- always
false
-
close
public void close() throws java.lang.Exception
Releases resources- Overrides:
close
in classAssemblyLineComponent
- Throws:
java.lang.Exception
- if a problem occurs
-
-