예제 #1
0
 @Override
 public void setStatus(SRMUser user, String status) throws SRMException {
   if (status.equalsIgnoreCase("Done")) {
     done(user);
   } else {
     super.setStatus(user, status);
   }
 }
예제 #2
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);
 }
예제 #3
0
 @Override
 protected void stateChanged(State oldState) {
   logger.debug("State changed from " + oldState + " to " + getState());
   super.stateChanged(oldState);
 }