AuthorizationAgentEventStatus.AUTHORIZATION_SYSTEM_NOT_AVAILABLE

nleogas
nleogas Newcomer

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)?

Tagged:

Best Answer

  • pimchaya.wongrukun01
    Answer ✓

    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.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.