com.caucho.env.service
Class RootDirectorySystem

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
      extended by com.caucho.env.service.RootDirectorySystem
All Implemented Interfaces:
ResinSubSystem

public class RootDirectorySystem
extends AbstractResinSubSystem

Root service for the root and data directories.


Field Summary
static int START_PRIORITY_ROOT_DIRECTORY
           
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Constructor Summary
RootDirectorySystem(Path rootDirectory, Path dataDirectory)
           
 
Method Summary
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.
 
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem
destroy, getStopPriority, preCreate, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_PRIORITY_ROOT_DIRECTORY

public static final int START_PRIORITY_ROOT_DIRECTORY
See Also:
Constant Field Values
Constructor Detail

RootDirectorySystem

public RootDirectorySystem(Path rootDirectory,
                           Path dataDirectory)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

createAndAddService

public static RootDirectorySystem createAndAddService(Path rootDirectory)
                                               throws java.io.IOException
Throws:
java.io.IOException

createAndAddService

public static RootDirectorySystem createAndAddService(Path rootDirectory,
                                                      Path dataDirectory)
                                               throws java.io.IOException
Throws:
java.io.IOException

getCurrent

public static RootDirectorySystem getCurrent()

getCurrentDataDirectory

public static Path getCurrentDataDirectory()
Returns the data directory for current active directory service.


getRootDirectory

public Path getRootDirectory()
Returns the root directory.


getDataDirectory

public Path getDataDirectory()
Returns the internal data directory.


getStartPriority

public int getStartPriority()
Description copied from interface: ResinSubSystem
Returns the start priority of the service, used to determine which services to start first.

Specified by:
getStartPriority in interface ResinSubSystem
Overrides:
getStartPriority in class AbstractResinSubSystem