public abstract class WmUnconnectedListener extends WmNotificationListener
_lastError, _listenerNodeName, _retryCount, _statistics
Modifier | Constructor and Description |
---|---|
protected |
WmUnconnectedListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
beginTransaction()
Method stub to start a transaction.
|
protected void |
checkTransaction()
Method stub to verify transaction state before starting a new transaction.
|
protected void |
commit()
Method stub to commit a transaction.
|
void |
discoverParameters(AdapterParameters ap)
Does a double-dispatch to the AdapterParameters object.
|
com.wm.pkg.art.ns.ListenerNode |
getListenerNode()
Retrieve (and cache) listener node object
|
protected WmListenerNotification |
identifyNotificationFor(java.lang.Object data)
Identifies the notification that should process the data object.
|
protected boolean |
isShutdownRequested()
checks whether the current listener should shut down
|
protected java.lang.Object |
listen()
Listens to backend resource until data is encountered, or shutdown is requested.
|
protected void |
markNotificationProcessed(NotificationResults results)
Record the results of notification processing
|
protected void |
markStartupComplete()
Record that listener startup was successfully completed.
|
void |
notifyEvent(int et)
process callback events -- currently only shutdown is supported
|
protected void |
rollback()
Method stub to rollback a transaction.
|
void |
runListener()
Listener runtime execution loop.
|
protected void |
runStartup()
Wrapped call to adapter implementation's listenerStartup method.
|
void |
shutdownCallBack() |
adapterCheckValue, adapterResourceDomainLookup, cleanup, createNotificationEvent, doShutdown, execute, fillWmDescriptor, fillWmUIDescriptor, getLastError, getLastErrorMessage, getLoggableName, getRegisteredNotifications, getStatistics, handleFatalException, handleRecoverableException, initialize, initListenerNodeProperties, listenerShutdown, listenerStartup, logCallback, logDebugPlus, logDebugPlusNamed, logDebugPlusNamed, makeDetailedException, makeDetailedException, makeDetailedException, makeDetailedException, processNotification, processNotificationResults, registerNotification, registerResourceDomain, resetRetryCount, resourceDomainLookup, restrictNotificationTypes, run, runNotifications, setRegisteredNotifications, setup, unregisterNotification, waitForData
protected void beginTransaction() throws javax.resource.ResourceException
beginTransaction
in class WmNotificationListener
javax.resource.ResourceException
WmNotificationListener.beginTransaction()
protected void checkTransaction() throws javax.resource.ResourceException
checkTransaction
in class WmNotificationListener
javax.resource.ResourceException
WmNotificationListener.checkTransaction()
protected void commit() throws javax.resource.ResourceException
commit
in class WmNotificationListener
javax.resource.ResourceException
WmNotificationListener.commit()
public void discoverParameters(AdapterParameters ap) throws AdapterException
discoverParameters
in class WmNotificationListener
AdapterException
public final com.wm.pkg.art.ns.ListenerNode getListenerNode() throws com.wm.pkg.art.error.DetailedException
getListenerNode
in class WmNotificationListener
com.wm.pkg.art.error.DetailedException
protected WmListenerNotification identifyNotificationFor(java.lang.Object data) throws javax.resource.ResourceException
data
- data to be processedjavax.resource.ResourceException
- - adapter-based errorprotected final boolean isShutdownRequested() throws com.wm.pkg.art.error.DetailedException
com.wm.pkg.art.error.DetailedException
protected java.lang.Object listen() throws javax.resource.ResourceException
com.wm.pkg.art.error.DetailedException
- - ART internal errorjavax.resource.ResourceException
- - indicates an adapter-based failureprotected final void markNotificationProcessed(NotificationResults results) throws javax.resource.ResourceException
results
- AdapterConnectionException
- - listener should restartcom.wm.pkg.art.error.DetailedException
- - internal errorjavax.resource.ResourceException
protected final void markStartupComplete() throws com.wm.pkg.art.error.DetailedException
com.wm.pkg.art.error.DetailedException
public final void notifyEvent(int et) throws com.wm.pkg.art.error.DetailedException
notifyEvent
in class WmNotificationListener
et
- The type of event that just occured. It must match one of the
constants NOTIFY_UPDATE, NOTIFY_DELETE, NOTIFY_INIT, NOTIFY_STARTUP,
NOTIFY_SHUTDOWN, NOTIFY_ENABLE, NOTIFY_DISABLEcom.wm.pkg.art.error.DetailedException
WmNotificationListener.notifyEvent(int)
protected void rollback() throws javax.resource.ResourceException
rollback
in class WmNotificationListener
javax.resource.ResourceException
WmNotificationListener.rollback()
public void runListener() throws javax.resource.ResourceException, java.lang.Throwable
runListener
in class WmNotificationListener
javax.resource.ResourceException
- if a processing error has occuredjava.lang.Throwable
protected void runStartup() throws javax.resource.ResourceException
javax.resource.ResourceException
public void shutdownCallBack() throws javax.resource.ResourceException
javax.resource.ResourceException
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.