public class ShellPollConfig<T> extends PollConfig<SshPollValue,T,ShellPollConfig<T>>
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<SshPollValue> |
DEFAULT_SUCCESS |
NO_SENSOR, REMOVE, UNCHANGED, UNSET
Constructor and Description |
---|
ShellPollConfig(AttributeSensor<T> sensor) |
ShellPollConfig(ShellPollConfig<T> other) |
Modifier and Type | Method and Description |
---|---|
ShellPollConfig<T> |
command(java.lang.String val) |
ShellPollConfig<T> |
dir(java.io.File val) |
ShellPollConfig<T> |
env(java.util.Map<java.lang.String,java.lang.String> val) |
ShellPollConfig<T> |
env(java.lang.String key,
java.lang.String val) |
java.lang.String |
getCommand() |
java.io.File |
getDir() |
java.util.Map<java.lang.String,java.lang.String> |
getEnv() |
java.lang.String |
getInput() |
long |
getTimeout() |
ShellPollConfig<T> |
input(java.lang.String val) |
ShellPollConfig<T> |
timeout(long timeout) |
ShellPollConfig<T> |
timeout(long timeout,
java.util.concurrent.TimeUnit units) |
description, getDescription, getPeriod, period, period, period
checkSuccess, checkSuccess, equals, getCheckSuccess, getOnException, getOnFailure, getOnSuccess, getSensor, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hashCode, hasSuccessHandler, onException, onFailure, onFailureOrException, onResult, onSuccess, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess, toString
public static final com.google.common.base.Predicate<SshPollValue> DEFAULT_SUCCESS
public ShellPollConfig(AttributeSensor<T> sensor)
public ShellPollConfig(ShellPollConfig<T> other)
public java.lang.String getCommand()
public java.util.Map<java.lang.String,java.lang.String> getEnv()
public java.io.File getDir()
public java.lang.String getInput()
public long getTimeout()
public ShellPollConfig<T> command(java.lang.String val)
public ShellPollConfig<T> env(java.lang.String key, java.lang.String val)
public ShellPollConfig<T> env(java.util.Map<java.lang.String,java.lang.String> val)
public ShellPollConfig<T> dir(java.io.File val)
public ShellPollConfig<T> input(java.lang.String val)
public ShellPollConfig<T> timeout(long timeout)
public ShellPollConfig<T> timeout(long timeout, java.util.concurrent.TimeUnit units)