dev@glassfish.java.net

Re: InstanceState service : getting the state of an instance

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 20 Jul 2010 15:57:36 -0700

Vijay,

Currently state of "this" instance (i.e. "server" on a non-clustered
install, or "in1" on in1(!)) is reported as NOT_RUNNING. Will this be
fixed as part of GMS integration?

thanks,
-marina

Vijay Ramachandran wrote:
> On 7/16/10 12:13 PM, Byron Nevins wrote:
>> Vijay --
>>
>> Do you have an estimate of when this will work? I have code waiting
>> for it...
>>
>> (I.e. I need to know when it will reliably detect that a server has
>> gone from running to not-running)
>
> Hopefully in the next week once I get some approvals for some
> proposals I have made.
>
> Vijay
>
>>
>>
>> On 7/16/2010 8:45 AM, Marina Vatkina wrote:
>>> Vijay,
>>>
>>> What will be a state of a failed instance?
>>>
>>> thanks,
>>> -marina
>>>
>>> Vijay Ramachandran wrote:
>>>> For those CLI/module owners who want a way to get the state of an
>>>> instance at any time :
>>>>
>>>> A new service, InstanceState, has been introduced. You can use this
>>>> by doing the following in your code :
>>>>
>>>> @Inject InstanceState state;
>>>>
>>>> As of now, this service interacts with the command replication
>>>> framework and, hence, the state of an instance changes from RUNNING
>>>> to RESTART_REQUIRED only. Soon this service will interact with GMS
>>>> subsystem and every other instance state change will be reflected.
>>>>
>>>> You may want to consider using this instead doing other forms of
>>>> pinging an instance (like doing uptime / version / locations
>>>> command) to see if an instance is alive.
>>>>
>>>> Let me know if you have any feedback / comments / issues with this.
>>>>
>>>> Vijay
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>