Class StopWithSavepointRequestBody
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.job.savepoints.stop.StopWithSavepointRequestBody
-
- All Implemented Interfaces:
RequestBody
public class StopWithSavepointRequestBody extends Object implements RequestBody
RequestBody
for stopping a job with a savepoint.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_NAME_FORMAT_TYPE
static String
FIELD_NAME_TARGET_DIRECTORY
-
Constructor Summary
Constructors Constructor Description StopWithSavepointRequestBody(String targetDirectory, Boolean drain, SavepointFormatType formatType, TriggerId triggerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SavepointFormatType
getFormatType()
Optional<String>
getTargetDirectory()
Optional<TriggerId>
getTriggerId()
boolean
shouldDrain()
-
-
-
Field Detail
-
FIELD_NAME_TARGET_DIRECTORY
public static final String FIELD_NAME_TARGET_DIRECTORY
- See Also:
- Constant Field Values
-
FIELD_NAME_FORMAT_TYPE
public static final String FIELD_NAME_FORMAT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StopWithSavepointRequestBody
public StopWithSavepointRequestBody(@Nullable String targetDirectory, @Nullable Boolean drain, @Nullable SavepointFormatType formatType, @Nullable TriggerId triggerId)
-
-
Method Detail
-
shouldDrain
public boolean shouldDrain()
-
getFormatType
public SavepointFormatType getFormatType()
-
-