fabric.worker.remote.messages
Class InterWorkerMessage<R extends Message.Response>

java.lang.Object
  extended by fabric.messages.Message<RemoteWorker,R>
      extended by fabric.worker.remote.messages.InterWorkerMessage<R>
Direct Known Subclasses:
GetPrincipalMessage, ReadMessage, RemoteCallMessage, StalenessCheckMessage, TakeOwnershipMessage

public abstract class InterWorkerMessage<R extends Message.Response>
extends Message<RemoteWorker,R>


Nested Class Summary
 
Nested classes/interfaces inherited from class fabric.messages.Message
Message.MessageType, Message.Response
 
Field Summary
 
Fields inherited from class fabric.messages.Message
messageType
 
Constructor Summary
InterWorkerMessage(Message.MessageType messageType)
           
 
Method Summary
static Object._Proxy readRef(java.lang.Class<?> type, java.io.DataInput in)
          Used for passing object references between workers.
static void writeRef(Object._Proxy ref, java.io.DataOutput out)
          Used for passing object references between workers.
 
Methods inherited from class fabric.messages.Message
dispatch, dispatch, receive, response, send, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterWorkerMessage

public InterWorkerMessage(Message.MessageType messageType)
Method Detail

writeRef

public static void writeRef(Object._Proxy ref,
                            java.io.DataOutput out)
                     throws java.io.IOException
Used for passing object references between workers.

Throws:
java.io.IOException

readRef

public static Object._Proxy readRef(java.lang.Class<?> type,
                                    java.io.DataInput in)
                             throws java.io.IOException
Used for passing object references between workers.

Parameters:
type - The type of the reference being read. This must be the interface corresponding to the Fabric type, and not the _Proxy or _Impl classes.
Throws:
java.io.IOException