private void uninitialize() { // shutdown reactor reactor.shutdown(errorInfo); }
private void closeReactor() { _reactor.shutdown(_errorInfo); }
int sendAndHandleDictionaryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DictionaryMsg dictionaryMsg, WatchlistStreamInfo streamInfo, ReactorErrorInfo errorInfo) { int retval = sendDictionaryMsgCallback(reactorChannel, transportBuffer, msg, dictionaryMsg, streamInfo); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDictionaryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDictionaryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
int sendAndHandleDirectoryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DirectoryMsg directoryMsg, WatchlistStreamInfo streamInfo, ReactorErrorInfo errorInfo) { int retval = sendDirectoryMsgCallback(reactorChannel, transportBuffer, msg, directoryMsg, streamInfo); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDirectoryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDirectoryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
private int sendAndHandleDirectoryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DirectoryMsg directoryMsg, ReactorErrorInfo errorInfo) { int retval = sendDirectoryMsgCallback(reactorChannel, transportBuffer, msg, directoryMsg, null); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDirectoryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDirectoryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
private int sendAndHandleDictionaryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DictionaryMsg dictionaryMsg, ReactorErrorInfo errorInfo) { int retval = sendDictionaryMsgCallback(reactorChannel, transportBuffer, msg, dictionaryMsg, null); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDictionaryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDictionaryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
int sendAndHandleLoginMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, LoginMsg loginMsg, WatchlistStreamInfo streamInfo, ReactorErrorInfo errorInfo) { int retval = sendLoginMsgCallback(reactorChannel, transportBuffer, msg, loginMsg, streamInfo); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmLoginMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmLoginMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
int sendAndHandleQueueMsgCallback(String location, ReactorChannel reactorChannel, TunnelStream tunnelStream, TransportBuffer transportBuffer, Msg msg, QueueMsg queueMsg, ReactorErrorInfo errorInfo) { int retval = sendQueueMsgCallback(reactorChannel, tunnelStream, transportBuffer, msg, queueMsg); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from queueMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from tunnelStreamQueueMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
private int sendAndHandleLoginMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, LoginMsg loginMsg, ReactorErrorInfo errorInfo) { int retval = sendLoginMsgCallback(reactorChannel, transportBuffer, msg, loginMsg, null); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmLoginMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmLoginMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
int sendAndHandleTunnelStreamMsgCallback(String location, ReactorChannel reactorChannel, TunnelStream tunnelStream, TransportBuffer transportBuffer, Msg msg, int containerType, ReactorErrorInfo errorInfo) { int retval = sendTunnelStreamMsgCallback(reactorChannel, tunnelStream, transportBuffer, msg, containerType); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from tunnelStreamDefaultMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval == ReactorCallbackReturnCodes.RAISE) { // RAISE is not a valid return code for the // tunnelStreamDefaultMsgCallback. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.RAISE is not a valid return code from tunnelStreamDefaultMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
private void uninitialize() { System.out.println("NIProvider unitializing and exiting..."); for (ChannelInfo chnlInfo : chnlInfoList) { // close items streams closeItemStreams(chnlInfo); // close ReactorChannel if (chnlInfo.reactorChannel != null) { chnlInfo.reactorChannel.close(errorInfo); } uninitializeCache(chnlInfo.cacheInfo); } // shutdown reactor reactor.shutdown(errorInfo); }
/** Cleans up the TestReactor's resources (e.g. its reactor) */ public void close() { if (_reactor != null) { assertEquals(ReactorReturnCodes.SUCCESS, _reactor.shutdown(_errorInfo)); _reactor = null; } }
if (ReactorReturnCodes.SUCCESS != _rsslReactor.shutdown(_rsslErrorInfo))
reactor.shutdown(errorInfo);
reactor.shutdown(errorInfo);
location, "ReactorCallbackReturnCodes.FAILURE was returned from reactorChannelEventCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; shutdown(errorInfo); return ReactorReturnCodes.FAILURE; shutdown(errorInfo); return ReactorReturnCodes.FAILURE;
assertEquals(ReactorReturnCodes.SUCCESS, reactor.shutdown(errorInfo)); assertNotNull(errorInfo); assertEquals(ReactorReturnCodes.SUCCESS, errorInfo.code());