public class RepositorySystem extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
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 |
---|
RepositorySystem(AbstractRepository repository) |
Modifier and Type | Method and Description |
---|---|
static RepositorySystem |
createAndAddService() |
static RepositorySystem |
createAndAddService(AbstractRepository repository) |
static RepositorySystem |
getCurrent() |
static Repository |
getCurrentRepository() |
static RepositorySpi |
getCurrentRepositorySpi() |
Repository |
getRepository() |
RepositorySpi |
getRepositorySpi() |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
java.lang.String |
toString() |
destroy, getStopPriority, isActive, preCreate
public static final int START_PRIORITY
public RepositorySystem(AbstractRepository repository)
public static RepositorySystem createAndAddService()
public static RepositorySystem createAndAddService(AbstractRepository repository)
public static RepositorySystem getCurrent()
public static Repository getCurrentRepository()
public static RepositorySpi getCurrentRepositorySpi()
public Repository getRepository()
public RepositorySpi getRepositorySpi()
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public void stop()
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem
public java.lang.String toString()
toString
in class AbstractResinSubSystem