synchronized (this) {
if ((currentProposal != null) &&
(currentValue != null)) {
out = new PrintWriter(socket.getOutputStream(),
true);
MasterQueryResponse responseMessage =
protocol.new MasterQueryResponse
(currentProposal, currentValue);
/*
* The request message may be of an earlier
* version. If so, this node transparently read
* the older version. JE only throws out
* InvalidMessageException when the version of
* the request message is newer than the
* current protocol. To avoid sending a
* response that the requester cannot
* understand, we send a response in the same
* version as that of the original request
* message.
*/
responseMessage.setSendVersion
(requestMessage.getSendVersion());
out.println(responseMessage.wireFormat());
}
}
} else if (requestMessage.getOp() == protocol.SHUTDOWN) {
LoggerUtils.logMsg
(logger, envImpl, formatter, Level.FINE,