/** Constructor for {@link KernelBean} */ Neo4jMBean( Class<Kernel> beanInterface, KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException { super( beanInterface ); this.objectName = support.createObjectName( kernel.instanceId(), beanInterface ); }
/** Constructor for {@link ConfigurationBean} */ Neo4jMBean( String beanName, KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException { super( DynamicMBean.class ); this.objectName = support.createObjectName( kernel.instanceId(), beanName, false ); }
ObjectName getObjectName( String... extraNaming ) { ObjectName name = support.createObjectName( kernel.instanceId(), provider.beanInterface, extraNaming ); if ( name == null ) { throw new IllegalArgumentException( provider.beanInterface + " is not a Neo4j Management Bean interface" ); } return name; }
KernelBean( KernelData kernel, DataSourceManager dataSourceManager, ManagementSupport support ) throws NotCompliantMBeanException { super( Kernel.class, kernel, support ); dataSourceManager.addListener( new DataSourceInfo() ); this.kernelVersion = kernel.version().toString(); this.instanceId = kernel.instanceId(); this.query = support.createMBeanQuery( instanceId ); kernelStartTime = new Date().getTime(); }
/** Constructor for {@link KernelBean} */ Neo4jMBean( Class<Kernel> beanInterface, KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException { super( beanInterface ); this.objectName = support.createObjectName( kernel.instanceId(), beanInterface ); }
ObjectName getObjectName( String... extraNaming ) { ObjectName name = support.createObjectName( kernel.instanceId(), provider.beanInterface, extraNaming ); if ( name == null ) { throw new IllegalArgumentException( provider.beanInterface + " is not a Neo4j Management Bean interface" ); } return name; }
/** Constructor for {@link ConfigurationBean} */ Neo4jMBean( String beanName, KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException { super( DynamicMBean.class ); this.objectName = support.createObjectName( kernel.instanceId(), beanName, false ); }
KernelBean( KernelData kernel, DataSourceManager dataSourceManager, ManagementSupport support ) throws NotCompliantMBeanException { super( Kernel.class, kernel, support ); dataSourceManager.addListener( new DataSourceInfo() ); this.kernelVersion = kernel.version().toString(); this.instanceId = kernel.instanceId(); this.query = support.createMBeanQuery( instanceId ); kernelStartTime = new Date().getTime(); }