|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ehcache.distribution.jgroups.BootstrapRequest
public class BootstrapRequest
Tracks the status of a bootstrap request
| Nested Class Summary | |
|---|---|
static class |
BootstrapRequest.BootstrapStatus
Possible states of a BootstrapRequest |
| Constructor Summary | |
|---|---|
BootstrapRequest(net.sf.ehcache.Ehcache cache,
boolean asynchronous,
int chunkSize)
Create a new bootstrap request for the specified cache |
|
| Method Summary | |
|---|---|
void |
boostrapComplete(BootstrapRequest.BootstrapStatus status)
Signal that bootstrapping is complete |
void |
countReplication()
Count a received bootstrap replication |
BootstrapRequest.BootstrapStatus |
getBootstrapStatus()
|
net.sf.ehcache.Ehcache |
getCache()
|
int |
getChunkSize()
|
long |
getReplicationCount()
|
boolean |
isAsynchronous()
|
void |
reset()
Reset the replicationCount and waitForBootstrap latch to their initial states |
void |
setBootstrapStatus(BootstrapRequest.BootstrapStatus bootstrapStatus)
|
String |
toString()
|
boolean |
waitForBoostrap(long timeout,
TimeUnit unit)
Waits for the receiver to signal that the current bootstrap request is complete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BootstrapRequest(net.sf.ehcache.Ehcache cache,
boolean asynchronous,
int chunkSize)
| Method Detail |
|---|
public BootstrapRequest.BootstrapStatus getBootstrapStatus()
public void setBootstrapStatus(BootstrapRequest.BootstrapStatus bootstrapStatus)
bootstrapStatus - The current status of the bootstrap requestpublic boolean isAsynchronous()
public int getChunkSize()
public void reset()
public void boostrapComplete(BootstrapRequest.BootstrapStatus status)
public boolean waitForBoostrap(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void countReplication()
public long getReplicationCount()
public net.sf.ehcache.Ehcache getCache()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||