public class RemoteDeploymentFacility extends AbstractDeploymentFacility
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.
AbstractDeploymentFacility.DFCommandRunner
deplLogger, localStrings
STUBS_JARFILENAME
Constructor and Description |
---|
RemoteDeploymentFacility() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doConnect()
Performs any local- or remote-specific work related to connecting to the DAS.
|
boolean |
doDisconnect()
Performs any local- or remote-specific work to end the connection to the DAS.
|
protected AbstractDeploymentFacility.DFCommandRunner |
getDFCommandRunner(String commandName,
Map<String,Object> commandOptions,
String[] operands)
Returns a command runner for the concrete implementation.
|
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.
|
protected ProgramOptions |
prepareRemoteCommandProgramOptions(Environment env) |
_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
protected boolean doConnect()
AbstractDeploymentFacility
doConnect
in class AbstractDeploymentFacility
public boolean doDisconnect()
AbstractDeploymentFacility
doDisconnect
in class AbstractDeploymentFacility
protected AbstractDeploymentFacility.DFCommandRunner getDFCommandRunner(String commandName, Map<String,Object> commandOptions, String[] operands) throws CommandException
AbstractDeploymentFacility
getDFCommandRunner
in class AbstractDeploymentFacility
CommandException
protected String[] prepareRemoteCommandArguments(String commandName, Map<String,Object> options, String[] operands)
commandName
- the command to executeoptions
- Map, with each key an option name and each value (optionally) the corresponding option valueoperands
- the operands to the commandprotected ProgramOptions prepareRemoteCommandProgramOptions(Environment env) throws CommandException
CommandException
Copyright © 2019. All rights reserved.