Hazelcast Cluster Command

Command Purpose

The node command is used to query and control individual nodes across the JSLEE cluster.

Command Syntax

Cluster Status

A summary of the Hazelcast cluster, including the cluster members, can be queried using the hc staus action:

hc status

Example output:

Address            Attributes
------------------ ----------------------------------------------------------------------------
[192.168.1.7]:6050 __vertx.nodeId: c2f7d489-a6c3-4bbf-9942-3f96f420ee1e, version: 3.12.2, local```

List Distributed Objects

Actively stored Hazelcast distributed objects may be listed with the hc object list command:

hc object list [match]

The optional [match] argument can be used to perform a Java regular expression match against the name of each distributed object.

For example:

hc object list Info

might return:

[M]  __vertx.haInfo
[M]  serviceInfo

Completed. Matched 2 distributed objects of 129419 total based on match expression 'Info'

Note that the regular expression match is not performed in a case-insensitive manner.

Delete Distributed Objects

Distributed objects may be destroyed if required, removing them from the Hazelcast shared (distributed) object cache.

This action is only recommended after discussion with your Supplier’s engineering team, as this may destroy distributed objects of critical importance to the JSLEE and underlying Vert.X/Hazelcast frameworks.

The command to delete distributed objects is:

hc object delete [match]

The optional [match] argument can be used to perform a Java regular expression match against the name of each distributed object.

For example:

hc object delete __vertx\.[0-9a-z]{8}

will destroy any hazelcast distributed object with a prefix __vertx. followed by the beginnings of a UUID.