com.ibm.di.server
Class EndLoopComponent

java.lang.Object
  extended by com.ibm.di.server.AssemblyLineComponent
      extended by 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


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.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
EndLoopComponent(AssemblyLine parent, LoopComponent loop)
          This constructor is used to insert the EndLoop component in the AL
 
Method Summary
 void add(Entry meta)
          Tells the AssemblyLine to go back to the start of the loop
 void close()
          Releases resources
 int getType()
          Return the type of this component
 void handleException(java.lang.String oper, java.lang.Throwable e, Entry meta)
          Handles Exceptions by rethrowing them
 void 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
 
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

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 of
loop - The LoopComponent that we end
Method Detail

initialize

public void initialize()
This method does nothing.

Overrides:
initialize in class AssemblyLineComponent

willExecute

public boolean willExecute(Entry work)
This method always returns true.

Overrides:
willExecute in class AssemblyLineComponent
Parameters:
work - an Entry object
Returns:
true

getType

public int getType()
Return the type of this component

Overrides:
getType in class AssemblyLineComponent
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 class AssemblyLineComponent
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 class AssemblyLineComponent
Parameters:
oper - Ignored
e - The Throwable that is rethrown
meta - 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 class AssemblyLineComponent
Parameters:
oper - a Srting for the operation
work - an Entry object
conn - 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 class AssemblyLineComponent
Parameters:
oper - an Entry object
work - an Entry object
Returns:
always false

close

public void close()
           throws java.lang.Exception
Releases resources

Overrides:
close in class AssemblyLineComponent
Throws:
java.lang.Exception - if a problem occurs