Brooklyn

brooklyn.event.feed.shell
[Java] Class ShellPollConfig

java.lang.Object
  brooklyn.event.feed.FeedConfig
      brooklyn.event.feed.PollConfig
          brooklyn.event.feed.shell.ShellPollConfig

public class ShellPollConfig
extends PollConfig

Field Summary
static Predicate DEFAULT_SUCCESS

 
Fields inherited from class FeedConfig
UNSET
 
Constructor Summary
ShellPollConfig(AttributeSensor sensor)

ShellPollConfig(ShellPollConfig other)

 
Method Summary
ShellPollConfig command(java.lang.String val)

ShellPollConfig dir(java.io.File val)

ShellPollConfig env(java.lang.String key, java.lang.String val)

ShellPollConfig env(java.util.Map val)

ShellPollConfig failOnNonZeroResultCode(boolean val)

Overrides any Function given to checkSuccess.

ShellPollConfig failOnNonZeroResultCode()

Overrides any Function given to checkSuccess to treat any non-zero response code as a failure.

java.lang.String getCommand()

java.io.File getDir()

java.util.Map getEnv()

java.lang.String getInput()

long getTimeout()

ShellPollConfig input(java.lang.String val)

boolean isFailOnNonZeroResultCode()

@deprecated since 0.6; default is true, see checkSuccess

ShellPollConfig timeout(long timeout)

ShellPollConfig timeout(long timeout, java.util.concurrent.TimeUnit units)

 
Methods inherited from class PollConfig
getPeriod, period, period, period
 
Methods inherited from class FeedConfig
checkSuccess, getCheckSuccess, getOnError, getOnException, getOnFailure, getOnSuccess, getSensor, hasCheckSuccessHandler, hasExceptionHandler, hasFailureHandler, hasSuccessHandler, onError, onException, onFailure, onFailureOrException, onResult, onSuccess, self, setOnException, setOnFailure, setOnFailureOrException, setOnResult, setOnSuccess
 

Field Detail

DEFAULT_SUCCESS

public static final Predicate DEFAULT_SUCCESS


 
Constructor Detail

ShellPollConfig

public ShellPollConfig(AttributeSensor sensor)


ShellPollConfig

public ShellPollConfig(ShellPollConfig other)


 
Method Detail

command

public ShellPollConfig command(java.lang.String val)


dir

public ShellPollConfig dir(java.io.File val)


env

public ShellPollConfig env(java.lang.String key, java.lang.String val)


env

public ShellPollConfig env(java.util.Map val)


failOnNonZeroResultCode

@Deprecated
public ShellPollConfig failOnNonZeroResultCode(boolean val)
Overrides any Function given to checkSuccess. If argument is true feed treats any non-zero response code as a failure. Otherwise sets checkSuccess to Predicates#alwaysTrue()#alwaysTrue().
deprecated:
since 0.6; default is true, see checkSuccess


failOnNonZeroResultCode

@Deprecated
public ShellPollConfig failOnNonZeroResultCode()
Overrides any Function given to checkSuccess to treat any non-zero response code as a failure.
deprecated:
since 0.6; default is true, see checkSuccess


getCommand

public java.lang.String getCommand()


getDir

public java.io.File getDir()


getEnv

public java.util.Map getEnv()


getInput

public java.lang.String getInput()


getTimeout

public long getTimeout()


input

public ShellPollConfig input(java.lang.String val)


isFailOnNonZeroResultCode

@Deprecated
public boolean isFailOnNonZeroResultCode()
deprecated:
since 0.6; default is true, see checkSuccess


timeout

public ShellPollConfig timeout(long timeout)


timeout

public ShellPollConfig timeout(long timeout, java.util.concurrent.TimeUnit units)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.