dev@glassfish.java.net

Re: instance started time?

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Tue, 14 Sep 2010 15:36:56 -0700

Shouldn't we also make "uptime" take a --target option?

Bobby Bissett wrote on 9/14/10 2:06 PM:
> Ah, even better! I've been hoping for an excuse to tell someone about this. :)
>
> You already know how to inject a GMSAdapter and all that. From GMSAdapter you can call getHealthHistory() to return a HealthHistory object that contains all the info you're looking for. You can, for instance, pass in an instance name to get an InstanceHealth with the instance state and time that it started being in that state. All of this is in the gms-bootstrap package.
>
> (The asadmin get-health command does the same thing you want to do and then converts the results into passable English.)
>
> Cheers,
> Bobby
>
> On Sep 14, 2010, at 4:43 PM, Marina Vatkina wrote:
>
>> From the code :)
>>
>> thanks,
>> -marina
>>
>> Bobby Bissett wrote:
>>> On Sep 14, 2010, at 4:16 PM, Marina Vatkina wrote:
>>>
>>>> Is the time of a running instance start time available?
>>>>
>>>
>>> Sure: asadmin get-health <cluster> will give you the time that an instance started (or failed, or restarted quickly, or was shutdown).
>>>
>>> Cheers,
>>> Bobby
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>