コード例 #1
0
ファイル: KernelBean.cs プロジェクト: Neo4Net/Neo4Net
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: KernelBean(org.neo4j.kernel.internal.KernelData kernel, org.neo4j.kernel.impl.transaction.state.DataSourceManager dataSourceManager, ManagementSupport support) throws javax.management.NotCompliantMBeanException
        internal KernelBean(KernelData kernel, DataSourceManager dataSourceManager, ManagementSupport support) : base(typeof(Kernel), kernel, support)
        {
            dataSourceManager.AddListener(new DataSourceInfo(this));
            this._kernelVersion = kernel.Version().ToString();
            this._instanceId    = kernel.InstanceId();
            this._query         = support.CreateMBeanQuery(_instanceId);

            _kernelStartTime = (DateTime.Now).Ticks;
        }
コード例 #2
0
        /// <summary>
        /// Constructor for <seealso cref="ConfigurationBean"/> </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: Neo4jMBean(String beanName, org.neo4j.kernel.internal.KernelData kernel, ManagementSupport support) throws javax.management.NotCompliantMBeanException
        internal Neo4jMBean(string beanName, KernelData kernel, ManagementSupport support) : base(typeof(DynamicMBean))
        {
            this.ObjectName = support.CreateObjectName(kernel.InstanceId(), beanName, false);
        }
コード例 #3
0
        /// <summary>
        /// Constructor for <seealso cref="KernelBean"/> </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: Neo4jMBean(Class<org.neo4j.jmx.Kernel> beanInterface, org.neo4j.kernel.internal.KernelData kernel, ManagementSupport support) throws javax.management.NotCompliantMBeanException
        internal Neo4jMBean(Type beanInterface, KernelData kernel, ManagementSupport support)
        {
            beanInterface = typeof(Kernel);
            base(beanInterface);
            this.ObjectName = support.CreateObjectName(kernel.InstanceId(), beanInterface);
        }