Package freenet.client.async

Examples of freenet.client.async.PersistenceDisabledException


  }

  @Override
  RandomAccessBucket createBucket(BucketFactory bf, long length, FCPServer server) throws IOException, PersistenceDisabledException {
    if(persistence == Persistence.FOREVER) {
        if(server.core.killedDatabase()) throw new PersistenceDisabledException();
      return server.core.persistentTempBucketFactory.makeBucket(length);
    } else {
      return super.createBucket(bf, length, server);
    }
  }
View Full Code Here


      persistentRoot.maybeUnregisterClient(client);
    }
  }

  public RequestStatus[] getGlobalRequests() throws PersistenceDisabledException {
    if(core.killedDatabase()) throw new PersistenceDisabledException();
    List<RequestStatus> v = new ArrayList<RequestStatus>();
    globalRebootClient.addPersistentRequestStatus(v);
    if(globalForeverClient != null)
      globalForeverClient.addPersistentRequestStatus(v);
    return v.toArray(new RequestStatus[v.size()]);
View Full Code Here

TOP

Related Classes of freenet.client.async.PersistenceDisabledException

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.