Search in sources :

Example 1 with KernelInfoResult

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

the class Kernel method kernel.

@Procedure
@Description("apoc.monitor.kernel() returns informations about the neo4j kernel")
public Stream<KernelInfoResult> kernel() {
    ObjectName objectName = getObjectName(database, JMX_OBJECT_NAME);
    KernelInfoResult info = new KernelInfoResult(getAttribute(objectName, READ_ONLY), getAttribute(objectName, KERNEL_VERSION), getAttribute(objectName, STORE_ID), getAttribute(objectName, START_TIME), getAttribute(objectName, DB_NAME), getAttribute(objectName, STORE_LOG_VERSION), getAttribute(objectName, STORE_CREATION_DATE));
    return Stream.of(info);
}
Also used : KernelInfoResult(apoc.result.KernelInfoResult) ObjectName(javax.management.ObjectName) JmxUtils.getObjectName(org.neo4j.jmx.JmxUtils.getObjectName) Description(org.neo4j.procedure.Description) Procedure(org.neo4j.procedure.Procedure)

Aggregations

KernelInfoResult (apoc.result.KernelInfoResult)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