public class ResourceManagerRunner extends Object implements FatalErrorHandler
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,
Configuration configuration,
RpcService rpcService,
HighAvailabilityServices highAvailabilityServices,
HeartbeatServices heartbeatServices,
MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
onFatalError(Throwable exception)
Being called when a fatal error occurs.
|
void |
shutDown() |
void |
start() |
public ResourceManagerRunner(ResourceID resourceId, String resourceManagerEndpointId, Configuration configuration, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry) throws Exception
Exception
public void onFatalError(Throwable exception)
FatalErrorHandler
IMPORTANT: This call should never be blocking since it might be called from within
the main thread of an RpcEndpoint
.
onFatalError
in interface FatalErrorHandler
exception
- causeCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.