|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
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
RemoteCommitListener
s 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. |
RemoteCommitProvider |
getRemoteCommitProvider()
Return the RemoteCommitProvider that this manager uses. |
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 RemoteCommitProvider getRemoteCommitProvider()
RemoteCommitProvider
that this manager uses.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.AbstractEventManager
public void afterCommit(TransactionEvent event)
TransactionListener
afterCommit
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.AFTER_COMMIT
public void afterBegin(TransactionEvent event)
TransactionListener
afterBegin
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.AFTER_BEGIN
public void beforeFlush(TransactionEvent event)
TransactionListener
beforeFlush
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.BEFORE_FLUSH
public void afterFlush(TransactionEvent event)
TransactionListener
afterFlush
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.AFTER_FLUSH
public void beforeCommit(TransactionEvent event)
TransactionListener
beforeCommit
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.BEFORE_COMMIT
public void afterRollback(TransactionEvent event)
TransactionListener
afterRollback
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.AFTER_ROLLBACK
public void afterStateTransitions(TransactionEvent event)
TransactionListener
afterStateTransitions
in interface TransactionListener
kodo.event.TransactionListener
TransactionEvent.AFTER_STATE_TRANSITIONS
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |