org.glassfish.deployment.client
Class RemoteDeploymentFacility
java.lang.Object
org.glassfish.deployment.client.AbstractDeploymentFacility
org.glassfish.deployment.client.RemoteDeploymentFacility
- All Implemented Interfaces:
- DeploymentFacility, TargetOwner
public class RemoteDeploymentFacility
- extends AbstractDeploymentFacility
Implements DeploymentFacility, currently using the RemoteCommand to work with the
admin back-end.
Because RemoteCommand uses the http interface with the admin back-end it
is connectionless. Clients of RemoteDeploymentFacility must still invoke
AbstractDeploymentFacility.connect(org.glassfish.deployment.client.ServerConnectionIdentifier) before attempting to use the DF.
- Author:
- tjquinn
| Methods inherited from class org.glassfish.deployment.client.AbstractDeploymentFacility |
_listAppRefs, _listAppRefs, _listAppRefs, _listAppRefs, changeAppRef, changeState, connect, createAppRef, createTarget, createTargets, createTargetsParam, deleteAppRef, deploy, deploy, disable, disconnect, downloadFile, enable, exportClientStubs, getClientStubs, getContextRoot, getHostAndPort, getHostAndPort, getHostAndPort, getModuleType, getSubModuleInfoForJ2EEApplication, getTargetDAS, getVirtualServerHostAndPort, getWebURL, isConnected, listAppRefs, listReferencedTargets, listTargets, setWebURL, undeploy, undeploy, waitFor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteDeploymentFacility
public RemoteDeploymentFacility()
doConnect
protected boolean doConnect()
- Description copied from class:
AbstractDeploymentFacility
- Performs any local- or remote-specific work related to connecting to the DAS.
- Specified by:
doConnect in class AbstractDeploymentFacility
- Returns:
- true if the connection was made successfully; false otherwise
doDisconnect
public boolean doDisconnect()
- Description copied from class:
AbstractDeploymentFacility
- Performs any local- or remote-specific work to end the connection to the DAS.
- Specified by:
doDisconnect in class AbstractDeploymentFacility
- Returns:
- true if the disconnection succeeded; false otherwise
getDFCommandRunner
protected AbstractDeploymentFacility.DFCommandRunner getDFCommandRunner(String commandName,
Map<String,Object> commandOptions,
String[] operands)
throws CommandException
- Description copied from class:
AbstractDeploymentFacility
- Returns a command runner for the concrete implementation.
- Specified by:
getDFCommandRunner in class AbstractDeploymentFacility
- Returns:
-
- Throws:
CommandException
prepareRemoteCommandArguments
protected String[] prepareRemoteCommandArguments(String commandName,
Map<String,Object> options,
String[] operands)
- Assembles an argument list suitable for use by RemoteCommand from the
command, options, and operand.
- Parameters:
commandName - the command to executeoptions - Map, with each key an option name and each value (optionally) the corresponding option valueoperands - the operands to the command
- Returns:
- argument list for RemoteCommand
prepareRemoteCommandProgramOptions
protected ProgramOptions prepareRemoteCommandProgramOptions(Environment env)
throws CommandException
- Throws:
CommandException
Copyright © 2012. All Rights Reserved.