public abstract class AbstractNonHaServices extends Object implements HighAvailabilityServices
限定符和类型 | 字段和说明 |
---|---|
protected Object |
lock |
DEFAULT_JOB_ID, DEFAULT_LEADER_ID
构造器和说明 |
---|
AbstractNonHaServices() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
checkNotShutdown() |
void |
close()
Closes the high availability services, releasing all resources.
|
void |
closeAndCleanupAllData()
Closes the high availability services (releasing all resources) and deletes
all data stored by these services in external stores.
|
BlobStore |
createBlobStore()
Creates the BLOB store in which BLOBs are stored in a highly-available fashion.
|
CheckpointRecoveryFactory |
getCheckpointRecoveryFactory()
Gets the checkpoint recovery factory for the job manager
|
RunningJobsRegistry |
getRunningJobsRegistry()
Gets the registry that holds information about whether jobs are currently running.
|
SubmittedJobGraphStore |
getSubmittedJobGraphStore()
Gets the submitted job graph store for the job manager
|
protected boolean |
isShutDown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetriever, getWebMonitorLeaderElectionService, getWebMonitorLeaderRetriever
protected final Object lock
public CheckpointRecoveryFactory getCheckpointRecoveryFactory()
HighAvailabilityServices
getCheckpointRecoveryFactory
在接口中 HighAvailabilityServices
public SubmittedJobGraphStore getSubmittedJobGraphStore() throws Exception
HighAvailabilityServices
getSubmittedJobGraphStore
在接口中 HighAvailabilityServices
Exception
- if the submitted job graph store could not be createdpublic RunningJobsRegistry getRunningJobsRegistry() throws Exception
HighAvailabilityServices
getRunningJobsRegistry
在接口中 HighAvailabilityServices
Exception
public BlobStore createBlobStore() throws IOException
HighAvailabilityServices
createBlobStore
在接口中 HighAvailabilityServices
IOException
- if the blob store could not be createdpublic void close() throws Exception
HighAvailabilityServices
This method does not delete or clean up any data stored in external stores (file systems, ZooKeeper, etc). Another instance of the high availability services will be able to recover the job.
If an exception occurs during closing services, this method will attempt to continue closing other services and report exceptions only after all services have been attempted to be closed.
close
在接口中 AutoCloseable
close
在接口中 HighAvailabilityServices
Exception
- Thrown, if an exception occurred while closing these services.public void closeAndCleanupAllData() throws Exception
HighAvailabilityServices
After this method was called, the any job or session that was managed by these high availability services will be unrecoverable.
If an exception occurs during cleanup, this method will attempt to continue the cleanup and report exceptions only after all cleanup steps have been attempted.
closeAndCleanupAllData
在接口中 HighAvailabilityServices
Exception
- Thrown, if an exception occurred while closing these services
or cleaning up data stored by them.protected void checkNotShutdown()
protected boolean isShutDown()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.