private static void reply(int id, InetAddress to) { MessagingService.instance().sendReply(HintResponse.message, id, to); } }
private static void reply(int id, InetAddress to) { MessagingService.instance().sendReply(HintResponse.message, id, to); } }
public void doVerb(MessageIn<EchoMessage> message, int id) { MessageOut<EchoMessage> echoMessage = new MessageOut<EchoMessage>(MessagingService.Verb.REQUEST_RESPONSE, EchoMessage.instance, EchoMessage.serializer); logger.trace("Sending a EchoMessage reply {}", message.from); MessagingService.instance().sendReply(echoMessage, id, message.from); } }
public void doVerb(MessageIn<EchoMessage> message, int id) { MessageOut<EchoMessage> echoMessage = new MessageOut<EchoMessage>(MessagingService.Verb.REQUEST_RESPONSE, EchoMessage.instance, EchoMessage.serializer); logger.trace("Sending a EchoMessage reply {}", message.from); MessagingService.instance().sendReply(echoMessage, id, message.from); } }
public void run() { MessagingService.instance().sendReply(WriteResponse.createMessage(), id, message.from); } }, queryStartNanoTime);
@Override public void run() { MessagingService.instance().sendReply(new MessageOut(MessagingService.Verb.INTERNAL_RESPONSE), id, message.from); } }, MoreExecutors.directExecutor());
public void doVerb(MessageIn msg, int id) { StorageService.instance.confirmReplication(msg.from); MessageOut response = new MessageOut(MessagingService.Verb.INTERNAL_RESPONSE); if (logger.isDebugEnabled()) logger.debug("Replying to {}@{}", id, msg.from); MessagingService.instance().sendReply(response, id, msg.from); } }
@Override public void run() { MessagingService.instance().sendReply(new MessageOut(MessagingService.Verb.INTERNAL_RESPONSE), id, message.from); } }, MoreExecutors.directExecutor());
public void doVerb(MessageIn message, int id) { logger.trace("Received migration request from {}.", message.from); MessageOut<Collection<Mutation>> response = new MessageOut<>(MessagingService.Verb.INTERNAL_RESPONSE, SchemaKeyspace.convertSchemaToMutations(), MigrationManager.MigrationsSerializer.instance); MessagingService.instance().sendReply(response, id, message.from); } }
private void logErrorAndSendFailureResponse(String errorMessage, InetAddress to, int id) { logger.error(errorMessage); MessageOut reply = new MessageOut(MessagingService.Verb.INTERNAL_RESPONSE) .withParameter(MessagingService.FAILURE_RESPONSE_PARAM, MessagingService.ONE_BYTE); MessagingService.instance().sendReply(reply, id, to); } }
public void doVerb(MessageIn message, int id) { logger.trace("Received migration request from {}.", message.from); MessageOut<Collection<Mutation>> response = new MessageOut<>(MessagingService.Verb.INTERNAL_RESPONSE, SchemaKeyspace.convertSchemaToMutations(), MigrationManager.MigrationsSerializer.instance); MessagingService.instance().sendReply(response, id, message.from); } }
public void doVerb(MessageIn<Batch> message, int id) { BatchlogManager.store(message.payload); MessagingService.instance().sendReply(WriteResponse.createMessage(), id, message.from); } }
public void doVerb(MessageIn<Commit> message, int id) { Boolean response = PaxosState.propose(message.payload); MessageOut<Boolean> reply = new MessageOut<Boolean>(MessagingService.Verb.REQUEST_RESPONSE, response, BooleanSerializer.serializer); MessagingService.instance().sendReply(reply, id, message.from); } }
public void doVerb(MessageIn<Commit> message, int id) { Boolean response = PaxosState.propose(message.payload); MessageOut<Boolean> reply = new MessageOut<Boolean>(MessagingService.Verb.REQUEST_RESPONSE, response, BooleanSerializer.serializer); MessagingService.instance().sendReply(reply, id, message.from); } }
public void doVerb(MessageIn<Commit> message, int id) { PrepareResponse response = PaxosState.prepare(message.payload); MessageOut<PrepareResponse> reply = new MessageOut<PrepareResponse>(MessagingService.Verb.REQUEST_RESPONSE, response, PrepareResponse.serializer); MessagingService.instance().sendReply(reply, id, message.from); } }
public void doVerb(MessageIn<Batch> message, int id) { BatchlogManager.store(message.payload); MessagingService.instance().sendReply(WriteResponse.createMessage(), id, message.from); } }
public void doVerb(MessageIn<Commit> message, int id) { PrepareResponse response = PaxosState.prepare(message.payload); MessageOut<PrepareResponse> reply = new MessageOut<PrepareResponse>(MessagingService.Verb.REQUEST_RESPONSE, response, PrepareResponse.serializer); MessagingService.instance().sendReply(reply, id, message.from); } }
private void reply(int id, InetAddress replyTo) { Tracing.trace("Enqueuing response to {}", replyTo); MessagingService.instance().sendReply(WriteResponse.createMessage(), id, replyTo); }
private void reply(int id, InetAddress replyTo) { Tracing.trace("Enqueuing response to {}", replyTo); MessagingService.instance().sendReply(WriteResponse.createMessage(), id, replyTo); }
public void doVerb(MessageIn<Commit> message, int id) { PaxosState.commit(message.payload); Tracing.trace("Enqueuing acknowledge to {}", message.from); MessagingService.instance().sendReply(WriteResponse.createMessage(), id, message.from); } }