|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.server.AssemblyLineComponent
com.ibm.di.server.CSDeltaTaskComponent
public class CSDeltaTaskComponent
This class represents a component extending the functionality of the AssemblyLineComponent. It uses the Delta FC logic to commit and rollback transactions to database.
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 | |
---|---|
CSDeltaTaskComponent(AssemblyLine parent,
String name,
ConnectorConfig config,
ConnectorInterface conn,
boolean isRestarting)
Constructor. |
|
CSDeltaTaskComponent(AssemblyLine parent,
String name,
ConnectorConfig config,
ConnectorInterface conn,
boolean isRestarting,
boolean forceRuntime)
Constructor. |
Method Summary | |
---|---|
void |
commitDeltaState()
Commit the last transactions in Derby database |
void |
commitOnEndIter()
Commit if in commit mode "On end of AL cycle" |
static boolean |
deltaEnabled(ConnectorConfig config)
Determines whether the delta of the given connector configuration is enable. |
void |
doConnectorTerminate()
This method calls the appropriate hooks and the connector's terminate method. |
Entry |
getnext()
The method returns the next entry from the connector. |
Entry |
getnext(Entry work)
The method returns the next entry from the connector. |
boolean |
markEntryInDeltaStore(Entry work)
Marks an Entry in the Delta Store. |
Entry |
nextDeletedEntry(Entry work)
Return the next deleted entry. |
void |
rollbackDeltaState()
Rollback the last transactions in Derby database |
void |
saveDeltaState()
Commit the last transactions in Derby database (alias for commitDeltaState) |
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 |
---|
public CSDeltaTaskComponent(AssemblyLine parent, String name, ConnectorConfig config, ConnectorInterface conn, boolean isRestarting) throws Exception
parent
- the parent AssemblyLinename
- the component nameconfig
- the connector configurationconn
- the connectorisRestarting
- whether is restarting
Exception
- if a problem occurspublic CSDeltaTaskComponent(AssemblyLine parent, String name, ConnectorConfig config, ConnectorInterface conn, boolean isRestarting, boolean forceRuntime) throws Exception
parent
- the parent AssemblyLinename
- the component nameconfig
- the connector configurationconn
- the connectorisRestarting
- whether is restarting; this parameter is always false;forceRuntime
- whether to use runtime provided connector
Exception
- if a problem occursMethod Detail |
---|
public static boolean deltaEnabled(ConnectorConfig config)
config
- a connector configuration
true
if it is enabled, otherwise false
public void doConnectorTerminate() throws Exception
doConnectorTerminate
in class AssemblyLineComponent
Exception
- if a problem occurspublic Entry getnext() throws Exception
getnext
in class AssemblyLineComponent
Exception
- if a problem occurspublic Entry getnext(Entry work) throws Exception
getnext()
method if we are working in Iterator mode.
getnext
in class AssemblyLineComponent
work
- the work entry to fill in
Exception
- if a problem occurspublic Entry nextDeletedEntry(Entry work) throws Exception
work
- the work entry to fill in
Exception
- if a problem occurspublic void commitDeltaState() throws SQLException
SQLException
- Thrown if an error occurspublic void rollbackDeltaState() throws SQLException
SQLException
- Thrown if an error occursmarkEntryInDeltaStore(com.ibm.di.entry.Entry)
public void saveDeltaState() throws SQLException
SQLException
- Thrown if an error occurspublic void commitOnEndIter() throws SQLException
SQLException
- Thrown if an error occurspublic boolean markEntryInDeltaStore(Entry work)
MyIterator.rollbackDeltaState(); MyIterator.markEntryInDeltaStore(work); MyIterator.commitDeltaState();
work
- The Entry that contains the key information
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |