Examples of deleteOnExit()


Examples of java.io.File.deleteOnExit()

        btree.drop();
    }

    public void xtestExtHash_Large3001Buckets() throws IOException, DbException {
        File tmpFile = File.createTempFile("exthash", ".tmp");
        tmpFile.deleteOnExit();
        int buckets = Primes.findLeastPrimeNumber(3000);
        SortedStaticHash hash = new SortedStaticHash(tmpFile, buckets);
        hash.create(false);

        List<byte[]> list = new ArrayList<byte[]>(REPEAT);
View Full Code Here

Examples of java.io.File.deleteOnExit()

        hash.drop();
    }

    public void xtestExtHash_Large3001Buckets_2KPage() throws IOException, DbException {
        File tmpFile = File.createTempFile("exthash", ".tmp");
        tmpFile.deleteOnExit();
        int buckets = Primes.findLeastPrimeNumber(3000);
        SortedStaticHash hash = new SortedStaticHash(tmpFile, 1024 * 2, buckets);
        hash.create(false);

        List<byte[]> list = new ArrayList<byte[]>(REPEAT);
View Full Code Here

Examples of java.io.File.deleteOnExit()

        hash.drop();
    }

    public void xtestExtHash_Default1021Buckets() throws IOException, DbException {
        File tmpFile = File.createTempFile("exthash", ".tmp");
        tmpFile.deleteOnExit();
        int buckets = Primes.findLeastPrimeNumber(REPEAT / 100);
        SortedStaticHash hash = new SortedStaticHash(tmpFile, buckets);
        hash.create(false);

        List<byte[]> list = new ArrayList<byte[]>(REPEAT);
View Full Code Here

Examples of java.io.File.deleteOnExit()

        hash.drop();
    }

    public void testBFile() throws IOException, DbException {
        File tmpFile = File.createTempFile("bfile", ".tmp");
        tmpFile.deleteOnExit();
        BIndexFile bfile = new BIndexFile(tmpFile, false);
        bfile.create(false);

        List<byte[]> list = new ArrayList<byte[]>(REPEAT);
        Random random = new Random(54552542345L);
View Full Code Here

Examples of java.io.File.deleteOnExit()

    }

    @Test
    public void testWrite() throws IOException {
        File tmpFile = new File("testWrite.tmp");
        tmpFile.deleteOnExit();
        if(tmpFile.exists()) {
            tmpFile.delete();
        }
        System.out.println("tmpFile: " + tmpFile.getAbsolutePath());
        VarSegmentsBFile segment = new VarSegmentsBFile(tmpFile);
View Full Code Here

Examples of java.io.File.deleteOnExit()

    }

    @Test
    public void testWriteUpdate() throws IOException {
        File tmpFile = new File("testWriteUpdate.tmp");
        tmpFile.deleteOnExit();
        if(tmpFile.exists()) {
            assertTrue("delete file failed: " + tmpFile.getAbsolutePath(), tmpFile.delete());
        }
        System.out.println("tmpFile: " + tmpFile.getAbsolutePath());
        VarSegmentsBFile segment = new VarSegmentsBFile(tmpFile);
View Full Code Here

Examples of java.io.File.deleteOnExit()

    }

    @Test
    public void testFixedSegmentWrite() throws IOException {
        File tmpFile = new File("testFixedSegmentWrite.tmp");
        tmpFile.deleteOnExit();
        if(tmpFile.exists()) {
            tmpFile.delete();
        }
        System.out.println("tmpFile: " + tmpFile.getAbsolutePath());
        FixedSegments segment = new FixedSegments(tmpFile, 3);
View Full Code Here

Examples of java.io.File.deleteOnExit()

    }

    @Test
    public void testVSegmentsWrite() throws IOException {
        File tmpFile = new File("testVSegmentsWrite.tmp");
        tmpFile.deleteOnExit();
        if(tmpFile.exists()) {
            tmpFile.delete();
        }
        System.out.println("tmpFile: " + tmpFile.getAbsolutePath());
        VarSegments segment = new VarSegments(tmpFile);
View Full Code Here

Examples of java.io.File.deleteOnExit()

    }

    @Test
    public void testVSegmentsWriteUpdate() throws IOException {
        File tmpFile = new File("testVSegmentsWriteUpdate.tmp");
        tmpFile.deleteOnExit();
        if(tmpFile.exists()) {
            assertTrue("delete file failed: " + tmpFile.getAbsolutePath(), tmpFile.delete());
        }
        System.out.println("tmpFile: " + tmpFile.getAbsolutePath());
        VarSegments segment = new VarSegments(tmpFile);
View Full Code Here

Examples of java.io.File.deleteOnExit()

        dtde.rejectDrop();
        dtde.dropComplete(false);
      }

      if (!tmpFile.delete()) {
        tmpFile.deleteOnExit();
      }
    } catch (MalformedURLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IOException e) {
View Full Code Here
TOP
Copyright © 2015 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.