Skip to main content

Source code revision

svn

summary: Refactor RemoteCommand to give us an API for executing remote admin commands that's independent of the asadmin CLI. This required moving
revision: 36467
author: Bill Shannon
date: 2010-04-15 00:22:22 UTC (6 years)
message: Refactor RemoteCommand to give us an API for executing remote admin
commands that's independent of the asadmin CLI. This required moving
some classes to different packages and different modules:

Moved to common/glassfish-api org.glassfish.api.admin:
com.sun.enterprise.admin.cli.CommandException
com.sun.enterprise.admin.cli.CommandValidationException
com.sun.enterprise.admin.cli.InvalidCommandException
com.sun.enterprise.admin.cli.AuthenticationException

Move to admin/util com.sun.enterprise.admin.util:
com.sun.enterprise.admin.cli.CommandModelData
com.sun.enterprise.admin.cli.util.AuthenticationInfo
com.sun.enterprise.admin.cli.util.HttpConnectorAddress
com.sun.enterprise.admin.cli.util.AsadminTrustManager

Moved to admin/util com.sun.enterprise.admin.remote:
com.sun.enterprise.admin.cli.remote.GeneratedManPageManager
com.sun.enterprise.admin.cli.remote.LocalStrings.properties
com.sun.enterprise.admin.cli.remote.ManifestManager
com.sun.enterprise.admin.cli.remote.PlainTextManager
com.sun.enterprise.admin.cli.remote.RemoteAdminCommand
com.sun.enterprise.admin.cli.remote.RemoteException
com.sun.enterprise.admin.cli.remote.RemoteFailureException
com.sun.enterprise.admin.cli.remote.RemoteResponseManager
com.sun.enterprise.admin.cli.remote.RemoteSuccessException
com.sun.enterprise.admin.cli.remote.ResponseManager

The admin/util module (admin-util.jar file) contains the RemoteAdminCommand
class that can be used independently of the asadmin CLI, including in the
server itself.

Also, rationalized the exceptions thrown by the admin commands so that
all exceptions are subclasses of CommandException. Still need to clean
up the command implementations to avoid the need to declare that they
throw both CommandException and CommandValidationException.


Change Path Actions
M trunk/v3/admin/cli
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/BackupCommands.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/ChangeMasterPasswordCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/CreateDomainCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/CreateServiceCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/DatabaseCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/DeleteDomainCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/DerbyControl.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/ListDomainsCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/LoginCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/StartDatabaseCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/StopDatabaseCommand.java
M trunk/v3/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/VerifyDomainXmlCommand.java
M trunk/v3/admin/cli/osgi.bundle
M trunk/v3/admin/cli/pom.xml
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/AsadminMain.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/AuthenticationException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLICommand.java
A trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLIUtil.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ChangeAdminPasswordCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CommandException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CommandModelData.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CommandValidationException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ExportCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/HelpCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/InvalidCommandException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ListCommandsCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/LocalDomainCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/LocalStrings.properties
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/MonitorCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/MonitorTask.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/MultimodeCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/Parser.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ProgramOptions.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/RestartDomainCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/StartDomainCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/StopDomainCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/UnsetCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/VersionCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/DASUtils.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/GeneratedManPageManager.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/Log.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/ManifestManager.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/PlainTextManager.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteCommand.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteFailureException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteResponseManager.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteSuccessException.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/RemoteUtils.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/ResponseManager.java
M trunk/v3/admin/cli/src/main/java/com/sun/enterprise/admin/cli/util
M trunk/v3/admin/cli/src/main/java/org/glassfish/admin/ncli
A trunk/v3/admin/cli/src/test/java/com/sun/enterprise/admin/cli/CLIUtilTest.java
M trunk/v3/admin/cli/src/test/java/com/sun/enterprise/admin/cli/NewSyntaxTest.java
M trunk/v3/admin/cli/src/test/java/com/sun/enterprise/admin/cli/ParserTest.java
M trunk/v3/admin/cli/src/test/java/com/sun/enterprise/admin/cli/util
M trunk/v3/admin/util/osgi.bundle
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/GeneratedManPageManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/LocalStrings.properties
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/ManifestManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/PlainTextManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteAdminCommand.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteException.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteFailureException.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteResponseManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteSuccessException.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/remote/ResponseManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/AsadminTrustManager.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/AuthenticationInfo.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/CommandModelData.java
A trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/HttpConnectorAddress.java
M trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/LocalStrings.properties
M trunk/v3/admin/util/src/main/java/com/sun/enterprise/admin/util/jmx/AttributeListUtils.java
M trunk/v3/admingui/common/src/main/java/org/glassfish/admingui/common/util/LocalDeploymentFacility.java
M trunk/v3/cluster/cli
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/CreateLocalInstanceCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/CreateNodeAgentCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/DeleteLocalInstanceCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/LocalInstanceCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/StartLocalInstanceCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/StopLocalInstanceCommand.java
M trunk/v3/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/SynchronizeInstanceCommand.java
M trunk/v3/cluster/common
A trunk/v3/common/glassfish-api/src/main/java/org/glassfish/api/admin/AuthenticationException.java
A trunk/v3/common/glassfish-api/src/main/java/org/glassfish/api/admin/CommandException.java
A trunk/v3/common/glassfish-api/src/main/java/org/glassfish/api/admin/CommandValidationException.java
A trunk/v3/common/glassfish-api/src/main/java/org/glassfish/api/admin/InvalidCommandException.java
M trunk/v3/common/glassfish-api/src/main/java/org/glassfish/api/admin/cli
M trunk/v3/deployment/client/src/main/java/org/glassfish/deployment/client/AbstractDeploymentFacility.java
M trunk/v3/deployment/client/src/main/java/org/glassfish/deployment/client/RemoteDeploymentFacility.java
M trunk/v3/distributions/distributions.xml
M trunk/v3/distributions/nucleus/pom.xml
M trunk/v3/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/util/LocalDeploymentFacility.java
 
 
Close
loading
Please Confirm
Close