Changeset 73b00eb for router


Ignore:
Timestamp:
May 27, 2019 3:44:51 PM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0c7c1945
Parents:
90e6458
Message:

Console: Start rework of /configkeyring for LS2
Not hooked up yet - WIP

Location:
router/java/src/net/i2p/router/networkdb/kademlia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/BlindCache.java

    r90e6458 r73b00eb  
    99import java.io.OutputStreamWriter;
    1010import java.io.PrintWriter;
     11import java.util.ArrayList;
     12import java.util.List;
    1113import java.util.concurrent.ConcurrentHashMap;
    1214
     
    224226            _reverseCache.put(bd.getBlindedPubKey(), bd);
    225227        }
     228    }
     229
     230    /**
     231     *  For console ConfigKeyringHelper
     232     *  @since 0.9.41
     233     */
     234    public synchronized List<BlindData> getData() {
     235        List<BlindData> rv = new ArrayList<BlindData>(_cache.size());
     236        rv.addAll(_cache.values());
     237        return rv;
    226238    }
    227239
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r90e6458 r73b00eb  
    1717import java.util.HashSet;
    1818import java.util.Iterator;
     19import java.util.List;
    1920import java.util.Map;
    2021import java.util.Set;
     
    492493            _log.warn("Adding to blind cache: " + bd);
    493494        _blindCache.addToCache(bd);
     495    }
     496
     497    /**
     498     *  For console ConfigKeyringHelper
     499     *  @since 0.9.41
     500     */
     501    public List<BlindData> getBlindData() {
     502        return _blindCache.getData();
    494503    }
    495504   
Note: See TracChangeset for help on using the changeset viewer.