public class CommandStopInstance extends CommandTarget
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for stop-instance command.
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
target
Constructor and Description |
---|
CommandStopInstance(String target)
Constructs an instance of GlassFish server stop-instance command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
stopInstance(GlassFishServer server,
String target)
Stops server instance.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
public CommandStopInstance(String target)
target
- Target GlassFish instance.public static ResultString stopInstance(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.