public static String uniqueEnvironment ( String prefix , String suffix , File directory ) throws IOException { File tmpDir = UNIQUE_DIRECTORY_CREATOR . create ( prefix , suffix , directory ) ; String randomFilename = UUID . randomUUID ( ) . toString ( ) ; File envNameAsFile = new File ( tmpDir , randomFilename ) ; return envNameAsFile . getAbsolutePath ( ) ; }
Creates a unique directory for housing a BDB environment and returns its name .