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 search result in notifications
available from the notification session for search.
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)
Registers for notification of an updated engine hierarchy structure.
|
void |
registerForChangedEngineHierarchyForDescendants(Id engineId)
Registers for notification of an updated engine hierarchy structure.
|
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, supportsTransactions
close
boolean 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.newEngine()
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.changedEngine()
is invoked when an engine is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
EngineReceiver.changedEngine()
is invoked when the specified
engine is changed.engineId
- the Id
of the Engine
to
monitorNotFoundException
- an engine was not found identified
by the given Id
NullArgumentException
- engineId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEngines() throws OperationFailedException, PermissionDeniedException
EngineReceiver.deletedEngine()
is invoked when an engine is
deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
EngineReceiver.deletedEngine()
is invoked when the specified
engine is deleted.engineId
- the Id
of the Engine
to
monitorNotFoundException
- an engine was not found identified
by the given Id
NullArgumentException
- 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
EngineReceiver.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
EngineReceiver.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.