OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.EdgeNotificationSession
Implementsosid.OsidSession
Used Byosid.topology.TopologyManager
osid.topology.TopologyProxyManager
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.Id the Graph Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetGraph
Description

Gets the Graph associated with this session.

Returnosid.topology.Graph the graph
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedGraphView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableEdgeNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableEdgeNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeEdgeNotification
Description

Acknowledge an edge notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.TypeedgeGenusType an edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.TypeedgeGenusType an edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdedgeId the Id of the Edge to monitor
ErrorsNULL_ARGUMENT edgeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.TypeedgeGenusType an edge genus type
ErrorsNULL_ARGUMENT edgeGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdnodeId the Id of the Node to monitor
ErrorsNULL_ARGUMENT nodeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdedgeId the Id of the Edge to monitor
ErrorsNULL_ARGUMENT edgeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.