public class CommandAddResources extends CommandTarget
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for create-cluster command.
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
(package private) File |
xmlResFile
File object pointing to xml file that contains resources to be added.
|
target
Constructor and Description |
---|
CommandAddResources(File xmlResourceFile,
String target)
Constructs an instance of GlassFish server add-resources command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
addResource(GlassFishServer server,
File xmlResourceFile,
String target)
Add resource to target server.
|
static ResultString |
addResource(GlassFishServer server,
File xmlResourceFile,
String target,
long timeout)
Add resource to target server.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
File xmlResFile
public static ResultString addResource(GlassFishServer server, File xmlResourceFile, String target) throws GlassFishIdeException
server
- GlassFish server entity.sunResourcesXmlPath
- File object pointing to XML file containing
resources to be added.target
- GlassFish server target.GlassFishIdeException
- When error occurred during administration
command execution.public static ResultString addResource(GlassFishServer server, File xmlResourceFile, String target, long timeout) throws GlassFishIdeException
server
- GlassFish server entity.sunResourcesXmlPath
- File object pointing to XML file containing
resources to be added.target
- GlassFish server target.timeout
- Administration command execution timeout [ms].GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.