dev@glassfish.java.net

Re: Identifying stand alone instance

From: Yamini K B <Yamini.Kb_at_Sun.COM>
Date: Fri, 09 Jul 2010 10:14:10 +0530

> Depends on what you have. If you have a Server object you can call
> getCluster() on it. Or if you have a Domain you can call
> domain.getClusterForInstance()
I have the Server object as well as Domain. Is it ok to conclude that,
if server does not belong to a cluster it has to be standalone?

v2's isServerStandAlone() does a more thorough verification like
configuration is standalone meaning it is referenced by this server only
and that no other clusters or servers refer to its configuration.

Thanks,
-Yamini
>
> isInstance() won't work -- it returns true for both clustered and
> stand-alone instances
>
>
> On 7/8/2010 11:19 AM, Mitesh Meswani wrote:
>> ServerEnvironment#isInstance()
>>
>> On 7/8/2010 11:09 AM, Yamini K B wrote:
>>> Hi,
>>>
>>> Whats the equivalent of v2's ServerHelper.isServerStandAlone() in v3.1
>>>
>>> -Yamini
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>