net.sf.swarmcache
Class JavaGroupsCommunicator

java.lang.Object
  extended by net.sf.swarmcache.Communicator
      extended by net.sf.swarmcache.JavaGroupsCommunicator
All Implemented Interfaces:
org.jgroups.blocks.NotificationBus.Consumer

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


Field Summary
static java.lang.String BUS_NAME
           
static java.lang.String CHANNEL_PROPERTIES
           
 
Method Summary
protected  void finalize()
           
 java.io.Serializable getCache()
           
static JavaGroupsCommunicator getInstance()
           
 void handleNotification(java.io.Serializable object)
           
 void memberJoined(org.jgroups.Address who)
           
 void memberLeft(org.jgroups.Address who)
           
 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
Method Detail

getInstance

public static JavaGroupsCommunicator getInstance()

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
Throws:
java.lang.Throwable

send

public 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


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.