':' + connectionInfo.getPort() + " with leader id " + connectionInfo.getLeaderSessionID() + '.'); System.out.println("JobManager Web Interface: " + clusterClient.getWebInterfaceURL());
/** * Helper method to wait until the {@link Dispatcher} has set its fencing token. * * @param rpcService to use to connect to the dispatcher * @param haServices high availability services to connect to the dispatcher * @return {@link DispatcherGateway} * @throws Exception if something goes wrong */ static DispatcherGateway retrieveDispatcherGateway(RpcService rpcService, HighAvailabilityServices haServices) throws Exception { final LeaderConnectionInfo leaderConnectionInfo = LeaderRetrievalUtils.retrieveLeaderConnectionInfo(haServices.getDispatcherLeaderRetriever(), Time.seconds(10L)); return rpcService.connect( leaderConnectionInfo.getAddress(), DispatcherId.fromUuid(leaderConnectionInfo.getLeaderSessionID()), DispatcherGateway.class).get(); }
/** * Retrieves the current leader session id of the component identified by the given leader * retrieval service. * * @param leaderRetrievalService Leader retrieval service to be used for the leader retrieval * @param timeout Timeout for the leader retrieval * @return The leader session id of the retrieved leader * @throws LeaderRetrievalException if the leader retrieval operation fails (including a timeout) */ public static UUID retrieveLeaderSessionId( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { return retrieveLeaderConnectionInfo(leaderRetrievalService, timeout).getLeaderSessionID(); }
/** * Retrieves the current leader session id of the component identified by the given leader * retrieval service. * * @param leaderRetrievalService Leader retrieval service to be used for the leader retrieval * @param timeout Timeout for the leader retrieval * @return The leader session id of the retrieved leader * @throws LeaderRetrievalException if the leader retrieval operation fails (including a timeout) */ public static UUID retrieveLeaderSessionId( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { return retrieveLeaderConnectionInfo(leaderRetrievalService, timeout).getLeaderSessionID(); }
/** * Retrieves the current leader session id of the component identified by the given leader * retrieval service. * * @param leaderRetrievalService Leader retrieval service to be used for the leader retrieval * @param timeout Timeout for the leader retrieval * @return The leader session id of the retrieved leader * @throws LeaderRetrievalException if the leader retrieval operation fails (including a timeout) */ public static UUID retrieveLeaderSessionId( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { return retrieveLeaderConnectionInfo(leaderRetrievalService, timeout).getLeaderSessionID(); }
/** * Retrieves the current leader session id of the component identified by the given leader * retrieval service. * * @param leaderRetrievalService Leader retrieval service to be used for the leader retrieval * @param timeout Timeout for the leader retrieval * @return The leader session id of the retrieved leader * @throws LeaderRetrievalException if the leader retrieval operation fails (including a timeout) */ public static UUID retrieveLeaderSessionId( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { return retrieveLeaderConnectionInfo(leaderRetrievalService, timeout).getLeaderSessionID(); }
':' + connectionInfo.getPort() + " with leader id " + connectionInfo.getLeaderSessionID() + '.'); System.out.println("JobManager Web Interface: " + clusterClient.getWebInterfaceURL());
':' + connectionInfo.getPort() + " with leader id " + connectionInfo.getLeaderSessionID() + '.'); System.out.println("JobManager Web Interface: " + clusterClient.getWebInterfaceURL());