public class ResourceManagerRunner extends Object implements FatalErrorHandler, org.apache.flink.util.AutoCloseableAsync
StandaloneResourceManager runner. It instantiates the resource manager's services
and handles fatal errors by shutting the resource manager down.| Constructor and Description |
|---|
ResourceManagerRunner(ResourceID resourceId,
String resourceManagerEndpointId,
org.apache.flink.configuration.Configuration configuration,
RpcService rpcService,
HighAvailabilityServices highAvailabilityServices,
HeartbeatServices heartbeatServices,
MetricRegistry metricRegistry,
ClusterInformation clusterInformation,
JobManagerMetricGroup jobManagerMetricGroup) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync() |
ResourceManagerGateway |
getResourceManageGateway() |
void |
onFatalError(Throwable exception)
Being called when a fatal error occurs.
|
void |
start() |
public ResourceManagerRunner(ResourceID resourceId, String resourceManagerEndpointId, org.apache.flink.configuration.Configuration configuration, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, ClusterInformation clusterInformation, JobManagerMetricGroup jobManagerMetricGroup) throws Exception
Exceptionpublic ResourceManagerGateway getResourceManageGateway()
public CompletableFuture<Void> closeAsync()
closeAsync in interface org.apache.flink.util.AutoCloseableAsyncpublic void onFatalError(Throwable exception)
FatalErrorHandlerIMPORTANT: This call should never be blocking since it might be called from within
the main thread of an RpcEndpoint.
onFatalError in interface FatalErrorHandlerexception - causeCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.