Package org.jmule.core.jkad.lookup

Examples of org.jmule.core.jkad.lookup.LookupTask


  public void start() {
    if (lookup_task!=null)
      if (lookup_task.isLookupStarted()) return;

    isStarted = true;
    lookup_task = new LookupTask(RequestType.STORE, publishID, JKadConstants.toleranceZone) {
      public void lookupTimeout() {
        isStarted = false;
        updatePublishTime();
        task_listener.taskTimeOut(task_instance);
      }
View Full Code Here


      public void run() {
        if (getTotalContacts() < ROUTING_TABLE_DIFICIT_CONTACTS) {
          if ((lookup_new_contacts == null)||(!lookup_new_contacts.isLookupStarted())) {
           
            Int128 fake_target = new Int128(Utils.getRandomInt128());
            lookup_new_contacts = new LookupTask(RequestType.FIND_NODE, fake_target, JKadConstants.toleranceZone) {
              public void lookupTimeout() {
              }

              public void stopLookupEvent() {
              }
View Full Code Here

  }

  public void startSearch() {
    isStarted = true;
   
    lookup_task = new LookupTask(RequestType.FIND_NODE, searchID, JKadConstants.toleranceZone) {
      public void lookupTimeout() {
        isStarted = false;
        timeOut = JKadConstants.SEARCH_SOURCES_TIMEOUT;
      }
View Full Code Here

  }

  public void startSearch() {
    isStarted = true;
     
    lookup_task = new LookupTask(RequestType.FIND_VALUE, searchID, JKadConstants.toleranceZone) {
      public void lookupTimeout() {
        isStarted = false;
      }

      public void processToleranceContacts(ContactAddress sender,
View Full Code Here

  }
 
  public void startSearch() {
    isStarted = true;
       
    lookup_task = new LookupTask(RequestType.FIND_VALUE, searchID, JKadConstants.toleranceZone) {
      public void lookupTimeout() {}

      public void processToleranceContacts(ContactAddress sender,
          List<KadContact> results) {
       
View Full Code Here

    if (lookup_task!=null)
      if (lookup_task.isLookupStarted()) return;

    isStarted = true;
   
    lookup_task = new LookupTask(RequestType.STORE, publishID, JKadConstants.toleranceZone) {
      public void lookupTimeout() {
        isStarted = false;
        updatePublishTime();
        task_listener.taskTimeOut(task_instance);
      }
View Full Code Here

 
  public void start() {
    if (lookup_task!=null)
      if (lookup_task.isLookupStarted()) return;
    isStarted = true;
    lookup_task = new LookupTask(RequestType.STORE, publishID, JKadConstants.toleranceZone) {
       
      public void lookupTimeout() {
        isStarted = false;
        updatePublishTime();
        task_listener.taskTimeOut(task_instance);
View Full Code Here

TOP

Related Classes of org.jmule.core.jkad.lookup.LookupTask

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.