Class AbstractScheduledPoolConnectionMonitor<T,L>
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.router.AbstractScheduledPoolConnectionMonitor<T,L>
- All Implemented Interfaces:
IConnectionMonitor<T,L>
- Direct Known Subclasses:
DirectConnectionScheduledPoolConnectionMonitor,LusScheduledPoolConnectionMonitor
public abstract class AbstractScheduledPoolConnectionMonitor<T,L>
extends Object
implements IConnectionMonitor<T,L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerfinal boolean -
Constructor Summary
ConstructorsConstructorDescriptionAbstractScheduledPoolConnectionMonitor(String myLookupName, int corePoolSize, long monitorConnectedDelay, long monitorDisconnectedDelay, TimeUnit timeUnit) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract Runnableprotected Stringintvoidmonitor(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection) Adds a new connection to monitorvoidstopMonitoring(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection) Stops monitoring the specified connectionvoidupdateDisconnected(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection, Exception reason) Update the monitor externally that the provided connection is disconnected Due to some call dispatch on that proxy which throw a remote exception
-
Field Details
-
_specificLogger
protected final org.slf4j.Logger _specificLogger -
mayInterruptIfRunning
public final boolean mayInterruptIfRunning
-
-
Constructor Details
-
AbstractScheduledPoolConnectionMonitor
-
-
Method Details
-
getLogPrefix
-
monitor
Description copied from interface:IConnectionMonitorAdds a new connection to monitor- Specified by:
monitorin interfaceIConnectionMonitor<T,L> - Parameters:
connection- connection to monitor
-
createMonitorDisconnectedTask
protected abstract Runnable createMonitorDisconnectedTask(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection) -
stopMonitoring
Description copied from interface:IConnectionMonitorStops monitoring the specified connection- Specified by:
stopMonitoringin interfaceIConnectionMonitor<T,L> - Parameters:
connection- that should be not be monitored anymore
-
updateDisconnected
public void updateDisconnected(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection, Exception reason) Description copied from interface:IConnectionMonitorUpdate the monitor externally that the provided connection is disconnected Due to some call dispatch on that proxy which throw a remote exception- Specified by:
updateDisconnectedin interfaceIConnectionMonitor<T,L> - Parameters:
connection- connection that was disconnected
-
getMonitoredCount
public int getMonitoredCount() -
close
public void close()- Specified by:
closein interfaceIConnectionMonitor<T,L>
-
dumpState
- Specified by:
dumpStatein interfaceIConnectionMonitor<T,L>
-