|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModificationSubscriber
ModificationSubscriber helps define a 'modification-type' subscriber which allows to develop an exit plugin which can allow 2-Phase commit. It implements the Subscriber interface to call the exit function and then allow the subscriber to 'veto' modifications made to the datagraph by other subscribers.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT_NOTICE
|
Method Summary | |
---|---|
void |
commit(java.lang.String emitter,
commonj.sdo.DataObject rootDO,
int exitPointType,
java.lang.String inlineName)
Commit is called if all the modification subscribers that are listed with a preExit or inlineExit or postExit have returned true during the runtime. |
boolean |
inlineExitCall(java.lang.String emitter,
commonj.sdo.DataObject daisyChainDGRootDO,
java.lang.String inlineTopicName)
This function is called in the middle of a Topic-Emitter's execution and allows the ModificationSubscriber to execute its inlineExit code. |
boolean |
postExitCall(java.lang.String emitter,
commonj.sdo.DataObject daisyChainDGRootDO,
commonj.sdo.DataObject adapterDGRootDo)
This function is called at the end of a Topic-Emitter's execution and allows the ModificationSubscriber to execute its PostExit code. |
boolean |
preExitCall(java.lang.String emitter,
commonj.sdo.DataObject pristineDGRootDO)
This function is called at the beginning of a Topic-Emitter and allows the ModificationSubscriber to execute its PreExit code. |
void |
rollback(java.lang.String emitter,
commonj.sdo.DataObject rootDO,
int exitPointType,
java.lang.String inlineName)
Rollback is called if any of the modification subscribers that are listed with a preExit or inlineExit or postExit have returned false during the runtime. |
Methods inherited from interface com.ibm.wsspi.wim.pluginmanager.Subscriber |
---|
getSubscriberName, getSubscriberType, initSubscriber, recovery, shutdownSubscriber |
Field Detail |
---|
static final java.lang.String COPYRIGHT_NOTICE
Method Detail |
---|
boolean preExitCall(java.lang.String emitter, commonj.sdo.DataObject pristineDGRootDO) throws SubscriberException
emitter
- The topic-emitter name on which the subscriber is listening onpristineDGRootDO
- Root The DataObject which has the information passed from API
SubscriberException
boolean inlineExitCall(java.lang.String emitter, commonj.sdo.DataObject daisyChainDGRootDO, java.lang.String inlineTopicName) throws SubscriberException
emitter
- The topic-emitter name on which we are listening ondaisyChainDGRootDO
- Root DataObject which has the information passed from API
which might have been modified by other subscribersinlineTopicName
- inline topic name
SubscriberException
boolean postExitCall(java.lang.String emitter, commonj.sdo.DataObject daisyChainDGRootDO, commonj.sdo.DataObject adapterDGRootDo) throws SubscriberException
emitter
- The topic-emitter name on which we are listening ondaisyChainDGRootDO
- Root DataObject which has the information passed from API
which might have been modified by other subscribersadapterDGRootDO
- Root DataObject returned by the adapter
SubscriberException
void commit(java.lang.String emitter, commonj.sdo.DataObject rootDO, int exitPointType, java.lang.String inlineName) throws SubscriberException
emitter
- Topic-emitter namerootDO
- The modified DataObject Object, for postExitCall it
is the adapterDGRootDOexitPointType
- Defines the point in the code execution at which
the commit is being calledinlineName
- - null for preExitCall & postExitCall but has the
name of the inline point
SubscriberException
void rollback(java.lang.String emitter, commonj.sdo.DataObject rootDO, int exitPointType, java.lang.String inlineName) throws SubscriberException
emitter
- Topic-emitter namerootDO
- The modified DataObject Object, for postExitCall it
is the adapterDGRootDOexitPointType
- Defines the point in the code execution at which
the commit is being calledinlineName
- - null for preExitCall & postExitCall but has the
name of the inline point
SubscriberException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |