com.ibm.di.server
Class EndLoopComponent

java.lang.Object
  extended by com.ibm.di.server.AssemblyLineComponent
      extended by com.ibm.di.server.EndLoopComponent

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, handler, imap, INITIALIZE, log, modmap, name, parent, pooledConnector, restartCycle, reusingConnector, SELECT, stats
 
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(String oper, Throwable e, Entry meta)
          Handles Exceptions by rethrowing them
 void initialize()
          This method does nothing.
 boolean trigger(String oper, Entry work)
          Calls Hooks.
 boolean trigger(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, debug, delete, deleteEntry, delta, doConnectorInitialize, doConnectorTerminate, dumpEntry, dumpObjects, expandParameters, getBaseConfiguration, getConfig, getConfiguration, getConnector, getConnectorParam, getCriteria, getCurrent, getDebug, getDuplicateEntryCount, getFirstDuplicateEntry, getHandler, getLastEntry, getLastReadEntry, getLog, getName, getnext, getnext, getnextClient, getNextDuplicateEntry, getRestartInfoEntry, getStats, handleSuccess, isCheckpointRestartEnabled, isDeltaMode, isEnabled, isExceptionFatal, logmsg, lookup, lookup, mapEntry, modify, pushback, reconnect, reply, setConnectorParam, setCriteria, setCriteria, setCurrent, setDebug, setDuplicateEntryCount, setErrorObject, setName, setRestartInfoEntry, trigger, update, verifySchema, wasConfigurationModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - The current work Entry
Returns:
True if this component is enabled

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 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:
Exception - if we cannot go back to the start of the loop

handleException

public void handleException(String oper,
                            Throwable e,
                            Entry meta)
                     throws 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:
Exception - e

trigger

public boolean trigger(String oper,
                       Entry work,
                       Entry conn)
Calls Hooks. There are no Hooks.

Overrides:
trigger in class AssemblyLineComponent
Parameters:
oper - Name of the hook to call
work - This will be the work bean in the hook
conn - This will be the conn bean in the hook
Returns:
always false

trigger

public boolean trigger(String oper,
                       Entry work)
Calls Hooks. There are no Hooks.

Overrides:
trigger in class AssemblyLineComponent
Parameters:
oper - Name of the hook to call
work - This will be the work bean in the hook
Returns:
always false

close

public void close()
           throws Exception
Releases resources

Overrides:
close in class AssemblyLineComponent
Throws:
Exception