Package 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.deployment.client.AbstractDeploymentFacility
AbstractDeploymentFacility.DFCommandRunner
-
-
Field Summary
-
Fields inherited from class org.glassfish.deployment.client.AbstractDeploymentFacility
deplLogger
-
Fields inherited from interface org.glassfish.deployment.client.DeploymentFacility
STUBS_JARFILENAME
-
-
Constructor Summary
Constructors Constructor Description RemoteDeploymentFacility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoConnect()Performs any local- or remote-specific work related to connecting to the DAS.booleandoDisconnect()Performs any local- or remote-specific work to end the connection to the DAS.protected AbstractDeploymentFacility.DFCommandRunnergetDFCommandRunner(String commandName, DFDeploymentProperties commandOptions, String[] operands)Returns a command runner for the concrete implementation.protected String[]prepareRemoteCommandArguments(String commandName, DFDeploymentProperties options, String[] operands)Assembles an argument list suitable for use by RemoteCommand from the command, options, and operand.protected ProgramOptionsprepareRemoteCommandProgramOptions(Environment env)-
Methods inherited from class org.glassfish.deployment.client.AbstractDeploymentFacility
_listAppRefs, _listAppRefs, _listAppRefs, _listAppRefs, changeState, connect, createAppRef, createTarget, createTargets, 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
-
-
-
-
Method Detail
-
doConnect
protected boolean doConnect()
Description copied from class:AbstractDeploymentFacilityPerforms any local- or remote-specific work related to connecting to the DAS.- Specified by:
doConnectin classAbstractDeploymentFacility- Returns:
- true if the connection was made successfully; false otherwise
-
doDisconnect
public boolean doDisconnect()
Description copied from class:AbstractDeploymentFacilityPerforms any local- or remote-specific work to end the connection to the DAS.- Specified by:
doDisconnectin classAbstractDeploymentFacility- Returns:
- true if the disconnection succeeded; false otherwise
-
getDFCommandRunner
protected AbstractDeploymentFacility.DFCommandRunner getDFCommandRunner(String commandName, DFDeploymentProperties commandOptions, String[] operands) throws CommandException
Description copied from class:AbstractDeploymentFacilityReturns a command runner for the concrete implementation.- Specified by:
getDFCommandRunnerin classAbstractDeploymentFacility- Returns:
AbstractDeploymentFacility.DFCommandRunner- Throws:
CommandException
-
prepareRemoteCommandArguments
protected String[] prepareRemoteCommandArguments(String commandName, DFDeploymentProperties 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
-
-