public final class MaintenanceModeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_REFUSED_MSG
Explains why the command is refused.
|
static String |
DETACHED_NODE_MSG
Explains why the utility cannot show cluster-wide information.
|
static String |
MAINTENANCE_MODE_DOC_URL
Documentation on maintenance mode.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
failIfInMaintenanceMode(GridClient client,
Logger logger)
Refuses to execute a command that needs the cluster if the client is connected to a node in maintenance
mode.
|
static @Nullable GridClientNode |
maintenanceModeNode(GridClient client)
Obtains the node in maintenance mode the client is connected to.
|
static void |
printMaintenanceModeWarning(GridClientNode node,
Logger logger)
Prints the warning that the given node runs in maintenance mode.
|
static void |
warnIfInMaintenanceMode(GridClient client,
Logger logger)
Warns if the client is connected to a node in maintenance mode.
|
public static final String MAINTENANCE_MODE_DOC_URL
public static final String DETACHED_NODE_MSG
public static final String COMMAND_REFUSED_MSG
@Nullable public static @Nullable GridClientNode maintenanceModeNode(GridClient client) throws GridClientException
client - Client connected to the node.null if there is none.GridClientException - If client doesn't have an actual topology version.public static void warnIfInMaintenanceMode(GridClient client, Logger logger) throws GridClientException
client - Client connected to the node.logger - Logger to print the warning to.GridClientException - If client doesn't have an actual topology version.public static void failIfInMaintenanceMode(GridClient client, Logger logger) throws GridClientException
client - Client connected to the node.logger - Logger to print the warning to.GridClientException - If client doesn't have an actual topology version.VisorIllegalStateException - If the node the client is connected to is in maintenance mode.public static void printMaintenanceModeWarning(GridClientNode node, Logger logger)
node - Node in maintenance mode.logger - Logger to print the warning to.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.38 Release Date : September 22 2026