|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.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 |
|---|
public static final Logger log
| Property Detail |
|---|
final int exitStatus
final SshMachineLocation location
@Nullable final java.lang.String stderr
@Nullable final java.lang.String stdout
| Constructor Detail |
|---|
SshResultContext(SshMachineLocation location, int exitStatus, java.lang.String stdout, java.lang.String stderr)
SshResultContext(SshMachineLocation location, java.lang.Exception error)
| Method Detail |
|---|
protected java.lang.Object getDefaultValue()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.