Modifier and Type | Method and Description |
---|---|
NodeReference |
DataManagerChordSessionBean.findSuccessor(Key key)
implementation of the findSuccessor Chord primitive using the FingerTable
and a RemoteNodeProxy (the DataManager is just a client, not in the ring, as Chord protocol permits)
|
List<GenericValue> |
DataManagerChordSessionBeanLocal.lookup(Key key) |
List<GenericValue> |
DataManagerChordSessionBean.lookup(Key key)
Make a lookup on the Chord Network for the value associated with the given Key
|
Boolean |
DataManagerChordSessionBeanLocal.update(Key key,
GenericValue elem) |
Boolean |
DataManagerChordSessionBean.update(Key key,
GenericValue elem) |
Boolean |
DataManagerChordSessionBeanLocal.update(Key key,
List<GenericValue> elems) |
Boolean |
DataManagerChordSessionBean.update(Key key,
List<GenericValue> elems)
Make a delete and put in the chord network
(just for simplicity not in a single call to the proxy)
for a List of elems
|
Boolean |
DataManagerChordSessionBeanLocal.write(Key key,
GenericValue elem) |
Boolean |
DataManagerChordSessionBean.write(Key key,
GenericValue elem)
Make a put in the Chord Network for the given elem
|
Boolean |
DataManagerChordSessionBeanLocal.write(Key key,
List<GenericValue> elems) |
Boolean |
DataManagerChordSessionBean.write(Key key,
List<GenericValue> elems)
Make a put in the Chord Network for a full value (a List) associated with the Key
|
Modifier and Type | Field and Description |
---|---|
private static Key |
LightSessionBean.TREE_HEIGHT_KEY
We know the key of the MASTER NODE, just for simplicity we are using a Key that is just 1_16 less than
MASTER_NODE key
|
Modifier and Type | Method and Description |
---|---|
List<GenericValue> |
NodeSessionBean.delete(Key key)
Remove from the storage of the node executing this method
|
List<GenericValue> |
Storage.find(Key key) |
NodeReference |
NodeSessionBean.findSuccessor(Key key)
findSuccessor primitive of chord protocol
|
List<GenericValue> |
NodeSessionBean.get(Key key)
Get a List of Values stored in the storage of the node executing this method with the given Key
|
List<GenericValue> |
NodeSessionBean.getLessThanAndRemove(Key key) |
List<GenericValue> |
Storage.lessThanAndRemove(Key key) |
List<GenericValue> |
NodeSessionBean.lookup(Key key)
Get a NodeReference to the successor of the given Key and make a Get in the associated peer
|
List<GenericValue> |
NodeSessionBeanLocal.lookup(Key k) |
List<GenericValue> |
NodeSessionBean.remove(Key key)
Remove a Key-Value from the successor associated with the given Key
|
List<GenericValue> |
NodeSessionBeanLocal.remove(Key key) |
void |
Storage.remove(Key key) |
void |
Storage.update(GenericValue elem,
Key key) |
Boolean |
NodeSessionBean.update(Key key,
List<GenericValue> elems)
Update a Key-Value record from the successor associated with the given key
|
Boolean |
NodeSessionBeanLocal.update(Key key,
List<GenericValue> elems) |
Boolean |
NodeSessionBean.write(Key key,
GenericValue elem)
Get a NodeReference to the successor of the given Key and make a put in the associated peer
|
Boolean |
NodeSessionBeanLocal.write(Key k,
GenericValue elem) |
Modifier and Type | Method and Description |
---|---|
List<GenericValue> |
MongoDBStorage.find(Key key) |
List<GenericValue> |
MongoDBStorage.lessThanAndRemove(Key key) |
void |
MongoDBStorage.remove(Key key) |
void |
MongoDBStorage.update(GenericValue elem,
Key key) |
Modifier and Type | Method and Description |
---|---|
List<GenericValue> |
ChordNode.delete(Key key) |
NodeReference |
ChordNode.findSuccessor(Key key) |
NodeReference |
FingerSessionBeanLocal.getClosestPrecedingNode(Key key) |
NodeReference |
FingerTable.getClosestPrecedingNode(Key key) |
List<GenericValue> |
ChordNode.getLessThanAndRemove(Key key) |
Modifier and Type | Field and Description |
---|---|
private Key |
NodeReference.nodeId |
Modifier and Type | Method and Description |
---|---|
Key |
NodeReference.getNodeId() |
Modifier and Type | Method and Description |
---|---|
List<GenericValue> |
RemoteNodeProxy.delete(Key key) |
NodeReference |
RemoteNodeProxy.findSuccessor(Key key) |
List<GenericValue> |
RemoteNodeProxy.get(Key key) |
List<GenericValue> |
RemoteNodeProxy.getLessThanAndRemove(Key key) |
Constructor and Description |
---|
NodeReference(Key nodeId,
String ip) |
Modifier and Type | Method and Description |
---|---|
Key |
Key.sum(BigInteger integer)
Returns this.key + integer
|
Key |
Key.sum(Key b)
Returns this.key + (Key) b
|
static Key |
Key.sum(Key a,
BigInteger integer)
Returns (Key) a + integer
|
static Key |
Key.sum(Key a,
Key b)
Returns (Key) a + (Key) b
|
Key |
Key.sumPow(int pow)
Returns this.key + 2^pow
|
Key |
Key.sumPowDivided(int pow,
int divisor)
Returns this.key + 2^pow/divisor
|
Modifier and Type | Method and Description |
---|---|
int |
Key.compareTo(Key o) |
List<GenericValue> |
DHTNode.get(Key k) |
Key |
Key.sum(Key b)
Returns this.key + (Key) b
|
static Key |
Key.sum(Key a,
BigInteger integer)
Returns (Key) a + integer
|
static Key |
Key.sum(Key a,
Key b)
Returns (Key) a + (Key) b
|
Modifier and Type | Field and Description |
---|---|
protected Key |
GenericValue.key |
Modifier and Type | Method and Description |
---|---|
Key |
GenericValue.getKey() |
Modifier and Type | Method and Description |
---|---|
void |
GenericValue.setKey(Key key) |
Constructor and Description |
---|
CPUStat(float usage,
long timestamp,
String scannerId,
Key key) |
GenericStat(long timestamp,
String scannerId,
Key key) |
GenericValue(Key key) |
IOStat(String disk,
float readKBps,
float writeKBps,
long timestamp,
String scannerId,
Key key) |
RAMStat(int free,
int total,
int available,
long timestamp,
String scannerId,
Key key) |
UptimeStat(long seconds,
long minutes,
long hours,
long days,
long timestamp,
String scannerId,
Key key) |
Modifier and Type | Method and Description |
---|---|
Key |
Label.toDataKey()
get the hashed key for the data referenced by this Label
|
Key |
Label.toKey()
get the Key for the internal node associated with the Label, this is the
Hashed key to make lookups in the chord overlay network
|
Constructor and Description |
---|
Bucket(Key key) |
Bucket(Key key,
long lower,
long upper,
String label,
int recordsCounter) |
Bucket(Key key,
Range range,
Label leafLabel,
int recordsCounter) |
Copyright © 2018. All rights reserved.