Brooklyn

brooklyn.event.adapter
[Groovy] Class SshResultContext

java.lang.Object
  brooklyn.event.adapter.AbstractSensorEvaluationContext
      brooklyn.event.adapter.SshResultContext

class SshResultContext
extends AbstractSensorEvaluationContext

Context object for evaluating sensor closures with ssh command results.


Field Summary
static Logger log

 
Fields inherited from class AbstractSensorEvaluationContext
UNSET, log
 
Property Summary
int exitStatus

Command exit status, or -1 if error is set.

SshMachineLocation location

The machine the command will run on.

java.lang.String stderr

Command standard error; may be null if no content available.

java.lang.String stdout

Command standard output; may be null if no content available.

 
Constructor Summary
SshResultContext(SshMachineLocation location, int exitStatus, java.lang.String stdout, java.lang.String stderr)

Usual constructor.

SshResultContext(SshMachineLocation location, java.lang.Exception error)

Constructor for when there is an error.

 
Method Summary
protected java.lang.Object getDefaultValue()

 
Methods inherited from class AbstractSensorEvaluationContext
evaluate, evaluate, getDefaultValue, propertyMissing
 

Field Detail

log

public static final Logger log


 
Property Detail

exitStatus

final int exitStatus
Command exit status, or -1 if error is set.


location

final SshMachineLocation location
The machine the command will run on.


stderr

@Nullable
final java.lang.String stderr
Command standard error; may be null if no content available.


stdout

@Nullable
final java.lang.String stdout
Command standard output; may be null if no content available.


 
Constructor Detail

SshResultContext

SshResultContext(SshMachineLocation location, int exitStatus, java.lang.String stdout, java.lang.String stderr)
Usual constructor.


SshResultContext

SshResultContext(SshMachineLocation location, java.lang.Exception error)
Constructor for when there is an error.


 
Method Detail

getDefaultValue

protected java.lang.Object getDefaultValue()


 

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