Package org.jcoredb.conf

Examples of org.jcoredb.conf.FileSystemConfig


   * @see org.jcoredb.fs.IFileSystem#create(int)
   */
  @Override
  public void create(int containerId) throws ContainerCreationErr
  {
    FileSystemConfig cfg = Configs.getFSConfig();
   
    Container c = new Container(this.path, containerId, cfg.getNumOfSegs(), cfg.getSegSize(), cfg.getBlockSize());
    c.create();
    this.containers.put(containerId, c);
  }
View Full Code Here


   * @see org.jcoredb.fs.IFileSystem#create(int, int, int, int)
   */
  @Override
  public void create(int containerId, int numOfSegs, int segSize, int blockSize) throws ContainerCreationErr
  {
    FileSystemConfig cfg = Configs.getFSConfig();
   
    Container c = new Container(this.path, containerId, numOfSegs, segSize, blockSize);
    c.create();
    this.containers.put(containerId, c);
  }
View Full Code Here

    fs.create(0);
   
    fs = new FileSystem(Constants.ROOT_PATH);
    fs.open();
   
    FileSystemConfig cfg = Configs.getFSConfig();   
   
    ISegment[] segments = fs.getContainer(0).getSegments();
   
    assertEquals(cfg.getNumOfSegs(), segments.length);
   
    fs.close();
  }
View Full Code Here

TOP

Related Classes of org.jcoredb.conf.FileSystemConfig

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.