Class StopWithSavepointRequestBody

  • All Implemented Interfaces:
    org.apache.flink.runtime.rest.messages.RequestBody

    public class StopWithSavepointRequestBody
    extends java.lang.Object
    implements org.apache.flink.runtime.rest.messages.RequestBody
    RequestBody for stopping a job with a savepoint.
    • Constructor Summary

      Constructors 
      Constructor Description
      StopWithSavepointRequestBody​(java.lang.String targetDirectory, java.lang.Boolean drain, org.apache.flink.core.execution.SavepointFormatType formatType, org.apache.flink.runtime.rest.messages.TriggerId triggerId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.flink.core.execution.SavepointFormatType getFormatType()  
      java.util.Optional<java.lang.String> getTargetDirectory()  
      java.util.Optional<org.apache.flink.runtime.rest.messages.TriggerId> getTriggerId()  
      boolean shouldDrain()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FIELD_NAME_TARGET_DIRECTORY

        public static final java.lang.String FIELD_NAME_TARGET_DIRECTORY
        See Also:
        Constant Field Values
      • FIELD_NAME_FORMAT_TYPE

        public static final java.lang.String FIELD_NAME_FORMAT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • StopWithSavepointRequestBody

        public StopWithSavepointRequestBody​(@Nullable
                                            java.lang.String targetDirectory,
                                            @Nullable
                                            java.lang.Boolean drain,
                                            @Nullable
                                            org.apache.flink.core.execution.SavepointFormatType formatType,
                                            @Nullable
                                            org.apache.flink.runtime.rest.messages.TriggerId triggerId)
    • Method Detail

      • getTargetDirectory

        public java.util.Optional<java.lang.String> getTargetDirectory()
      • shouldDrain

        public boolean shouldDrain()
      • getTriggerId

        public java.util.Optional<org.apache.flink.runtime.rest.messages.TriggerId> getTriggerId()
      • getFormatType

        public org.apache.flink.core.execution.SavepointFormatType getFormatType()