leaderId)); final String expectedAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef);
/** * Initializes the MetricQueryService. * * @param actorSystem ActorSystem to create the MetricQueryService on * @param resourceID resource ID used to disambiguate the actor name */ public void startQueryService(ActorSystem actorSystem, ResourceID resourceID) { synchronized (lock) { Preconditions.checkState(!isShutdown(), "The metric registry has already been shut down."); try { queryService = MetricQueryService.startMetricQueryService(actorSystem, resourceID, maximumFramesize); metricQueryServicePath = AkkaUtils.getAkkaURL(actorSystem, queryService); } catch (Exception e) { LOG.warn("Could not start MetricDumpActor. No metrics will be submitted to the WebInterface.", e); } } }
/** * Initializes the MetricQueryService. * * @param actorSystem ActorSystem to create the MetricQueryService on * @param resourceID resource ID used to disambiguate the actor name */ public void startQueryService(ActorSystem actorSystem, ResourceID resourceID) { synchronized (lock) { Preconditions.checkState(!isShutdown(), "The metric registry has already been shut down."); try { queryService = MetricQueryService.startMetricQueryService(actorSystem, resourceID, maximumFramesize); metricQueryServicePath = AkkaUtils.getAkkaURL(actorSystem, queryService); } catch (Exception e) { LOG.warn("Could not start MetricDumpActor. No metrics will be submitted to the WebInterface.", e); } } }
/** * Initializes the MetricQueryService. * * @param actorSystem ActorSystem to create the MetricQueryService on * @param resourceID resource ID used to disambiguate the actor name */ public void startQueryService(ActorSystem actorSystem, ResourceID resourceID) { synchronized (lock) { Preconditions.checkState(!isShutdown(), "The metric registry has already been shut down."); try { queryService = MetricQueryService.startMetricQueryService(actorSystem, resourceID); metricQueryServicePath = AkkaUtils.getAkkaURL(actorSystem, queryService); } catch (Exception e) { LOG.warn("Could not start MetricDumpActor. No metrics will be submitted to the WebInterface.", e); } } }
private Tuple2<String, String> extractAddressHostname(ActorRef actorRef) { final String actorAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host(); if (host.isEmpty()) { hostname = "localhost"; } else { hostname = host.get(); } return Tuple2.of(actorAddress, hostname); }
private Tuple2<String, String> extractAddressHostname(ActorRef actorRef) { final String actorAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host(); if (host.isEmpty()) { hostname = "localhost"; } else { hostname = host.get(); } return Tuple2.of(actorAddress, hostname); }
private Tuple2<String, String> extractAddressHostname(ActorRef actorRef) { final String actorAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host(); if (host.isEmpty()) { hostname = "localhost"; } else { hostname = host.get(); } return Tuple2.of(actorAddress, hostname); }
final String akkaAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host();
final String akkaAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host();
String jobManagerAkkaURL = AkkaUtils.getAkkaURL(actorSystem, jobManager); monitor.start(jobManagerAkkaURL);
final String akkaAddress = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host();
ActorRef actorRef = actorIdentity.getRef(); final String address = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host();
final String address = AkkaUtils.getAkkaURL(actorSystem, actorRef); final String hostname; Option<String> host = actorRef.path().address().host();
@Override public void open() throws Exception { super.open(); LOG.info("Opening QueryableWindowOperator {}." , this); // don't overwrite if this was initialized in restoreState() if (windows == null) { windows = new HashMap<>(); } // retainedWindows = new HashMap<>(); if(registrationService != null) { registrationService.start(); String hostname = registrationService.getConnectingHostname(); String actorName = "responseActor_" + getRuntimeContext().getIndexOfThisSubtask() + System.nanoTime(); initializeActorSystem(hostname); ActorRef responseActor = actorSystem.actorOf(Props.create(ResponseActor.class, this), actorName); String akkaURL = AkkaUtils.getAkkaURL(actorSystem, responseActor); registrationService.registerActor(getRuntimeContext().getIndexOfThisSubtask(), akkaURL); } }
@Override public void open() throws Exception { super.open(); LOG.info("Opening QueryableWindowOperator {}.", this); // don't overwrite if this was initialized in restoreState() if (windows == null) { windows = new HashMap<>(); } // retainedWindows = new HashMap<>(); if (registrationService != null) { registrationService.start(); String hostname = registrationService.getConnectingHostname(); String actorName = "responseActor_" + getRuntimeContext().getIndexOfThisSubtask() + System.nanoTime(); initializeActorSystem(hostname); ActorRef responseActor = actorSystem.actorOf(Props.create(ResponseActor.class, this), actorName); String akkaURL = AkkaUtils.getAkkaURL(actorSystem, responseActor); registrationService.registerActor(getRuntimeContext().getIndexOfThisSubtask(), akkaURL); } }