|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.p2p.glacier.v2.GlacierImpl
DESCRIBE THE CLASS
| Field Summary | |
protected long |
bucketConsumed
DESCRIBE THE FIELD |
protected long |
bucketLastUpdated
DESCRIBE THE FIELD |
protected long |
bucketMax
DESCRIBE THE FIELD |
protected long |
bucketMin
DESCRIBE THE FIELD |
protected java.util.Hashtable |
continuations
DESCRIBE THE FIELD |
protected long |
currentFragmentRequestTimeout
DESCRIBE THE FIELD |
protected Endpoint |
endpoint
DESCRIBE THE FIELD |
protected IdFactory |
factory
DESCRIBE THE FIELD |
protected StorageManager |
fragmentStorage
DESCRIBE THE FIELD |
protected java.lang.String |
instance
DESCRIBE THE FIELD |
protected java.util.Vector |
listeners
DESCRIBE THE FIELD |
protected StorageManager |
neighborStorage
DESCRIBE THE FIELD |
protected long |
nextContinuationTimeout
DESCRIBE THE FIELD |
protected int |
nextUID
DESCRIBE THE FIELD |
protected Node |
node
DESCRIBE THE FIELD |
protected int |
numFragments
DESCRIBE THE FIELD |
protected int |
numSurvivors
DESCRIBE THE FIELD |
protected java.util.Hashtable |
pendingTraffic
DESCRIBE THE FIELD |
protected GlacierPolicy |
policy
DESCRIBE THE FIELD |
protected IdRange |
responsibleRange
DESCRIBE THE FIELD |
protected GlacierStatistics |
statistics
DESCRIBE THE FIELD |
protected CancellableTask |
timer
DESCRIBE THE FIELD |
protected long |
tokenBucket
DESCRIBE THE FIELD |
protected StorageManager |
trashStorage
DESCRIBE THE FIELD |
| Fields inherited from interface rice.p2p.past.gc.GCPast |
INFINITY_EXPIRATION |
| Constructor Summary | |
GlacierImpl(Node nodeArg,
StorageManager fragmentStorageArg,
StorageManager neighborStorageArg,
int numFragmentsArg,
int numSurvivorsArg,
IdFactory factoryArg,
java.lang.String instanceArg,
GlacierPolicy policyArg)
Constructor for GlacierImpl. |
|
| Method Summary | |
void |
addStatisticsListener(GlacierStatisticsListener gsl)
Adds a feature to the StatisticsListener attribute of the GlacierImpl object |
void |
deliver(Id id,
Message message)
DESCRIBE THE METHOD |
void |
emptyTrash(Continuation c)
DESCRIBE THE METHOD |
void |
fetch(PastContentHandle handle,
Continuation command)
DESCRIBE THE METHOD |
boolean |
forward(RouteMessage message)
DESCRIBE THE METHOD |
Environment |
getEnvironment()
Gets the Environment attribute of the GlacierImpl object |
java.lang.String |
getInstance()
Gets the Instance attribute of the GlacierImpl object |
NodeHandle |
getLocalNodeHandle()
Gets the LocalNodeHandle attribute of the GlacierImpl object |
Id[][] |
getNeighborRanges()
Gets the NeighborRanges attribute of the GlacierImpl object |
int |
getReplicationFactor()
Gets the ReplicationFactor attribute of the GlacierImpl object |
long |
getTrashSize()
Gets the TrashSize attribute of the GlacierImpl object |
protected int |
getUID()
Gets the UID attribute of the GlacierImpl object |
java.lang.String |
handleDebugCommand(java.lang.String command)
DESCRIBE THE METHOD |
void |
insert(PastContent obj,
Continuation command)
DESCRIBE THE METHOD |
void |
insert(PastContent obj,
long expiration,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
boolean cache,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
long version,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandle(Id id,
NodeHandle handle,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandles(Id id,
int num,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandles(Id id,
long version,
int num,
Continuation command)
DESCRIBE THE METHOD |
void |
neighborSeen(Id nodeId,
long when)
DESCRIBE THE METHOD |
void |
rateLimitedRetrieveFragment(FragmentKey key,
Manifest manifest,
char tag,
GlacierContinuation c)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long[] expirations,
Continuation command)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long expiration,
Continuation command)
DESCRIBE THE METHOD |
void |
removeStatisticsListener(GlacierStatisticsListener gsl)
DESCRIBE THE METHOD |
void |
retrieveFragment(FragmentKey key,
Manifest manifest,
char tag,
GlacierContinuation c)
DESCRIBE THE METHOD |
void |
retrieveManifest(VersionKey key,
char tag,
Continuation command)
DESCRIBE THE METHOD |
void |
retrieveObject(VersionKey key,
Manifest manifest,
boolean beStrict,
char tag,
Continuation c)
DESCRIBE THE METHOD |
void |
sendMessage(Id id,
GlacierMessage message,
NodeHandle hint)
DESCRIBE THE METHOD |
void |
setBandwidthLimit(long bytesPerSecond,
long maxBurst)
Sets the BandwidthLimit attribute of the GlacierImpl object |
void |
setNeighborTimeout(long neighborTimeoutMin)
Sets the NeighborTimeout attribute of the GlacierImpl object |
void |
setRateLimit(int rps)
Sets the RateLimit attribute of the GlacierImpl object |
void |
setSyncInterval(int syncIntervalSec)
Sets the SyncInterval attribute of the GlacierImpl object |
void |
setSyncMaxFragments(int syncMaxFragments)
Sets the SyncMaxFragments attribute of the GlacierImpl object |
void |
setTrashcan(StorageManager trashStorage)
Sets the Trashcan attribute of the GlacierImpl object |
void |
startup()
DESCRIBE THE METHOD |
void |
update(NodeHandle handle,
boolean joined)
DESCRIBE THE METHOD |
protected void |
updateTokenBucket()
DESCRIBE THE METHOD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final StorageManager fragmentStorage
protected final StorageManager neighborStorage
protected final GlacierPolicy policy
protected final Node node
protected final int numFragments
protected final java.lang.String instance
protected final int numSurvivors
protected final Endpoint endpoint
protected final IdFactory factory
protected final java.util.Hashtable continuations
protected final java.util.Hashtable pendingTraffic
protected StorageManager trashStorage
protected long nextContinuationTimeout
protected IdRange responsibleRange
protected int nextUID
protected CancellableTask timer
protected GlacierStatistics statistics
protected java.util.Vector listeners
protected long currentFragmentRequestTimeout
protected long tokenBucket
protected long bucketLastUpdated
protected long bucketMin
protected long bucketMax
protected long bucketConsumed
| Constructor Detail |
public GlacierImpl(Node nodeArg,
StorageManager fragmentStorageArg,
StorageManager neighborStorageArg,
int numFragmentsArg,
int numSurvivorsArg,
IdFactory factoryArg,
java.lang.String instanceArg,
GlacierPolicy policyArg)
nodeArg - DESCRIBE THE PARAMETERfragmentStorageArg - DESCRIBE THE PARAMETERneighborStorageArg - DESCRIBE THE PARAMETERnumFragmentsArg - DESCRIBE THE PARAMETERnumSurvivorsArg - DESCRIBE THE PARAMETERfactoryArg - DESCRIBE THE PARAMETERinstanceArg - DESCRIBE THE PARAMETERpolicyArg - DESCRIBE THE PARAMETER| Method Detail |
protected int getUID()
public Id[][] getNeighborRanges()
public int getReplicationFactor()
getReplicationFactor in interface Pastpublic NodeHandle getLocalNodeHandle()
getLocalNodeHandle in interface Pastpublic long getTrashSize()
public Environment getEnvironment()
getEnvironment in interface Pastpublic java.lang.String getInstance()
getInstance in interface Pastpublic void setTrashcan(StorageManager trashStorage)
trashStorage - The new Trashcan valuepublic void setSyncInterval(int syncIntervalSec)
syncIntervalSec - The new SyncInterval valuepublic void setSyncMaxFragments(int syncMaxFragments)
syncMaxFragments - The new SyncMaxFragments valuepublic void setRateLimit(int rps)
rps - The new RateLimit valuepublic void setNeighborTimeout(long neighborTimeoutMin)
neighborTimeoutMin - The new NeighborTimeout value
public void setBandwidthLimit(long bytesPerSecond,
long maxBurst)
bytesPerSecond - The new BandwidthLimit valuemaxBurst - The new BandwidthLimit valuepublic void startup()
protected void updateTokenBucket()
public void sendMessage(Id id,
GlacierMessage message,
NodeHandle hint)
id - DESCRIBE THE PARAMETERmessage - DESCRIBE THE PARAMETERhint - DESCRIBE THE PARAMETERpublic java.lang.String handleDebugCommand(java.lang.String command)
handleDebugCommand in interface DebugCommandHandlercommand - DESCRIBE THE PARAMETER
public void insert(PastContent obj,
Continuation command)
insert in interface Pastobj - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long[] expirations,
Continuation command)
refresh in interface GCPastids - DESCRIBE THE PARAMETERexpirations - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long expiration,
Continuation command)
refresh in interface GCPastids - DESCRIBE THE PARAMETERexpiration - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
refresh in interface VersioningPastids - DESCRIBE THE PARAMETERversions - DESCRIBE THE PARAMETERexpirations - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void insert(PastContent obj,
long expiration,
Continuation command)
insert in interface GCPastobj - DESCRIBE THE PARAMETERexpiration - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void neighborSeen(Id nodeId,
long when)
nodeId - DESCRIBE THE PARAMETERwhen - DESCRIBE THE PARAMETERpublic boolean forward(RouteMessage message)
forward in interface Applicationmessage - DESCRIBE THE PARAMETER
public void update(NodeHandle handle,
boolean joined)
update in interface Applicationhandle - DESCRIBE THE PARAMETERjoined - DESCRIBE THE PARAMETER
public void lookupHandle(Id id,
NodeHandle handle,
Continuation command)
lookupHandle in interface Pastid - DESCRIBE THE PARAMETERhandle - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookupHandles(Id id,
int num,
Continuation command)
lookupHandles in interface Pastid - DESCRIBE THE PARAMETERnum - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookupHandles(Id id,
long version,
int num,
Continuation command)
lookupHandles in interface VersioningPastid - DESCRIBE THE PARAMETERversion - DESCRIBE THE PARAMETERnum - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
long version,
Continuation command)
lookup in interface VersioningPastid - DESCRIBE THE PARAMETERversion - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
boolean cache,
Continuation command)
lookup in interface Pastid - DESCRIBE THE PARAMETERcache - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
Continuation command)
lookup in interface Pastid - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void fetch(PastContentHandle handle,
Continuation command)
fetch in interface Pasthandle - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void retrieveManifest(VersionKey key,
char tag,
Continuation command)
key - DESCRIBE THE PARAMETERtag - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void retrieveObject(VersionKey key,
Manifest manifest,
boolean beStrict,
char tag,
Continuation c)
key - DESCRIBE THE PARAMETERmanifest - DESCRIBE THE PARAMETERbeStrict - DESCRIBE THE PARAMETERtag - DESCRIBE THE PARAMETERc - DESCRIBE THE PARAMETER
public void retrieveFragment(FragmentKey key,
Manifest manifest,
char tag,
GlacierContinuation c)
key - DESCRIBE THE PARAMETERmanifest - DESCRIBE THE PARAMETERtag - DESCRIBE THE PARAMETERc - DESCRIBE THE PARAMETER
public void rateLimitedRetrieveFragment(FragmentKey key,
Manifest manifest,
char tag,
GlacierContinuation c)
key - DESCRIBE THE PARAMETERmanifest - DESCRIBE THE PARAMETERtag - DESCRIBE THE PARAMETERc - DESCRIBE THE PARAMETER
public void deliver(Id id,
Message message)
deliver in interface Applicationid - DESCRIBE THE PARAMETERmessage - DESCRIBE THE PARAMETERpublic void emptyTrash(Continuation c)
c - DESCRIBE THE PARAMETERpublic void addStatisticsListener(GlacierStatisticsListener gsl)
gsl - The feature to be added to the StatisticsListener attributepublic void removeStatisticsListener(GlacierStatisticsListener gsl)
gsl - DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||