/** * This method should be called by the framework once it detects that a currently registered * worker has failed. * * @param resourceID Id of the worker that has failed. * @param message An informational message that explains why the worker failed. */ public void notifyWorkerFailed(ResourceID resourceID, String message) { WorkerType worker = startedWorkers.remove(resourceID); if (worker != null) { jobManager.tell( decorateMessage( new ResourceRemoved(resourceID, message)), self()); } }
protected void sendInfoMessage(String message) { for (ActorRef listener : infoMessageListeners) { listener.tell(decorateMessage(new InfoMessage(message)), self()); } }
/** * This method should be called by the framework once it detects that a currently registered * worker has failed. * * @param resourceID Id of the worker that has failed. * @param message An informational message that explains why the worker failed. */ public void notifyWorkerFailed(ResourceID resourceID, String message) { WorkerType worker = startedWorkers.remove(resourceID); if (worker != null) { jobManager.tell( decorateMessage( new ResourceRemoved(resourceID, message)), self()); } }
/** * This method should be called by the framework once it detects that a currently registered * worker has failed. * * @param resourceID Id of the worker that has failed. * @param message An informational message that explains why the worker failed. */ public void notifyWorkerFailed(ResourceID resourceID, String message) { WorkerType worker = startedWorkers.remove(resourceID); if (worker != null) { jobManager.tell( decorateMessage( new ResourceRemoved(resourceID, message)), self()); } }
/** * This method should be called by the framework once it detects that a currently registered * worker has failed. * * @param resourceID Id of the worker that has failed. * @param message An informational message that explains why the worker failed. */ public void notifyWorkerFailed(ResourceID resourceID, String message) { WorkerType worker = startedWorkers.remove(resourceID); if (worker != null) { jobManager.tell( decorateMessage( new ResourceRemoved(resourceID, message)), self()); } }
protected void sendInfoMessage(String message) { for (ActorRef listener : infoMessageListeners) { listener.tell(decorateMessage(new InfoMessage(message)), self()); } }
/** * Tells the ResourceManager that a TaskManager had been started in a container with the given * resource id. * * @param jobManager The sender (JobManager) of the message * @param resourceID The resource id of the started TaskManager */ private void handleResourceStarted(ActorRef jobManager, ResourceID resourceID) { if (resourceID != null) { // check if resourceID is already registered (TaskManager may send duplicate register messages) WorkerType oldWorker = startedWorkers.get(resourceID); if (oldWorker != null) { LOG.debug("Notification that TaskManager {} had been started was sent before.", resourceID); } else { WorkerType newWorker = workerStarted(resourceID); if (newWorker != null) { startedWorkers.put(resourceID, newWorker); LOG.info("TaskManager {} has started.", resourceID); } else { LOG.info("TaskManager {} has not been started by this resource manager.", resourceID); } } } // Acknowledge the resource registration jobManager.tell(decorateMessage(Acknowledge.get()), self()); }
/** * Tells the ResourceManager that a TaskManager had been started in a container with the given * resource id. * * @param jobManager The sender (JobManager) of the message * @param resourceID The resource id of the started TaskManager */ private void handleResourceStarted(ActorRef jobManager, ResourceID resourceID) { if (resourceID != null) { // check if resourceID is already registered (TaskManager may send duplicate register messages) WorkerType oldWorker = startedWorkers.get(resourceID); if (oldWorker != null) { LOG.debug("Notification that TaskManager {} had been started was sent before.", resourceID); } else { WorkerType newWorker = workerStarted(resourceID); if (newWorker != null) { startedWorkers.put(resourceID, newWorker); LOG.info("TaskManager {} has started.", resourceID); } else { LOG.info("TaskManager {} has not been started by this resource manager.", resourceID); } } } // Acknowledge the resource registration jobManager.tell(decorateMessage(Acknowledge.get()), self()); }
/** * Tells the ResourceManager that a TaskManager had been started in a container with the given * resource id. * * @param jobManager The sender (JobManager) of the message * @param resourceID The resource id of the started TaskManager */ private void handleResourceStarted(ActorRef jobManager, ResourceID resourceID) { if (resourceID != null) { // check if resourceID is already registered (TaskManager may send duplicate register messages) WorkerType oldWorker = startedWorkers.get(resourceID); if (oldWorker != null) { LOG.debug("Notification that TaskManager {} had been started was sent before.", resourceID); } else { WorkerType newWorker = workerStarted(resourceID); if (newWorker != null) { startedWorkers.put(resourceID, newWorker); LOG.info("TaskManager {} has started.", resourceID); } else { LOG.info("TaskManager {} has not been started by this resource manager.", resourceID); } } } // Acknowledge the resource registration jobManager.tell(decorateMessage(Acknowledge.get()), self()); }
/** * Tells the ResourceManager that a TaskManager had been started in a container with the given * resource id. * * @param jobManager The sender (JobManager) of the message * @param resourceID The resource id of the started TaskManager */ private void handleResourceStarted(ActorRef jobManager, ResourceID resourceID) { if (resourceID != null) { // check if resourceID is already registered (TaskManager may send duplicate register messages) WorkerType oldWorker = startedWorkers.get(resourceID); if (oldWorker != null) { LOG.debug("Notification that TaskManager {} had been started was sent before.", resourceID); } else { WorkerType newWorker = workerStarted(resourceID); if (newWorker != null) { startedWorkers.put(resourceID, newWorker); LOG.info("TaskManager {} has started.", resourceID); } else { LOG.info("TaskManager {} has not been started by this resource manager.", resourceID); } } } // Acknowledge the resource registration jobManager.tell(decorateMessage(Acknowledge.get()), self()); }
protected void sendInfoMessage(String message) { for (ActorRef listener : infoMessageListeners) { listener.tell(decorateMessage(new InfoMessage(message)), self()); } }
protected void sendInfoMessage(String message) { for (ActorRef listener : infoMessageListeners) { listener.tell(decorateMessage(new InfoMessage(message)), self()); } }
/** * This method causes the resource framework master to <b>asynchronously</b>re-examine * the set of available and pending workers containers, and release or allocate * containers if needed. The method sends an actor message which will trigger the * re-examination. */ public void triggerCheckWorkers() { self().tell( decorateMessage( CheckAndAllocateContainers.get()), ActorRef.noSender()); }
/** * This method causes the resource framework master to <b>asynchronously</b>re-examine * the set of available and pending workers containers, and release or allocate * containers if needed. The method sends an actor message which will trigger the * re-examination. */ public void triggerCheckWorkers() { self().tell( decorateMessage( CheckAndAllocateContainers.get()), ActorRef.noSender()); }
/** * This method causes the resource framework master to <b>asynchronously</b>re-examine * the set of available and pending workers containers, and release or allocate * containers if needed. The method sends an actor message which will trigger the * re-examination. */ public void triggerCheckWorkers() { self().tell( decorateMessage( CheckAndAllocateContainers.get()), ActorRef.noSender()); }
/** * This method causes the resource framework master to <b>asynchronously</b>re-examine * the set of available and pending workers containers, and release or allocate * containers if needed. The method sends an actor message which will trigger the * re-examination. */ public void triggerCheckWorkers() { self().tell( decorateMessage( CheckAndAllocateContainers.get()), ActorRef.noSender()); }
final Object registerMessage = decorateMessage(new RegisterResourceManager(self())); final Object retryMessage = decorateMessage(new TriggerRegistrationAtJobManager(leaderAddress));
final Object registerMessage = decorateMessage(new RegisterResourceManager(self())); final Object retryMessage = decorateMessage(new TriggerRegistrationAtJobManager(leaderAddress));
final Object registerMessage = decorateMessage(new RegisterResourceManager(self())); final Object retryMessage = decorateMessage(new TriggerRegistrationAtJobManager(leaderAddress));
final Object registerMessage = decorateMessage(new RegisterResourceManager(self())); final Object retryMessage = decorateMessage(new TriggerRegistrationAtJobManager(leaderAddress));