com.ibm.di.server
Class ReplyChannelComponent

java.lang.Object
  extended by com.ibm.di.server.AssemblyLineComponent
      extended by com.ibm.di.server.ReplyChannelComponent
All Implemented Interfaces:
Map

public class ReplyChannelComponent
extends AssemblyLineComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
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, reusingConnector, SELECT, stats, SUCCESSFUL
 
Constructor Summary
ReplyChannelComponent(AssemblyLineComponent comp)
           
ReplyChannelComponent(ConnectorConfig config)
          Deprecated.  
 
Method Summary
 String getName()
          This method returns the name assigned to the Connector by the AssemblyLine, followed by ".reply"
 int getType()
          This method returns the mode of a Connector, or the type constant for any other type of component.
 void reply(Entry meta)
          This method implements the reply operation that is used in Server mode.
 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, clear, close, componentInitialized, containsKey, containsValue, debug, delete, deleteEntry, delta, doConnectorInitialize, doConnectorTerminate, dumpEntry, dumpObjects, entrySet, executeOperation, expandParameters, failBack, failOver, get, getBaseConfiguration, getConfig, getConfiguration, getConnector, getConnectorParam, getCriteria, getCurrent, getDebug, getDuplicateEntryCount, getFirstDuplicateEntry, getHandler, getLastEntry, getLastReadEntry, getLog, getnext, getnext, getnextClient, getNextDuplicateEntry, getRestartInfoEntry, getSimulatingState, getStats, handleException, handleSuccess, initialize, isCheckpointRestartEnabled, isDeltaMode, isEmpty, isEnabled, isExceptionFatal, isFailOvered, keySet, logmsg, lookup, lookup, mapEntry, modify, pushback, put, putAll, reconnect, remove, resetStatus, setConnectorParam, setCriteria, setCriteria, setCurrent, setDebug, setDuplicateEntryCount, setErrorObject, setName, setRestartInfoEntry, setSimulatingState, setSuccessful, size, toString, trigger, triggerImpl, update, useInputMap, useMap, useMap, useOutputMap, values, verifySchema, wasConfigurationModified, wasSuccessful, willExecute
 
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

ReplyChannelComponent

public ReplyChannelComponent(ConnectorConfig config)
Deprecated. 


ReplyChannelComponent

public ReplyChannelComponent(AssemblyLineComponent comp)
Method Detail

getType

public int getType()
Description copied from class: AssemblyLineComponent
This method returns the mode of a Connector, or the type constant for any other type of component.

ServerConstants.TYPE_ITERATOR = 0
ServerConstants.TYPE_UPDATE = 1
ServerConstants.TYPE_LOOKUP = 2
ServerConstants.TYPE_DELETE = 3
ServerConstants.TYPE_ADDONLY = 4
ServerConstants.TYPE_CALLREPLY = 5
ServerConstants.TYPE_SCRIPT = 6
ServerConstants.TYPE_FUNCTION = 7
ServerConstants.TYPE_BRANCH = 8
ServerConstants.TYPE_REPLYCHANNEL = 9
ServerConstants.TYPE_SERVER = 10
ServerConstants.TYPE_DELTA = 11
ServerConstants.TYPE_LOOP = 12
ServerConstants.TYPE_ATTRIBUTEMAP = 13
ServerConstants.TYPE_SWITCH = 14
ServerConstants.TYPE_CASE = 15

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

reply

public void reply(Entry meta)
           throws Exception
This method implements the reply operation that is used in Server mode.

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"