Package nexj.core.meta.persistence.file

Examples of nexj.core.meta.persistence.file.FileDataSourceFragment


         //Interpret badly-formatted OID as "not found"
         return new InstanceArrayList(0);
      }

      //Open file directly
      FileDataSourceFragment fragment = (FileDataSourceFragment)query.getFragment();
      File dataFile = nexj.core.rpc.file.ra.FileManagedConnection.splitNameToSubdirs(
         new File(fragment.getDataDirectory()), sDataFileName,
            fragment.getMaxNameSplits(), fragment.getNameSplitSize(), false);

      if (!dataFile.exists())
      {
         //Not found
         return new InstanceArrayList(0);
View Full Code Here


        
         DataSource ds = metadata.getDataSource("TestFilePersistenceDataSource");
        
         assertEquals(2, ds.getFragmentCount());
        
         FileDataSourceFragment defaultFrag = (FileDataSourceFragment)ds.getDefaultFragment();
         FileDataSourceFragment fragment1 = (FileDataSourceFragment)ds.getFragment("fragment1");
        
         defaultFrag.debugSettings(dataDir.getAbsolutePath(),
            tempDir.getAbsolutePath(),
            jrnlDir.getAbsolutePath());
        
         fragment1.debugSettings(dataDir1.getAbsolutePath(),
            tempDir1.getAbsolutePath(),
            jrnlDir1.getAbsolutePath());
        
         // Create it
         assertNull(context.beginTransaction());
View Full Code Here

        
         DataSource ds = metadata.getDataSource("TestFilePersistenceDataSource");
        
         assertEquals(1, ds.getFragmentCount());
        
         FileDataSourceFragment defaultFrag = (FileDataSourceFragment)ds.getDefaultFragment();
        
         defaultFrag.debugSettings(dataDir.getAbsolutePath(),
            tempDir.getAbsolutePath(),
            jrnlDir.getAbsolutePath());
        
        
         // Create it
View Full Code Here

        
         DataSource ds = metadata.getDataSource("TestFilePersistenceDataSource");
        
         assertEquals(1, ds.getFragmentCount());
        
         FileDataSourceFragment defaultFrag = (FileDataSourceFragment)ds.getDefaultFragment();
        
         defaultFrag.debugSettings(dataDir.getAbsolutePath(),
            tempDir.getAbsolutePath(),
            jrnlDir.getAbsolutePath());
        
        
         // Create it
View Full Code Here

        
         DataSource ds = metadata.getDataSource("TestFilePersistenceDataSource");
        
         assertEquals(1, ds.getFragmentCount());
        
         FileDataSourceFragment defaultFrag = (FileDataSourceFragment)ds.getDefaultFragment();
        
         defaultFrag.debugSettings(dataDir.getAbsolutePath(),
            tempDir.getAbsolutePath(),
            jrnlDir.getAbsolutePath());
        
         //Write a data file
         File dataFile = new File(dataDir, "u_" + SysUtil.FILE_SEP + "__" + SysUtil.FILE_SEP + "__" + SysUtil.FILE_SEP + "u");
View Full Code Here

        
         DataSource ds = metadata.getDataSource("TestFilePersistenceDataSource");
        
         assertEquals(1, ds.getFragmentCount());
        
         FileDataSourceFragment defaultFrag = (FileDataSourceFragment)ds.getDefaultFragment();
        
         defaultFrag.debugSettings(dataDir.getAbsolutePath(),
            tempDir.getAbsolutePath(),
            jrnlDir.getAbsolutePath());
        
         //Write a data file
         File dataFile = new File(dataDir, "d_" + SysUtil.FILE_SEP + "__" + SysUtil.FILE_SEP + "__" + SysUtil.FILE_SEP + "d");
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.file.FileDataSourceFragment

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.