[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: can we query an application state?

Today gear groups expose a "gear state" which roughly summarizes the state of the gear.  We're not yet ready to move that to cartridges, nor are all the details of how the constants returned by gear state will be preserved over time.

If you do use gear group state I'd recommend mimicking the console:

If all gears are in the same state display that state as a string.  If not, display the number currently in the "started" state (1/6 started).

There was a brief discussion yesterday about longer term representations - probably about separating intent (this cart should be stopped) and state (this cart is stopping).

Finally, as we are migrating off the old broker API we are planning to expose a new "status_message" optional array on carts that exposes the current value returned by the cart service on each gear.  That will likely be transitory as we clean up state.

On Aug 31, 2012, at 6:59 PM, André Dietisheim <adietish redhat com> wrote:


I currently look at enhancing the openshift-java-client and the Eclipse toolign to report application states: https://issues.jboss.org/browse/JBIDE-11881
I queried the bugzilla and found 2 issues that relate to this:

* https://bugzilla.redhat.com/show_bug.cgi?id=846166
* https://bugzilla.redhat.com/show_bug.cgi?id=805989

I'm now kinda confused. Could you please tell me if there is an API to query application states via the REST service or not?

dev mailing list
dev lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]