_fieldDictionaryStreamId = _dictionaryRefresh.streamId(); break; case Dictionary.Types.ENUM_TABLES: _enumDictionaryStreamId = _dictionaryRefresh.streamId(); break; default: System.out.println(_dictionaryRefresh.toString()); if (_dictionaryRefresh.streamId() == _fieldDictionaryStreamId) else if (_dictionaryRefresh.streamId() == _enumDictionaryStreamId)
chnlInfo.fieldDictionaryStreamId = dictionaryRefresh.streamId(); break; case Dictionary.Types.ENUM_TABLES: enumDictionaryLoaded = false; chnlInfo.enumDictionaryStreamId = dictionaryRefresh.streamId(); break; default: System.out.println("Unknown dictionary type " + dictionaryRefresh.dictionaryType() + " from message on stream " + dictionaryRefresh.streamId()); chnlInfo.reactorChannel.close(errorInfo); return ReactorCallbackReturnCodes.SUCCESS; if (dictionaryRefresh.streamId() == chnlInfo.fieldDictionaryStreamId) else if (dictionaryRefresh.streamId() == chnlInfo.enumDictionaryStreamId) System.out.println("Received unexpected dictionary message on stream " + dictionaryRefresh.streamId());
chnlInfo.fieldDictionaryStreamId = dictionaryRefresh.streamId(); break; case Dictionary.Types.ENUM_TABLES: chnlInfo.enumDictionaryStreamId = dictionaryRefresh.streamId(); break; default: System.out.println("Unknown dictionary type " + dictionaryRefresh.dictionaryType() + " from message on stream " + dictionaryRefresh.streamId()); chnlInfo.reactorChannel.close(errorInfo); return ReactorCallbackReturnCodes.SUCCESS; if (dictionaryRefresh.streamId() == chnlInfo.fieldDictionaryStreamId) else if (dictionaryRefresh.streamId() == chnlInfo.enumDictionaryStreamId) System.out.println("Received unexpected dictionary message on stream " + dictionaryRefresh.streamId());
_dictionaryRefresh.streamId(dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); _dictionaryRefresh.dictionary(dataDictionary);
_dictionaryRefresh.streamId(dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.ENUM_TABLES); _dictionaryRefresh.dictionary(dataDictionary);
fieldDictionaryStreamId = dictionaryRefresh.streamId(); break; case Dictionary.Types.ENUM_TABLES: enumDictionaryStreamId = dictionaryRefresh.streamId(); break; default: System.out.println(dictionaryRefresh.toString()); if (dictionaryRefresh.streamId() == fieldDictionaryStreamId) else if (dictionaryRefresh.streamId() == enumDictionaryStreamId)
@Test public void dictionaryRefreshToStringTests() { DictionaryRefresh refreshRDMMsg1 = (DictionaryRefresh)DictionaryMsgFactory.createMsg(); refreshRDMMsg1.rdmMsgType(DictionaryMsgType.REFRESH); /* Parameters to test with */ int streamId = -5; int serviceId = 273; int verbosity = Dictionary.VerbosityValues.VERBOSE | Dictionary.VerbosityValues.NORMAL | Dictionary.VerbosityValues.MINIMAL | Dictionary.VerbosityValues.INFO; Buffer dictionaryName = CodecFactory.createBuffer(); dictionaryName.data("RWFFld"); System.out.println("DictionaryRefresh toString tests..."); refreshRDMMsg1.streamId(streamId); refreshRDMMsg1.serviceId(serviceId); refreshRDMMsg1.verbosity(verbosity); refreshRDMMsg1.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); refreshRDMMsg1.flags(DictionaryRefreshFlags.CLEAR_CACHE | DictionaryRefreshFlags.HAS_INFO | DictionaryRefreshFlags.HAS_SEQ_NUM | DictionaryRefreshFlags.IS_COMPLETE | DictionaryRefreshFlags.SOLICITED); refreshRDMMsg1.toString(); System.out.println("Done."); }
_dictionaryRefresh.streamId(dictionaryReqInfo.dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); _dictionaryRefresh.dictionary(_dictionary);
_dictionaryRefresh.streamId(_dictionaryRequest.streamId()); _dictionaryRefresh.applySolicited(); _dictionaryRefresh.dictionaryType(Dictionary.Types.ENUM_TABLES);
_dictionaryRefresh.streamId(_dictionaryRequest.streamId()); _dictionaryRefresh.applySolicited(); _dictionaryRefresh.dictionaryType(Dictionary.Types.ENUM_TABLES);
_dictionaryRefresh.streamId(dictionaryReqInfo.dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.ENUM_TABLES); _dictionaryRefresh.dictionary(_dictionary);
_dictionaryRefresh.streamId(dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.ENUM_TABLES); _dictionaryRefresh.dictionary(_dictionary);
_dictionaryRefresh.streamId(dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); _dictionaryRefresh.dictionary(_dictionary);
_dictionaryRefresh.streamId(_dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); _dictionaryRefresh.dictionary(_dictionary);
_dictionaryRefresh.streamId(_dictionaryRequest.streamId()); _dictionaryRefresh.dictionaryType(Dictionary.Types.FIELD_DEFINITIONS); _dictionaryRefresh.dictionary(_dictionary);