public class RootDirectorySystem extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY_ROOT_DIRECTORY |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
RootDirectorySystem(Path rootDirectory,
Path dataDirectory) |
Modifier and Type | Method and Description |
---|---|
static RootDirectorySystem |
createAndAddService(Path rootDirectory) |
static RootDirectorySystem |
createAndAddService(Path rootDirectory,
Path dataDirectory) |
static RootDirectorySystem |
getCurrent() |
static Path |
getCurrentDataDirectory()
Returns the data directory for current active directory service.
|
Path |
getDataDirectory()
Returns the internal data directory.
|
Path |
getRootDirectory()
Returns the root directory.
|
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
void |
setIgnoreLock(boolean isIgnoreLock) |
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
destroy, getStopPriority, isActive, preCreate, toString
public static final int START_PRIORITY_ROOT_DIRECTORY
public static RootDirectorySystem createAndAddService(Path rootDirectory) throws java.io.IOException
java.io.IOException
public static RootDirectorySystem createAndAddService(Path rootDirectory, Path dataDirectory) throws java.io.IOException
java.io.IOException
public static RootDirectorySystem getCurrent()
public static Path getCurrentDataDirectory()
public Path getRootDirectory()
public Path getDataDirectory()
public void setIgnoreLock(boolean isIgnoreLock)
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start() throws java.lang.Exception
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
java.lang.Exception
public void stop() throws java.lang.Exception
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem
java.lang.Exception