public class BrooklynServerPaths
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BrooklynServerPaths.PersistenceBackupPathResolver
Similar to
BrooklynServerPaths.PersistencePathResolver , but designed for use for backup subpaths. |
static class |
BrooklynServerPaths.PersistencePathResolver
Utility for computing the path (dir or container name) to use for persistence.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PERSISTENCE_CONTAINER_NAME |
static java.lang.String |
DEFAULT_PERSISTENCE_DIR_FOR_FILESYSTEM
on file system, the 'data' subdir is used so that there is an obvious place to put backup dirs
|
Constructor and Description |
---|
BrooklynServerPaths() |
public static final java.lang.String DEFAULT_PERSISTENCE_CONTAINER_NAME
public static final java.lang.String DEFAULT_PERSISTENCE_DIR_FOR_FILESYSTEM
public static java.lang.String getMgmtBaseDir(ManagementContext mgmt)
~/.brooklyn/
.
Also see other variants of this method if a ManagementContext
is not yet available.
public static java.lang.String getMgmtBaseDir(StringConfigMap brooklynProperties)
getMgmtBaseDir(ManagementContext)
public static java.lang.String getMgmtBaseDir(java.util.Map<java.lang.String,?> brooklynProperties)
getMgmtBaseDir(ManagementContext)
public static BrooklynServerPaths.PersistencePathResolver newMainPersistencePathResolver(StringConfigMap brooklynProperties)
public static BrooklynServerPaths.PersistencePathResolver newMainPersistencePathResolver(ManagementContext mgmt)
public static BrooklynServerPaths.PersistenceBackupPathResolver newBackupPersistencePathResolver(ManagementContext mgmt)
public static java.io.File getBrooklynWebTmpDir(ManagementContext mgmt)
public static java.io.File getOsgiCacheDir(ManagementContext mgmt)
public static boolean isOsgiCacheForCleaning(ManagementContext mgmt, java.io.File cacheDir)
public static java.io.File getOsgiCacheDirCleanedIfNeeded(ManagementContext mgmt)