public class DataChannelImplEt extends DataChannelAdapter
DataChannelAdapter.ThreadState
Modifier and Type | Field and Description |
---|---|
protected ByteBufferSupply |
bbSupply
Ring buffer holding ByteBuffers when using EvioCompactEvent reader for incoming events.
|
availableSequences, bAddrList, buffersPerSec, byteOrder, channelState, dataTransport, emu, endCallback, errorMsg, eventsPerBuffer, gotEndCmd, id, ignoreDataErrors, inputRingItemCount, ipAddrList, isFifo, logger, module, name, nanoSecPerBuf, nextEvent, nextSequences, outputChannelCount, outputChannelFill, outputIndex, outputModuleInternalRingCount, outputRingCount, outputRingItemCount, prescale, prestartCallback, recordId, regulateBufferRate, ringBufferIn, ringBuffersOut, ringIndex, sequenceBarriers, sequences, singleEventOut, totalRingCapacity
Constructor and Description |
---|
DataChannelImplEt(java.lang.String name,
DataTransportImplEt transport,
java.util.Map<java.lang.String,java.lang.String> attributeMap,
boolean input,
Emu emu,
EmuModule module,
int outputIndex)
Constructor to create a new DataChannelImplEt instance.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
This method implements the END transition of the CODA run control state machine.
|
int |
getInputLevel()
Get the relative fill level (0-100) of the ring of this input channel.
|
TransportType |
getTransportType()
Get the type of transport this channel implements.
|
void |
go()
This method implements the GO transition of the CODA run control state machine.
|
void |
pause()
This method implements the PAUSE transition of the CODA run control state machine.
|
void |
prestart()
This method implements the PRESTART transition of the CODA run control state machine.
|
void |
reset()
This method implements the RESET transition of the CODA run control state machine.
|
getDataTransport, getEndCallback, getError, getID, getModule, getNextOutputRingItem, getNextSequence, getOutputLevel, getOutputRingCount, getPrescale, getPrestartCallback, getRecordId, getRingBufferIn, getRingBuffersOut, gotoNextRingItem, isInput, name, registerEndCallback, registerPrestartCallback, regulateOutputBufferRate, releaseCurrentAndGoToNextOutputRingItem, releaseOutputRingItem, sequentialReleaseOutputRingItem, setDestinationBaList, setDestinationIpList, setNextEventAndRing, setRecordId, setupInputRingBuffers, setupOutputRingBuffers, state
download
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
download
protected ByteBufferSupply bbSupply
DataChannelImplEt(java.lang.String name, DataTransportImplEt transport, java.util.Map<java.lang.String,java.lang.String> attributeMap, boolean input, Emu emu, EmuModule module, int outputIndex) throws DataTransportException
DataTransportImplEt.createChannel(String, Map, boolean, Emu, EmuModule, int)
which is only used during PRESTART in Emu
.name
- the name of this channeltransport
- the DataTransport object that this channel belongs toattributeMap
- the hashmap of config file attributes for this channelinput
- true if this is an input data channel, otherwise falseemu
- emu this channel belongs tomodule
- module this channel belongs tooutputIndex
- order in which module's events will be sent to this
output channel (0 for first output channel, 1 for next, etc.).DataTransportException
- - unable to create buffers or socket.public TransportType getTransportType()
getTransportType
in interface DataChannel
getTransportType
in class DataChannelAdapter
public int getInputLevel()
getInputLevel
in interface DataChannel
getInputLevel
in class DataChannelAdapter
public void prestart() throws CmdExecException
prestart
in interface CODAStateMachine
prestart
in class DataChannelAdapter
CmdExecException
- if error during command execution.public void go()
go
in interface CODAStateMachine
go
in class CODAStateMachineAdapter
public void pause()
pause
in interface CODAStateMachine
pause
in class CODAStateMachineAdapter
public void end()
end
in interface CODAStateMachine
end
in class CODAStateMachineAdapter
public void reset()
reset
in interface CODAStateMachine
reset
in class CODAStateMachineAdapter