Uses of Class
berlin.yuna.clu.logic.Terminal
Packages that use Terminal
-
Uses of Terminal in berlin.yuna.clu.logic
Methods in berlin.yuna.clu.logic that return TerminalModifier and TypeMethodDescriptionTerminal.breakOnError(boolean breakOnError) Will throwIllegalStateExceptionon error when trueTerminal.clearConsole()Clears the console outputconsoleInfo()consoleError()final TerminalTerminal.consumerErrorStream(Consumer<String>... consumerError) final TerminalTerminal.consumerInfoStream(Consumer<String>... consumerInfo) static TerminalClean copy of terminal with default consumer and clean console logExecutes a command with (sh or cmd.exe) ant he help of theProcessBuilderDefault working directory: user.dirtimeoutMs(long)if timeout is neededExecutes a command with (sh or cmd.exe) ant he help of theProcessBuilderDefault working directory: user.dirtimeoutMs(long)if timeout is neededTerminal.timeoutMs(long timeoutMs) Alternative toProcess.waitFor()as sometimes a process can be to fast or to slow forProcess.waitFor()or you need a timeout Its combined with (breakOnError(boolean)) Default : -1 (deactivated) Also activates a heartbeat check (timeoutMs / 40) which will also timeout if there is no output is happeningTerminal.waitFor(long waitForMs) Methods in berlin.yuna.clu.logic with parameters of type Terminal