"Reactor is shutdown, submit aborted."); if (_classOfService.guarantee().type() != ClassesOfService.GuaranteeTypes.PERSISTENT_QUEUE || rdmMsg.domainType() == DomainTypes.LOGIN || rdmMsg.domainType() == DomainTypes.SOURCE ||
private boolean isClassOfServiceValid(ClassOfService classOfService) { return (classOfService.common().maxMsgSize() == _expectedClassOfService.common().maxMsgSize() && classOfService.common().protocolType() == _expectedClassOfService.common().protocolType() && classOfService.common().protocolMajorVersion() == _expectedClassOfService.common().protocolMajorVersion() && classOfService.common().protocolMinorVersion() == _expectedClassOfService.common().protocolMinorVersion() && (classOfService.authentication().type() == _expectedClassOfService.authentication().type() || classOfService.authentication().type() == ClassesOfService.AuthenticationTypes.NOT_REQUIRED) && classOfService.flowControl().type() == _expectedClassOfService.flowControl().type() && classOfService.dataIntegrity().type() == _expectedClassOfService.dataIntegrity().type() && classOfService.guarantee().type() == _expectedClassOfService.guarantee().type()); }
tsOpenOptions.classOfService().flowControl().type(cos.flowControl().type()); tsOpenOptions.classOfService().guarantee().type(cos.guarantee().type()); tsOpenOptions.classOfService().guarantee().persistLocally(cos.guarantee().persistedLocally()); tsOpenOptions.classOfService().guarantee().persistenceFilePath(cos.guarantee().persistenceFilePath());
tsOpenOpts.classOfService().dataIntegrity().type(DataIntegrityTypes.RELIABLE); tsOpenOpts.classOfService().flowControl().type(FlowControlTypes.BIDIRECTIONAL); tsOpenOpts.classOfService().guarantee().type(GuaranteeTypes.PERSISTENT_QUEUE); tsOpenOpts.classOfService().guarantee().persistLocally(persistLocally); tsOpenOpts.streamId(5); tsOpenOpts.serviceId(Provider.defaultService().serviceId());
_classOfService.guarantee().type() == ClassesOfService.GuaranteeTypes.PERSISTENT_QUEUE && _decSubMsgForSubmit.domainType() != DomainTypes.LOGIN && _decSubMsgForSubmit.domainType() != DomainTypes.SOURCE &&
/** This provider always rejects tunnel streams. */ class TunnelStreamRejectProvider extends Provider { TunnelStreamRejectOptions _rejectOptions = ReactorFactory.createTunnelStreamRejectOptions(); public TunnelStreamRejectProvider(TestReactor reactor) { super(reactor); } @Override public int listenerCallback(TunnelStreamRequestEvent event) { super.listenerCallback(event); /* Accept the tunnel stream request. */ _rejectOptions.clear(); _rejectOptions.state().streamState(StreamStates.CLOSED); _rejectOptions.state().dataState(DataStates.SUSPECT); _rejectOptions.state().code(StateCodes.NOT_ENTITLED); assertEquals(ReactorReturnCodes.SUCCESS, reactorChannel().rejectTunnelStream(event, _rejectOptions, _errorInfo)); return ReactorReturnCodes.SUCCESS; } }
assertEquals(TunnelStream.DEFAULT_RECV_WINDOW, consTunnelStream.classOfService().flowControl().recvWindowSize()); assertEquals(DataIntegrityTypes.RELIABLE, consTunnelStream.classOfService().dataIntegrity().type()); assertEquals(GuaranteeTypes.NONE, consTunnelStream.classOfService().guarantee().type()); assertEquals(TunnelStream.DEFAULT_RECV_WINDOW, provTunnelStream.classOfService().flowControl().recvWindowSize()); assertEquals(DataIntegrityTypes.RELIABLE, provTunnelStream.classOfService().dataIntegrity().type()); assertEquals(GuaranteeTypes.NONE, provTunnelStream.classOfService().guarantee().type());
assertEquals(TunnelStream.DEFAULT_RECV_WINDOW, consTunnelStream.classOfService().flowControl().recvWindowSize()); assertEquals(DataIntegrityTypes.RELIABLE, consTunnelStream.classOfService().dataIntegrity().type()); assertEquals(GuaranteeTypes.NONE, consTunnelStream.classOfService().guarantee().type()); assertEquals(TunnelStream.DEFAULT_RECV_WINDOW, provTunnelStream.classOfService().flowControl().recvWindowSize()); assertEquals(DataIntegrityTypes.RELIABLE, provTunnelStream.classOfService().dataIntegrity().type()); assertEquals(GuaranteeTypes.NONE, provTunnelStream.classOfService().guarantee().type());