예제 #1
0
  public void messageArrived(DoorTransferFinishedMessage transferFinishedMessage) {

    NFS4ProtocolInfo protocolInfo = (NFS4ProtocolInfo) transferFinishedMessage.getProtocolInfo();
    _log.debug("Mover {} done.", protocolInfo.stateId());
    org.dcache.chimera.nfs.v4.xdr.stateid4 legacyStateid = protocolInfo.stateId();
    Transfer transfer =
        _ioMessages.remove(new stateid4(legacyStateid.other, legacyStateid.seqid.value));
    if (transfer != null) {
      transfer.finished(transferFinishedMessage);
      transfer.notifyBilling(transferFinishedMessage.getReturnCode(), "");
    }
  }
예제 #2
0
 public synchronized void messageArrived(DoorTransferFinishedMessage message) {
   HttpProtocolInfo pinfo = (HttpProtocolInfo) message.getProtocolInfo();
   int sessionId = pinfo.getSessionId();
   Companion companion = _companions.get(sessionId);
   if (companion != null) {
     companion.messageArrived(message);
   }
 }