Class JobSubmitHeaders
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.job.JobSubmitHeaders
-
- All Implemented Interfaces:
RestHandlerSpecification,MessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>,RuntimeMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>,UntypedResponseMessageHeaders<JobSubmitRequestBody,EmptyMessageParameters>
public class JobSubmitHeaders extends Object implements RuntimeMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>
These headers define the protocol for submitting a job to a flink cluster.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsFileUploads()Returns whether this header allows file uploads.StringgetDescription()Returns the description for this header.HttpMethodWrappergetHttpMethod()Returns theHttpMethodWrapperto be used for the request.static JobSubmitHeadersgetInstance()Class<JobSubmitRequestBody>getRequestClass()Returns the class of the request message.Class<JobSubmitResponseBody>getResponseClass()Returns the class of the response message.org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatusgetResponseStatusCode()Returns the http status code for the response.StringgetTargetRestEndpointURL()Returns the generalized endpoint url that this request should be sent to, for example/job/:jobid.EmptyMessageParametersgetUnresolvedMessageParameters()Returns a newMessageParametersobject.StringoperationId()Returns a short description for this header suitable for method code generation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.rest.messages.MessageHeaders
getCustomHeaders, getResponseTypeParameters
-
Methods inherited from interface org.apache.flink.runtime.rest.messages.RuntimeMessageHeaders
getSupportedAPIVersions
-
-
-
-
Method Detail
-
getRequestClass
public Class<JobSubmitRequestBody> getRequestClass()
Description copied from interface:UntypedResponseMessageHeadersReturns the class of the request message.- Specified by:
getRequestClassin interfaceUntypedResponseMessageHeaders<JobSubmitRequestBody,EmptyMessageParameters>- Returns:
- class of the request message
-
getHttpMethod
public HttpMethodWrapper getHttpMethod()
Description copied from interface:RestHandlerSpecificationReturns theHttpMethodWrapperto be used for the request.- Specified by:
getHttpMethodin interfaceRestHandlerSpecification- Returns:
- http method to be used for the request
-
getTargetRestEndpointURL
public String getTargetRestEndpointURL()
Description copied from interface:RestHandlerSpecificationReturns the generalized endpoint url that this request should be sent to, for example/job/:jobid.- Specified by:
getTargetRestEndpointURLin interfaceRestHandlerSpecification- Returns:
- endpoint url that this request should be sent to
-
getResponseClass
public Class<JobSubmitResponseBody> getResponseClass()
Description copied from interface:MessageHeadersReturns the class of the response message.- Specified by:
getResponseClassin interfaceMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>- Returns:
- class of the response message
-
getResponseStatusCode
public org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus getResponseStatusCode()
Description copied from interface:MessageHeadersReturns the http status code for the response.- Specified by:
getResponseStatusCodein interfaceMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>- Returns:
- http status code of the response
-
getUnresolvedMessageParameters
public EmptyMessageParameters getUnresolvedMessageParameters()
Description copied from interface:UntypedResponseMessageHeadersReturns a newMessageParametersobject.- Specified by:
getUnresolvedMessageParametersin interfaceUntypedResponseMessageHeaders<JobSubmitRequestBody,EmptyMessageParameters>- Returns:
- new message parameters object
-
getInstance
public static JobSubmitHeaders getInstance()
-
getDescription
public String getDescription()
Description copied from interface:MessageHeadersReturns the description for this header.- Specified by:
getDescriptionin interfaceMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>- Returns:
- description for the header
-
acceptsFileUploads
public boolean acceptsFileUploads()
Description copied from interface:UntypedResponseMessageHeadersReturns whether this header allows file uploads.- Specified by:
acceptsFileUploadsin interfaceUntypedResponseMessageHeaders<JobSubmitRequestBody,EmptyMessageParameters>- Returns:
- whether this header allows file uploads
-
operationId
public String operationId()
Description copied from interface:MessageHeadersReturns a short description for this header suitable for method code generation.- Specified by:
operationIdin interfaceMessageHeaders<JobSubmitRequestBody,JobSubmitResponseBody,EmptyMessageParameters>- Returns:
- short description
-
-