Package freenet.support

Examples of freenet.support.TrivialTicker


    FileUtil.removeAll(tempDir);
  }
 
  public void testSimple() throws IOException, CHKEncodeException, CHKVerifyException, CHKDecodeException {
    CHKStore store = new CHKStore();
    new SlashdotStore<CHKBlock>(store, 10, 30*1000, 5*1000, new TrivialTicker(exec), tbf);
   
    // Encode a block
    String test = "test";
    ClientCHKBlock block = encodeBlock(test);
    store.put(block.getBlock(), false);
View Full Code Here


    assertEquals(test, data);
  }
 
  public void testDeletion() throws IOException, CHKEncodeException, CHKVerifyException, CHKDecodeException, InterruptedException {
    CHKStore store = new CHKStore();
    new SlashdotStore<CHKBlock>(store, 10, 500, 100, new TrivialTicker(exec), tbf);
   
    // Encode a block
    String test = "test";
    ClientCHKBlock block = encodeBlock(test);
    store.put(block.getBlock(), false);
View Full Code Here

  public WoTIdentityManager(Freetalk myFreetalk, Executor myExecutor) {
    super(myFreetalk);
    mIsUnitTest = false;
   
    mTicker = new TrivialTicker(myExecutor);
    mRandom = mFreetalk.getPluginRespirator().getNode().fastWeakRandom;
  }
View Full Code Here

    mClient = mFreetalk.getPluginRespirator().getHLSimpleClient();
    mClientContext = mFreetalk.getPluginRespirator().getNode().clientCore.clientContext;
    mRequestClient = mMessageManager.mRequestClient;
    mUSKManager = mFreetalk.getPluginRespirator().getNode().clientCore.uskManager;
   
    mTicker = new TrivialTicker(mFreetalk.getPluginRespirator().getNode().executor);
   
    mXML = myMessageListXML;
   
    deleteAllCommands();
    mIdentityManager.registerShouldFetchStateChangedCallback(this);
View Full Code Here

    db = myDB;
    mIdentityManager = myIdentityManager;
    mFreetalk = myFreetalk;
    mPluginRespirator = myPluginRespirator;
   
    mTicker = new TrivialTicker(mFreetalk.getPluginRespirator().getNode().executor);
    mRandom = mPluginRespirator.getNode().fastWeakRandom;
   
    mIdentityManager.registerNewOwnIdentityCallback(this);
    mIdentityManager.registerIdentityDeletedCallback(this, true);
  }
View Full Code Here

    assert(myDB != null);
   
    mFreetalk = myFreetalk;
    mDB = myDB;
   
    mTicker = mFreetalk.getPluginRespirator() != null ? new TrivialTicker(mFreetalk.getPluginRespirator().getNode().executor) : null;
    mRandom = mFreetalk.getPluginRespirator() != null ? mFreetalk.getPluginRespirator().getNode().fastWeakRandom : null;
   
    mFreetalk.getIdentityManager().registerOwnIdentityDeletedCallback(this);
  }
View Full Code Here

TOP

Related Classes of freenet.support.TrivialTicker

Copyright © 2018 www.massapicom. 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.