public class RuntimeRegistry extends Object
| Constructor and Description |
|---|
RuntimeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static GraphAwareRuntime |
getRuntime(GraphDatabaseService database)
Get the
GraphAwareRuntime registered with the given database. |
static GraphAwareRuntime |
getStartedRuntime(GraphDatabaseService database)
Get the
GraphAwareRuntime registered with the given database. |
static void |
registerRuntime(GraphDatabaseService database,
GraphAwareRuntime runtime)
Register a runtime.
|
static void |
removeRuntime(GraphDatabaseService database)
Remove a runtime from the registry.
|
public static void registerRuntime(GraphDatabaseService database, GraphAwareRuntime runtime)
database - against which the runtime is running.runtime - the runtime.public static GraphAwareRuntime getRuntime(GraphDatabaseService database)
GraphAwareRuntime registered with the given database.database - for which to get runtime.public static GraphAwareRuntime getStartedRuntime(GraphDatabaseService database)
GraphAwareRuntime registered with the given database.database - for which to get runtime.IllegalStateException - in case no runtime is registered with this database.public static void removeRuntime(GraphDatabaseService database)
database - against which the runtime to be removed is running.Copyright © 2013-2016–2016 Graph Aware Limited. All rights reserved.