public class ShellPollConfig<T> extends PollConfig<SshPollValue,T,ShellPollConfig<T>>
Modifier and Type | Field and Description |
---|---|
static <any> |
DEFAULT_SUCCESS |
NO_SENSOR, REMOVE, UNCHANGED
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) |
static ShellPollConfig<java.lang.Void> |
forMultiple() |
static <T> ShellPollConfig<T> |
forSensor(AttributeSensor<T> sensor) |
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, enabled, equals, getCheckSuccess, getLogWarningGraceTime, getLogWarningGraceTimeOnStartup, getOnException, getOnFailure, getOnSuccess, getSensor, getSupressDuplicates, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hashCode, hasSuccessHandler, isEnabled, logWarningGraceTime, logWarningGraceTimeOnStartup, onException, onFailure, onFailureOrException, onResult, onSuccess, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess, suppressDuplicates, toString
public ShellPollConfig(AttributeSensor<T> sensor)
public ShellPollConfig(ShellPollConfig<T> other)
public static <T> ShellPollConfig<T> forSensor(AttributeSensor<T> sensor)
public static ShellPollConfig<java.lang.Void> forMultiple()
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)