Update of /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2645/src/edu/harvard/syrah/pyxida/nc
Modified Files:
NCManager.java
Log Message:
added stats output timer
Index: NCManager.java
===================================================================
RCS file: /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc/NCManager.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** NCManager.java 28 Nov 2006 22:11:41 -0000 1.14
--- NCManager.java 30 Nov 2006 13:00:42 -0000 1.15
***************
*** 126,129 ****
--- 126,134 ----
}
+ public void printStats() {
+ log.info(listNeighbors());
+ log.info("coord= "+localNC.nc);
+ }
+
/**
* Not implemented yet.
***************
*** 354,357 ****
--- 359,366 ----
void dumpNeighbors () {
+ log.debug(listNeighbors());
+ }
+
+ String listNeighbors() {
StringBuffer sb = new StringBuffer();
sb.append("pending:");
***************
*** 367,371 ****
sb.append (" "+node);
}
! log.debug(new String(sb));
}
--- 376,380 ----
sb.append (" "+node);
}
! return new String(sb);
}
|