1 8 9 package com.sleepycat.je.cleaner; 10 11 import java.io.File ; 12 13 import com.sleepycat.je.Environment; 14 import com.sleepycat.je.EnvironmentConfig; 15 import com.sleepycat.je.util.TestUtils; 16 17 20 public class ReadOnlyProcess { 21 22 public static void main(String [] args) { 23 24 28 try { 29 EnvironmentConfig envConfig = TestUtils.initEnvConfig(); 30 envConfig.setTransactional(true); 31 envConfig.setReadOnly(true); 32 33 File envHome = new File (System.getProperty(TestUtils.DEST_DIR)); 34 Environment env = new Environment(envHome, envConfig); 35 36 39 40 ReadOnlyLockingTest.createProcessFile(); 41 42 43 Thread.sleep(Long.MAX_VALUE); 44 } catch (Exception e) { 45 46 e.printStackTrace(System.err); 47 System.exit(1); 48 } 49 } 50 } 51 | Popular Tags |