On 7/8/2010 9:44 PM, Yamini K B wrote:
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.
I wouldn't call that "more thorough" -- just different. It's checking
for a different
flavor of stand-alone. Stand-alone, by our
definition, means "instance that does not belong to a cluster" -
period. We define 2 and only 2 types of instances -- stand-alone and
clustered.
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@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net
--
Byron Nevins - Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188