net.sf.swarmcache
Class JavaGroupsCommunicator

java.lang.Object
  |
  +--net.sf.swarmcache.Communicator
        |
        +--net.sf.swarmcache.JavaGroupsCommunicator
All Implemented Interfaces:
org.jgroups.blocks.NotificationBus.Consumer

public class JavaGroupsCommunicator
extends Communicator
implements org.jgroups.blocks.NotificationBus.Consumer

Created by IntelliJ IDEA. User: jwat Date: Jul 25, 2003 Time: 11:47:57 AM To change this template use Options | File Templates.


Field Summary
static java.lang.String BUS_NAME
           
static java.lang.String CHANNEL_PROPERTIES
           
 
Constructor Summary
JavaGroupsCommunicator(java.lang.String properties)
           
 
Method Summary
protected  void finalize()
           
 java.io.Serializable getCache()
           
 void handleNotification(java.io.Serializable object)
           
 void memberJoined(org.jgroups.Address who)
           
 void memberLeft(org.jgroups.Address who)
           
protected  void send(CacheNotification notification)
          Implement this to send a cache notification over the communications layer.
 void shutDown()
          Called by the cache manager to shut down the communicator.
 
Methods inherited from class net.sf.swarmcache.Communicator
getGroupName, getManager, receive, setGroupName, setManager
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUS_NAME

public static final java.lang.String BUS_NAME
See Also:
Constant Field Values

CHANNEL_PROPERTIES

public static final java.lang.String CHANNEL_PROPERTIES
See Also:
Constant Field Values
Constructor Detail

JavaGroupsCommunicator

public JavaGroupsCommunicator(java.lang.String properties)
Method Detail

shutDown

public void shutDown()
Description copied from class: Communicator
Called by the cache manager to shut down the communicator.

Specified by:
shutDown in class Communicator

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
java.lang.Throwable

send

protected final void send(CacheNotification notification)
Description copied from class: Communicator
Implement this to send a cache notification over the communications layer.

Specified by:
send in class Communicator
Parameters:
notification - the cache notification to send.

getCache

public java.io.Serializable getCache()
Specified by:
getCache in interface org.jgroups.blocks.NotificationBus.Consumer

handleNotification

public void handleNotification(java.io.Serializable object)
Specified by:
handleNotification in interface org.jgroups.blocks.NotificationBus.Consumer

memberJoined

public void memberJoined(org.jgroups.Address who)
Specified by:
memberJoined in interface org.jgroups.blocks.NotificationBus.Consumer

memberLeft

public void memberLeft(org.jgroups.Address who)
Specified by:
memberLeft in interface org.jgroups.blocks.NotificationBus.Consumer