org.terracotta.modules.ehcache.event
Class TerracottaTopologyImpl

java.lang.Object
  extended by org.terracotta.modules.ehcache.event.TerracottaTopologyImpl
All Implemented Interfaces:
com.tc.cluster.DsoClusterListener, net.sf.ehcache.cluster.CacheCluster

public class TerracottaTopologyImpl
extends Object
implements net.sf.ehcache.cluster.CacheCluster, com.tc.cluster.DsoClusterListener

A bridge from a DsoClusterTopology in dso-space to a TerracottaTopology in Ehcache-space.


Constructor Summary
TerracottaTopologyImpl(com.tc.cluster.DsoCluster dsoCluster)
           
 
Method Summary
 boolean addTopologyListener(net.sf.ehcache.cluster.ClusterTopologyListener listener)
           
 Collection<net.sf.ehcache.cluster.ClusterNode> getNodes()
           
 net.sf.ehcache.cluster.ClusterScheme getScheme()
           
 boolean isClusterOnline()
           
 void nodeJoined(com.tc.cluster.DsoClusterEvent event)
           
 void nodeLeft(com.tc.cluster.DsoClusterEvent event)
           
 void operationsDisabled(com.tc.cluster.DsoClusterEvent event)
           
 void operationsEnabled(com.tc.cluster.DsoClusterEvent event)
           
 boolean removeTopologyListener(net.sf.ehcache.cluster.ClusterTopologyListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerracottaTopologyImpl

public TerracottaTopologyImpl(com.tc.cluster.DsoCluster dsoCluster)
Method Detail

getScheme

public net.sf.ehcache.cluster.ClusterScheme getScheme()
Specified by:
getScheme in interface net.sf.ehcache.cluster.CacheCluster

getNodes

public Collection<net.sf.ehcache.cluster.ClusterNode> getNodes()
Specified by:
getNodes in interface net.sf.ehcache.cluster.CacheCluster

addTopologyListener

public boolean addTopologyListener(net.sf.ehcache.cluster.ClusterTopologyListener listener)
Specified by:
addTopologyListener in interface net.sf.ehcache.cluster.CacheCluster

removeTopologyListener

public boolean removeTopologyListener(net.sf.ehcache.cluster.ClusterTopologyListener listener)
Specified by:
removeTopologyListener in interface net.sf.ehcache.cluster.CacheCluster

isClusterOnline

public boolean isClusterOnline()
Specified by:
isClusterOnline in interface net.sf.ehcache.cluster.CacheCluster

nodeJoined

public void nodeJoined(com.tc.cluster.DsoClusterEvent event)
Specified by:
nodeJoined in interface com.tc.cluster.DsoClusterListener

nodeLeft

public void nodeLeft(com.tc.cluster.DsoClusterEvent event)
Specified by:
nodeLeft in interface com.tc.cluster.DsoClusterListener

operationsDisabled

public void operationsDisabled(com.tc.cluster.DsoClusterEvent event)
Specified by:
operationsDisabled in interface com.tc.cluster.DsoClusterListener

operationsEnabled

public void operationsEnabled(com.tc.cluster.DsoClusterEvent event)
Specified by:
operationsEnabled in interface com.tc.cluster.DsoClusterListener


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.