Package | Description |
---|---|
org.jlab.coda.emu.modules | |
org.jlab.coda.emu.support.data |
Modifier and Type | Method and Description |
---|---|
(package private) void |
RocFixedRateSimulation.eventToOutputRing(int ringNum,
java.nio.ByteBuffer buf,
ByteBufferItem item,
ByteBufferSupply bbSupply)
This method is called by a running EventGeneratingThread.
|
(package private) void |
RocSimulation.eventToOutputRing(int ringNum,
java.nio.ByteBuffer buf,
ByteBufferItem item,
ByteBufferSupply bbSupply)
This method is called by a running EventGeneratingThread.
|
Modifier and Type | Field and Description |
---|---|
protected ByteBufferItem |
RingItemAdapter.byteBufferItem
This refers to the wrapper object of buffer in reusable ByteBufferSupply (if any).
|
Modifier and Type | Method and Description |
---|---|
ByteBufferItem |
ByteBufferSupply.consumerGet()
Get the next available item in ring buffer for getting data already written into.
|
ByteBufferItem |
ByteBufferSupply.get()
Get the next available item in ring buffer for writing/reading data.
|
ByteBufferItem |
ByteBufferSupply.getAsIs()
Get the next available item in ring buffer for writing/reading data.
|
ByteBufferItem |
RingItem.getByteBufferItem()
Get the ByteBufferItem object used to wrap the referenced ByteBuffer (if any).
|
ByteBufferItem |
RingItemAdapter.getByteBufferItem()
Get the ByteBufferItem object used to wrap the referenced ByteBuffer (if any).
|
Modifier and Type | Method and Description |
---|---|
void |
ByteBufferSupply.publish(ByteBufferItem byteBufferItem)
Used to tell that the consumer that the ring buffer item is ready for consumption.
|
void |
ByteBufferSupply.release(ByteBufferItem item)
Consumer releases claim on the given ring buffer item so it becomes available for reuse.
|
void |
RingItem.setAll(org.jlab.coda.jevio.EvioEvent ev,
java.nio.ByteBuffer buf,
org.jlab.coda.jevio.EvioNode nd,
EventType eType,
ControlType cType,
boolean user,
boolean first,
int chanId,
int rId,
int sId,
int evCount,
java.lang.String sName,
ByteBufferItem bbItem,
ByteBufferSupply bbSupply)
For a ringItem producer, when a new item is obtained, it must have all
of its values set or reset.
|
void |
RingItemAdapter.setAll(org.jlab.coda.jevio.EvioEvent ev,
java.nio.ByteBuffer buf,
org.jlab.coda.jevio.EvioNode nd,
EventType eType,
ControlType cType,
boolean user,
boolean first,
int chanId,
int rId,
int sId,
int evCount,
java.lang.String sName,
ByteBufferItem bbItem,
ByteBufferSupply bbSupply)
For a ringItem producer, when a new item is obtained, it must have all
of its values set or reset.
|
void |
RingItem.setReusableByteBuffer(ByteBufferSupply byteBufferSupply,
ByteBufferItem byteBufferItem)
Set the objects needed to release (by calling
RingItem.releaseByteBuffer() )
the referenced ByteBuffer when no longer needed. |
void |
RingItemAdapter.setReusableByteBuffer(ByteBufferSupply byteBufferSupply,
ByteBufferItem byteBufferItem)
Set the objects needed to release (by calling
RingItem.releaseByteBuffer() )
the referenced ByteBuffer when no longer needed. |