|
||||||||||
| 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 and containing a delta store that allows it to commit and rollback transactions to database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.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,
java.lang.String name,
ConnectorConfig config,
ConnectorInterface conn,
boolean isRestarting)
Constructor. |
|
CSDeltaTaskComponent(AssemblyLine parent,
java.lang.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,
java.lang.String name,
ConnectorConfig config,
ConnectorInterface conn,
boolean isRestarting)
throws java.lang.Exception
parent - the parent AssemblyLinename - the component nameconfig - the connector configurationconn - the connectorisRestarting - whether is restarting
java.lang.Exception - if a problem occurs
public CSDeltaTaskComponent(AssemblyLine parent,
java.lang.String name,
ConnectorConfig config,
ConnectorInterface conn,
boolean isRestarting,
boolean forceRuntime)
throws java.lang.Exception
parent - the parent AssemblyLinename - the component nameconfig - the connector configurationconn - the connectorisRestarting - whether is restartingforceRuntime - whether to use runtime provided connector
java.lang.Exception - if a problem occurs| Method Detail |
|---|
public static boolean deltaEnabled(ConnectorConfig config)
config - a connector configuration
true if it is enabled, otherwise
false
public void doConnectorTerminate()
throws java.lang.Exception
doConnectorTerminate in class AssemblyLineComponentjava.lang.Exception - if a problem occurs
public Entry getnext()
throws java.lang.Exception
getnext in class AssemblyLineComponentjava.lang.Exception - if a problem occurs
public Entry getnext(Entry work)
throws java.lang.Exception
getnext in class AssemblyLineComponentwork - the work entry to fill in
java.lang.Exception - if a problem occurs
public Entry nextDeletedEntry(Entry work)
throws java.lang.Exception
work - the work entry to fill in
java.lang.Exception - if a problem occurs
public void commitDeltaState()
throws java.sql.SQLException
java.sql.SQLException - Thrown if an error occurs
public void rollbackDeltaState()
throws java.sql.SQLException
java.sql.SQLException - Thrown if an error occursmarkEntryInDeltaStore(com.ibm.di.entry.Entry)
public void saveDeltaState()
throws java.sql.SQLException
java.sql.SQLException - Thrown if an error occurs
public void commitOnEndIter()
throws java.sql.SQLException
java.sql.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 | |||||||||