Exemplo n.º 1
0
 @Override
 protected void stateChanged(State oldState) {
   State state = getState();
   logger.debug("State changed from " + oldState + " to " + getState());
   if (state == State.READY) {
     try {
       getContainerRequest().resetRetryDeltaTime();
     } catch (SRMInvalidRequestException ire) {
       logger.error(ire.toString());
     }
   }
   try {
     if (state == State.FAILED && getFileId() != null) {
       String reason = getLastJobChange().getDescription();
       getStorage().abortPut(getUser(), getFileId(), getSurl(), reason);
     }
   } catch (SRMException e) {
     logger.error("Failed to abort put after failure: {}", e.getMessage());
   }
   super.stateChanged(oldState);
 }
Exemplo n.º 2
0
 @Override
 protected void stateChanged(State oldState) {
   logger.debug("State changed from " + oldState + " to " + getState());
   super.stateChanged(oldState);
 }