Examples of DHTDBValue


Examples of com.aelitis.azureus.core.dht.db.DHTDBValue

   
    if ( DHTLog.isOn()){
      DHTLog.log( "put for " + DHTLog.getString( encoded_key ));
    }
   
    DHTDBValue  value = database.store( new HashWrapper( encoded_key ), _value, _flags, _life_hours, _replication_control );
   
    put(   external_put_pool,
        _high_priority,
        encoded_key,
        _description,
View Full Code Here

Examples of com.aelitis.azureus.core.dht.db.DHTDBValue

    if ( DHTLog.isOn()){
      DHTLog.log( "getLocalValue for " + DHTLog.getString( encoded_key ));
    }

    DHTDBValue  res = database.get( new HashWrapper( encoded_key ));
 
    if ( res == null ){
     
      return( null );
    }
View Full Code Here

Examples of com.aelitis.azureus.core.dht.db.DHTDBValue

    if ( DHTLog.isOn()){
      DHTLog.log( "remove for " + DHTLog.getString( encoded_key ));
    }

    DHTDBValue  res = database.remove( local_contact, new HashWrapper( encoded_key ));
   
    if ( res == null ){
     
        // not found locally, nothing to do
     
      return( null );
     
    }else{
     
        // we remove a key by pushing it back out again with zero length value
           
      put(   external_put_pool,
          false,
          encoded_key,
          description,
          res,
          (byte)res.getFlags(),
          0,
          true,
          new HashSet(),
          1,
          new DHTOperationListenerDemuxer( listener ));
     
      return( res.getValue());
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.dht.db.DHTDBValue

    if ( DHTLog.isOn()){
      DHTLog.log( "remove for " + DHTLog.getString( encoded_key ));
    }

    DHTDBValue  res = database.remove( local_contact, new HashWrapper( encoded_key ));
   
    if ( res == null ){
     
        // not found locally, nothing to do
     
      return( null );
     
    }else{
     
      List  contacts_l = new ArrayList( contacts.length );
     
      for (int i=0;i<contacts.length;i++ ){
       
        contacts_l.add( contacts[i] );
      }
     
      put(   external_put_pool,
          true,
          new byte[][]{ encoded_key },
          "Store of [" + description + "]",
          new DHTTransportValue[][]{{ res }},
          (byte)res.getFlags(),
          contacts_l,
          0,
          new DHTOperationListenerDemuxer( listener ),
          true,
          new HashSet(),
          1,
          true );   
     
      return( res.getValue());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.