Brooklyn

brooklyn.entity.effector
[Java] Class EffectorTasks

java.lang.Object
  brooklyn.entity.effector.EffectorTasks

@Beta
public class EffectorTasks

Since:
0.6.0


Nested Class Summary
static class EffectorTasks.EffectorBodyTaskFactory

interface EffectorTasks.EffectorTaskFactory

static class EffectorTasks.ParameterTask

 
Method Summary
static ConfigKey asConfigKey(ParameterType t)

static Entity findEntity()

Finds the entity where this task is running

static java.lang.Object findEntity(java.lang.Class type)

Finds the entity where this task is running, casted to the given Entity subtype

static SshMachineLocation findSshMachine()

Finds a unique SshMachineLocation attached to the entity where this task is running

static SshMachineLocation getSshMachine(Entity entity)

Finds a unique SshMachineLocation attached to the supplied entity

static EffectorTasks.EffectorTaskFactory of(Task task)

static EffectorTasks.ParameterTask parameter(ParameterType t)

static EffectorTasks.ParameterTask parameter(java.lang.Class type, java.lang.String name)

static EffectorTasks.ParameterTask parameter(ConfigKey p)

 
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()
 

Method Detail

asConfigKey

public static ConfigKey asConfigKey(ParameterType t)


findEntity

public static Entity findEntity()
Finds the entity where this task is running
throws:
NullPointerException if there is none (no task, or no context entity for that task)


findEntity

public static java.lang.Object findEntity(java.lang.Class type)
Finds the entity where this task is running, casted to the given Entity subtype
throws:
NullPointerException if there is none
throws:
IllegalArgumentException if it is not of the indicated type


findSshMachine

public static SshMachineLocation findSshMachine()
Finds a unique SshMachineLocation attached to the entity where this task is running
throws:
NullPointerException if findEntity() fails
throws:
IllegalStateException if call to getSshMachine(Entity) fails


getSshMachine

public static SshMachineLocation getSshMachine(Entity entity)
Finds a unique SshMachineLocation attached to the supplied entity
throws:
IllegalStateException if there is not a unique such SshMachineLocation


of

public static EffectorTasks.EffectorTaskFactory of(Task task)


parameter

public static EffectorTasks.ParameterTask parameter(ParameterType t)


parameter

public static EffectorTasks.ParameterTask parameter(java.lang.Class type, java.lang.String name)


parameter

public static EffectorTasks.ParameterTask parameter(ConfigKey p)


 

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