dev@glassfish.java.net

Re: implementing a cli command

From: Jerome Dochez <jerome.dochez_at_oracle.com>
Date: Fri, 30 Jul 2010 17:25:07 +0200

AdminCommand runs on the server side while CLICommand are local commands that run on the asadmin client.

Le 30 juil. 2010 à 16:36, Bobby Bissett <bobby.bissett_at_oracle.com> a écrit :

> Howdy,
>
> Am starting on an 'asadmin get-health' command, which just needs to talk to the das to query gms to get some server state. I'm confused about where to start: what's the difference between org.glassfish.api.admin.AdminCommand vs com.sun.enterprise.admin.cli.CLICommand?
>
> The code differences are fairly obvious, but not the reasoning. I don't see offhand why I should implement AdminCommand vs extending CLICommand. Am starting with the latter, but if someone knows I'm on the wrong path, let me know.
>
> Thanks,
> Bobby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>