On 11 Jan 2007, at 15:33, Brian Stansberry wrote:
I should have discussed this before opening JIRA, since the use case
isn't clear, but...
Exposure in JMX makes sense, since we expose the lifecycle operations,
i.e. you stop the cache and your colleague comes and bugs you, it's
nice
to be able to see the state it's in when you get back to work.
I *believe* (pretty sure actually) in AS 5 the MC will uninstall a
bean
if it fails in deployment, and this will include deregistering from
JMX.
So, the AS 4.x use case of being able to see the status of a failed
deployment in the JMX console probably doesn't apply.
Are there situations where the cache lifecycle can change internally?
For example, as a result of the channel being shunned and auto-
closing?
Right now we don't handle that, but if we did, is it possible it would
trigger a lifecycle transition?
True. At the moment though this is not the case. But since this is
just an addition of an API, perhaps we add it later when we have the
need?
- Brian
jbosscache-dev-bounces(a)lists.jboss.org wrote:
> Brian,
>
> What would the use case of getState() be? Is this for use by
> the MC and other mechanisms to manage the cache via JMX?
>
> I guess what I'm asking is, where does this need to reside?
> In the Cache, CacheSPI or JMX interface? And also, what
> statii are we looking for? I have a simple boolean "started"
> at the moment, but this could change to an enum of {CREATED,
> STARTED, STOPPED, DESTROYED} ...
>
> Cheers,