org.apache.flink.mesos.scheduler.ReconciliationCoordinator Java Examples

The following examples show how to use org.apache.flink.mesos.scheduler.ReconciliationCoordinator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MesosResourceManager.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public void onReceive(final Object message) throws Exception {
	if (message instanceof ReconciliationCoordinator.Reconcile) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				reconcile((ReconciliationCoordinator.Reconcile) message);
			}
		});
	} else if (message instanceof TaskMonitor.TaskTerminated) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				taskTerminated((TaskMonitor.TaskTerminated) message);
			}
		});
	} else if (message instanceof AcceptOffers) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				acceptOffers((AcceptOffers) message);
			}
		});
	} else {
		MesosResourceManager.LOG.error("unrecognized message: " + message);
	}
}
 
Example #2
Source File: MesosResourceManager.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void onReceive(final Object message) throws Exception {
	if (message instanceof ReconciliationCoordinator.Reconcile) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				reconcile((ReconciliationCoordinator.Reconcile) message);
			}
		});
	} else if (message instanceof TaskMonitor.TaskTerminated) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				taskTerminated((TaskMonitor.TaskTerminated) message);
			}
		});
	} else if (message instanceof AcceptOffers) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				acceptOffers((AcceptOffers) message);
			}
		});
	} else {
		MesosResourceManager.LOG.error("unrecognized message: " + message);
	}
}
 
Example #3
Source File: MesosResourceManager.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public void onReceive(final Object message) throws Exception {
	if (message instanceof ReconciliationCoordinator.Reconcile) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				reconcile((ReconciliationCoordinator.Reconcile) message);
			}
		});
	} else if (message instanceof TaskMonitor.TaskTerminated) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				taskTerminated((TaskMonitor.TaskTerminated) message);
			}
		});
	} else if (message instanceof AcceptOffers) {
		runAsync(new Runnable() {
			@Override
			public void run() {
				acceptOffers((AcceptOffers) message);
			}
		});
	} else {
		MesosResourceManager.LOG.error("unrecognized message: " + message);
	}
}
 
Example #4
Source File: MesosResourceManager.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
protected ActorRef createReconciliationCoordinator(SchedulerDriver schedulerDriver) {
	return actorSystem.actorOf(
		ReconciliationCoordinator.createActorProps(ReconciliationCoordinator.class, flinkConfig, schedulerDriver),
		"reconciliationCoordinator");
}
 
Example #5
Source File: MesosResourceManager.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
/**
 * Handles a reconciliation request from a task monitor.
 */
public void reconcile(ReconciliationCoordinator.Reconcile message) {
	// forward to the reconciliation coordinator
	reconciliationCoordinator.tell(message, selfActor);
}
 
Example #6
Source File: MesosResourceManager.java    From flink with Apache License 2.0 4 votes vote down vote up
protected ActorRef createReconciliationCoordinator(SchedulerDriver schedulerDriver) {
	return actorSystem.actorOf(
		ReconciliationCoordinator.createActorProps(ReconciliationCoordinator.class, flinkConfig, schedulerDriver),
		"reconciliationCoordinator");
}
 
Example #7
Source File: MesosResourceManager.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Handles a reconciliation request from a task monitor.
 */
public void reconcile(ReconciliationCoordinator.Reconcile message) {
	// forward to the reconciliation coordinator
	reconciliationCoordinator.tell(message, selfActor);
}
 
Example #8
Source File: MesosResourceManager.java    From flink with Apache License 2.0 4 votes vote down vote up
protected ActorRef createReconciliationCoordinator(SchedulerDriver schedulerDriver) {
	return actorSystem.actorOf(
		ReconciliationCoordinator.createActorProps(ReconciliationCoordinator.class, flinkConfig, schedulerDriver),
		"reconciliationCoordinator");
}
 
Example #9
Source File: MesosResourceManager.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Handles a reconciliation request from a task monitor.
 */
public void reconcile(ReconciliationCoordinator.Reconcile message) {
	// forward to the reconciliation coordinator
	reconciliationCoordinator.tell(message, selfActor);
}
 
Example #10
Source File: MesosResourceManagerActions.java    From Flink-CEPplus with Apache License 2.0 2 votes vote down vote up
/**
 * Trigger reconciliation with the Mesos master.
 *
 * <p>Note: This method is a callback for the {@link TaskMonitor}.
 *
 * @param reconciliationRequest Message containing the tasks which shall be reconciled
 */
void reconcile(ReconciliationCoordinator.Reconcile reconciliationRequest);
 
Example #11
Source File: MesosResourceManagerActions.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Trigger reconciliation with the Mesos master.
 *
 * <p>Note: This method is a callback for the {@link TaskMonitor}.
 *
 * @param reconciliationRequest Message containing the tasks which shall be reconciled
 */
void reconcile(ReconciliationCoordinator.Reconcile reconciliationRequest);
 
Example #12
Source File: MesosResourceManagerActions.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Trigger reconciliation with the Mesos master.
 *
 * <p>Note: This method is a callback for the {@link TaskMonitor}.
 *
 * @param reconciliationRequest Message containing the tasks which shall be reconciled
 */
void reconcile(ReconciliationCoordinator.Reconcile reconciliationRequest);