Examples of NutFilePool


Examples of org.nutz.filepool.NutFilePool

  private NutFilePool pool;

  JdbcExpertConfigFile init() {
    String home = config.get("pool-home").toString();
    Integer max = (Integer) config.get("pool-max");//TODO maybe a Long
    pool = new NutFilePool(home, max);
    return this;
  }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

    context.setBufferSize(buffer);
    context.setCharset(charset);
  }

  public UploadAdaptor(String path, int buffer, String charset, int poolSize) {
    context = new UploadingContext(new NutFilePool(path, poolSize));
    context.setBufferSize(buffer);
    context.setCharset(charset);
  }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

    context.setBufferSize(buffer);
    context.setCharset(charset);
  }

  public UploadAdaptor(String path, int buffer, String charset, int poolSize, int maxFileSize) {
    context = new UploadingContext(new NutFilePool(path, poolSize));
    context.setBufferSize(buffer);
    context.setCharset(charset);
    context.setMaxFileSize(maxFileSize);
  }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

public class UploadingContext {
 
  private static final Log log = Logs.get();

  public static UploadingContext create(String poolPath) {
    return create(new NutFilePool(poolPath));
  }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

  public static UploadingContext create(FilePool pool) {
    return new UploadingContext(pool);
  }

  public UploadingContext(String poolPath) {
    this(new NutFilePool(poolPath, 2000));
  }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

    @Before
    public void before() {
        /*
         * 准备临时文件池
         */
        tmps = new NutFilePool("~/nutz/unit/uploadtmp");
    }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

        try {
            home = Disks.normalize(home);
            if (home == null)
              home = config.get("pool-home").toString();
            long max = ((Number) config.get("pool-max")).longValue();
            pool = new NutFilePool(home, max);
        } catch (Throwable e) {
            if (log.isWarnEnabled())
                log.warnf("NutDao FilePool create fail!! Blob and Clob Support is DISABLE!! Home="+home, e);
        }
        return this;
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

        context.setBufferSize(buffer);
        context.setCharset(charset);
    }

    public UploadAdaptor(String path, int buffer, String charset, int poolSize) {
        context = new UploadingContext(new NutFilePool(path, poolSize));
        context.setBufferSize(buffer);
        context.setCharset(charset);
    }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

        context.setBufferSize(buffer);
        context.setCharset(charset);
    }

    public UploadAdaptor(String path, int buffer, String charset, int poolSize, int maxFileSize) {
        context = new UploadingContext(new NutFilePool(path, poolSize));
        context.setBufferSize(buffer);
        context.setCharset(charset);
        context.setMaxFileSize(maxFileSize);
    }
View Full Code Here

Examples of org.nutz.filepool.NutFilePool

    @Before
    public void before() {
        /*
         * 准备临时文件池
         */
        tmps = new NutFilePool("~/nutz/unit/uploadtmp");
    }
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.