Examples of park()


Examples of freenet.node.Node.park()

          node.park();
      } catch (Throwable t1) {
      }
      try {
        if (node2 != null)
          node2.park();
      } catch (Throwable t1) {
      }

      File file = new File(uid + ".csv");
      writeToStatusLog(file, csvLine);
View Full Code Here

Examples of freenet.node.Node.park()

          node.park();
      } catch (Throwable t1) {
      }
      try {
        if (node2 != null)
          node2.park();
      } catch (Throwable t1) {
      }

      File file = new File(uid + ".csv");
      writeToStatusLog(file, csvLine);
View Full Code Here

Examples of freenet.node.Node.park()

          node.park();
      } catch (Throwable tt) {
      }
      try {
        if (node2 != null)
          node2.park();
      } catch (Throwable tt) {
      }
      Closer.close(fis);

      if(!dumpOnly) {
View Full Code Here

Examples of freenet.node.Node.park()

        fis.close();
        executor = new PooledExecutor();
        secondNode = NodeStarter.createTestNode(DARKNET_PORT2, OPENNET_PORT2, dir.getPath(), false, Node.DEFAULT_MAX_HTL, 0, random, executor, 1000, 5*1024*1024, true, true, true, true, true, true, true, 12*1024, false, true, false, false, ipOverride);       
        secondNode.start(true);
    if (!TestUtil.waitForNodes(secondNode)) {
      secondNode.park();
      System.exit(EXIT_FAILED_TARGET);
    }
       
        // Fetch the data
        long startFetchTime = System.currentTimeMillis();
View Full Code Here

Examples of freenet.node.Node.park()

      System.exit(EXIT_FETCH_FAILED);
      return;
    }
    long endFetchTime = System.currentTimeMillis();
    System.err.println("RESULT: Fetch took "+(endFetchTime-startFetchTime)+"ms ("+TimeUtil.formatTime(endFetchTime-startFetchTime)+") of "+uri+" .");
    secondNode.park();
    System.exit(0);
      } catch (Throwable t) {
        System.err.println("CAUGHT: "+t);
        t.printStackTrace();
        try {
View Full Code Here

Examples of freenet.node.Node.park()

          if(node != null)
            node.park();
        } catch (Throwable t1) {}
        try {
          if(secondNode != null)
            secondNode.park();
        } catch (Throwable t1) {}

        System.exit(EXIT_THREW_SOMETHING);
      }
  }
View Full Code Here

Examples of freenet.node.Node.park()

          node.park();
      } catch (Throwable tt) {
      }
      try {
        if (node2 != null)
          node2.park();
      } catch (Throwable tt) {
      }
      Closer.close(fis);
      writeToStatusLog(file, csvLine);
View Full Code Here

Examples of freenet.node.Node.park()

          node.park();
      } catch (Throwable t1) {
      }
      try {
        if (node2 != null)
          node2.park();
      } catch (Throwable t1) {
      }

      File file = new File(uid + ".csv");
      writeToStatusLog(file, csvLine);
View Full Code Here

Examples of freenet.node.Node.park()

      br.close();
      if(firstSample < countSince && successes == 0)
        System.err.println("RESULT:"+peer.getIdentityString()+" NOT CONNECTED IN LAST WEEK! LAST CONNECTED: "+(lastSuccess > 0 ? TimeUtil.formatTime(writeTime - lastSuccess) : "NEVER"));
      System.out.println(peer.getIdentityString()+" : last success "+(lastSuccess > 0 ? TimeUtil.formatTime(writeTime - lastSuccess) : "NEVER")+" failures in last week: "+failures+" successes in last week: "+successes);
    }
    node.park();
    System.exit(0);
    } catch (Throwable t) {
      System.err.println("CAUGHT: "+t);
      t.printStackTrace();
      try {
View Full Code Here

Examples of freenet.node.Node.park()

    } catch (Throwable t) {
      System.err.println("CAUGHT: "+t);
      t.printStackTrace();
      try {
        if(node != null)
        node.park();
      } catch (Throwable t1) {}
      System.exit(1);
    }
    }
}
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.