public class ClusterGraphService extends GraphService
graphSourceFactory
Constructor and Description |
---|
ClusterGraphService(String s3CredentialsFilename,
Boolean workOffline,
String bucket) |
Modifier and Type | Method and Description |
---|---|
void |
addGraphFile(File graphFile) |
int |
evictAll()
Dissocate all graphs from their router IDs and release references to the graphs to allow
garbage collection.
|
GraphSource.Factory |
getGraphSourceFactory() |
Router |
getRouter(String graphId) |
Collection<String> |
getRouterIds() |
File |
getZippedGraph(String graphId) |
boolean |
registerGraph(String arg0,
GraphSource arg1)
Blocking method to associate the specified router ID with the corresponding graph source,
load it from appropriate source (serialized file, memory...), and enable its use in routing.
|
void |
setDefaultRouterId(String arg0) |
evictRouter, getRouter, reloadGraph, reloadGraphs, routerIdLegal
public Router getRouter(String graphId)
getRouter
in class GraphService
public void addGraphFile(File graphFile) throws IOException
IOException
public File getZippedGraph(String graphId) throws IOException
IOException
public int evictAll()
GraphService
evictAll
in class GraphService
public Collection<String> getRouterIds()
getRouterIds
in class GraphService
public GraphSource.Factory getGraphSourceFactory()
getGraphSourceFactory
in class GraphService
public boolean registerGraph(String arg0, GraphSource arg1)
GraphService
registerGraph
in class GraphService
public void setDefaultRouterId(String arg0)
setDefaultRouterId
in class GraphService
arg0
- The ID of the default router to return when no one is specifiedCopyright © 2018. All rights reserved.