com.ibm.di.server
Class AttributeMapComponent

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

public class AttributeMapComponent
extends AssemblyLineComponent

This class is used by the AssemblyLine, it contains a standalone Attribute map


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, 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
AttributeMapComponent(AssemblyLine parent, String name, ALMappingConfig config)
          Constructor for the AttributeMapComponent object
 
Method Summary
 void add(Entry meta)
          Does the attribute mapping in every cycle
 void close()
          This method closes the AttributeMapComponent
 ConnectorConfig getConfiguration()
          Returns the configuration for this component
 int getType()
          Returns the type of this component
 void handleException(String oper, Throwable e, Entry meta)
          Handles any Exception.
 void initialize()
          This method creates the AttributeMapping for this component
 boolean trigger(String oper, Entry work)
          Performs any hook.
 boolean trigger(String oper, Entry work, Entry conn)
          Performs any hook.
 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, dumpEntry, dumpObjects, entrySet, executeOperation, expandParameters, get, getBaseConfiguration, getConfig, 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, 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, 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

AttributeMapComponent

public AttributeMapComponent(AssemblyLine parent,
                             String name,
                             ALMappingConfig config)
                      throws Exception
Constructor for the AttributeMapComponent object

Parameters:
parent - The AssemblyLine that contains this AttributeMapComponent
name - The name of this component
config - The configuration for this component
Throws:
Exception - Any Exception that might occur
Method Detail

initialize

public void initialize()
                throws Exception
This method creates the AttributeMapping for this component

Overrides:
initialize in class AssemblyLineComponent
Throws:
Exception - Any Exception that might be thrown

willExecute

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

Overrides:
willExecute in class AssemblyLineComponent
Parameters:
work - The work Entry
Returns:
always true
Throws:
Exception - Any exception thrown by the executed hook

getConfiguration

public ConnectorConfig getConfiguration()
Returns the configuration for this component

Overrides:
getConfiguration in class AssemblyLineComponent
Returns:
the configuration for this component

getType

public int getType()
Returns the type of this component

Overrides:
getType in class AssemblyLineComponent
Returns:
ServerConstants.TYPE_ATTRIBUTEMAP

add

public void add(Entry meta)
         throws Exception
Does the attribute mapping in every cycle

Overrides:
add in class AssemblyLineComponent
Parameters:
meta - The work Entry
Throws:
Exception - the component is not initialized or the underlying Connector raised an error or some of the user-defined hooks raised an error

handleException

public void handleException(String oper,
                            Throwable e,
                            Entry meta)
                     throws Exception
Handles any Exception. Since Attribute Maps don't have hooks, this method just rethrows the Exception

Overrides:
handleException in class AssemblyLineComponent
Parameters:
oper - The operation that was performed. Ignored
e - The Throwable that was thrown
meta - The work Entry
Throws:
Exception - Rethrows the Throwable, if necessary wrapped in an Exception

trigger

public boolean trigger(String oper,
                       Entry work,
                       Entry conn)
Performs any hook. Since there are no hooks, this method is never called

Overrides:
trigger in class AssemblyLineComponent
Parameters:
oper - The operation that was performed
work - The work Entry
conn - The conn Entry
Returns:
always false

trigger

public boolean trigger(String oper,
                       Entry work)
Performs any hook. Since there are no hooks, this method is never called

Overrides:
trigger in class AssemblyLineComponent
Parameters:
oper - The operation that was performed
work - The work Entry
Returns:
always false

close

public void close()
           throws Exception
This method closes the AttributeMapComponent

Overrides:
close in class AssemblyLineComponent
Throws:
Exception