org.terracotta.toolkit.bulkload
Interface ToolkitBulkLoadObject

All Superinterfaces:
ToolkitObject
All Known Subinterfaces:
ToolkitCache<K,V>, ToolkitStore<K,V>

public interface ToolkitBulkLoadObject
extends ToolkitObject


Method Summary
 boolean isBulkLoadEnabled()
          Returns true if at least one node in the cluster is in bulk-load mode.
 boolean isNodeBulkLoadEnabled()
          Returns true if the current node is in bulk-load mode.
 void setNodeBulkLoadEnabled(boolean enabledBulkLoad)
          Enable/disable bulk-load mode in this node for this cache.
 void waitUntilBulkLoadComplete()
          This method waits until all the connected nodes have disabled bulk-load.
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject
getName
 

Method Detail

isBulkLoadEnabled

boolean isBulkLoadEnabled()
Returns true if at least one node in the cluster is in bulk-load mode. Returns false otherwise.


isNodeBulkLoadEnabled

boolean isNodeBulkLoadEnabled()
Returns true if the current node is in bulk-load mode. Returns false otherwise.


setNodeBulkLoadEnabled

void setNodeBulkLoadEnabled(boolean enabledBulkLoad)
Enable/disable bulk-load mode in this node for this cache.


waitUntilBulkLoadComplete

void waitUntilBulkLoadComplete()
                               throws InterruptedException
This method waits until all the connected nodes have disabled bulk-load. Or in other words, calling this method will block until all connected nodes in the cluster disables bulk-load. If none of the nodes did not enable bulk-load this method will return immediately

Throws:
InterruptedException


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