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, routerIdLegalpublic Router getRouter(String graphId)
getRouter in class GraphServicepublic void addGraphFile(File graphFile) throws IOException
IOExceptionpublic File getZippedGraph(String graphId) throws IOException
IOExceptionpublic int evictAll()
GraphServiceevictAll in class GraphServicepublic Collection<String> getRouterIds()
getRouterIds in class GraphServicepublic GraphSource.Factory getGraphSourceFactory()
getGraphSourceFactory in class GraphServicepublic boolean registerGraph(String arg0, GraphSource arg1)
GraphServiceregisterGraph in class GraphServicepublic void setDefaultRouterId(String arg0)
setDefaultRouterId in class GraphServicearg0 - The ID of the default router to return when no one is specifiedCopyright © 2018. All rights reserved.