Brooklyn

brooklyn.event.feed.ssh
[Java] Class SshPollConfig

java.lang.Object
  brooklyn.event.feed.FeedConfig
      brooklyn.event.feed.PollConfig
          brooklyn.event.feed.ssh.SshPollConfig

public class SshPollConfig
extends PollConfig

Field Summary
static Predicate DEFAULT_SUCCESS

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

SshPollConfig(SshPollConfig other)

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

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

SshPollConfig env(java.util.Map val)

SshPollConfig failOnNonZeroResultCode(boolean val)

Overrides any Function given to checkSuccess.

SshPollConfig failOnNonZeroResultCode()

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

java.lang.String getCommand()

java.util.Map getEnv()

boolean isFailOnNonZeroResultCode()

@deprecated since 0.6; default is true, see checkSuccess

 
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

SshPollConfig

public SshPollConfig(AttributeSensor sensor)


SshPollConfig

public SshPollConfig(SshPollConfig other)


 
Method Detail

command

public SshPollConfig command(java.lang.String val)


env

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


env

public SshPollConfig env(java.util.Map val)


failOnNonZeroResultCode

@Deprecated
public SshPollConfig 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 SshPollConfig 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()


getEnv

public java.util.Map getEnv()


isFailOnNonZeroResultCode

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


 

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