com.khubla.pragmatach.plugin.cluster.multicast
Class JGroupsSenderReceiver

java.lang.Object
  extended by org.jgroups.ReceiverAdapter
      extended by com.khubla.pragmatach.plugin.cluster.multicast.JGroupsSenderReceiver
All Implemented Interfaces:
org.jgroups.MembershipListener, org.jgroups.MessageListener, org.jgroups.Receiver

public class JGroupsSenderReceiver
extends org.jgroups.ReceiverAdapter

The broadcast sender and reciever

Author:
tome

Constructor Summary
JGroupsSenderReceiver()
           
 
Method Summary
 void receive(org.jgroups.Message message)
          message
 void send(MulticastMessage multicastMessage)
          send message
 void shutdown()
           
 void startup()
           
 void viewAccepted(org.jgroups.View view)
          accepted
 
Methods inherited from class org.jgroups.ReceiverAdapter
block, getState, setState, suspect, unblock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGroupsSenderReceiver

public JGroupsSenderReceiver()
Method Detail

receive

public void receive(org.jgroups.Message message)
message

Specified by:
receive in interface org.jgroups.MessageListener
Overrides:
receive in class org.jgroups.ReceiverAdapter

send

public void send(MulticastMessage multicastMessage)
          throws PragmatachException
send message

Throws:
PragmatachException

shutdown

public void shutdown()

startup

public void startup()
             throws PragmatachException
Throws:
PragmatachException

viewAccepted

public void viewAccepted(org.jgroups.View view)
accepted

Specified by:
viewAccepted in interface org.jgroups.MembershipListener
Overrides:
viewAccepted in class org.jgroups.ReceiverAdapter


Copyright © 2014 khubla.com. All rights reserved.