public interface EngineNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Engine objects. This session is intended for consumers
needing to synchronize their state with this service without the use of
polling. Notifications are cancelled when this session is closed.
Notifications are triggered with changes to the Engine
object itself. Adding and removing rules result in notifications available
from the notification session for rules.
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeEngineNotification(Id notificationId)
Acknowledge an engine notification.
|
boolean |
canRegisterForEngineNotifications()
Tests if this user can register for
Engine
notifications. |
void |
registerForChangedEngine(Id engineId)
Registers for notification of an updated engine.
|
void |
registerForChangedEngineHierarchy()
Registers for notification of an updated engine hierarchy structure.
|
void |
registerForChangedEngineHierarchyForAncestors(Id engineId)
Engine
Receiver.changedChildOfEngines() is invoked when
the specified node or any of its ancestors experiences a change in its
children. |
void |
registerForChangedEngineHierarchyForDescendants(Id engineId)
Engine
Receiver.changedChildOfEngines() is invoked when
the specified node or any of its descendants experiences a change in
its children. |
void |
registerForChangedEngines()
Registers for notification of updated engines.
|
void |
registerForDeletedEngine(Id engineId)
Registers for notification of a deleted engine.
|
void |
registerForDeletedEngines()
Registers for notification of deleted engines.
|
void |
registerForNewEngines()
Register for notifications of new engines.
|
void |
reliableEngineNotifications()
Reliable notifications are desired.
|
void |
unreliableEngineNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canRegisterForEngineNotifications()
Engine
notifications. A return of true does not guarantee successful
authorization. A return of false indicates that it is known all
methods in this session will result in a PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer notification operations. false if notification methods are not
authorized, true otherwisemandatory - This method must be implemented. void reliableEngineNotifications()
acknowledgeEngineNotification()
.mandatory - This method is must be implemented. void unreliableEngineNotifications()
mandatory - This method is must be implemented. void acknowledgeEngineNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId - the Id of the notificationOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewEngines()
throws OperationFailedException,
PermissionDeniedException
EngineReceiver.newEngines() is invoked when a new
Engine is created.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedEngines()
throws OperationFailedException,
PermissionDeniedException
EngineReceiver.changedEngines() is invoked when an engine is
changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedEngine(Id engineId) throws OperationFailedException, PermissionDeniedException
EngineReceiver.changedEngines() is invoked when the specified
engine is changed.engineId - the Id of the Engine to
monitorNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedEngines()
throws OperationFailedException,
PermissionDeniedException
EngineReceiver.deletedEngines() is invoked when an engine is
deleted.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedEngine(Id engineId) throws OperationFailedException, PermissionDeniedException
EngineReceiver.deletedEngines() is invoked when the specified
engine is deleted.engineId - the Id of the Engine to
monitorNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedEngineHierarchy()
throws OperationFailedException,
PermissionDeniedException
EngineReceiver.changedChildOfEngines() is invoked when
a node experiences a change in its children.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedEngineHierarchyForAncestors(Id engineId) throws OperationFailedException, PermissionDeniedException
Receiver.changedChildOfEngines() is invoked when
the specified node or any of its ancestors experiences a change in its
children.engineId - the Id of the Engine
node to monitorNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedEngineHierarchyForDescendants(Id engineId) throws OperationFailedException, PermissionDeniedException
Receiver.changedChildOfEngines() is invoked when
the specified node or any of its descendants experiences a change in
its children.engineId - the Id of the Engine
node to monitorNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.