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, toStringpublic static final int START_PRIORITY_ROOT_DIRECTORY
public static RootDirectorySystem createAndAddService(Path rootDirectory) throws java.io.IOException
java.io.IOExceptionpublic static RootDirectorySystem createAndAddService(Path rootDirectory, Path dataDirectory) throws java.io.IOException
java.io.IOExceptionpublic static RootDirectorySystem getCurrent()
public static Path getCurrentDataDirectory()
public Path getRootDirectory()
public Path getDataDirectory()
public void setIgnoreLock(boolean isIgnoreLock)
public int getStartPriority()
ResinSubSystemgetStartPriority in interface ResinSubSystemgetStartPriority in class AbstractResinSubSystempublic void start()
throws java.lang.Exception
ResinSubSystemstart in interface ResinSubSystemstart in class AbstractResinSubSystemjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
ResinSubSystemstop in interface ResinSubSystemstop in class AbstractResinSubSystemjava.lang.Exception