public class CommandDeploy extends CommandTargetName
Holds data for command. Objects of this class are created by API user.
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for deploy command.
|
(package private) String |
contextRoot
Deployed application context root.
|
(package private) boolean |
dirDeploy
Is this deployment of a directory?
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
(package private) File[] |
libraries
Deployment libraries.
|
(package private) File |
path
File to deploy.
|
(package private) Map<String,String> |
properties
Deployment properties.
|
name
target
Constructor and Description |
---|
CommandDeploy(String name,
String target,
File path,
String contextRoot,
Map<String,String> properties,
File[] libraries)
Constructs an instance of GlassFish server deploy command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
deploy(GlassFishServer server,
File application,
TaskStateListener listener)
Deploy task that deploys application on server.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
final File path
final String contextRoot
final File[] libraries
final boolean dirDeploy
public CommandDeploy(String name, String target, File path, String contextRoot, Map<String,String> properties, File[] libraries)
name
- Name of module/cluster/instance to modify.target
- Target GlassFish instance or cluster where
name
is stored.path
- File to deploy.contextRoot
- Deployed application context root.properties
- Deployment properties.libraries
- Not used in actual deploy command.public static ResultString deploy(GlassFishServer server, File application, TaskStateListener listener) throws GlassFishIdeException
server
- GlassFish server entity.application
- File object representing archive or directory
to be deployed.listener
- Command execution events listener.GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.