List<String> fileNameList =
new ArrayList<String>(mapPendingBinaryFile.get(packet.getIdentifier()).getFileNameList());
if (failList.size() != 0)
fileNameList.removeAll(failList);
Packet packetFileNameList =
new Packet(Packet.PacketType.ALL_CHANGESLOG_SAVED_OK, packet.getIdentifier(), ownName,
fileNameList);
send(packetFileNameList);
log.info("The " + fileDescriptorList.size() + " changeslogs were received and "
+ fileNameList.size() + " saved");
}
else if (log.isDebugEnabled())
{
log.debug("Do not start save : " + fileDescriptorList.size() + " of "
+ pbf.getNeedTransferCounter());
}
}
}
break;
case Packet.PacketType.ALL_CHANGESLOG_SAVED_OK :
long removeCounter = recoveryWriter.removeChangesLog(packet.getFileNameList(), packet.getOwnerName());
if (log.isDebugEnabled())
log.debug("Remove from file system : " + removeCounter);
Packet removedOldChangesLogPacket =
new Packet(Packet.PacketType.REMOVED_OLD_CHANGESLOG_COUNTER, packet.getIdentifier(), ownName);
removedOldChangesLogPacket.setSize(removeCounter);
channelManager.sendPacket(removedOldChangesLogPacket);
break;
case Packet.PacketType.REMOVED_OLD_CHANGESLOG_COUNTER :