public class ExportManager extends neo.xredsys.api.services.AsyncEventListenerService implements StagedEventListener
Modifier and Type | Class and Description |
---|---|
protected class |
ExportManager.ExportTask |
GenericService.StartCommand, GenericService.StopCommand
mLogger, state
Constructor and Description |
---|
ExportManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(IOEvent pEvent)
This method is called synchronously, so it is recommended that you only do initial filtering that are fast to execute in this method.
|
void |
addConfiguration(String pIgnored,
ExportConfiguration pConfiguration) |
void |
export(IOObject pObject) |
void |
export(Object pKey) |
void |
export(Object pKey,
IOEvent pEvent,
boolean pSynchronous) |
void |
exportObject(IOObject pObject) |
void |
exportObject(IOObject pObject,
IOEvent pEvent) |
String |
getRevision() |
protected void |
handle(IOEvent pEvent)
This method is called from
AsyncEventListenerService.handleEvent(IOEvent) to let an IOEventListener respond to an IOEvent . |
boolean |
isEnabled() |
void |
setEnabled(boolean pEnabled) |
void |
setObjectLoader(ObjectLoader pObjectLoader) |
protected void |
startEventListener()
Template method: A no operation implementation that is called from
AsyncEventListenerService.startService() before it has registered itself with the AsyncEventListenerService.getEventManager() . |
protected void |
stopEventListener()
Template method: A no operation implementation that is called from
AsyncEventListenerService.stopService() after it has unregistered itself from the AsyncEventListenerService.getEventManager() . |
acceptEvent, getBacklog, getCollector, getEventManager, getService, handleEvent, isLocalOnly, setCollector, setEventManager, startService, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public boolean isEnabled()
public void setEnabled(boolean pEnabled)
public void addConfiguration(String pIgnored, ExportConfiguration pConfiguration)
public String getRevision()
protected void startEventListener()
neo.xredsys.api.services.AsyncEventListenerService
Template method: A no operation implementation that is called from AsyncEventListenerService.startService()
before it has registered itself with the AsyncEventListenerService.getEventManager()
.
Subclasses might override this to do their own start up logic, by example validation of configuration.
startEventListener
in class neo.xredsys.api.services.AsyncEventListenerService
AsyncEventListenerService.startService()
protected void stopEventListener()
neo.xredsys.api.services.AsyncEventListenerService
Template method: A no operation implementation that is called from AsyncEventListenerService.stopService()
after it has unregistered itself from the AsyncEventListenerService.getEventManager()
.
Subclasses might override this to do their own shutdown logic, by example cleaning up after itself.
stopEventListener
in class neo.xredsys.api.services.AsyncEventListenerService
AsyncEventListenerService.stopService()
public void exportObject(IOObject pObject) throws NoSuchObjectException, SQLException
NoSuchObjectException
SQLException
public void exportObject(IOObject pObject, IOEvent pEvent) throws SQLException, NoSuchObjectException
SQLException
NoSuchObjectException
protected boolean accept(IOEvent pEvent)
neo.xredsys.api.services.AsyncEventListenerService
This method is called synchronously, so it is recommended that you only do initial filtering that are fast to execute in this method.
accept
in class neo.xredsys.api.services.AsyncEventListenerService
pEvent
- the event to accepttrue
if the event is to be accepted, false
otherwiseprotected void handle(IOEvent pEvent)
neo.xredsys.api.services.AsyncEventListenerService
This method is called from AsyncEventListenerService.handleEvent(IOEvent)
to let an IOEventListener
respond to an IOEvent
. The IOEventListener
may throw any type of exception; these
exceptions will be logged by AsyncEventListenerService.handleEvent(IOEvent)
.
Only called from AsyncEventListenerService.handleEvent(IOEvent)
when GenericService.isServiceRunning()
returns true
.
handle
in class neo.xredsys.api.services.AsyncEventListenerService
pEvent
- the eventpublic void export(IOObject pObject) throws SQLException, NoSuchObjectException, ExportException
public void export(Object pKey) throws SQLException, NoSuchObjectException, ExportException
public void export(Object pKey, IOEvent pEvent, boolean pSynchronous) throws SQLException, NoSuchObjectException, ExportException
public void setObjectLoader(ObjectLoader pObjectLoader)
© 1998- 2021 Escenic AS