Package freenet.client.async

Examples of freenet.client.async.PersistentJob


      if(cache != null) {
        cache.updateStarted(identifier, false);
      }
    }
    if(persistence == Persistence.FOREVER) {
    server.core.clientContext.jobRunner.queue(new PersistentJob() {

      @Override
      public boolean run(ClientContext context) {
          try {
              restart(context, disableFilterData);
View Full Code Here


    if(req == null && !global) {
      req = handler.removeRequestByIdentifier(identifier, true);
    }
    if(req == null) {
        try {
                handler.server.core.clientContext.jobRunner.queue(new PersistentJob() {
                   
                    @Override
                    public boolean run(ClientContext context) {
                        try {
                            ClientRequest req = handler.removePersistentForeverRequest(global, identifier);
View Full Code Here

  }
 
  private void handleCompatibilityMode(final SplitfileCompatibilityModeEvent ce, ClientContext context) {
      if(persistence == Persistence.FOREVER && context.jobRunner.hasLoaded()) {
          try {
              context.jobRunner.queue(new PersistentJob() {
                 
                  @Override
                  public boolean run(ClientContext context) {
                      innerHandleCompatibilityMode(ce, context);
                      return false;
View Full Code Here

  public boolean removeGlobalRequestBlocking(final String identifier) throws MessageInvalidException, PersistenceDisabledException {
    if(!globalRebootClient.removeByIdentifier(identifier, true, this, core.clientContext)) {
      final CountDownLatch done = new CountDownLatch(1);
      final AtomicBoolean success = new AtomicBoolean();
      core.clientContext.jobRunner.queue(new PersistentJob() {

        @Override
        public String toString() {
          return "FCP removeGlobalRequestBlocking";
        }
View Full Code Here

  public boolean removeAllGlobalRequestsBlocking() throws PersistenceDisabledException {
    globalRebootClient.removeAll(core.clientContext);
    final CountDownLatch done = new CountDownLatch(1);
    final AtomicBoolean success = new AtomicBoolean();
    core.clientContext.jobRunner.queue(new PersistentJob() {

      @Override
      public String toString() {
        return "FCP removeAllGlobalRequestsBlocking";
      }
View Full Code Here

      IOException ioe;
      boolean done;
    }

    final OutputWrapper ow = new OutputWrapper();
    core.clientContext.jobRunner.queue(new PersistentJob() {

      @Override
      public String toString() {
        return "FCP makePersistentGlobalRequestBlocking";
      }
View Full Code Here

      class OutputWrapper {
        boolean success;
        boolean done;
      }
      final OutputWrapper ow = new OutputWrapper();
      core.clientContext.jobRunner.queue(new PersistentJob() {

        @Override
        public String toString() {
          return "FCP modifyGlobalRequestBlocking";
        }
View Full Code Here

      class OutputWrapper {
        boolean done;
        IdentifierCollisionException collided;
      }
      final OutputWrapper ow = new OutputWrapper();
      core.clientContext.jobRunner.queue(new PersistentJob() {

        @Override
        public String toString() {
          return "FCP startBlocking";
        }
View Full Code Here

        boolean done;
        boolean success;
      }
      final OutputWrapper ow = new OutputWrapper();
            if(logMINOR) Logger.minor(this, "Queueing restart of "+identifier);
      core.clientContext.jobRunner.queue(new PersistentJob() {

        @Override
        public String toString() {
          return "FCP restartBlocking";
        }
View Full Code Here

      boolean done;
    }

    final OutputWrapper ow = new OutputWrapper();

    core.clientContext.jobRunner.queue(new PersistentJob() {

      @Override
      public String toString() {
        return "FCP getCompletedRequestBlocking";
      }
View Full Code Here

TOP

Related Classes of freenet.client.async.PersistentJob

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.