[Ubermq-commits] uberchord/src/com/ubermq/chord/jms RemoteChordNode.java,1.4,1.5
Brought to you by:
jimmyp
From: <ji...@us...> - 2002-11-11 20:43:52
|
Update of /cvsroot/ubermq/uberchord/src/com/ubermq/chord/jms In directory usw-pr-cvs1:/tmp/cvs-serv11865/src/com/ubermq/chord/jms Modified Files: RemoteChordNode.java Log Message: more stuff Index: RemoteChordNode.java =================================================================== RCS file: /cvsroot/ubermq/uberchord/src/com/ubermq/chord/jms/RemoteChordNode.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RemoteChordNode.java 11 Nov 2002 20:39:17 -0000 1.4 --- RemoteChordNode.java 11 Nov 2002 20:43:49 -0000 1.5 *************** *** 43,49 **** private transient TopicSubscriber replySub; - // cached finger table,for efficiency - private transient ChordNode[] fingers; - // a big map of URI -> remote nodes private static final Map cachedNodes = new HashMap(); --- 43,46 ---- *************** *** 286,290 **** // finger table over the network, when we really only // have to send a single node. ! return fingers[0]; } --- 283,287 ---- // finger table over the network, when we really only // have to send a single node. ! return fingers()[0]; } *************** *** 382,386 **** public ChordNode[] fingers() { ! fingers = (ChordNode[])query(LocalChordNode.CHORD_FINGER_TABLE_KEY); if (fingers == null) { throw new java.lang.IllegalStateException("This node is in isolation. The finger table is empty."); --- 379,383 ---- public ChordNode[] fingers() { ! ChordNode[] fingers = (ChordNode[])query(LocalChordNode.CHORD_FINGER_TABLE_KEY); if (fingers == null) { throw new java.lang.IllegalStateException("This node is in isolation. The finger table is empty."); |