Search in sources :

Example 11 with FilesystemInfo

use of org.platformlayer.ops.filesystem.FilesystemInfo in project platformlayer by platformlayer.

the class HdbDatabaseEntry method alreadyExists.

@Override
protected boolean alreadyExists() throws OpsException {
    OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);
    FilesystemInfo dirInfo = target.getFilesystemInfoFile(new File(getDataDirectory(), "objectClass.bdb"));
    return dirInfo != null;
}
Also used : OpsTarget(org.platformlayer.ops.OpsTarget) FilesystemInfo(org.platformlayer.ops.filesystem.FilesystemInfo) File(java.io.File)

Aggregations

FilesystemInfo (org.platformlayer.ops.filesystem.FilesystemInfo)11 File (java.io.File)5 Command (org.platformlayer.ops.Command)3 OpsTarget (org.platformlayer.ops.OpsTarget)3 Handler (org.platformlayer.ops.Handler)2 OpsException (org.platformlayer.ops.OpsException)2 ProcessExecution (org.platformlayer.ops.process.ProcessExecution)2 ProcessExecutionException (org.platformlayer.ops.process.ProcessExecutionException)2 Md5Hash (com.fathomdb.hash.Md5Hash)1 List (java.util.List)1 HostPolicy (org.platformlayer.core.model.HostPolicy)1 TagChanges (org.platformlayer.core.model.TagChanges)1 Tags (org.platformlayer.core.model.Tags)1 DiskImageRecipe (org.platformlayer.images.model.DiskImageRecipe)1 ChrootOpsTarget (org.platformlayer.ops.ChrootOpsTarget)1 CommandEnvironment (org.platformlayer.ops.CommandEnvironment)1 Machine (org.platformlayer.ops.Machine)1 MachineCreationRequest (org.platformlayer.ops.MachineCreationRequest)1 SshKey (org.platformlayer.ops.helpers.SshKey)1 ImageFormat (org.platformlayer.ops.images.ImageFormat)1