private void dropGraph(final String namespace) throws Exception { final RemoteRepository rr = m_mgr.getRepositoryForNamespace(namespace); // force an abort by preparing an invalid update rr.prepareUpdate("DROP GRAPH <" + namespace + ">").evaluate(); }
private String doGET(final String url) throws Exception { JettyResponseListener response = null; try { final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = m_repo.doConnect(opts); RemoteRepository.checkResponseCode(response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareBooleanQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareTupleQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareGraphQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareUpdate(updateStr, uuid).evaluate(); }
@Override protected void setupConnectOptions() { super.setupConnectOptions(); if (opts.getAcceptHeader() == null) opts.setAcceptHeader(ConnectOptions.DEFAULT_BOOLEAN_ACCEPT_HEADER); }
@Override public TupleQueryResult evaluate(final IPreparedQueryListener listener) throws Exception { setupConnectOptions(); return mgr.tupleResults(opts, getQueryId(), listener); }
@Override public GraphQueryResult evaluate(final IPreparedQueryListener listener) throws Exception { setupConnectOptions(); return mgr.graphResults(opts, getQueryId(), listener); }
private String doGET(final String url) throws Exception { JettyResponseListener response = null; try { final ConnectOptions opts = new ConnectOptions(url); opts.method = "GET"; response = m_repo.doConnect(opts); RemoteRepository.checkResponseCode(response); return response.getResponseBody(); } finally { if (response != null) response.abort(); } }
private void forceAbort(final String namespace) throws Exception { final RemoteRepository rr = m_mgr.getRepositoryForNamespace(namespace); // force an abort by preparing an invalid update rr.prepareUpdate("FORCE ABORT").evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareTupleQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareGraphQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareBooleanQuery(queryStr, uuid).evaluate(); }
@Override protected void doApplyToNamespace(final RemoteRepository repo, final UUID uuid) throws Exception { repo.prepareUpdate(updateStr, uuid).evaluate(); }
@Override protected void setupConnectOptions() { super.setupConnectOptions(); if (opts.getAcceptHeader() == null) opts.setAcceptHeader(ConnectOptions.DEFAULT_SOLUTIONS_ACCEPT_HEADER); }
private void forceAbort(final String namespace) throws Exception { final RemoteRepository rr = m_mgr.getRepositoryForNamespace(namespace); // force an abort by preparing an invalid update rr.prepareUpdate("FORCE ABORT").evaluate(); }
private void dropGraph(final String namespace) throws Exception { final RemoteRepository rr = m_mgr.getRepositoryForNamespace(namespace); // force an abort by preparing an invalid update rr.prepareUpdate("DROP GRAPH <" + namespace + ">").evaluate(); }