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.DFCommandRunnerdeplLogger, localStringsSTUBS_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 com.sun.enterprise.admin.cli.ProgramOptions |
prepareRemoteCommandProgramOptions(com.sun.enterprise.admin.cli.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, waitForprotected boolean doConnect()
AbstractDeploymentFacilitydoConnect in class AbstractDeploymentFacilitypublic boolean doDisconnect()
AbstractDeploymentFacilitydoDisconnect in class AbstractDeploymentFacilityprotected AbstractDeploymentFacility.DFCommandRunner getDFCommandRunner(String commandName, Map<String,Object> commandOptions, String[] operands) throws org.glassfish.api.admin.CommandException
AbstractDeploymentFacilitygetDFCommandRunner in class AbstractDeploymentFacilityorg.glassfish.api.admin.CommandExceptionprotected 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 com.sun.enterprise.admin.cli.ProgramOptions prepareRemoteCommandProgramOptions(com.sun.enterprise.admin.cli.Environment env)
throws org.glassfish.api.admin.CommandException
org.glassfish.api.admin.CommandExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.