Class NodeIndexerFactory
- java.lang.Object
-
- org.torproject.metrics.onionoo.server.NodeIndexerFactory
-
public class NodeIndexerFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodeIndexerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeIndexer
getNodeIndexer()
Returns the singleton node indexer instance that gets created upon first invocation of this method.static void
setNodeIndexer(NodeIndexer nodeIndexer)
Sets a custom singleton node indexer instance that will be returned bygetNodeIndexer()
rather than creating an instance upon first invocation.
-
-
-
Method Detail
-
setNodeIndexer
public static void setNodeIndexer(NodeIndexer nodeIndexer)
Sets a custom singleton node indexer instance that will be returned bygetNodeIndexer()
rather than creating an instance upon first invocation.
-
getNodeIndexer
public static NodeIndexer getNodeIndexer()
Returns the singleton node indexer instance that gets created upon first invocation of this method.
-
-