@Override
public List<Triple> get(String locationKey) {
l.log(TYPE_RETRIEVE,
String.format("Peer %s: get keys: %s", p, locationKey), 10);
final Number160 hash = Number160.createHash(locationKey);
FutureDHT request;
try {
request = p.get(hash).setRequestP2PConfiguration(reqParam).setAll()
.start();
request.awaitUninterruptibly();
Data f = request.getData();
if (!request.isSuccess() || f == null) {
logger.debug(String.format("Got no triple in key \"%s\" (%s)",
locationKey, hash));
return new ArrayList<Triple>(0);
}
List<Triple> result = new ArrayList<Triple>();
for (Data d : request.getDataMap().values()) {
logger.debug(String.format(
"Got triple \"%s\" in key \"%s\" (%s) at peer \"%s\"",
d.getObject(), locationKey, hash, d.getPeerId()));
try {
Triple t;