OSID Logo
OSID Specifications
topology package
Version 3.0.0
Release Candidate Preview
Interfaceosid.topology.EdgeNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Edge objects in this Graph. This also includes existing edges that may appear or disappear due to changes in the Graph hierarchy, 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.

The two views defined in this session correspond to the views in the EdgeLookupSession.

MethodgetGraphId
Description

Gets the Graph Id associated with this session.

Returnosid.id.Idthe Graph Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetGraph
Description

Gets the Graph associated with this session.

Returnosid.topology.Graphthe graph
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForEdgeNotifications
Description

Tests if this user can register for Edge 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.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedGraphView
Description

Federates the view for methods in this session. A federated view will include edges in graphs which are children of this graph in the graph hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedGraphView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this graph only.

CompliancemandatoryThis method is must be implemented.
MethodreliableEdgeNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeEDgeNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableEdgeNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeEdgeNotification
Description

Acknowledge an edge notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewEdges
Description

Register for notifications of new edges. EdgeReceiver.newEdges() is invoked when a new Edge appears in this graph.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewEdgesByGenusType
Description

Register for notifications of new edges by genus type. EdgeReceiver.newEdges() is invoked when a new Edge is connected to the specified node.

Parametersosid.type.TypeedgeGenusTypean edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewEdgesForSourceNode
Description

Register for notifications of new edges from a specified node. EdgeReceiver.newEdges() is invoked when a new Edge is connected to the specified node.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewEdgesForDestinationNode
Description

Register for notifications of new edges to a specified node. EdgeReceiver.newEdges() is invoked when a new Edge is connected to the specified node.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEdges
Description

Registers for notification of updated edges. EdgeReceiver.changedEdges() is invoked when an edge in this graph is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEdgesByGenusType
Description

Register for notifications of updated edges by genus type. EdgeReceiver.changedEdges() is invoked when an Edge in this graph is changed.

Parametersosid.type.TypeedgeGenusTypean edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEdgesForSourceNode
Description

Register for notifications of updated edges from a specified node. EdgeReceiver.changedEdgeConnection() is invoked when an Edge in this graph is changed.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEdgesForDestinationNode
Description

Register for notifications of updated edges to a specified node. EdgeReceiver.changedEdges() is invoked when an Edge in this graph is changed.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEdge
Description

Registers for notification of an updated edge. EdgeReceiver.changedEdges() is invoked when the specified edge in this graph is changed.

Parametersosid.id.IdedgeIdthe Id of the Edge to monitor
ErrorsNULL_ARGUMENT edgeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEdges
Description

Registers for notification of deleted edges. EdgeReceiver.deletedEdges() is invoked when an edge is deleted or removed from this graph.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEdgesByGenusType
Description

Register for notifications of deleted edges by genus type. EdgeReceiver.deletedEdges() is invoked when an Edge in this graph is removed.

Parametersosid.type.TypeedgeGenusTypean edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEdgesForSourceNode
Description

Register for notifications of new edges from a specified node. EdgeReceiver.deletedEdges() is invoked when a new Edge is connected to the specified node.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEdgesForDestinationNode
Description

Register for notifications of new edges to a specified node. EdgeReceiver.deletedEdges() is invoked when a new Edge is connected to the specified node.

Parametersosid.id.IdnodeIdthe Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEdge
Description

Registers for notification of a deleted edge. EdgeReceiver.deletedEdges() is invoked when the specified edge is deleted or removed from this graph.

Parametersosid.id.IdedgeIdthe Id of the Edge to monitor
ErrorsNULL_ARGUMENT edgeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.