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