All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hidetake.groovy.ssh.session.execution.BackgroundCommand.groovy Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package org.hidetake.groovy.ssh.session.execution

import groovy.util.logging.Slf4j

/**
 * Provides the non-blocking command execution.
 * Each method returns immediately and executes the commandLine concurrently.
 *
 * @author Hidetake Iwata
 */
@Slf4j
trait BackgroundCommand implements Command {
    @Deprecated
    void executeBackground(HashMap map = [:], String commandLine) {
        log.warn("Deprecated: executeBackground is no longer supported. Use execute instead.")
        execute(map, commandLine)
    }

    @Deprecated
    void executeBackground(HashMap map = [:], List commandLineArgs) {
        log.warn("Deprecated: executeBackground is no longer supported. Use execute instead.")
        execute(map, commandLineArgs)
    }

    @Deprecated
    void executeBackground(HashMap map = [:], String commandLine, Closure callback) {
        log.warn("Deprecated: executeBackground is no longer supported. Use execute instead.")
        execute(map, commandLine, callback)
    }

    @Deprecated
    void executeBackground(HashMap map = [:], List commandLineArgs, Closure callback) {
        log.warn("Deprecated: executeBackground is no longer supported. Use execute instead.")
        execute(map, commandLineArgs, callback)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy