@Override public void handleError(Exception exception) { LOG.error("Error occurred in the LeaderRetrievalService.", exception); getSelf().tell(decorateMessage(PoisonPill.getInstance()), getSelf()); }
@Override public void handleError(Exception exception) { LOG.error("Error occurred in the LeaderRetrievalService.", exception); getSelf().tell(decorateMessage(PoisonPill.getInstance()), getSelf()); }
@Override public void handleError(Exception exception) { LOG.error("Error occurred in the LeaderRetrievalService.", exception); getSelf().tell(decorateMessage(PoisonPill.getInstance()), getSelf()); }
@Override public void handleError(Exception exception) { LOG.error("Error occurred in the LeaderRetrievalService.", exception); getSelf().tell(decorateMessage(PoisonPill.getInstance()), getSelf()); }
@Override public void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID) { getSelf().tell( decorateMessage(new JobManagerLeaderAddress(leaderAddress, leaderSessionID)), getSelf()); }
protected void terminate() { LOG.info("Terminate JobClientActor."); toBeTerminated = true; disconnectFromJobManager(); getSelf().tell(decorateMessage(PoisonPill.getInstance()), ActorRef.noSender()); }
protected void terminate() { LOG.info("Terminate JobClientActor."); toBeTerminated = true; disconnectFromJobManager(); getSelf().tell(decorateMessage(PoisonPill.getInstance()), ActorRef.noSender()); }
protected void terminate() { LOG.info("Terminate JobClientActor."); toBeTerminated = true; disconnectFromJobManager(); getSelf().tell(decorateMessage(PoisonPill.getInstance()), ActorRef.noSender()); }
protected void terminate() { LOG.info("Terminate JobClientActor."); toBeTerminated = true; disconnectFromJobManager(); getSelf().tell(decorateMessage(PoisonPill.getInstance()), ActorRef.noSender()); }
@Override public void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID) { getSelf().tell( decorateMessage(new JobManagerLeaderAddress(leaderAddress, leaderSessionID)), getSelf()); }
@Override public void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID) { getSelf().tell( decorateMessage(new JobManagerLeaderAddress(leaderAddress, leaderSessionID)), getSelf()); }
@Override public void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID) { getSelf().tell( decorateMessage(new JobManagerLeaderAddress(leaderAddress, leaderSessionID)), getSelf()); }
private void registerConnectionTimeout() { if (connectionTimeout != null) { connectionTimeout.cancel(); } connectionTimeoutId = UUID.randomUUID(); connectionTimeout = getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(new JobClientMessages.ConnectionTimeout(connectionTimeoutId)), getContext().dispatcher(), ActorRef.noSender() ); }
private void registerConnectionTimeout() { if (connectionTimeout != null) { connectionTimeout.cancel(); } connectionTimeoutId = UUID.randomUUID(); connectionTimeout = getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(new JobClientMessages.ConnectionTimeout(connectionTimeoutId)), getContext().dispatcher(), ActorRef.noSender() ); }
private void registerConnectionTimeout() { if (connectionTimeout != null) { connectionTimeout.cancel(); } connectionTimeoutId = UUID.randomUUID(); connectionTimeout = getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(new JobClientMessages.ConnectionTimeout(connectionTimeoutId)), getContext().dispatcher(), ActorRef.noSender() ); }
private void registerConnectionTimeout() { if (connectionTimeout != null) { connectionTimeout.cancel(); } connectionTimeoutId = UUID.randomUUID(); connectionTimeout = getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(new JobClientMessages.ConnectionTimeout(connectionTimeoutId)), getContext().dispatcher(), ActorRef.noSender() ); }
this.client.tell(decorateMessage(message), getSelf()); final JobClientActorConnectionTimeoutException errorMessage = new JobClientActorConnectionTimeoutException("Lost connection to the JobManager."); final Object replyMessage = decorateMessage(new Status.Failure(errorMessage)); if (isClientConnected()) { client.tell( LOG.error(msg); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender());
this.client.tell(decorateMessage(message), getSelf()); final JobClientActorConnectionTimeoutException errorMessage = new JobClientActorConnectionTimeoutException("Lost connection to the JobManager."); final Object replyMessage = decorateMessage(new Status.Failure(errorMessage)); if (isClientConnected()) { client.tell( LOG.error(msg); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender());
this.client.tell(decorateMessage(message), getSelf()); final JobClientActorConnectionTimeoutException errorMessage = new JobClientActorConnectionTimeoutException("Lost connection to the JobManager."); final Object replyMessage = decorateMessage(new Status.Failure(errorMessage)); if (isClientConnected()) { client.tell( LOG.error(msg); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender());
this.client.tell(decorateMessage(message), getSelf()); final JobClientActorConnectionTimeoutException errorMessage = new JobClientActorConnectionTimeoutException("Lost connection to the JobManager."); final Object replyMessage = decorateMessage(new Status.Failure(errorMessage)); if (isClientConnected()) { client.tell( LOG.error(msg); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender());