mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
Code review fixes (#6571)
This commit is contained in:
@ -76,7 +76,7 @@ class HibernateConfiguration(
|
|||||||
|
|
||||||
// NOTE: workaround suggested to overcome deprecation of StatisticsService (since Hibernate v4.0)
|
// NOTE: workaround suggested to overcome deprecation of StatisticsService (since Hibernate v4.0)
|
||||||
// https://stackoverflow.com/questions/23606092/hibernate-upgrade-statisticsservice
|
// https://stackoverflow.com/questions/23606092/hibernate-upgrade-statisticsservice
|
||||||
fun initStatistics(sessionFactory: SessionFactory) {
|
private fun initStatistics(sessionFactory: SessionFactory) {
|
||||||
val statsName = ObjectName("org.hibernate:type=statistics")
|
val statsName = ObjectName("org.hibernate:type=statistics")
|
||||||
val mbeanServer = ManagementFactory.getPlatformMBeanServer()
|
val mbeanServer = ManagementFactory.getPlatformMBeanServer()
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ open class SharedNodeCmdLineOptions {
|
|||||||
"Use this for rapid app development or for compatibility with pre-4.6 CorDapps.",
|
"Use this for rapid app development or for compatibility with pre-4.6 CorDapps.",
|
||||||
"Only available in dev mode."]
|
"Only available in dev mode."]
|
||||||
)
|
)
|
||||||
var allowHibernateToManangeAppSchema: Boolean = false
|
var allowHibernateToManageAppSchema: Boolean = false
|
||||||
|
|
||||||
open fun parseConfiguration(configuration: Config): Valid<NodeConfiguration> {
|
open fun parseConfiguration(configuration: Config): Valid<NodeConfiguration> {
|
||||||
val option = Configuration.Options(strict = unknownConfigKeysPolicy == UnknownConfigKeysPolicy.FAIL)
|
val option = Configuration.Options(strict = unknownConfigKeysPolicy == UnknownConfigKeysPolicy.FAIL)
|
||||||
|
@ -209,7 +209,7 @@ open class NodeStartup : NodeStartupLogging {
|
|||||||
|
|
||||||
protected open fun preNetworkRegistration(conf: NodeConfiguration) = Unit
|
protected open fun preNetworkRegistration(conf: NodeConfiguration) = Unit
|
||||||
|
|
||||||
open fun createNode(conf: NodeConfiguration, versionInfo: VersionInfo): Node = Node(conf, versionInfo, allowHibernateToManageAppSchema = cmdLineOptions.allowHibernateToManangeAppSchema)
|
open fun createNode(conf: NodeConfiguration, versionInfo: VersionInfo): Node = Node(conf, versionInfo, allowHibernateToManageAppSchema = cmdLineOptions.allowHibernateToManageAppSchema)
|
||||||
|
|
||||||
fun startNode(node: Node, startTime: Long) {
|
fun startNode(node: Node, startTime: Long) {
|
||||||
if (node.configuration.devMode) {
|
if (node.configuration.devMode) {
|
||||||
|
Reference in New Issue
Block a user