org.glassfish.deployment.client
Class RemoteDeploymentFacility

java.lang.Object
  extended by org.glassfish.deployment.client.AbstractDeploymentFacility
      extended by 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
localStrings
 
Fields inherited from interface org.glassfish.deployment.client.DeploymentFacility
STUBS_JARFILENAME
 
Constructor Summary
RemoteDeploymentFacility()
           
 
Method Summary
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)
           
 
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
 

Constructor Detail

RemoteDeploymentFacility

public RemoteDeploymentFacility()
Method Detail

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 execute
options - Map, with each key an option name and each value (optionally) the corresponding option value
operands - 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.