|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.event.feed.FeedConfig
public class FeedConfig
Configuration for a poll, or a subscription etc, that is being added to a feed.
Field Summary | |
---|---|
static java.lang.Object |
UNSET
The onSuccess or onError functions can return this value to indicate that the sensor should not change. |
Constructor Summary | |
FeedConfig(AttributeSensor sensor)
|
|
FeedConfig(FeedConfig other)
|
Method Summary | |
---|---|
This
|
checkSuccess(Predicate val)
sets the predicate used to check whether a feed run is successful |
Predicate
|
getCheckSuccess()
|
Function
|
getOnError()
@deprecated since 0.6; use getOnException()) |
Function
|
getOnException()
|
Function
|
getOnFailure()
|
Function
|
getOnSuccess()
|
AttributeSensor
|
getSensor()
|
boolean
|
hasCheckSuccessHandler()
|
boolean
|
hasExceptionHandler()
|
boolean
|
hasFailureHandler()
|
boolean
|
hasSuccessHandler()
|
This
|
onError(Function val)
@deprecated since 0.6; use onException(Function) |
This
|
onException(Function val)
an exception is when there is an error in the communication |
This
|
onFailure(Function val)
a failure is when the connection is fine (no exception) but the other end returns a result object V which the feed can tell indicates a failure (e.g. |
This
|
onFailureOrException(Function val)
convenience for indicating a behaviour to occur for both onException(Function) (error connecting) and onFailure(Function) (successful communication but failure report from remote end) |
This
|
onResult(Function val)
registers a callback to be used onSuccess(Function) and onFailure(Function), i.e. whenever a result comes back, but not in case of exceptions being thrown (ie problems communicating) |
This
|
onSuccess(Function val)
|
protected This
|
self()
|
This
|
setOnException(java.lang.Object val)
|
This
|
setOnFailure(java.lang.Object val)
|
This
|
setOnFailureOrException(java.lang.Object val)
|
This
|
setOnResult(java.lang.Object val)
|
This
|
setOnSuccess(java.lang.Object val)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.Object UNSET
Constructor Detail |
---|
public FeedConfig(AttributeSensor sensor)
public FeedConfig(FeedConfig other)
Method Detail |
---|
public This checkSuccess(Predicate val)
public Predicate getCheckSuccess()
public Function getOnError()
public Function getOnException()
public Function getOnFailure()
public Function getOnSuccess()
public AttributeSensor getSensor()
public boolean hasCheckSuccessHandler()
public boolean hasExceptionHandler()
public boolean hasFailureHandler()
public boolean hasSuccessHandler()
public This onError(Function val)
public This onException(Function val)
public This onFailure(Function val)
public This onFailureOrException(Function val)
public This onResult(Function val)
public This onSuccess(Function val)
@SuppressWarnings("unchecked") protected This self()
public This setOnException(java.lang.Object val)
public This setOnFailure(java.lang.Object val)
public This setOnFailureOrException(java.lang.Object val)
public This setOnResult(java.lang.Object val)
public This setOnSuccess(java.lang.Object val)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.