Class AbstractMetricsHeaders<M extends MessageParameters>
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.job.metrics.AbstractMetricsHeaders<M>
-
- All Implemented Interfaces:
RestHandlerSpecification,MessageHeaders<EmptyRequestBody,MetricCollectionResponseBody,M>,RuntimeMessageHeaders<EmptyRequestBody,MetricCollectionResponseBody,M>,UntypedResponseMessageHeaders<EmptyRequestBody,M>
- Direct Known Subclasses:
JobManagerMetricsHeaders,JobManagerOperatorMetricsHeaders,JobMetricsHeaders,JobVertexMetricsHeaders,SubtaskMetricsHeaders,TaskManagerMetricsHeaders
public abstract class AbstractMetricsHeaders<M extends MessageParameters> extends Object implements RuntimeMessageHeaders<EmptyRequestBody,MetricCollectionResponseBody,M>
-
-
Constructor Summary
Constructors Constructor Description AbstractMetricsHeaders()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description HttpMethodWrappergetHttpMethod()Returns theHttpMethodWrapperto be used for the request.Class<EmptyRequestBody>getRequestClass()Returns the class of the request message.Class<MetricCollectionResponseBody>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.abstract StringgetTargetRestEndpointURL()Returns the generalized endpoint url that this request should be sent to, for example/job/:jobid.abstract MgetUnresolvedMessageParameters()Returns a newMessageParametersobject.-
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, getDescription, getResponseTypeParameters, operationId
-
Methods inherited from interface org.apache.flink.runtime.rest.messages.RuntimeMessageHeaders
getSupportedAPIVersions
-
Methods inherited from interface org.apache.flink.runtime.rest.messages.UntypedResponseMessageHeaders
acceptsFileUploads
-
-
-
-
Method Detail
-
getRequestClass
public Class<EmptyRequestBody> getRequestClass()
Description copied from interface:UntypedResponseMessageHeadersReturns the class of the request message.- Specified by:
getRequestClassin interfaceUntypedResponseMessageHeaders<EmptyRequestBody,M extends MessageParameters>- Returns:
- class of the request message
-
getResponseClass
public Class<MetricCollectionResponseBody> getResponseClass()
Description copied from interface:MessageHeadersReturns the class of the response message.- Specified by:
getResponseClassin interfaceMessageHeaders<EmptyRequestBody,MetricCollectionResponseBody,M extends MessageParameters>- 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<EmptyRequestBody,MetricCollectionResponseBody,M extends MessageParameters>- Returns:
- http status code of the response
-
getUnresolvedMessageParameters
public abstract M getUnresolvedMessageParameters()
Description copied from interface:UntypedResponseMessageHeadersReturns a newMessageParametersobject.- Specified by:
getUnresolvedMessageParametersin interfaceUntypedResponseMessageHeaders<EmptyRequestBody,M extends MessageParameters>- Returns:
- new message parameters object
-
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 abstract 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
-
-