cartago
Class OpRequestInfo

java.lang.Object
  extended by cartago.OpRequestInfo

public class OpRequestInfo
extends java.lang.Object

Class storing info about an op request Used by WSP Rule Engine

Author:
aricci

Method Summary
 void changeOp(Op op)
          Change the operation
 long getActionId()
          Get the unique identifier of the action/operation request
 AgentId getAgentId()
          Get the identifier of the agent that executed the operation
 Op getOp()
          Get the operation requested
 ArtifactId getTargetArtifactId()
          Get the current target artifact identifier
 void setFailed(java.lang.String msg, Tuple descr)
          Force the current operation request to fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFailed

public void setFailed(java.lang.String msg,
                      Tuple descr)
Force the current operation request to fail

Parameters:
msg - message
descr - reason/description tuple

getTargetArtifactId

public ArtifactId getTargetArtifactId()
Get the current target artifact identifier

Returns:

getAgentId

public AgentId getAgentId()
Get the identifier of the agent that executed the operation

Returns:

getOp

public Op getOp()
Get the operation requested

Returns:

changeOp

public void changeOp(Op op)
Change the operation

Parameters:
op - new operation

getActionId

public long getActionId()
Get the unique identifier of the action/operation request

Returns:


>DEIS - University of Bologna