Class EmbeddedHaServices

    • Constructor Detail

      • EmbeddedHaServices

        public EmbeddedHaServices​(Executor executor)
    • Method Detail

      • getDispatcherLeaderRetriever

        public LeaderRetrievalService getDispatcherLeaderRetriever()
        Description copied from interface: HighAvailabilityServices
        Gets the leader retriever for the dispatcher. This leader retrieval service is not always accessible.
      • getJobManagerLeaderRetriever

        public LeaderRetrievalService getJobManagerLeaderRetriever​(JobID jobID)
        Description copied from interface: HighAvailabilityServices
        Gets the leader retriever for the job JobMaster which is responsible for the given job.
        Parameters:
        jobID - The identifier of the job.
        Returns:
        Leader retrieval service to retrieve the job manager for the given job
      • getJobManagerLeaderRetriever

        public LeaderRetrievalService getJobManagerLeaderRetriever​(JobID jobID,
                                                                   String defaultJobManagerAddress)
        Description copied from interface: HighAvailabilityServices
        Gets the leader retriever for the job JobMaster which is responsible for the given job.
        Parameters:
        jobID - The identifier of the job.
        defaultJobManagerAddress - JobManager address which will be returned by a static leader retrieval service.
        Returns:
        Leader retrieval service to retrieve the job manager for the given job
      • getClusterRestEndpointLeaderRetriever

        public LeaderRetrievalService getClusterRestEndpointLeaderRetriever()
        Description copied from interface: ClientHighAvailabilityServices
        Get the leader retriever for the cluster's rest endpoint.
        Returns:
        the leader retriever for cluster's rest endpoint.
      • close

        public void close()
                   throws Exception
        Description copied from interface: HighAvailabilityServices
        Closes the high availability services, releasing all resources.

        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.

        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface HighAvailabilityServices
        Overrides:
        close in class AbstractNonHaServices
        Throws:
        Exception - Thrown, if an exception occurred while closing these services.