stops a GlassFish Server cluster
stop-cluster [--help]
[--verbose={false|true}]
[--kill={false|true}]
[--autohadboverride={true|false}]
cluster-name
The stop-cluster subcommand stops a GlassFish Server cluster by stopping all running GlassFish Server instances in the cluster.
This subcommand is supported in remote mode only.
--help-?Displays the help text for the subcommand.
--verboseSpecifies 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:
trueAdditional progress messages about the status of instances in the cluster are displayed.
falseNo messages about the status of instances in the cluster are displayed.
--killSpecifies 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:
falseNo instances are killed. The subcommand uses functionality of the Java platform to terminate each instance process (default).
trueEach instance is killed. The subcommand uses functionality of the operating system to terminate each instance process.
--autohadboverrideDo not specify this option. This option is retained for compatibility with earlier releases. If you specify this option, a syntax error does not occur. Instead, the subcommand runs successfully and displays a warning message that the option is ignored.
The name of the cluster to stop.
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.
command executed successfully
error in executing the command
create-cluster(1), delete-cluster(1), list-clusters(1), start-cluster(1)