Пример #1
0
  /** @category Repository */
  public InternalRepository restartRepository(String name) {
    IRepositoryConfig repositoryConfig = getRepositoryConfig();

    try {
      repositoryConfig.setRestarting(true);
      InternalRepository repo = getRepository(name);
      LifecycleUtil.deactivate(repo);
      return getRepository(name);
    } finally {
      repositoryConfig.setRestarting(false);
    }
  }
Пример #2
0
 /** @category Repository */
 public InternalRepository getRepository() {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.getRepository(IRepositoryConfig.REPOSITORY_NAME);
 }
Пример #3
0
 /** @category Repository */
 public void registerRepository(IRepository repository) {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   repositoryConfig.registerRepository((InternalRepository) repository);
 }
Пример #4
0
 /** @category Repository */
 public InternalRepository getRepository(String name) {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.getRepository(name);
 }
Пример #5
0
 /** @category Repository */
 public InternalRepository getRepository(String name, boolean activate) {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.getRepository(name, activate);
 }
Пример #6
0
 /** @category Repository */
 public IManagedContainer getServerContainer() {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.getServerContainer();
 }
Пример #7
0
 /** @category Repository */
 public boolean hasServerContainer() {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.hasServerContainer();
 }
Пример #8
0
 /** @category Repository */
 public Map<String, String> getRepositoryProperties() {
   IRepositoryConfig repositoryConfig = getRepositoryConfig();
   return repositoryConfig.getRepositoryProperties();
 }