use of org.apache.ratis.examples.arithmetic.AssignmentMessage in project incubator-ratis by apache.
the class Assign method operation.
@Override
protected void operation(RaftClient client) throws IOException {
RaftClientReply send = client.io().send(new AssignmentMessage(new Variable(name), createExpression(value)));
System.out.println("Success: " + send.isSuccess());
System.out.println("Response: " + send.getMessage().getClass());
}
Aggregations