Package com.ibm.di.server
Class ReplyChannelComponent
- java.lang.Object
-
- com.ibm.di.server.AssemblyLineComponent
-
- com.ibm.di.server.ReplyChannelComponent
-
- All Implemented Interfaces:
java.util.Map
public class ReplyChannelComponent extends AssemblyLineComponent
-
-
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 ReplyChannelComponent(ConnectorConfig config)
Deprecated.ReplyChannelComponent(AssemblyLineComponent comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.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(java.lang.String oper, Entry work)
Calls the hook named oper, declaring work as the corresponding bean.boolean
trigger(java.lang.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, 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, useAttributeMap, useAttributeMap, useAttributeMap, useInputMap, useMap, useMap, useOutputMap, values, verifySchema, wasConfigurationModified, wasSuccessful, willExecute
-
-
-
-
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 classAssemblyLineComponent
- Returns:
- The integer value corresponding to the execution mode
-
reply
public void reply(Entry meta) throws java.lang.Exception
This method implements the reply operation that is used in Server mode.- Overrides:
reply
in classAssemblyLineComponent
- Parameters:
meta
- The work entry to add- Throws:
java.lang.Exception
- the underlying AssemblyLineComponent is missing or raised an error
-
trigger
public boolean trigger(java.lang.String oper, Entry work, Entry conn) throws java.lang.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 classAssemblyLineComponent
- Parameters:
oper
- Name of the hook to callwork
- This will be the work bean in the hookconn
- 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:
java.lang.Exception
- Any exception thrown by the execution of the hook
-
trigger
public boolean trigger(java.lang.String oper, Entry work) throws java.lang.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 classAssemblyLineComponent
- Parameters:
oper
- Name of the hook to callwork
- 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:
java.lang.Exception
- Any exception thrown by the execution of the hook
-
getName
public java.lang.String getName()
This method returns the name assigned to the Connector by the AssemblyLine, followed by ".reply"- Overrides:
getName
in classAssemblyLineComponent
- Returns:
- The name of this Connector, followed by ".reply"
-
-