Search in sources :

Example 1 with StoreInfoResult

use of apoc.result.StoreInfoResult in project neo4j-apoc-procedures by neo4j-contrib.

the class Store method store.

@Procedure
@Description("apoc.monitor.store() returns informations about the sizes of the different parts of the neo4j graph store")
public Stream<StoreInfoResult> store() {
    ObjectName objectName = getObjectName(db, JMX_OBJECT_NAME);
    StoreInfoResult storeInfo = new StoreInfoResult(getAttribute(objectName, LOG_SIZE), getAttribute(objectName, STRING_SIZE), getAttribute(objectName, ARRAY_SIZE), getAttribute(objectName, REL_SIZE), getAttribute(objectName, PROP_SIZE), getAttribute(objectName, TOTAL_SIZE), getAttribute(objectName, NODE_SIZE));
    return Stream.of(storeInfo);
}
Also used : StoreInfoResult(apoc.result.StoreInfoResult) ObjectName(javax.management.ObjectName) JmxUtils.getObjectName(org.neo4j.jmx.JmxUtils.getObjectName) Description(org.neo4j.procedure.Description) Procedure(org.neo4j.procedure.Procedure)

Aggregations

StoreInfoResult (apoc.result.StoreInfoResult)1 ObjectName (javax.management.ObjectName)1 JmxUtils.getObjectName (org.neo4j.jmx.JmxUtils.getObjectName)1 Description (org.neo4j.procedure.Description)1 Procedure (org.neo4j.procedure.Procedure)1