com.ibm.di.server
Class ReplyChannelComponent

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

public class ReplyChannelComponent
extends AssemblyLineComponent


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
ReplyChannelComponent(AssemblyLineComponent comp)
           
ReplyChannelComponent(ConnectorConfig config)
           
 
Method Summary
 ConnectorConfig getConfiguration()
          This method returns the Connector configuration
 String getName()
          This method returns the name assigned to the Connector by the AssemblyLine, followed by ".reply"
 int getType()
          This method returns the mode in which we are executing (e.g.
 void reply(Entry meta)
          This method implements the AddOnly mode operation.
 boolean trigger(String oper, Entry work)
          Calls the hook named oper, declaring work as the corresponding bean.
 boolean trigger(String oper, Entry work, Entry conn)
          Calls the hook named oper, declaring work and conn as the corresponding beans.
 
Methods inherited from class com.ibm.di.server.AssemblyLineComponent
add, callreply, checkInitialize, checkTerminate, close, debug, delete, deleteEntry, delta, doConnectorInitialize, doConnectorTerminate, dumpEntry, dumpObjects, expandParameters, getBaseConfiguration, getConfig, getConnector, getConnectorParam, getCriteria, getCurrent, getDebug, getDuplicateEntryCount, getFirstDuplicateEntry, getHandler, getLastEntry, getLastReadEntry, getLog, getnext, getnext, getnextClient, getNextDuplicateEntry, getRestartInfoEntry, getStats, handleException, handleSuccess, initialize, isCheckpointRestartEnabled, isDeltaMode, isEnabled, isExceptionFatal, logmsg, lookup, lookup, mapEntry, modify, pushback, reconnect, setConnectorParam, setCriteria, setCriteria, setCurrent, setDebug, setDuplicateEntryCount, setErrorObject, setName, setRestartInfoEntry, trigger, update, verifySchema, wasConfigurationModified, willExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplyChannelComponent

public ReplyChannelComponent(ConnectorConfig config)

ReplyChannelComponent

public ReplyChannelComponent(AssemblyLineComponent comp)
Method Detail

getType

public int getType()
Description copied from class: AssemblyLineComponent
This method returns the mode in which we are executing (e.g. Iterator, update etc..). public final static int TYPE_ITERATOR = 0; public final static int TYPE_UPDATE = 1; public final static int TYPE_LOOKUP = 2; public final static int TYPE_DELETE = 3; public final static int TYPE_ADDONLY = 4; public final static int TYPE_CALLREPLY = 5; public final static int TYPE_SCRIPT = 6; public final static int TYPE_FUNCTION = 7; public final static int TYPE_BRANCH = 8; public final static int TYPE_REPLYCHANNEL = 9; public final static int TYPE_SERVER = 10; public final static int TYPE_DELTA = 11; public final static int TYPE_LOOP = 12; public final static int TYPE_ATTRIBUTEMAP = 13; public final static int TYPE_SWITCH = 14; public final static int TYPE_CASE = 15;

Overrides:
getType in class AssemblyLineComponent
Returns:
The integer value corresponding to the execution mode

getConfiguration

public ConnectorConfig getConfiguration()
Description copied from class: AssemblyLineComponent
This method returns the Connector configuration

Overrides:
getConfiguration in class AssemblyLineComponent

reply

public void reply(Entry meta)
           throws Exception
This method implements the AddOnly mode operation.

Overrides:
reply in class AssemblyLineComponent
Parameters:
meta - The work entry to add
Throws:
Exception - the underlying AssemblyLineComponent is missing or raised an error

trigger

public boolean trigger(String oper,
                       Entry work,
                       Entry conn)
                throws Exception
Calls the hook named oper, declaring work and conn as the corresponding beans. The trigger function calls one of the AssemblyLine hooks defined for this Connector using the provided conn/work.

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:
True if the hook was executed, false if the hook is not defined or disabled.
Throws:
Exception - Any exception thrown by the execution of the hook

trigger

public boolean trigger(String oper,
                       Entry work)
                throws Exception
Calls the hook named oper, declaring work as the corresponding bean. The trigger function calls one of the AssemblyLine hooks defined for this Connector using the provided work.

Overrides:
trigger in class AssemblyLineComponent
Parameters:
oper - Name of the hook to call
work - This will be the work bean in the hook
Returns:
True if the hook was executed, false if the hook is not defined or disabled.
Throws:
Exception - Any exception thrown by the execution of the hook

getName

public String getName()
This method returns the name assigned to the Connector by the AssemblyLine, followed by ".reply"

Overrides:
getName in class AssemblyLineComponent
Returns:
The name of this Connector, followed by ".reply"