/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/setup/ |
H A D | TestSetupHelper.java | 40 * @param destinationDirectory The extract directory. 59 public FileVisitResult preVisitDirectory(Path directory, BasicFileAttributes attributes) 61 Path directoryToCreate = Paths.get(destinationDirectory.toString(), directory.toString()); 72 * Deletes the given {@literal directory} from the file system. 74 * @param directory The directory to delete. 75 * @throws IOException If the directory could not be deleted. 77 public static void deleteDirectory(File directory) throws IOException { argument 78 if (!directory.exists()) { 81 Files.walkFileTree(directory [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/api/ |
H A D | DiskSpaceMonitorHandler.java | 44 * @param directory the directory for which the threshold has been triggered 47 void diskLowThresholdReached(File directory, long thresholdInBytes); argument 52 * @param directory the directory for which the threshold has been triggered 55 void diskFullThresholdReached(File directory, long thresholdInBytes); argument 60 * @param directory the directory for which the threshold has been triggeredTODO 65 void diskSpaceRestored(File directory, long lowThresholdInBytes, long fullThresholdInBytes); argument
|
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/setup/ |
H A D | ZipUtils.java | 43 * Creates a zip file containing the {@literal directory} and its sub-files, including the 44 * directory itself. 46 * @param directory The source directory which will be zipped. 50 public void zipDirectory(File directory, File destination) throws IOException { argument 51 File[] files = directory.listFiles(); 53 throw new IOException("Failed to list contents of: " + directory); 57 zipFile(outputStream, file, (directory.getParentFile().getPath() + File.separator).length());
|
/forgerock/opendj-b2.6/src/server/org/opends/server/core/ |
H A D | SchemaConfigManager.java | 112 * Retrieves the path to the directory containing the server schema files. 114 * @return The path to the directory containing the server schema files. 199 public boolean accept(File directory, String filename) argument 210 * server schema files. These files will be located in a single directory and 226 // Construct the path to the directory that should contain the schema files 227 // and make sure that it exists and is a directory. Get a list of the files 228 // in that directory sorted in alphabetic order.
|
/forgerock/opendj-b2.6/src/server/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 67 private volatile File directory; field in class:DiskSpaceMonitor 82 * @param directory The directory to monitor. 90 public DiskSpaceMonitor(String instanceName, File directory, argument 94 this.directory = directory; 104 * Retrieves the directory currently being monitored. 106 * @return The directory currently being monitored. 109 return directory; 113 * Sets the directory t 117 setDirectory(File directory) argument [all...] |
/forgerock/opendj2/src/server/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 66 private volatile File directory; field in class:DiskSpaceMonitor 81 * @param directory The directory to monitor. 89 public DiskSpaceMonitor(String instanceName, File directory, argument 93 this.directory = directory; 103 * Retrieves the directory currently being monitored. 105 * @return The directory currently being monitored. 108 return directory; 112 * Sets the directory t 116 setDirectory(File directory) argument [all...] |
/forgerock/opendj2.6.2/src/server/org/opends/server/core/ |
H A D | SchemaConfigManager.java | 112 * Retrieves the path to the directory containing the server schema files. 114 * @return The path to the directory containing the server schema files. 199 public boolean accept(File directory, String filename) argument 210 * server schema files. These files will be located in a single directory and 226 // Construct the path to the directory that should contain the schema files 227 // and make sure that it exists and is a directory. Get a list of the files 228 // in that directory sorted in alphabetic order.
|
/forgerock/opendj2.6.2/src/server/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 67 private volatile File directory; field in class:DiskSpaceMonitor 82 * @param directory The directory to monitor. 90 public DiskSpaceMonitor(String instanceName, File directory, argument 94 this.directory = directory; 104 * Retrieves the directory currently being monitored. 106 * @return The directory currently being monitored. 109 return directory; 113 * Sets the directory t 117 setDirectory(File directory) argument [all...] |
/forgerock/opendj2-jel-hg/src/server/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 67 private volatile File directory; field in class:DiskSpaceMonitor 82 * @param directory The directory to monitor. 90 public DiskSpaceMonitor(String instanceName, File directory, argument 94 this.directory = directory; 104 * Retrieves the directory currently being monitored. 106 * @return The directory currently being monitored. 109 return directory; 113 * Sets the directory t 117 setDirectory(File directory) argument [all...] |
/forgerock/opendj2-hg/src/server/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 66 private volatile File directory; field in class:DiskSpaceMonitor 81 * @param directory The directory to monitor. 89 public DiskSpaceMonitor(String instanceName, File directory, argument 93 this.directory = directory; 103 * Retrieves the directory currently being monitored. 105 * @return The directory currently being monitored. 108 return directory; 112 * Sets the directory t 116 setDirectory(File directory) argument [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/ |
H A D | StorageUtils.java | 49 * Returns a database directory file from the provided parent database directory and backendId. 51 * @param parentDbDirectory the parent database directory 53 * @return a database directory file where to store data for the provided backendId 63 * @param backendDir the backend directory where to set the storage files 64 * @param dbDirPermissions the permissions to set for the database directory 90 * Checks a directory exists or can actually be created. 92 * @param backendDir the directory to check for 94 * @param cleanup true if the directory should be deleted after creation 116 * Returns false if directory permission 231 statusWhenDiskSpaceFull(File directory, long thresholdInBytes, String backendId) argument 245 statusWhenDiskSpaceLow(File directory, long thresholdInBytes, String backendId) argument [all...] |
/forgerock/openam-v13/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/record/ |
H A D | DebugTestTemplate.java | 49 //use the current test directory. You can modify it for debugging purpose 88 * Check if a directory exist 90 * @param directory directory 93 protected boolean isDirectoryExist(String directory) { argument 94 String fullPath = debugDirectory + File.separator + directory; 115 //directory is empty, then delete it 123 //list all the directory contents 134 //check the directory again, if empty then delete it
|
/forgerock/openam/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/record/ |
H A D | DebugTestTemplate.java | 49 //use the current test directory. You can modify it for debugging purpose 88 * Check if a directory exist 90 * @param directory directory 93 protected boolean isDirectoryExist(String directory) { argument 94 String fullPath = debugDirectory + File.separator + directory; 115 //directory is empty, then delete it 123 //list all the directory contents 134 //check the directory again, if empty then delete it
|
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/core/ |
H A D | SchemaHandler.java | 64 * <li>Load all schema files located in the schema directory.</li> 187 * Retrieves the path to the directory containing the server schema files. 189 * @return The path to the directory containing the server schema files. 248 /** Returns the list of names of schema files contained in the provided directory. */ 368 public boolean accept(File directory, String filename) argument
|
H A D | SchemaConfigManager.java | 89 * Retrieves the path to the directory containing the server schema files. 91 * @return The path to the directory containing the server schema files. 172 public boolean accept(File directory, String filename) argument 183 * server schema files. These files will be located in a single directory and 199 // Construct the path to the directory that should contain the schema files 200 // and make sure that it exists and is a directory. Get a list of the files 201 // in that directory sorted in alphabetic order.
|
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/util/ |
H A D | BackupManagerTestCase.java | 80 // - a mock of a backupable (building the mock also involves creating directory and files to backup) 162 // change content of directory to later check that backup is recovering everything 213 // change content of directory to later check that backup is recovering everything 234 File directory = TestCaseUtils.createTemporaryDirectory("createDirectory-"); 235 String dirPath = directory.getAbsolutePath(); 236 // delete the directory to ensure creation works fine when there is no directory 237 directory.delete(); 259 // all files should have been saved in the target directory, with correct sub-path 306 Reporter.log("Create backup directory 351 createFilesInDirectoryToBackup(Path directory, int numberOfFiles) argument [all...] |
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/ |
H A D | BackupManager.java | 128 * file in the backup directory. If the backup is incremental, then the 133 * @param backendDir The directory of the backend instance for 653 // Create a restore directory with a different name to the backend 654 // directory. 658 // FIXME: It's odd that we try to clean the directory before creating it 719 // Delete the current backend directory and rename the restore directory. 733 private void cleanup(File directory) { argument 734 File[] files = directory.listFiles(); 747 * @param backupDir The backup directory structur [all...] |
/forgerock/opendj2/src/server/org/opends/server/core/ |
H A D | SchemaConfigManager.java | 82 * Retrieves the path to the directory containing the server schema files. 84 * @return The path to the directory containing the server schema files. 169 public boolean accept(File directory, String filename) argument 180 * server schema files. These files will be located in a single directory and 196 // Construct the path to the directory that should contain the schema files 197 // and make sure that it exists and is a directory. Get a list of the files 198 // in that directory sorted in alphabetic order.
|
/forgerock/opendj2-hg/src/server/org/opends/server/backends/jeb/ |
H A D | BackupManager.java | 128 * file in the backup directory. If the backup is incremental, then the 133 * @param backendDir The directory of the backend instance for 653 // Create a restore directory with a different name to the backend 654 // directory. 658 // FIXME: It's odd that we try to clean the directory before creating it 719 // Delete the current backend directory and rename the restore directory. 733 private void cleanup(File directory) { argument 734 File[] files = directory.listFiles(); 747 * @param backupDir The backup directory structur [all...] |
/forgerock/opendj2-hg/src/server/org/opends/server/core/ |
H A D | SchemaConfigManager.java | 82 * Retrieves the path to the directory containing the server schema files. 84 * @return The path to the directory containing the server schema files. 169 public boolean accept(File directory, String filename) argument 180 * server schema files. These files will be located in a single directory and 196 // Construct the path to the directory that should contain the schema files 197 // and make sure that it exists and is a directory. Get a list of the files 198 // in that directory sorted in alphabetic order.
|
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/admin/ |
H A D | ClassLoaderProvider.java | 123 /** The name of the lib directory. */ 126 /** The name of the extensions directory. */ 230 // First load the extension from the install directory, then from the instance directory. 241 private File buildExtensionPath(String directory) { argument 242 File libDir = new File(directory, LIB_DIR); 453 // The extensions directory does not exist. This is not a critical problem. 459 // The extensions directory is not a directory. This is more critical.
|
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/extensions/ |
H A D | DiskSpaceMonitor.java | 83 private volatile File directory; field in class:DiskSpaceMonitor.MonitoredDirectory 91 private MonitoredDirectory(File directory, String instanceName, String baseName, DiskSpaceMonitorHandler handler) argument 93 this.directory = directory; 115 monitorAttrs.add(attr("disk-dir", getDefaultStringSyntax(), directory.getPath())); 122 return directory; 126 return directory.getUsableSpace(); 169 * One object per directory per state will hold all the handlers matching directory and state. 172 private File directory; field in class:DiskSpaceMonitor.HandlerNotifier 178 HandlerNotifier(File directory, int state) argument 266 registerMonitoredDirectory(String instanceName, File directory, long lowThresholdBytes, long fullThresholdBytes, DiskSpaceMonitorHandler handler) argument 307 getMountPoint(File directory) argument 335 deregisterMonitoredDirectory(File directory, DiskSpaceMonitorHandler handler) argument [all...] |
/forgerock/opendj-v3/opendj-config/src/main/java/org/forgerock/opendj/config/ |
H A D | ConfigurationFramework.java | 130 /** The name of the lib directory. */ 133 /** The name of the extensions directory. */ 199 * and the current working directory as the install and instance path. 481 // First load the extension from the install directory, then 482 // from the instance directory. 493 private File buildExtensionPath(String directory) { argument 494 File libDir = new File(directory, LIB_DIR); 516 // The extensions directory does not exist. This is not a critical problem. 522 // The extensions directory is not a directory [all...] |
/forgerock/openam-v13/openam-tools/openam-installtools/src/main/java/com/sun/identity/install/tools/util/ |
H A D | FileUtils.java | 117 * Method copyJarFile to destination directory 205 * Method removeDir. All the files in the directory will be removed 207 * @param directory 208 * to be removed. @ return true if the directory is deleted. False other 214 // Delete the contents of the directory! 229 // Now delete the directory! 231 Debug.log("FileUtils.removeDir() Unable to delete directory: " 240 * Method removeJarFiles. jar files will be removed from source directory 242 * @param srcDir - Source directory 259 * Method removeFiles. All the files existing in source directory 385 isDirValid(String directory) argument [all...] |
/forgerock/openam/openam-tools/openam-installtools/src/main/java/com/sun/identity/install/tools/util/ |
H A D | FileUtils.java | 116 * Method copyJarFile to destination directory 205 * Method removeDir. All the files in the directory will be removed 208 * to be removed. @ return true if the directory is deleted. False other 214 // Delete the contents of the directory! 229 // Now delete the directory! 231 Debug.log("FileUtils.removeDir() Unable to delete directory: " 240 * Method removeJarFiles. jar files will be removed from source directory 242 * @param srcDir - Source directory 259 * Method removeFiles. All the files existing in source directory 262 * @param srcDir - Source directory t 385 isDirValid(String directory) argument [all...] |