org.curjent.test.agent.asmify
Class CopyMessage_Status

java.lang.Object
  extended by org.curjent.impl.agent.Message
      extended by org.curjent.test.agent.asmify.CopyMessage_Status
All Implemented Interfaces:
Awaiter

final class CopyMessage_Status
extends Message


Field Summary
(package private)  String arg0
           
(package private)  AgentCall<?> result
           
 
Fields inherited from class org.curjent.impl.agent.Message
cachedResult, state
 
Constructor Summary
CopyMessage_Status(CallInfo info)
           
 
Method Summary
protected  void dispatch(Object queuedTask)
          Delegates execution of the call to the subclass of this message.
protected  Object getArgumentValue(int index)
          Method implemented by generated message subtypes for boxing and unboxing arguments.
protected  void setArgumentValue(int index, Object value)
          Method implemented by generated message subtypes for boxing and unboxing arguments.
protected  void setResultValue(Object value)
          Implemented by generated message subtypes to unbox and save a result value.
 
Methods inherited from class org.curjent.impl.agent.Message
await, await, await, clearDeadcheckRequest, deadcheck, getBlockingThreads, getCall, getController, getResultValue, isDeadcheckRequested, isExecuting, isSatisfied, lock, toString, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

arg0

String arg0

result

AgentCall<?> result
Constructor Detail

CopyMessage_Status

CopyMessage_Status(CallInfo info)
Method Detail

dispatch

protected void dispatch(Object queuedTask)
                 throws Throwable
Description copied from class: Message
Delegates execution of the call to the subclass of this message. The agent's proxy creates the message and saves the call's parameters. Later, the Controller calls the message's dispatch method to execute the call. The message calls the task's method with the previously saved parameters and saves the result. The message saves parameters and results in its fields.

Specified by:
dispatch in class Message
Throws:
Throwable - Any exception thrown by the task's method.
See Also:
MessageFactory

getArgumentValue

protected Object getArgumentValue(int index)
Description copied from class: Message
Method implemented by generated message subtypes for boxing and unboxing arguments. This default implementation throws an assertion error.

Overrides:
getArgumentValue in class Message

setArgumentValue

protected void setArgumentValue(int index,
                                Object value)
Description copied from class: Message
Method implemented by generated message subtypes for boxing and unboxing arguments. This default implementation throws an assertion error.

Overrides:
setArgumentValue in class Message

setResultValue

protected void setResultValue(Object value)
Description copied from class: Message
Implemented by generated message subtypes to unbox and save a result value. This default implementation for void return types does nothing. Subtype implementations throw an exception if value is the wrong type.

Overrides:
setResultValue in class Message


Copyright 2009-2011 Tom Landon
Apache License 2.0