Package org.apache.openjpa.event
Class AbstractRemoteCommitProvider
- java.lang.Object
-
- org.apache.openjpa.event.AbstractRemoteCommitProvider
-
- All Implemented Interfaces:
RemoteCommitProvider,Configurable,Closeable
- Direct Known Subclasses:
JMSRemoteCommitProvider,SingleJVMRemoteCommitProvider,TCPRemoteCommitProvider
public abstract class AbstractRemoteCommitProvider extends java.lang.Object implements RemoteCommitProvider, Configurable
Abstract implementation ofRemoteCommitProvider. Obtains handles to the event manager and log.- Since:
- 0.2.5.0
- Author:
- Patrick Linskey
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteCommitEventManagereventManagerprotected Loglog
-
Constructor Summary
Constructors Constructor Description AbstractRemoteCommitProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendConfiguration()Invoked upon completion of bean property configuration for this object.protected voidfireEvent(RemoteCommitEvent event)Fire a remote commit event via the cached event manager.voidsetConfiguration(Configuration config)Invoked prior to setting bean properties.voidsetRemoteCommitEventManager(RemoteCommitEventManager mgr)Set the "owning" remote event manager to notify when remote events are received from remote sources.voidstartConfiguration()Invoked before bean property configuration is begun on this object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.event.RemoteCommitProvider
broadcast, close
-
-
-
-
Field Detail
-
eventManager
protected RemoteCommitEventManager eventManager
-
log
protected Log log
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration config)
Description copied from interface:ConfigurableInvoked prior to setting bean properties.- Specified by:
setConfigurationin interfaceConfigurable
-
startConfiguration
public void startConfiguration()
Description copied from interface:ConfigurableInvoked before bean property configuration is begun on this object.- Specified by:
startConfigurationin interfaceConfigurable
-
endConfiguration
public void endConfiguration()
Description copied from interface:ConfigurableInvoked upon completion of bean property configuration for this object.- Specified by:
endConfigurationin interfaceConfigurable
-
setRemoteCommitEventManager
public void setRemoteCommitEventManager(RemoteCommitEventManager mgr)
Description copied from interface:RemoteCommitProviderSet the "owning" remote event manager to notify when remote events are received from remote sources.- Specified by:
setRemoteCommitEventManagerin interfaceRemoteCommitProvider
-
fireEvent
protected void fireEvent(RemoteCommitEvent event)
Fire a remote commit event via the cached event manager.
-
-