class InputDataChannelImplEmu
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ByteBufferSupply[] |
bbSupply
Ring buffers holding ByteBuffers when using EvioCompactEvent reader for incoming events.
|
(package private) org.jlab.coda.emu.test.InputDataChannelImplEmu.StatisticsThread |
statThread |
Constructor and Description |
---|
InputDataChannelImplEmu()
Constructor to create a new DataChannelImplEt instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
attachToInput(java.nio.channels.SocketChannel channel,
int sourceId,
int maxBufferSize,
int socketCount,
int socketPosition)
Once a client connects to the Emu domain server in the Emu transport object,
that socket is passed to this method and a thread is spawned to handle all
communications over it.
|
protected ByteBufferSupply[] bbSupply
org.jlab.coda.emu.test.InputDataChannelImplEmu.StatisticsThread statThread
InputDataChannelImplEmu()
DataTransportImplEt.createChannel(String, java.util.Map, boolean, org.jlab.coda.emu.Emu, org.jlab.coda.emu.EmuModule, int)
which is only used during PRESTART in Emu
.void attachToInput(java.nio.channels.SocketChannel channel, int sourceId, int maxBufferSize, int socketCount, int socketPosition) throws java.io.IOException
channel
- data input socket/channelsourceId
- CODA id # of data sourcemaxBufferSize
- biggest chunk of data expected to be sent by data producersocketCount
- total # of sockets data producer will be makingsocketPosition
- position with respect to other data producers: 1, 2 ...java.io.IOException
- if exception dealing with socket or input stream