|
From: Peter P. <pr...@us...> - 2007-02-21 13:10:33
|
Update of /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14405/src/edu/harvard/syrah/pyxida/nc Modified Files: NCManager.java Log Message: Improved Pyxida node webpage Index: NCManager.java =================================================================== RCS file: /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc/NCManager.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** NCManager.java 15 Feb 2007 18:01:26 -0000 1.35 --- NCManager.java 21 Feb 2007 13:10:29 -0000 1.36 *************** *** 36,40 **** "pyxida.dimensions.secondary", "4")); - public static final boolean WATCH_NEIGHBORS = Boolean.parseBoolean(Config.getConfigProps().getProperty( "pyxida.ncmanager.watch_neighbors", "false")); --- 36,39 ---- *************** *** 493,497 **** // If this guy is in an unknown state add him to pending. ! void addPendingNeighbor(AddressIF node) { if (node.equals(comm.getLocalAddress())) return; --- 492,498 ---- // If this guy is in an unknown state add him to pending. ! void addPendingNeighbor(AddressIF node) { ! assert node != null : "Pending neighbour is null?"; ! if (node.equals(comm.getLocalAddress())) return; *************** *** 555,558 **** --- 556,571 ---- + downNeighbors.size()); } + + public Set<AddressIF> getPendingNeighbours() { + return pendingNeighbors; + } + + public Set<AddressIF> getUpNeighbours() { + return upNeighbors; + } + + public Set<AddressIF> getDownNeighbours() { + return downNeighbors; + } class CoordClient { |