stop-cluster
stop-cluster
Stops a Eclipse GlassFish cluster
Synopsis
asadmin stop-cluster
[--help|-?]
[--kill[=<kill(default:false)>]]
[--timeout <timeout>]
clustername
Description
The stop-cluster subcommand stops a Eclipse GlassFish cluster by
stopping all running Eclipse GlassFish instances in the cluster.
This subcommand is supported in remote mode only.
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadmin(1M) help page. --help-?-
Displays the help text for the subcommand.
--verbose-
Specifies whether additional progress messages about the status of instances in the cluster are displayed while the cluster is being stopped.
Possible values are as follows:true-
Additional progress messages about the status of instances in the cluster are displayed.
false-
No messages about the status of instances in the cluster are displayed.
--kill-
Specifies whether each instance in the cluster is killed by using functionality of the operating system to terminate the instance process.
Possible values are as follows:false-
No instances are killed. The subcommand uses functionality of the Java platform to terminate each instance process (default).
true-
Each instance is killed. The subcommand uses functionality of the operating system to terminate each instance process.
--timeout-
Specifies timeout in seconds to evaluate the expected result. If the timeout is exceeded, the command fails - however it does not mean it did not make any changes. The status of instances is unknown in such case.
Examples
Example 1 Stopping a Cluster
This example stops the cluster pmdcluster. Additional progress
messages about the status of instances in the cluster are displayed
while the cluster is being stopped.
asadmin> stop-cluster --verbose pmdcluster
stop-instance pmd-i-sj01
stop-instance pmd-i-sj02
The command stop-instance executed successfully for: pmd-i-sj01 pmd-i-sj02
Command stop-cluster executed successfully.