Package com.strongdm.api
Class NodeMaintenanceWindow
java.lang.Object
com.strongdm.api.NodeMaintenanceWindow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCron job syntax for when this maintenance window is active.boolean
Require Idleness defines whether this window can sever live connections.void
Cron job syntax for when this maintenance window is active.void
setRequireIdleness
(boolean in) Require Idleness defines whether this window can sever live connections.
-
Constructor Details
-
NodeMaintenanceWindow
public NodeMaintenanceWindow()
-
-
Method Details
-
getCronSchedule
Cron job syntax for when this maintenance window is active. On this schedule, associated nodes will restart if requested, provided other checks allow the restart to proceed. Times are represented in UTC. e.g. * 7 * * 0,6 to check for a restart at every minute from 7:00 to 8:00 UTC on Sunday and Saturday. Not all possible inputs are supported: the month and day of month selections must be '*'. -
setCronSchedule
Cron job syntax for when this maintenance window is active. On this schedule, associated nodes will restart if requested, provided other checks allow the restart to proceed. Times are represented in UTC. e.g. * 7 * * 0,6 to check for a restart at every minute from 7:00 to 8:00 UTC on Sunday and Saturday. Not all possible inputs are supported: the month and day of month selections must be '*'. -
getRequireIdleness
public boolean getRequireIdleness()Require Idleness defines whether this window can sever live connections. If true, this window will not allow a node to be restarted unless it is serving no connections. If false, given a restart of the node has been requested (for an update, usually), the node will restart as soon as it enters an allowed day / hour combination. At least one maintenance window, out of all configured windows for a node, must have this as false. -
setRequireIdleness
public void setRequireIdleness(boolean in) Require Idleness defines whether this window can sever live connections. If true, this window will not allow a node to be restarted unless it is serving no connections. If false, given a restart of the node has been requested (for an update, usually), the node will restart as soon as it enters an allowed day / hour combination. At least one maintenance window, out of all configured windows for a node, must have this as false.
-