Class RequestResponseTimeoutObserver
java.lang.Object
com.gigaspaces.lrmi.nio.watchdog.RequestTimeoutObserver
com.gigaspaces.lrmi.nio.watchdog.RequestResponseTimeoutObserver
On top of
RequestTimeoutObserver behaviour, The request response timeout observer also
sends a monitor request to the corresponding server and checks whether the corresponding channel
entry in currently in progress. If not the connection is considered dead and will be closed.- Since:
- 9.5
- Author:
- Dan Kilman
-
Field Summary
Fields inherited from class RequestTimeoutObserver
_INSPECT_TIMEOUT, _logger -
Constructor Summary
ConstructorsConstructorDescriptionRequestResponseTimeoutObserver(long requestTimeout, boolean protocolValidationEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected LogLevelprotected StringgetFailureToCloseInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel) protected StringgetInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel, Watchdog.WatchedObject watched) protected StringgetValidConnectionMessage(SocketAddress serverAddress) protected voidhandleOpenSocket(SocketChannel socketChannel, int watchedSocketLocalPort, long absoluteTimeout, ConnectionResource connectionResource) Methods inherited from class RequestTimeoutObserver
getLocalAddressString, getWatchedObjectInvocationMessage, timeoutOccured
-
Constructor Details
-
RequestResponseTimeoutObserver
public RequestResponseTimeoutObserver(long requestTimeout, boolean protocolValidationEnabled)
-
-
Method Details
-
handleOpenSocket
protected void handleOpenSocket(SocketChannel socketChannel, int watchedSocketLocalPort, long absoluteTimeout, ConnectionResource connectionResource) throws IOException - Overrides:
handleOpenSocketin classRequestTimeoutObserver- Parameters:
connectionResource- the monitored cpeer- Throws:
IOException
-
getValidConnectionMessage
- Overrides:
getValidConnectionMessagein classRequestTimeoutObserver
-
getInvalidConnectionMessage
protected String getInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel, Watchdog.WatchedObject watched) - Overrides:
getInvalidConnectionMessagein classRequestTimeoutObserver
-
getFailureToCloseInvalidConnectionMessage
protected String getFailureToCloseInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel) - Overrides:
getFailureToCloseInvalidConnectionMessagein classRequestTimeoutObserver
-
getCloseConnectionLoggingLevel
- Overrides:
getCloseConnectionLoggingLevelin classRequestTimeoutObserver
-