class AnnouncementManager(object):
This class implements announcement functionalities.
| Method | announce |
Announce a single resource to its announcement target(s). |
| Method | announce |
Announce a resource to a specific registered remote CSE. |
| Method | announce |
Announce a resource via a direct URL, nit via a csi. |
| Method | announce |
(Newly) announce an updated resource to a remote CSE. |
| Method | check |
Check all resources in the resource tree and announce them if necessary. |
| Method | check |
Check whether resources need announcements, and initiate announcement if they do. |
| Method | configure |
Configure the announcement manager. |
| Method | de |
De-announce a single resource from its announcement target(s). |
| Method | de |
De-Announce a resource from a specific CSR.CSR. |
| Method | handle |
Handle registrations to a registrar CSE. |
| Method | handle |
Handle registrations when a registree CSE has registered. |
| Method | search |
Search and retrieve all resources that have the provided CSI in their at attribute. |
| Method | start |
Initialization of the announcement manager. |
| Method | stop |
Stop the announcement manager. |
| Method | update |
Update an announced resource on a specific remote CSE. |
| Method | validate |
Validate the announcement manager configuration. |
| Class Variable | dispatcher |
Injected Dispatcher instance. |
| Class Variable | remote |
Injected RemoteCSEManager instance. |
| Class Variable | request |
Injected RequestManager instance. |
| Class Variable | storage |
Injected Storage instance. |
| Method | _announced |
Return the matching tuple for the given csi of a resource announcement, or None if none is set. |
| Method | _is |
Check whether a resource is announced to a specific remote CSE. |
| Method | _remove |
Remove announcement details from a resource. |
Announce a single resource to its announcement target(s).
See Also
| Parameters | |
resource:AnnounceableResource | The resource to announce. |
| Returns | |
| Result object indicating the success of the operation. |
Announce a resource to a specific registered remote CSE.
TODO
- Support announcement to direct URL
| Parameters | |
resource:AnnounceableResource | The resource to announce. |
announcestr | CSE-ID of the remote CSE. |
| Returns | |
| Result object indicating the success of the operation. |
Announce a resource via a direct URL, nit via a csi.
Attention
Not supported yet.
| Parameters | |
resource:Resource | The announceable resource to announce. |
at:str | The direct URL of the remote CSE to where to announce the resource. |
| Returns | |
bool | Boolean indicating the result. |
(Newly) announce an updated resource to a remote CSE.
| Parameters | |
resource:AnnounceableResource | The announceable resource that has been updated. |
originator:str | The original UPDATE request's originator. |
De-announce a single resource from its announcement target(s).
See Also
- deAnnounceResourceFromCSI
| Parameters | |
resource:AnnounceableResource | The announceable resource to de-announce. |
De-Announce a resource from a specific CSR.CSR.
| Parameters | |
resource:AnnounceableResource | The announceable resource to de-announce. |
csi:str | The CSE-ID of the CSE from which the resource is to be de-announced. |
remotestr | The resource ID of the remote announced resource. |
EventData):
¶
Handle registrations to a registrar CSE.
| Parameters | |
eventEventData | The event data containing the registrar configuration and the registrar CSE resource that is registered. The CSR resource must contain the csi of the registering CSE. |
EventData):
¶
Handle registrations when a registree CSE has registered.
| Parameters | |
eventEventData | The event data containing the registree CSR resource that is registered. The CSR resource must contain the csi of the registering CSE. |
str, isAnnounced: bool) -> list[ AnnounceableResource]:
¶
Search and retrieve all resources that have the provided CSI in their at attribute.
Also distinguish between announced and not announced resources in the filter.
| Parameters | |
csi:str | The CSE-ID of the CSE for which the announced resource are searched. |
isbool | Boolean indicating whether announced or non-announced resources are searched for. |
| Returns | |
list[ | List of AnnounceableResource resources that have been found. |
Update an announced resource on a specific remote CSE.
| Parameters | |
resource:AnnounceableResource | The announceable resource to update. |
csi:str | The CSE-ID of the CSE where the announced resource is hosted. |
remotestr | The resource ID of the remote announced resource. |
Validate the announcement manager configuration.
| Parameters | |
config:Configuration | The configuration to validate. |
Return the matching tuple for the given csi of a resource announcement, or None if none is set.
| Parameters | |
resource:Resource | The announceable resource to check. |
announcestr | The CSE-ID of the CSE where the announced resource is supposed to be hosted. This could be an Absolute or SP-relative CSE-ID. |
| Returns | |
tuple[ | Undocumented |
Check whether a resource is announced to a specific remote CSE.
This is done by looking at the entries in the internal __announcedTo__ attribute, ie. whether they will contain the csi of the remote CSE.
| Parameters | |
resource:Resource | The announceable resource to check. |
csi:str | The CSE-ID of the CSE where the announced resource is supposed to be hosted. |
| Returns | |
bool | Boolean indicating the announced status. |
Remove announcement details from a resource.
Modify the internal __announcedTo__ attribute as well the at attribute to remove the reference to the remote CSE from announced resource.
| Parameters | |
resource:Resource | The announceable resource to remove. |
csi:str | The CSE-ID of the CSE where the announced resource is hosted. |