org.terracotta.modules.ehcache.coherence
Class IncoherentNodesSet

java.lang.Object
  extended by org.terracotta.modules.ehcache.coherence.IncoherentNodesSet
All Implemented Interfaces:
com.tc.cluster.DsoClusterListener, CacheCoherence

public class IncoherentNodesSet
extends Object
implements CacheCoherence, com.tc.cluster.DsoClusterListener


Field Summary
 
Fields inherited from interface org.terracotta.modules.ehcache.coherence.CacheCoherence
LOCAL_BUFFER_PUTS_BATCH_SIZE_PROPERTY, LOCAL_BUFFER_PUTS_BATCH_TIME_MILLIS_PROPERTY, LOCAL_BUFFER_PUTS_THROTTLE_SIZE_PROPERTY, LOGGING_ENABLED_PROPERTY
 
Constructor Summary
IncoherentNodesSet(String name, ClusteredStore clusteredStore)
           
 
Method Summary
 void acquireReadLock()
           
 void acquireWriteLock()
           
 void init()
           
 boolean isClusterCoherent()
           
 boolean isFirstIncoherent()
           
 boolean isNodeCoherent()
           
 void nodeJoined(com.tc.cluster.DsoClusterEvent evt)
           
 void nodeLeft(com.tc.cluster.DsoClusterEvent evt)
           
 void operationsDisabled(com.tc.cluster.DsoClusterEvent evt)
           
 void operationsEnabled(com.tc.cluster.DsoClusterEvent evt)
           
 void releaseReadLock()
           
 void releaseWriteLock()
           
 void setNodeCoherent(boolean coherent)
           
 void waitUntilClusterCoherent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncoherentNodesSet

public IncoherentNodesSet(String name,
                          ClusteredStore clusteredStore)
Method Detail

init

public void init()

acquireReadLock

public void acquireReadLock()
Specified by:
acquireReadLock in interface CacheCoherence

acquireWriteLock

public void acquireWriteLock()
Specified by:
acquireWriteLock in interface CacheCoherence

releaseReadLock

public void releaseReadLock()
Specified by:
releaseReadLock in interface CacheCoherence

releaseWriteLock

public void releaseWriteLock()
Specified by:
releaseWriteLock in interface CacheCoherence

waitUntilClusterCoherent

public void waitUntilClusterCoherent()
Specified by:
waitUntilClusterCoherent in interface CacheCoherence

isClusterCoherent

public boolean isClusterCoherent()
Specified by:
isClusterCoherent in interface CacheCoherence

isFirstIncoherent

public boolean isFirstIncoherent()

isNodeCoherent

public boolean isNodeCoherent()
Specified by:
isNodeCoherent in interface CacheCoherence

setNodeCoherent

public void setNodeCoherent(boolean coherent)
Specified by:
setNodeCoherent in interface CacheCoherence

nodeLeft

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

nodeJoined

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

operationsDisabled

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

operationsEnabled

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


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