public class CommandStartInstance extends CommandTarget
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for start-instance command.
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
target
Constructor and Description |
---|
CommandStartInstance(String target)
Constructs an instance of GlassFish server start-instance command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
startInstance(GlassFishServer server,
String target)
Starts server instance.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
public CommandStartInstance(String target)
target
- Target GlassFish instance.public static ResultString startInstance(GlassFishServer server, String target) throws GlassFishIdeException
server
- GlassFish server entity.target
- Instance name.GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.