public class CommandRestartDAS extends Command
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for version command.
|
(package private) boolean |
debug
Specifies whether the domain is restarted with JPDA.
|
private static String |
ERROR_MESSAGE
Error message for administration command execution exception .
|
(package private) boolean |
force
Specifies whether the domain is forcibly stopped immediately before
it is restarted.
|
(package private) boolean |
kill
Specifies whether the domain is killed before it is restarted
by using functionality of the operating system to terminate
the domain process.
|
Constructor and Description |
---|
CommandRestartDAS(boolean debug,
boolean force,
boolean kill)
Constructs an instance of GlassFish server version command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
restartDAS(GlassFishServer server,
boolean debug)
Restarts running DAS server.
|
static ResultString |
restartDAS(GlassFishServer server,
boolean debug,
boolean force,
boolean kill)
Restarts running DAS server.
|
getCommand, retry
private static final String COMMAND
private static final String ERROR_MESSAGE
final boolean debug
final boolean force
final boolean kill
public CommandRestartDAS(boolean debug, boolean force, boolean kill)
debug
- Specifies whether the domain is restarted with JPDA.force
- Specifies whether the domain is forcibly stopped immediately
before it is restarted.kill
- Specifies whether the domain is killed before it
is restarted by using functionality of the operating system
to terminate the domain process.public static ResultString restartDAS(GlassFishServer server, boolean debug) throws GlassFishIdeException
server
- GlassFish server entity.debug
- Specifies whether the domain is restarted with JPDA.GlassFishIdeException
- When error occurred during administration
command execution.public static ResultString restartDAS(GlassFishServer server, boolean debug, boolean force, boolean kill) throws GlassFishIdeException
server
- GlassFish server entity.debug
- Specifies whether the domain is restarted with JPDA.force
- Specifies whether the domain is forcibly stopped immediately
before it is restarted.kill
- Specifies whether the domain is killed before it
is restarted by using functionality of the operating system
to terminate the domain process.GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.