|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--serp.util.AbstractEventManager
|
+--kodo.event.RemoteCommitEventManager
Manager that can be used to track and notify
RemoteCommitListeners on remote commit events. Exceptions thrown
by listeners are consumed. If remote events are enabled, this manager
should be installed as a transaction listener on all persistence managers
so that it knows when commits are made.
| Constructor Summary | |
RemoteCommitEventManager(JDOConfiguration conf)
Constructor. |
|
| Method Summary | |
void |
afterBegin(TransactionEvent event)
Notification that a transaction has begun. |
void |
afterCommit(TransactionEvent event)
Notification that a transaction has successfully committed. |
void |
afterFlush(TransactionEvent event)
Notification that a transaction has flushed all object changes. |
void |
afterRollback(TransactionEvent event)
Notification that a transaction has been rolled back. |
void |
afterStateTransitions(TransactionEvent event)
Notification that JDO state transitions are complete. |
boolean |
areRemoteEventsEnabled()
Return true if remote events are enabled. |
void |
beforeCommit(TransactionEvent event)
Notification that the next flush is for the transaction commit. |
void |
beforeFlush(TransactionEvent event)
Notification that a transaction is about to flush all object changes. |
void |
close()
Close this manager and all registered listeners. |
protected void |
fireEvent(Object event,
Object listener)
Fire the given event to all listeners. |
void |
registerListener(RemoteCommitListener listen)
|
| Methods inherited from class serp.util.AbstractEventManager |
fireEvent, getListeners, hasListener, hasListeners, registerListener, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RemoteCommitEventManager(JDOConfiguration conf)
| Method Detail |
public boolean areRemoteEventsEnabled()
public void registerListener(RemoteCommitListener listen)
public void close()
close in interface com.solarmetric.util.Closeable
protected void fireEvent(Object event,
Object listener)
fireEvent in class serp.util.AbstractEventManagerpublic void afterCommit(TransactionEvent event)
TransactionListenerafterCommit in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.AFTER_COMMITpublic void afterBegin(TransactionEvent event)
TransactionListenerafterBegin in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.AFTER_BEGINpublic void beforeFlush(TransactionEvent event)
TransactionListenerbeforeFlush in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.BEFORE_FLUSHpublic void afterFlush(TransactionEvent event)
TransactionListenerafterFlush in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.AFTER_FLUSHpublic void beforeCommit(TransactionEvent event)
TransactionListenerbeforeCommit in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.BEFORE_COMMITpublic void afterRollback(TransactionEvent event)
TransactionListenerafterRollback in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.AFTER_ROLLBACKpublic void afterStateTransitions(TransactionEvent event)
TransactionListenerafterStateTransitions in interface TransactionListenerkodo.event.TransactionListenerTransactionEvent.AFTER_STATE_TRANSITIONS
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||