Asadmin Commands
The following is a list of the administration commands used to configure Hazelcast.
set-hazelcast-configuration
Since Payara Server 4.1.151
- Usage
-
asadmin> set-hazelcast-configuration --disabled=true
- Aim
-
Configures the underlying Hazelcast instance. See Data Grid Configuration for all the command line options for this command.
get-hazelcast-configuration
list-hazelcast-cluster-members
Since Payara Server 4.1.1.164
- Aim
-
List the current members of the DAS' Hazelcast cluster in a formatted table, with extra properties.
- Usage
-
asadmin> list-hazelcast-cluster-members
list-hazelcast-members
restart-hazelcast
list-caches
Since Payara Server 4.1.1.154
- Aim
-
Lists the Hazelcast distributed caches in the cluster
- Usage
-
asadmin list-caches
clear-cache
Since Payara Server 4.1.1.154
- Aim
-
Clears a Hazelcast or JCache IMap
- Usage
-
asadmin> clear-cache <cacheName>
Use of this commands removes all data from a cache and therefore can result in unexpected behaviour if a system cache is cleared. Clearing a cache containing web session data will result in all users losing their sessions. |
create-hazelcast-instance
Since Payara Server 4.1.2.172
This is deprecated in 5.181 onwards as by default all instances are created as part of the Domain Data Grid |
- Usage
-
asadmin> create-hazelcast-instance new-instance
- Aim
-
Creates a new Payara Server instance with Hazelcast and the persistence types.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
Node Name |
Specifies the node to create the instance on. |
Yes |
|
|
Config Name |
Specifies the config to use for the instance |
|
No |
|
Boolean |
Specifies whether the instance is enabled for load balancing, meaning that the load balancer directs requests to the instance. |
true |
No |
|
Boolean |
Specifies whether the check that the administration, HTTP, JMS, JMX, and IIOP ports are free. |
true |
No |
|
Boolean |
Specifies whether output data should be returned in a concise format, suited for scripts, with descriptive text omitted. |
false |
No |
|
Port Number |
Specifies the port to start assigning ports from. This will always output the assigned ports, even when omitted. |
No |
|
|
Options |
Specifies additional system properties which
will override other settings, such as the assigned port. Examples include
|
No |
|
|
Config Name |
Specifies the instance or cluster to configure. |
|
No |
|
Boolean |
Enables Hazelcast. If no target is specified, this will enable Hazelcast on the domain configuration (server-config). If no arguments are specified, defaults to true. |
true |
No |
|
Boolean |
Enable or disable dynamic stopping and starting of the embedded Hazelcast member. |
false |
No |
|
File Path |
The Hazelcast configuration file to use. This path is relative to the domain config directory, <Payara Installation Directory>/glassfish/domains/<Domain Name>/config/. Using this option to point to a valid Hazelcast configuration file will cause all other options set to be ignored. Any options unset within the Hazelcast configuration file will be set to the Hazelcast defaults |
|
No |
|
Port Number |
The port to run Hazelcast on. If this port is busy, the port specified will be incremented until a valid port is found. |
5900 |
No |
|
Multicast Address |
The multicast group for communications in the Hazelcast instance. |
224.2.2.3 |
No |
|
Port Number |
The multicast port for communications in the instance. |
No |
|
|
Group Name |
Specifies the Hazelcase group name, to be optionally used to help divide clusters into logical, segregated groups (i.e. dev-group, prod_grop). |
No |
|
|
JNDI Name |
Specifies the JNDI name to bind the Hazelcast instance to. |
||
|
Hazelcast License |
Enables Hazelcast Enterprise features. |
No |
|
|
Boolean |
Sets the cluster to lite mode, where it will cluster but not store any data. |
false |
No |
|
Boolean |
Whether or not to enable host-aware partitioning for the cluster. Host aware partitioning must be enabled on all members of the cluster (including Payara Micro instances) for this feature to work correctly. |
false |
No |
|
Boolean |
Specifies whether Hazelcast will be used for web persistence. |
True |
No |
|
Boolean |
Specifies whether Hazelcast will be used for web persistence. |
True |
No |
|
Displays the help menu |
false |
No |