net.sf.ehcache.distribution.jgroups
Class JGroupsBootstrapManager

java.lang.Object
  extended by net.sf.ehcache.distribution.jgroups.JGroupsBootstrapManager

public class JGroupsBootstrapManager
extends Object

Manages bootstrap requests and responses

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
JGroupsBootstrapManager(String clusterName, JGroupsCachePeer cachePeer, net.sf.ehcache.CacheManager cacheManager)
          Create a new bootstrap manager
 
Method Summary
 void dispose()
          Shutdown resources uses by the bootstrap managed.
 void handleBootstrapComplete(JGroupEventMessage message)
          Handle a JGroupEventMessage.BOOTSTRAP_COMPLETE message
 void handleBootstrapIncomplete(JGroupEventMessage message)
          Handle a JGroupEventMessage.BOOTSTRAP_INCOMPLETE message
 void handleBootstrapRequest(BootstrapRequest bootstrapRequest)
          Handle a bootstrap request for a cache
 void handleBootstrapResponse(JGroupEventMessage message)
          Handle a JGroupEventMessage.BOOTSTRAP_RESPONSE message
 boolean isPendingBootstrapRequests()
           
 void sendBootstrapResponse(JGroupEventMessage message)
          Handles responding to a bootstrap request
 void setBootstrapThreads(int bootstrapThreads)
          Set the maximum number of threads to use in the bootstrap pool.
 boolean waitForCompleteBootstrap(long duration)
          Wait until the bootstrap process is complete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGroupsBootstrapManager

public JGroupsBootstrapManager(String clusterName,
                               JGroupsCachePeer cachePeer,
                               net.sf.ehcache.CacheManager cacheManager)
Create a new bootstrap manager

Method Detail

waitForCompleteBootstrap

public boolean waitForCompleteBootstrap(long duration)
Wait until the bootstrap process is complete


dispose

public void dispose()
Shutdown resources uses by the bootstrap managed.


setBootstrapThreads

public void setBootstrapThreads(int bootstrapThreads)
Set the maximum number of threads to use in the bootstrap pool. Defaults to BOOTSTRAP_MAX_THREADS


isPendingBootstrapRequests

public boolean isPendingBootstrapRequests()
Returns:
true if there are pending bootstrap requests

handleBootstrapRequest

public void handleBootstrapRequest(BootstrapRequest bootstrapRequest)
Handle a bootstrap request for a cache


sendBootstrapResponse

public void sendBootstrapResponse(JGroupEventMessage message)
Handles responding to a bootstrap request


handleBootstrapComplete

public void handleBootstrapComplete(JGroupEventMessage message)
Handle a JGroupEventMessage.BOOTSTRAP_COMPLETE message


handleBootstrapIncomplete

public void handleBootstrapIncomplete(JGroupEventMessage message)
Handle a JGroupEventMessage.BOOTSTRAP_INCOMPLETE message


handleBootstrapResponse

public void handleBootstrapResponse(JGroupEventMessage message)
Handle a JGroupEventMessage.BOOTSTRAP_RESPONSE message



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