/** * Handles a reconciliation request from a task monitor. */ public void reconcile(ReconciliationCoordinator.Reconcile message) { // forward to the reconciliation coordinator reconciliationCoordinator.tell(message, selfActor); }
protected ActorRef createConnectionMonitor() { return actorSystem.actorOf( ConnectionMonitor.createActorProps(ConnectionMonitor.class, flinkConfig), "connectionMonitor"); }
/** * Called when reconnected to Mesos following a failover event. */ protected void reregistered(ReRegistered message) { connectionMonitor.tell(message, selfActor); launchCoordinator.tell(message, selfActor); reconciliationCoordinator.tell(message, selfActor); taskMonitor.tell(message, selfActor); }
protected ActorRef createTaskMonitor(SchedulerDriver schedulerDriver) { return actorSystem.actorOf( Tasks.createActorProps(Tasks.class, selfActor, flinkConfig, schedulerDriver, TaskMonitor.class), "tasks"); }
/** * Called when resource offers are rescinded. */ protected void offerRescinded(OfferRescinded message) { launchCoordinator.tell(message, selfActor); }
protected ActorRef createReconciliationCoordinator(SchedulerDriver schedulerDriver) { return actorSystem.actorOf( ReconciliationCoordinator.createActorProps(ReconciliationCoordinator.class, flinkConfig, schedulerDriver), "reconciliationCoordinator"); }
/** * Called when resource offers are made to the framework. */ protected void resourceOffers(ResourceOffers message) { launchCoordinator.tell(message, selfActor); }