2 Replies Latest reply on Aug 3, 2015 4:07 AM by frankthetank

    Best way to get server/deployment state and life-cycle events

    frankthetank

      Hi,

       

      I am looking into the best way to get the servers or deployments state(s) and life-cycle events.

       

      Sadly, it does not seem as though there are many requirements for such, as I have not found a lot of examples. The examples I did find focused around using the ModelControllerClient.Factory / ModelNode / Operations.create* way, which is also used by the jboss-cli.

      The biggest issue is that using this way means I have to poll it and parse the results and such. As we are running on low-end HW, that causes quite some load.

       

      Back in 4.x days (iirc) we could attach ourselves to server state changes, but I have yet to find anything that would suggest similar functionality in WF8.x.

       

      Is there a better way to do this?

       

      thanks

        • 1. Re: Best way to get server/deployment state and life-cycle events
          ctomc

          You could write subsystem that is directly part of the server.

           

          But without knowing what exactly you need to do, it is hard to suggest anything.

          • 2. Re: Best way to get server/deployment state and life-cycle events
            frankthetank

            Thanks for the reply Tomaz!

            Subsystems sound complicated , I'll have to look into it.

             

            As mentioned above, I have requests for information about the life-cycle of the server and of the deployments within. f.i. in one case we have a CLI that wants to know when the server has started and when it goes down, would like to be informed.

            On the other hand I have RMI clients that might connect to the server before it has fully started and thus we would like to allow then to be able to query the same information about the server's state.

             

            The deployment status list is used to see if any deployment has had issues. We have had problems before and we want to have interfaces where we can query the states. I can naturally do the list on-request, but was just wondering if there are other ways.

             

            thanks!