Hi Austin,
Inventory offers a /hawkular/inventory/sync endpoint that is used to
synchronize the "world view" of feeds (feed being something that pushes data
into inventory).
You said though that a "user creates" the resources, so I am not sure if /sync
would be applicable to your scenario. Would you please elaborate more on where
in the inventory hierarchy you create your resources and how? I.e. are you
using some sort of feed akin to Hawkular's Wildfly Agent or are you just
creating your resources "manually" under environments?
On Tuesday, June 21, 2016 02:20:33 AM Austin Kuo wrote:
> Hi all,
>
> I’m currently investigating how to sync with inventory server.
> Here’s the example scenario:
> Consider the following problem. A user creates version 1 of the app with
> two http servers, one listening on port 8080, the other on port 8181. In
> version 2, the http server listening on port 8181 is no longer needed.
> When the old version is stopped and the new version started, there will be
> just one http server listening. The application is not aware of the
> previous state. What should we do so that the second http server is removed
> from Inventory?
>
> Thanks in advance.
--
Lukas Krejci
_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev