All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.nodeos.CommSpaceElement
java.lang.Object
|
+----edu.utah.janos.nodeos.CommSpaceElement
public final class CommSpaceElement
extends java.lang.Object
{
// Fields 11
private static final int ADDRESS_TYPE;
private static final int BUFFER_HANDLE_TYPE;
private static final int BYTE_ARRAY_TYPE;
private static final int CHAR_ARRAY_TYPE;
private static final int COMM_MONITOR_TYPE;
private static final int COMM_QUEUE_TYPE;
private static final int COMM_SPACE_HANDLE_TYPE;
private static final int INT_TYPE;
private static final int IN_CHANNEL_TYPE;
private final int type;
private final Object val;
// Constructors 11
public CommSpaceElement(byte[]);
public CommSpaceElement(char[]);
public CommSpaceElement(Address);
public CommSpaceElement(BufferHandle);
public CommSpaceElement(CommMonitor);
public CommSpaceElement(CommQueue);
CommSpaceElement(CommSpaceElement);
public CommSpaceElement(CommSpaceHandle);
public CommSpaceElement(InChannelHandle);
public CommSpaceElement(int);
private CommSpaceElement(Object, int);
// Methods 12
public Address getAddress();
public BufferHandle getBufferHandle();
public byte[] getByteArray();
public void getByteArray(byte[], int);
public char[] getCharArray();
public void getCharArray(char[], int);
public CommMonitor getCommMonitor();
public CommQueue getCommQueue();
public CommSpaceHandle getCommSpaceHandle();
public InChannelHandle getInChannelHandle();
public int getInt();
public int type();
}
Element in the CommSpace for communication.
This is what gets written to the CommSpace
XXX does this need to exist or can I just stick
Objects in the CommSpace?
XXX because the val field is final, its impossible to
re-use a CommSpaceElement (i.e., for a different object...)
Could work around this by making the val field read-only
while the object was lodged in the CommSpace...
XXX these are shared between processes.... i.e., they leak (~2 words).
"Big Deal." -- Chris H.
- Author:
-
Janos Ministry of Development
- Returned By:
- CommQueue.copy(), CommQueue.waitToTake(), CommSpaceHandle.copy(), CommSpaceHandle.read(), CommSpaceHandle.swap(), CommSpaceHandle.take(), CommSpaceHandle.waitToTake(), CommSpace.read(), CommSpace.swap(), CommSpace.take(), CommSpace.waitToTake()
private final Object val
private final int type
private static final int INT_TYPE
private static final int CHAR_ARRAY_TYPE
private static final int BYTE_ARRAY_TYPE
private static final int IN_CHANNEL_TYPE
private static final int ADDRESS_TYPE
private static final int BUFFER_HANDLE_TYPE
private static final int COMM_SPACE_HANDLE_TYPE
private static final int COMM_QUEUE_TYPE
private static final int COMM_MONITOR_TYPE
private CommSpaceElement(Object val,
int type)
CommSpaceElement(CommSpaceElement from)
public CommSpaceElement(int val)
public CommSpaceElement(char[] val)
public CommSpaceElement(byte[] val)
public CommSpaceElement(InChannelHandle val)
public CommSpaceElement(Address val)
public CommSpaceElement(BufferHandle val)
public CommSpaceElement(CommSpaceHandle val)
public CommSpaceElement(CommQueue val)
public CommSpaceElement(CommMonitor val)
public int type()
public int getInt()
public char[] getCharArray()
public void getCharArray(char[] outbuf,
int index)
public byte[] getByteArray()
public void getByteArray(byte[] outbuf,
int index)
public InChannelHandle getInChannelHandle()
public Address getAddress()
public BufferHandle getBufferHandle()
public CommSpaceHandle getCommSpaceHandle()
public CommQueue getCommQueue()
public CommMonitor getCommMonitor()
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7