Hi folks, For a neo4j multi instances manager proof-of-concept https://github.com/neoxygen/neo4j-toolkit I need to get the StoreDirectory from the ReST API.
Currently I do a GET request on this endpoint : http://localhost:7474 /db/manage/server/jmx/domain/org.neo4j/instance%3Dkernel%230%2Cname%3DKernel I can have it by iterating the attributes array of this endpoint and fetching the StoreDirectory "name" value is found. The attributes map is not always rendered the same way, and is keyed by numbers. My question is, is it possible to get the StoreDirectory value immediately, without the need to iterate over the attributes array ? Thank you very much. FYI: Here is the output of the endpoint : TTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Length: 2387 Content-Type: application/json; charset=UTF-8 Server: Jetty(9.0.5.v20130815) [ { "attributes": [ { "description": "Whether this is a read only instance", "isIs": "true", "isReadable": "true", "isWriteable": "false ", "name": "ReadOnly", "type": "boolean", "value": false }, { "description": "An identifier that, together with store creation time, uniquely identifies this Neo4j graph store.", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "StoreId", "type": "java.lang.String", "value": "34fb9a0321cea1f1" }, { "description": "An ObjectName that can be used as a query for getting all management beans for this Neo4j instance.", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "MBeanQuery", "type": "javax.management.ObjectName", "value": "org.neo4j:instance=kernel#0,name=*" }, { "description": "The time from which this Neo4j instance was in operational mode.", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "KernelStartTime", "type": "java.util.Date", "value": "Tue Nov 04 23:11:53 CET 2014" }, { "description": "The time when this Neo4j graph store was created.", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "StoreCreationDate", "type": "java.util.Date", "value": "Tue Nov 04 23:11:53 CET 2014" }, { "description": "The current version of the Neo4j store logical log.", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "StoreLogVersion", "type": "long", "value": 0 }, { "description": "The version of Neo4j", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "KernelVersion", "type": "java.lang.String", "value": "Neo4j - Graph Database Kernel (neo4j-kernel), version: 2.1.4" }, { "description": "The location where the Neo4j store is located", "isIs": "false ", "isReadable": "true", "isWriteable": "false ", "name": "StoreDirectory", "type": "java.lang.String", "value": "/Users/ikwattro/dev/playbox/graph/reco/data/graph.db" } ], "description": "Information about the Neo4j kernel", "name": "org.neo4j:instance=kernel#0,name=Kernel", "url": "org.neo4j/instance%3Dkernel%230%2Cname%3DKernel" } ] -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
