public class InputStreamGraphSource extends Object implements GraphSource
| Modifier and Type | Class and Description |
|---|---|
static class |
InputStreamGraphSource.FileFactory
A GraphSource factory creating InputStreamGraphSource from file.
|
GraphSource.Factory| Modifier and Type | Field and Description |
|---|---|
static String |
GRAPH_FILENAME |
| Modifier and Type | Method and Description |
|---|---|
void |
evict()
Callback when the graph (source) gets evicted from the repository.
|
Router |
getRouter() |
static InputStreamGraphSource |
newClasspathGraphSource(String routerId,
File path,
Graph.LoadLevel loadLevel) |
static InputStreamGraphSource |
newFileGraphSource(String routerId,
File path,
Graph.LoadLevel loadLevel) |
boolean |
reload(boolean force,
boolean preEvict)
Reload the graph from it's source.
|
public static final String GRAPH_FILENAME
public static InputStreamGraphSource newFileGraphSource(String routerId, File path, Graph.LoadLevel loadLevel)
routerId - path - loadLevel - public static InputStreamGraphSource newClasspathGraphSource(String routerId, File path, Graph.LoadLevel loadLevel)
routerId - path - loadLevel - public Router getRouter()
getRouter in interface GraphSourcepublic boolean reload(boolean force,
boolean preEvict)
GraphSourcereload in interface GraphSourceforce - True to force a reload, false to check only.preEvict - True to evict the old version *before* loading the new one. In that case the
implementation have to take care of making the getGraph() call wait while the new
graph is being loaded and not return null.public void evict()
GraphSourceevict in interface GraphSourceCopyright © 2018. All rights reserved.