socket.getInetAddress() + ':' +
socket.getPort());
}
try {
IOControl ioCtrl = new IOControl(socket);
int rid = ioCtrl.readInt();
if (Trace.logger.isLoggable(BasicLevel.DEBUG))
Trace.logger.log(BasicLevel.DEBUG, " -> request id = " + rid);
switch (rid) {
case HARequestManager.IDEMPOTENT:
Channel.sendTo(
tcpServer.getServerId(),
new TcpRequestNot(new HARequestContext(
ioCtrl, HARequestManager.IDEMPOTENT)));
break;
case HARequestManager.NOT_IDEMPOTENT:
GetRequestIdNot gri =
new GetRequestIdNot();
gri.invoke(tcpServer.getServerId());
int newRid = gri.getId();
ioCtrl.writeInt(newRid);
Channel.sendTo(
tcpServer.getServerId(),
new TcpRequestNot(new HARequestContext(
ioCtrl, newRid)));
break;