question

Upvotes
Accepted
15 3 3 4

AuthorizationAgentEventStatus.AUTHORIZATION_SYSTEM_NOT_AVAILABLE

Can you please provide some additional details on the circumstances when an event with this status code is delivered? What kind of event will be delivered when the authorization system becomes available again, and what is the proposed way of recovering from such an outage (e.g., recreate the agent and login again for all users)?

DACSopen-dacs
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
9.5k 10 5 7

Hello @nleogas

In case that the authorization system is unavailable e.g. dacs sink deamon is down while the application is trying to login to DACS, the application will receive AUTHORIZATION_SYSTEM_NOT_AVAILABLE event. Then, the event stream is closed; the application does not receive any event after that. Therefore, even the authorization system is available later, the application will not receive any event to indicate the system is up.

Therefore, after the application receives AUTHORIZATION_SYSTEM_NOT_AVAILABLE, it should closes the connection(destroy AuthorizationAgent and EventQueue, release AuthorizationSystem) as shown in Open DACS Java API example i.e. DacsSubscribeClient.java. Then, dacs sink deamon/DACS should be fixed/recovered before you start the application again.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.