@ManagementInterface( name = Reports.NAME ) @Description( "Reports operations" ) public interface Reports { String NAME = "Reports"; @Description( "List all active transactions" ) String listTransactions(); @Description( "Returns a map if the current environment variables" ) String getEnvironmentVariables(); }
static String beanName( Class<?> iface ) { if ( iface.isInterface() ) { ManagementInterface management = iface.getAnnotation( ManagementInterface.class ); if ( management != null ) { return management.name(); } } throw new IllegalArgumentException( iface + " is not a Neo4j Management Been interface" ); } }
@ManagementInterface( name = Primitives.NAME ) @Description( "Estimates of the numbers of different kinds of Neo4j primitives" ) @Deprecated public interface Primitives { String NAME = "Primitive count"; @Description( "An estimation of the number of nodes used in this Neo4j instance" ) long getNumberOfNodeIdsInUse(); @Description( "An estimation of the number of relationships used in this Neo4j instance" ) long getNumberOfRelationshipIdsInUse(); @Description( "The number of relationship types used in this Neo4j instance" ) long getNumberOfRelationshipTypeIdsInUse(); @Description( "An estimation of the number of properties used in this Neo4j instance" ) long getNumberOfPropertyIdsInUse(); }
static String beanName( Class<?> beanInterface ) { if ( beanInterface.isInterface() ) { ManagementInterface management = beanInterface.getAnnotation( ManagementInterface.class ); if ( management != null ) { return management.name(); } } throw new IllegalArgumentException( beanInterface + " is not a Neo4j Management Been interface" ); }
@ManagementInterface( name = Kernel.NAME ) @Description( "Information about the Neo4j kernel" ) @Deprecated
static String beanName( Class<?> iface ) { if ( iface.isInterface() ) { ManagementInterface management = iface.getAnnotation( ManagementInterface.class ); if ( management != null ) { return management.name(); } } throw new IllegalArgumentException( iface + " is not a Neo4j Management Been interface" ); } }
@ManagementInterface( name = StoreFile.NAME ) @Description( "This bean is deprecated, use StoreSize bean instead; " + "Information about the sizes of the different parts of the Neo4j graph store" )
@ManagementInterface( name = StoreSize.NAME ) @Description( "Information about the disk space used by different parts of the Neo4j graph store" ) @Deprecated
@ManagementInterface( name = RemoteConnection.NAME ) public interface RemoteConnection { String NAME = "Remote Connection"; }
@ManagementInterface( name = CausalClustering.NAME ) @Description( "Information about an instance participating in a causal cluster" ) public interface CausalClustering { String NAME = "Causal Clustering"; @Description( "The current role this member has in the cluster" ) String getRole(); @Description( "The total amount of disk space used by the raft log, in bytes" ) long getRaftLogSize(); @Description( "The total amount of disk space used by the replicated states, in bytes" ) long getReplicatedStateSize(); }
@ManagementInterface( name = MemoryMapping.NAME ) @Description( "The status of Neo4j memory mapping" ) public interface MemoryMapping { String NAME = "Memory Mapping"; @Deprecated @Description( "Get information about each pool of memory mapped regions from store files with " + "memory mapping enabled" ) WindowPoolInfo[] getMemoryPools(); }
@ManagementInterface( name = BranchedStore.NAME ) @Description( "Information about the branched stores present in this HA cluster member" ) public interface BranchedStore { String NAME = "Branched Store"; @Description( "A list of the branched stores" ) BranchedStoreInfo[] getBranchedStores(); }
@ManagementInterface( name = IndexSamplingManager.NAME ) @Description( "Handle index sampling." ) public interface IndexSamplingManager { String NAME = "Index sampler"; @Description( "Trigger index sampling for the index associated with the provided label and property key." + " If forceSample is set to true an index sampling will always happen otherwise a sampling is only " + "done if the number of updates exceeds the configured dbms.index_sampling.update_percentage." ) void triggerIndexSampling( String labelKey, String propertyKey, boolean forceSample ); }
@ManagementInterface( name = Reports.NAME ) @Description( "Reports operations" ) public interface Reports { String NAME = "Reports"; @Description( "List all active transactions" ) String listTransactions(); @Description( "Returns a map if the current environment variables" ) String getEnvironmentVariables(); }
@ManagementInterface( name = Primitives.NAME ) @Description( "Estimates of the numbers of different kinds of Neo4j primitives" ) @Deprecated public interface Primitives { String NAME = "Primitive count"; @Description( "An estimation of the number of nodes used in this Neo4j instance" ) long getNumberOfNodeIdsInUse(); @Description( "An estimation of the number of relationships used in this Neo4j instance" ) long getNumberOfRelationshipIdsInUse(); @Description( "The number of relationship types used in this Neo4j instance" ) long getNumberOfRelationshipTypeIdsInUse(); @Description( "An estimation of the number of properties used in this Neo4j instance" ) long getNumberOfPropertyIdsInUse(); }
@ManagementInterface( name = Diagnostics.NAME ) @Description( "Diagnostics provided by Neo4j" ) public interface Diagnostics { String NAME = "Diagnostics"; @Description( "Dump diagnostics information to the log." ) void dumpToLog(); @Description( "Dump diagnostics information for the diagnostics provider with the specified id." ) void dumpToLog( String providerId ); @Description( "Dump diagnostics information to JMX" ) String dumpAll( ); @Description( "Extract diagnostics information for the diagnostics provider with the specified id." ) String extract( String providerId ); @Description( "A list of the ids for the registered diagnostics providers." ) List<String> getDiagnosticsProviders(); }
@ManagementInterface( name = LockManager.NAME ) @Description( "Information about the Neo4j lock status" ) public interface LockManager { String NAME = "Locking"; @Description( "The number of lock sequences that would have lead to a deadlock situation that " + "Neo4j has detected and averted (by throwing DeadlockDetectedException)." ) long getNumberOfAvertedDeadlocks(); @Description( "Information about all locks held by Neo4j" ) List<LockInfo> getLocks(); @Description( "Information about contended locks (locks where at least one thread is waiting) held by Neo4j. " + "The parameter is used to get locks where threads have waited for at least the specified number " + "of milliseconds, a value of 0 retrieves all contended locks." ) List<LockInfo> getContendedLocks( long minWaitTime ); }
@ManagementInterface( name = TransactionManager.NAME ) @Description( "Information about the Neo4j transaction manager" ) public interface TransactionManager { String NAME = "Transactions"; @Description( "The number of currently open transactions" ) long getNumberOfOpenTransactions(); @Description( "The highest number of transactions ever opened concurrently" ) long getPeakNumberOfConcurrentTransactions(); @Description( "The total number started transactions" ) long getNumberOfOpenedTransactions(); @Description( "The total number of committed transactions" ) long getNumberOfCommittedTransactions(); @Description( "The total number of rolled back transactions" ) long getNumberOfRolledBackTransactions(); @Description( "The id of the latest committed transaction" ) long getLastCommittedTxId(); }
@ManagementInterface( name = StoreFile.NAME ) @Description( "This bean is deprecated, use StoreSize bean instead; " + "Information about the sizes of the different parts of the Neo4j graph store" )
@ManagementInterface( name = Kernel.NAME ) @Description( "Information about the Neo4j kernel" ) @Deprecated