public interface DataChannel extends CODAStateMachine, StatedObject
Modifier and Type | Method and Description |
---|---|
DataTransport |
getDataTransport()
Get the DataTransport object used to create this data channel.
|
int |
getID()
Get the CODA ID number of the CODA component connected to this
data channel.
|
int |
getInputLevel()
Get the relative fill level (0-100) of the ring of this input channel.
|
EmuModule |
getModule()
Get the module which created this channel.
|
int |
getOutputLevel()
Get the relative fill level (0-100) of all the rings of this output channel.
|
int |
getOutputRingCount()
Get the total number of data-holding output ring buffers.
|
int |
getPrescale()
Get the prescale value associated with this channel.
|
int |
getRecordId()
Get the record ID number of the latest event through this channel.
|
com.lmax.disruptor.RingBuffer<RingItem> |
getRingBufferIn()
Get the one and only input ring buffer of this data channel.
|
com.lmax.disruptor.RingBuffer<RingItem>[] |
getRingBuffersOut()
Get the array of output ring buffers.
|
TransportType |
getTransportType()
Get the type of transport this channel implements.
|
boolean |
isInput()
Get whether this channel is an input channel (true),
or it is an output channel (false).
|
java.lang.String |
name()
Get the name of this data channel.
|
void |
regulateOutputBufferRate(int eventsPerBuffer,
double buffersPerSec)
Turn on regulation of the flow of data through an output channel.
|
void |
setDestinationBaList(java.lang.String[] baList)
Set the output channel's list of destination broadcast addresses of emu TCP server
when using emu sockets to communicate - each corresponding to the same element of the IpList.
|
void |
setDestinationIpList(java.lang.String[] ipList)
Set the output channel's list of possible destination IP addresses of emu TCP server
when using emu sockets to communicate.
|
void |
setRecordId(int recordId)
Set the record ID number of the latest event through this channel.
|
download, end, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallback, reset
getError, state
TransportType getTransportType()
int getID()
EmuModule getModule()
int getRecordId()
void setRecordId(int recordId)
recordId
- record ID number of the latest event through channel.java.lang.String name()
boolean isInput()
true
if input channel, else false
DataTransport getDataTransport()
com.lmax.disruptor.RingBuffer<RingItem> getRingBufferIn()
int getOutputRingCount()
com.lmax.disruptor.RingBuffer<RingItem>[] getRingBuffersOut()
int getInputLevel()
int getOutputLevel()
void setDestinationIpList(java.lang.String[] ipList)
ipList
- list of possible destination IP addresses if connecting to server.void setDestinationBaList(java.lang.String[] baList)
baList
- list of destination broadcast addresses each corresponding
to the same element of the IpList.int getPrescale()
void regulateOutputBufferRate(int eventsPerBuffer, double buffersPerSec)
eventsPerBuffer
- events per output 4 MB buffer.buffersPerSec
- desired number of buffers to be sent per second.