|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.syrah.pyxida.nc.NCManager
public class NCManager
Manages the local and proxy coordinates. Initiates gossip to other overlay nodes. Receives and responds to gossip messages. Manages gossip set, e.g. set of overlay nodes that the coordinates might use as neighbors
Field Summary | |
---|---|
static long |
DEFAULT_PROXY_LEASE
Default lifetime that proxy coordinates are managed for. |
static int |
NC_NUM_DIMS
|
static int |
SECONDARY_NC_NUM_DIMS
|
static long |
UPDATE_DELAY
Time between gossip messages to coordinate neighbors. |
static boolean |
WATCH_NEIGHBORS
|
Constructor Summary | |
---|---|
NCManager(ObjCommIF _comm,
PingManager pingManager)
Create a coordinate manager. |
Method Summary | |
---|---|
java.lang.String |
createProxyCoord(AddressIF remoteNode,
long lease)
|
java.lang.String |
destroyProxyCoord(AddressIF remoteNode)
|
void |
estimateRTT(AddressIF nodeA,
AddressIF nodeB,
Fetches coordinates from two nodes and returns the distance between them. |
java.util.Set<AddressIF> |
getDownNeighbours()
|
Coordinate |
getLocalCoord()
|
double |
getLocalError()
|
Coordinate |
getLocalSecondaryCoord()
|
double |
getLocalSecondaryError()
|
java.util.Set<AddressIF> |
getPendingNeighbours()
|
Coordinate |
getProxyCoord(AddressIF remoteNode)
|
void |
getRemoteCoord(AddressIF remoteNode,
Fetch coordinate from remote node. |
void |
getRemoteCoords(java.util.List<AddressIF> nodes,
|
java.util.Set<AddressIF> |
getUpNeighbours()
|
void |
init(CB0 cbDone)
Asynchronous initialization of coordinate manager. |
void |
printStats()
|
java.lang.String |
renewLeaseOnProxyCoord(AddressIF remoteNode,
long lease)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NC_NUM_DIMS
public static final int SECONDARY_NC_NUM_DIMS
public static final boolean WATCH_NEIGHBORS
public static final long UPDATE_DELAY
public static final long DEFAULT_PROXY_LEASE
Constructor Detail |
---|
public NCManager(ObjCommIF _comm, PingManager pingManager)
Method Detail |
---|
public void init(CB0 cbDone)
public void printStats()
public java.lang.String createProxyCoord(AddressIF remoteNode, long lease)
public java.lang.String renewLeaseOnProxyCoord(AddressIF remoteNode, long lease)
public Coordinate getProxyCoord(AddressIF remoteNode)
public java.lang.String destroyProxyCoord(AddressIF remoteNode)
public Coordinate getLocalCoord()
public double getLocalError()
public Coordinate getLocalSecondaryCoord()
public double getLocalSecondaryError()
public void getRemoteCoord(AddressIF remoteNode,cbCoord)
public void getRemoteCoords(java.util.List<AddressIF> nodes,cbCoords)
public void estimateRTT(AddressIF nodeA, AddressIF nodeB,cbDistance)
public java.util.Set<AddressIF> getPendingNeighbours()
public java.util.Set<AddressIF> getUpNeighbours()
public java.util.Set<AddressIF> getDownNeighbours()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |