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 15:53:55 -0700
I think the REST folks need to handle this.

You said "Command Line Interface command".  The Admin GUI uses asadmin commands?!?


On 6/3/2010 3:17 PM, Anissa Lam wrote:

I have the same questions, and i think works needs to be done in order to expose that as CLI command or via REST.
Without the REST API for this,  console can't use that.
So, Byron,  will you volunteer ?  :)

thanks.
Anissa.

Tom Mueller wrote:
Does this show up as a command or something that would be available via the REST interface? How would the admin console use this?
Tom


On 6/3/2010 1:42 PM, Byron Nevins wrote:
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@glassfish.dev.java.net
For additional commands, e-mail: admin-help@glassfish.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: admin-help@glassfish.dev.java.net



--
Oracle
Tom Mueller | Principal Member of Technical Staff
Phone: +1 4029169943 | Fax: +1 4029169943 | Mobile: +1 4027206872
21915 Hillandale Dr | Elkhorn, NE 68022

Green Oracle Oracle is committed to developing practices and products that help protect the environment

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

picture
(image/gif attachment: 01-part)

picture
(image/gif attachment: 02-part)