org.curjent.test.agent.asmify
Class CopyMessage_Read

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

final class CopyMessage_Read
extends Message


Field Summary
(package private)  long arg0
           
(package private)  int arg1
           
(package private)  char result
           
 
Fields inherited from class org.curjent.impl.agent.Message
cachedResult, state
 
Constructor Summary
CopyMessage_Read(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  Object getResultValue()
          Converts the task's result to an object.
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, 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

long arg0

arg1

int arg1

result

char result
Constructor Detail

CopyMessage_Read

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

getResultValue

protected Object getResultValue()
Description copied from class: Message
Converts the task's result to an object. The subclass of this message returns a boxed value for a primitive result (e.g., Boolean.valueOf(result) for a boolean result). Non-primitive objects, including arrays, are returned unchanged. null is returned for void return types.

Overrides:
getResultValue 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