@Override public boolean checkConfig() throws RepositoryConnectionException { return subject.get().checkConfig(); }
@Override public boolean checkConfig() throws RepositoryConnectionException { return subject.get().checkConfig(); }
@Override public void open() throws RepositoryConnectionException { Optional<URI> repoUrl = command(ResolveGeogigURI.class).call(); Preconditions.checkState(repoUrl.isPresent(), "Repository URL can't be located"); this.repositoryLocation = repoUrl.get(); if (!context.refDatabase().checkConfig()) { context.refDatabase().configure(); } if (!context.objectDatabase().checkConfig()) { context.objectDatabase().configure(); } if (!context.indexDatabase().checkConfig()) { context.indexDatabase().configure(); } context.refDatabase().create(); context.objectDatabase().open(); context.indexDatabase().open(); context.conflictsDatabase().open(); for (RepositoryListener l : listeners) { l.opened(this); } open = true; }
@Override public void open() throws RepositoryConnectionException { Optional<URI> repoUrl = command(ResolveGeogigURI.class).call(); Preconditions.checkState(repoUrl.isPresent(), "Repository URL can't be located"); this.repositoryLocation = repoUrl.get(); if (!context.refDatabase().checkConfig()) { context.refDatabase().configure(); } if (!context.objectDatabase().checkConfig()) { context.objectDatabase().configure(); } if (!context.indexDatabase().checkConfig()) { context.indexDatabase().configure(); } context.refDatabase().create(); context.objectDatabase().open(); context.indexDatabase().open(); context.conflictsDatabase().open(); for (RepositoryListener l : listeners) { l.opened(this); } open = true; }