public static class BrooklynServerPaths.PersistencePathResolver
extends java.lang.Object
Usage is to invoke BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
then to set location(String) and dir(String) as needed, and then to resolve().
| Modifier and Type | Method and Description |
|---|---|
BrooklynServerPaths.PersistencePathResolver |
dir(java.lang.String dirOrContainer)
Optional directory (for localhost/filesystem) or container name.
|
BrooklynServerPaths.PersistencePathResolver |
location(java.lang.String locationSpec)
Optional location spec.
|
java.lang.String |
resolve() |
public BrooklynServerPaths.PersistencePathResolver location(@Nullable java.lang.String locationSpec)
resolve() will return a container name suitable for use
with the store, based on the dir(String);
if not supplied, or blank, or localhost this will cause resolution to give a full file system path,
if relative taken with respect to the BrooklynServerPaths.getMgmtBaseDir(ManagementContext).
Config is not looked up for resolving a location spec.public BrooklynServerPaths.PersistencePathResolver dir(@Nullable java.lang.String dirOrContainer)
BrooklynServerPaths.DEFAULT_PERSISTENCE_DIR_FOR_FILESYSTEM and
BrooklynServerPaths.DEFAULT_PERSISTENCE_CONTAINER_NAME are used.public java.lang.String resolve()