org.terracotta.modules.ehcache.store.bulkload
Class BulkLoadShutdownHook

java.lang.Object
  extended by org.terracotta.modules.ehcache.store.bulkload.BulkLoadShutdownHook
All Implemented Interfaces:
Runnable

public class BulkLoadShutdownHook
extends Object
implements Runnable

Author:
Abhishek Sanoujam

Constructor Summary
BulkLoadShutdownHook(org.terracotta.toolkit.internal.ToolkitInternal toolkit)
           
 
Method Summary
 void init()
           
 void registerCache(BulkLoadToolkitCache cache)
          Registers the cache for shutdown hook.
 void run()
           
 void unregisterCache(org.terracotta.toolkit.cache.ToolkitCache cache)
          Unregisters the cache from shutdown hook.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkLoadShutdownHook

public BulkLoadShutdownHook(org.terracotta.toolkit.internal.ToolkitInternal toolkit)
Method Detail

init

public void init()

run

public void run()
Specified by:
run in interface Runnable

registerCache

public void registerCache(BulkLoadToolkitCache cache)
Registers the cache for shutdown hook. When the node shuts down, if the cache is in incoherent mode, it will set the cache back to coherent mode. Setting the node back to coherent mode will flush any changes that were made while in incoherent mode.


unregisterCache

public void unregisterCache(org.terracotta.toolkit.cache.ToolkitCache cache)
Unregisters the cache from shutdown hook.



Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.