agave-systems/systems-core/src/main/java/org/iplantc/service/remote/ssh/MaverickSSHSubmissionClient.java
/**
     * Determine if the just executed attempt is the last attempt to be tried.
     * The just executed attempt is calculated by adding one to the tally of
     * previous attempts for the specified command key, if any previous attempts
     * exist.
     *
     * @param key the attempt key that identifies a command
     * @return true if all attempts have been exhausted, false otherwise
     */
Determine if the just executed attempt is the last attempt to be tried.
The just executed attempt is calculated by adding one to the tally of
previous attempts for the specified command key, if any previous attempts
exist.

@param key the attempt key that identifies a command
@return true if all attempts have been exhausted, false otherwise
Determine if the just executed attempt is the last attempt to be tried . The just executed attempt is calculated by adding one to the tally of previous attempts for the specified command key if any previous attempts exist . @param key the attempt key that identifies a command @return true if all attempts have been exhausted false otherwise
private boolean isLastAttempt(String key) {
        AtomicInteger previousAttempts = _attemptMap.get(key);
        if (previousAttempts == null) return false;
        int currentAttempt = 1 + previousAttempts.get();
        return currentAttempt >= org.iplantc.service.transfer.Settings.MAX_STAGING_RETRIES;
    }
private boolean isLastAttempt ( String key ) { AtomicInteger previousAttempts = _attemptMap . get ( key ) ; if ( previousAttempts == null ) return false ; int currentAttempt = 1 + previousAttempts . get ( ) ; return currentAttempt >= org . iplantc . service . transfer . Settings . MAX_STAGING_RETRIES ; }
Determine if the just executed attempt is the last attempt to be tried.
Determine if the just executed attempt is the last attempt to be tried .
// No previous attempts means we haven't exhausted all attempts. // The current attempt will be the last attempt if it matches or exceeds the // retry limit.  The current attempt is one more than the previous count.