Proxy Store
The proxy store is simply a Gaffer store implementation which delegates all operations to a Gaffer REST API. See Javadoc.
Using a proxy store with Gaffer REST
These are the full set of configurable properties which can be used in .properties
config file with Gaffer REST:
gaffer.host
: Hostname or IP Address of the Gaffer REST APIgaffer.port
: Port for the Gaffer REST APIgaffer.context-root
: The path to use as the context rootgaffer.connect-timeout
: Connect timeout in millisecondsgaffer.read-timeout
: Read timeout in milliseconds
For more information on the timeouts, see the docs for the Jersey client which is used internally.
Example store.properties
config file
Using a ProxyStore
from Java
To create a ProxyStore
you just need to provide a host, port and context root. This can be done via the ProxyStore.Builder
:
Graph graph = new Graph.Builder()
.store(new ProxyStore.Builder()
.graphId(uniqueNameOfYourGraph)
.host("localhost")
.port(8080)
.contextRoot("rest/v1")
.build())
.build();
You can then write your queries in Java and the ProxyStore
will convert them into JSON and execute them over the REST API.