public class Leaf extends Node
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Random |
rand |
(package private) java.util.Vector<StubPair> |
replicas |
(package private) int |
total_requests |
Constructor and Description |
---|
Leaf(java.lang.String label,
Storage sStub,
Command cStub,
Path path) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
Command |
getCommandStub() |
java.util.Vector<StubPair> |
getReplicas() |
Storage |
getStorageStub() |
int |
getTotalRequests() |
java.lang.Boolean |
in(StubPair s) |
void |
lockExclusive() |
void |
newRequest() |
void |
replicate(Path file,
StubPair s) |
int |
size() |
getPath, lockNonExclusive, name, unlockExclusive, unlockNonExclusive
int total_requests
java.util.Vector<StubPair> replicas
java.util.Random rand
public int getTotalRequests()
public int size()
public java.lang.Boolean in(StubPair s)
public void newRequest()
public java.util.Vector<StubPair> getReplicas()
public Command getCommandStub()
getCommandStub
in class Node
public Storage getStorageStub()
getStorageStub
in class Node
public void lockExclusive()
lockExclusive
in class Node
public void delete()