boferri
boferri

Reputation: 696

How to determine the store directory from a Neo4j graph database?

The BatchInserter provides a method called getStoreDir that delivers the store directory of the graph database. However, GraphDatabaseService doesn't offer such a capability. Only the deprecated GraphDatabaseAPI offers a deprecated method getStoreDir. So is there any opportunity to determine the store directory of a Neo4j graph database via their APIs?

Upvotes: 3

Views: 114

Answers (1)

Stefan Armbruster
Stefan Armbruster

Reputation: 39925

You can use the Configuration JMX bean, it has a store_dir attribute, see http://neo4j.com/docs/stable/jmx-mxbeans.html#jmx-configuration for details.

See http://neo4j.com/docs/stable/tutorials-java-embedded-jmx.html how to query JMX beans from Java.

Upvotes: 3

Related Questions