Groovy Documentation

org.linkedin.glu.provisioner.impl.agent
[Groovy] Class BaseAgentTouchpoint

java.lang.Object
  org.linkedin.glu.provisioner.impl.agent.BaseAgentTouchpoint

class BaseAgentTouchpoint

Common code between touchpoints.

Authors:
ypujante@linkedin.com


Field Summary
static java.lang.String MODULE

static java.lang.Object log

 
Property Summary
Timespan timeout

the timeout for the agent operations

 
Constructor Summary
BaseAgentTouchpoint(java.lang.String id, AgentFactory factory, EncryptionKeysProvider keyProvider)

 
Method Summary
protected void addActions(java.util.Map actions)

Subclasses will provide their own actions

protected void executeAction(Agent a, ActionDescriptor ad, java.lang.Object action, java.lang.Object state)

Executes the action.

Action getAction(ActionDescriptor ad)

AgentFactory getFactory()

java.lang.String getId()

protected Action getInstallAction(ActionDescriptor ad)

protected Action getInstallscriptAction(ActionDescriptor ad)

protected Action getUninstallAction(ActionDescriptor ad)

protected Action getUninstallscriptAction(ActionDescriptor ad)

 
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

MODULE

public static final java.lang.String MODULE


log

public static final java.lang.Object log


 
Property Detail

timeout

Timespan timeout
the timeout for the agent operations


 
Constructor Detail

BaseAgentTouchpoint

BaseAgentTouchpoint(java.lang.String id, AgentFactory factory, EncryptionKeysProvider keyProvider)


 
Method Detail

addActions

protected void addActions(java.util.Map actions)
Subclasses will provide their own actions


executeAction

protected void executeAction(Agent a, ActionDescriptor ad, java.lang.Object action, java.lang.Object state)
Executes the action. Wait for the state and loop until successful or the thread is interrupted. The timeout is how long to wait for checking... When the thread is interrupted, try to interrupt the action.


getAction

Action getAction(ActionDescriptor ad)


getFactory

AgentFactory getFactory()


getId

java.lang.String getId()


getInstallAction

protected Action getInstallAction(ActionDescriptor ad)


getInstallscriptAction

protected Action getInstallscriptAction(ActionDescriptor ad)


getUninstallAction

protected Action getUninstallAction(ActionDescriptor ad)


getUninstallscriptAction

protected Action getUninstallscriptAction(ActionDescriptor ad)


 

Groovy Documentation