Brooklyn

brooklyn.event.adapter
[Groovy] Class FunctionCallAdapter

java.lang.Object
  brooklyn.event.adapter.AbstractSensorAdapter
      brooklyn.event.adapter.FunctionCallAdapter

class FunctionCallAdapter
extends AbstractSensorAdapter

Field Summary
protected Function function

protected AbstractSensorAdapter parent

protected FunctionChainPollHelper poller

 
Constructor Summary
FunctionCallAdapter(java.util.Map flags = [:], AbstractChainablePollHelper parentPoller, Function f)

 
Method Summary
void poll(Sensor s, groovy.lang.Closure c = {it})

FunctionCallAdapter then(groovy.lang.Closure f)

FunctionCallAdapter then(Function f)

 
Methods inherited from class AbstractSensorAdapter
activateAdapter, addActivationLifecycleListeners, deactivateAdapter, isConnected, register
 

Field Detail

function

protected final Function function


parent

protected final AbstractSensorAdapter parent


poller

protected final FunctionChainPollHelper poller


 
Constructor Detail

FunctionCallAdapter

FunctionCallAdapter(java.util.Map flags = [:], AbstractChainablePollHelper parentPoller, Function f)


 
Method Detail

poll

void poll(Sensor s, groovy.lang.Closure c = {it})


then

FunctionCallAdapter then(groovy.lang.Closure f)


then

FunctionCallAdapter then(Function f)


 

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