admin@glassfish.java.net

Re: Request to have a 'list-targets' CLI

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Thu, 03 Jun 2010 11:42:56 -0700

I added new code to Domain.java that are similar to what you want

List<ReferenceContainer> getAllReferenceContainers()

That will return all instances, DAS and clusters

I also added 4 methods to ReferenceContainer: (so you can check what the
object really is)

isDas()
isInstance()
isCluster()
isServer()

On 6/3/2010 11:03 AM, Vince Kraemer wrote:
> Anissa Lam wrote:
>>
>> Most of the CLI will take in --target as one of the options, yet,
>> we don't have a command to show what targets are available to be
>> supplied to the command.
>> User can do 'list-clusters' to list out all the clusters, but
>> there doesn't seem to be a way to list out just stand-alone
>> instances. 'list-instances' list out ALL instances, whether it is
>> in a cluster or not.
>> If we have a 'list-targets' command, which list out all the
>> cluster and standalone instances, that will enhance usability. [snip]
>> Thoughts ?
>
> that is an awesome RFE. I think it will also make it easier for folks
> that need to write scripts that would initialize a large
> deployment/production environment.
>
>>
>> thanks
>> Anissa.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188