Class HealthMonitoring
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HealthMonitoring.Builder,HealthMonitoring>
The health monitoring settings of a compute node group. Health monitoring continuously checks running instances for hardware and software faults.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthMonitoring.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final HealthMonitoringModemode()The health monitoring mode.final StringThe health monitoring mode.The action that PCS takes when health monitoring finds a fault on an instance.final StringThe action that PCS takes when health monitoring finds a fault on an instance.static Class<? extends HealthMonitoring.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
mode
The health monitoring mode. This value is required when you specify
healthMonitoring. There is no default value. Valid values:-
NONE– Turns off health monitoring. You can't specifyrepairActionwith this mode. -
STANDARD– Continuously checks running instances for hardware and software faults.
If the service returns an enum value that is not available in the current SDK version,
modewill returnHealthMonitoringMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The health monitoring mode. This value is required when you specify
healthMonitoring. There is no default value. Valid values:-
NONE– Turns off health monitoring. You can't specifyrepairActionwith this mode. -
STANDARD– Continuously checks running instances for hardware and software faults.
-
- See Also:
-
-
modeAsString
The health monitoring mode. This value is required when you specify
healthMonitoring. There is no default value. Valid values:-
NONE– Turns off health monitoring. You can't specifyrepairActionwith this mode. -
STANDARD– Continuously checks running instances for hardware and software faults.
If the service returns an enum value that is not available in the current SDK version,
modewill returnHealthMonitoringMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The health monitoring mode. This value is required when you specify
healthMonitoring. There is no default value. Valid values:-
NONE– Turns off health monitoring. You can't specifyrepairActionwith this mode. -
STANDARD– Continuously checks running instances for hardware and software faults.
-
- See Also:
-
-
repairAction
The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this value when
modeisNONE. If you don't specify this value andmodeisn'tNONE, PCS usesAUTO.GetComputeNodeGroupdoesn't return arepairActionthat you didn't specify. Valid values:-
AUTO– PCS chooses the repair action based on the fault. -
REPLACE– Replaces the instance after running jobs finish. -
ISOLATE– Stops new jobs on the instance and keeps the instance running until you investigate. -
NONE– Records the fault in Slurm and leaves the instance available for jobs.
If the service returns an enum value that is not available in the current SDK version,
repairActionwill returnHealthMonitoringRepairAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrepairActionAsString().- Returns:
- The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this
value when
modeisNONE. If you don't specify this value andmodeisn'tNONE, PCS usesAUTO.GetComputeNodeGroupdoesn't return arepairActionthat you didn't specify. Valid values:-
AUTO– PCS chooses the repair action based on the fault. -
REPLACE– Replaces the instance after running jobs finish. -
ISOLATE– Stops new jobs on the instance and keeps the instance running until you investigate. -
NONE– Records the fault in Slurm and leaves the instance available for jobs.
-
- See Also:
-
-
repairActionAsString
The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this value when
modeisNONE. If you don't specify this value andmodeisn'tNONE, PCS usesAUTO.GetComputeNodeGroupdoesn't return arepairActionthat you didn't specify. Valid values:-
AUTO– PCS chooses the repair action based on the fault. -
REPLACE– Replaces the instance after running jobs finish. -
ISOLATE– Stops new jobs on the instance and keeps the instance running until you investigate. -
NONE– Records the fault in Slurm and leaves the instance available for jobs.
If the service returns an enum value that is not available in the current SDK version,
repairActionwill returnHealthMonitoringRepairAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrepairActionAsString().- Returns:
- The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this
value when
modeisNONE. If you don't specify this value andmodeisn'tNONE, PCS usesAUTO.GetComputeNodeGroupdoesn't return arepairActionthat you didn't specify. Valid values:-
AUTO– PCS chooses the repair action based on the fault. -
REPLACE– Replaces the instance after running jobs finish. -
ISOLATE– Stops new jobs on the instance and keeps the instance running until you investigate. -
NONE– Records the fault in Slurm and leaves the instance available for jobs.
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthMonitoring.Builder,HealthMonitoring> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-