Package io.github.cfraser.graphguard
Class Server
-
-
Method Summary
Modifier and Type Method Description Unitrun()Run the proxy server on the address, connecting to the graphUri. final static Servercreate(String hostname, Integer port, URI graphUri, Schema schema, Integer parallelism, Integer queryCacheSize)Create a Server instance. final static Servercreate(String hostname, Integer port, URI graphUri, Schema schema, Integer parallelism)Create a Server instance. final static Servercreate(String hostname, Integer port, URI graphUri, Schema schema)Create a Server instance. -
-
Method Detail
-
run
Unit run()
Run the proxy server on the address, connecting to the graphUri.
Server.run blocks indefinitely. To terminate the server, java.lang.Thread.interrupt the blocked thread.
-
create
@JvmOverloads() final static Server create(String hostname, Integer port, URI graphUri, Schema schema, Integer parallelism, Integer queryCacheSize)
Create a Server instance.
- Parameters:
hostname- the InetSocketAddress.hostname to bind toport- the InetSocketAddress.port to bind tographUri- the URI of the graph to proxy data toschema- the Schema to use to validate intercepted queriesparallelism- the number of parallel coroutines used by the ServerqueryCacheSize- the maximum size of the cache for validated queries
-
create
@JvmOverloads() final static Server create(String hostname, Integer port, URI graphUri, Schema schema, Integer parallelism)
Create a Server instance.
-
-
-
-