/** * Constructor that simply specifies an endpoint. This class will internally * allocate a {@link RemoteRepositoryManager} that is scoped to the life * cycle of this class. The allocated {@link RemoteRepositoryManager} will be * closed when this {@link BigdataSailRemoteRepository} is closed. * <p> * Note: This constructor pattern is NOT flyweight. * * @param sparqlEndpointURL * The SPARQL end point URL */ @Deprecated // This is broken because the sparqlEndpointURL is not the serviceURL and that is what the RRM expects/needs. public BigdataSailRemoteRepository(final String sparqlEndpointURL) { if (sparqlEndpointURL == null) throw new IllegalArgumentException(); /* * Allocate a RemoteRepositoryManager. This is NOT a flyweight operation. * */ this.our_mgr = new RemoteRepositoryManager(sparqlEndpointURL, false/*useLBS*/); this.remoteRepository = our_mgr.getRepositoryForURL(sparqlEndpointURL); }
/** * Connect to a remote bigdata instance. * * @param sparqlEndpointURL * The URL of the SPARQL end point. * * FIXME This does not support the HA load balancer pattern. See #1148. * * FIXME This does not parameterize the value of the ContextPath. See * {@link com.bigdata.BigdataStatics#getContextPath()}. * * FIXME This MIGHT leak HttpClient or Executor resources. */ public static BigdataSailRemoteRepository connect( final String sparqlEndpointURL) { return new RemoteRepositoryManager().getRepositoryForURL( sparqlEndpointURL).getBigdataSailRemoteRepository(); }
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, m_indexManager.getExecutorService());
m_repo = new RemoteRepositoryManager(m_serviceURL, m_httpClient, getSail().getIndexManager().getExecutorService());
m_repo = new RemoteRepositoryManager(m_serviceURL, m_httpClient, getSail().getIndexManager().getExecutorService());
public static void main(String[] args) throws Exception { final RemoteRepositoryManager repositoryManager = new RemoteRepositoryManager(serviceURL, false /*useLBS*/);
public IValueExpression<? extends IV> create( BOpContextBase context, GlobalAnnotations globals, Map<String, Object> scalarValues, ValueExpressionNode... args) { // Validate your argument(s) FunctionRegistry.checkArgs(args, ValueExpressionNode.class, ValueExpressionNode.class); // Turn them into physical (executable) bops final IValueExpression<? extends IV> user = AST2BOpUtility.toVE(context, globals, args[0]); final IValueExpression<? extends IV> document = AST2BOpUtility.toVE(context, globals, args[1]); RemoteRepositoryManager m_repo = new RemoteRepositoryManager(SampleBlazegraphCustomFunctionRemote.serviceURL , false /* useLBS */); GlobalSecurityValidator securityValidator = null; try { securityValidator = new GlobalSecurityValidator(m_repo); } catch (Exception e) { log.error("Error on creating security validator"); } // Return your custom function. return new SecurityFilter(user, document, globals, securityValidator); }
public IValueExpression<? extends IV> create( BOpContextBase context, GlobalAnnotations globals, Map<String, Object> scalarValues, ValueExpressionNode... args) { // Validate your argument(s) FunctionRegistry.checkArgs(args, ValueExpressionNode.class, ValueExpressionNode.class); // Turn them into physical (executable) bops final IValueExpression<? extends IV> user = AST2BOpUtility.toVE(context, globals, args[0]); final IValueExpression<? extends IV> document = AST2BOpUtility.toVE(context, globals, args[1]); RemoteRepositoryManager m_repo = new RemoteRepositoryManager(SampleBlazegraphCustomFunctionRemote.serviceURL , false /* useLBS */); GlobalSecurityValidator securityValidator = null; try { securityValidator = new GlobalSecurityValidator(m_repo); } catch (Exception e) { log.error("Error on creating security validator"); } // Return your custom function. return new SecurityFilter(user, document, globals, securityValidator); }
public static void main(String[] args) throws Exception { final RemoteRepositoryManager repositoryManager = new RemoteRepositoryManager(serviceURL, false /*useLBS*/);
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, executorService);
final RemoteRepositoryManager mgr = new RemoteRepositoryManager( "localhost:" + Config.BLAZEGRAPH_HTTP_PORT /* serviceURLIsIngored */);
final RemoteRepositoryManager repo = new RemoteRepositoryManager( serviceURL , false /* useLBS */);
final RemoteRepositoryManager repo = new RemoteRepositoryManager( serviceURL , false /* useLBS */);
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, m_indexManager.getExecutorService());
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, m_indexManager.getExecutorService());
repo = new RemoteRepositoryManager( serviceURL, client, executor);
repo = new RemoteRepositoryManager( serviceURL, client, executor);
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, m_indexManager.getExecutorService());
m_repo = new RemoteRepositoryManager(m_serviceURL, m_client, executorService);
final RemoteRepositoryManager mgr = new RemoteRepositoryManager( "localhost:" + Config.BLAZEGRAPH_HTTP_PORT /* serviceURLIsIngored */);