MulticastKeepaliveHeartbeatSenders out there.
Our own multicast heartbeats are ignored.
| Modifier and Type | Class and Description |
|---|---|
| private class | MulticastKeepaliveHeartbeatReceiver.MulticastReceiverThread
A multicast receiver which continously receives heartbeats. |
| Modifier and Type | Field and Description |
|---|---|
| private final InetAddress | |
| private final Integer | |
| private InetAddress | |
| private static final Logger | |
| private final MulticastRMICacheManagerPeerProvider | |
| private ExecutorService | |
| private MulticastKeepaliveHeartbeatReceiver. | |
| private Set | |
| private MulticastSocket | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | MulticastKeepaliveHeartbeatReceiver(MulticastRMICacheManagerPeerProvider peerProvider, InetAddress multicastAddress, Integer multicastPort, InetAddress hostAddress)
Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| pack-priv final void |
| groupMulticastAddress | back to summary |
|---|---|
| private final InetAddress groupMulticastAddress | |
| groupMulticastPort | back to summary |
|---|---|
| private final Integer groupMulticastPort | |
| hostAddress | back to summary |
|---|---|
| private InetAddress hostAddress | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| peerProvider | back to summary |
|---|---|
| private final MulticastRMICacheManagerPeerProvider peerProvider | |
| processingThreadPool | back to summary |
|---|---|
| private ExecutorService processingThreadPool | |
| receiverThread | back to summary |
|---|---|
| private MulticastKeepaliveHeartbeatReceiver. | |
| rmiUrlsProcessingQueue | back to summary |
|---|---|
| private Set<E> rmiUrlsProcessingQueue | |
| socket | back to summary |
|---|---|
| private MulticastSocket socket | |
| stopped | back to summary |
|---|---|
| private volatile boolean stopped | |
| MulticastKeepaliveHeartbeatReceiver | back to summary |
|---|---|
| public MulticastKeepaliveHeartbeatReceiver(MulticastRMICacheManagerPeerProvider peerProvider, InetAddress multicastAddress, Integer multicastPort, InetAddress hostAddress) Constructor. | |
| dispose | back to summary |
|---|---|
| public final void dispose() Shutdown the heartbeat. | |
| init | back to summary |
|---|---|
| pack-priv final void init() throws IOException Start. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| private void | |
| private void | processRmiUrls(final String rmiUrls)
This method forks a new executor to process the received heartbeat in a thread pool. |
| private void | |
| public final void | run()
Overrides java. Implements java. |
| private boolean |
| MulticastReceiverThread | back to summary |
|---|---|
| public MulticastReceiverThread() Constructor | |
| interrupt | back to summary |
|---|---|
| public final void interrupt() Overrides java. Doc from java. Interrupts this thread. Unless the current thread is interrupting itself, which is
always permitted, the If this thread is blocked in an invocation of the If this thread is blocked in an I/O operation upon an If this thread is blocked in a If none of the previous conditions hold then this thread's interrupt status will be set. Interrupting a thread that is not alive need not have any effect.
| |
| processPayload | back to summary |
|---|---|
| private void processPayload(byte[] compressedPayload) | |
| processRmiUrls | back to summary |
|---|---|
| private void processRmiUrls(final String rmiUrls) This method forks a new executor to process the received heartbeat in a thread pool. That way each remote cache manager cannot interfere with others. In the worst case, we have as many concurrent threads as remote cache managers. | |
| registerNotification | back to summary |
|---|---|
| private void registerNotification(String rmiUrl) | |
| run | back to summary |
|---|---|
| public final void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| self | back to summary |
|---|---|
private boolean self(String rmiUrls)
| |