mirror of
https://github.com/corda/corda.git
synced 2025-01-03 11:44:16 +00:00
ENT-2431: Expose cache factory further down the class hierarchy of AsbtractNode. (#3984)
This commit is contained in:
parent
0a611afa55
commit
05fe50d9f8
@ -46,10 +46,7 @@ import net.corda.node.services.api.StartedNodeServices
|
|||||||
import net.corda.node.services.config.*
|
import net.corda.node.services.config.*
|
||||||
import net.corda.node.services.messaging.*
|
import net.corda.node.services.messaging.*
|
||||||
import net.corda.node.services.rpc.ArtemisRpcBroker
|
import net.corda.node.services.rpc.ArtemisRpcBroker
|
||||||
import net.corda.node.utilities.AddressUtils
|
import net.corda.node.utilities.*
|
||||||
import net.corda.node.utilities.AffinityExecutor
|
|
||||||
import net.corda.node.utilities.DefaultNamedCacheFactory
|
|
||||||
import net.corda.node.utilities.DemoClock
|
|
||||||
import net.corda.nodeapi.internal.ArtemisMessagingComponent.Companion.INTERNAL_SHELL_USER
|
import net.corda.nodeapi.internal.ArtemisMessagingComponent.Companion.INTERNAL_SHELL_USER
|
||||||
import net.corda.nodeapi.internal.ShutdownHook
|
import net.corda.nodeapi.internal.ShutdownHook
|
||||||
import net.corda.nodeapi.internal.addShutdownHook
|
import net.corda.nodeapi.internal.addShutdownHook
|
||||||
@ -90,11 +87,12 @@ class NodeWithInfo(val node: Node, val info: NodeInfo) {
|
|||||||
open class Node(configuration: NodeConfiguration,
|
open class Node(configuration: NodeConfiguration,
|
||||||
versionInfo: VersionInfo,
|
versionInfo: VersionInfo,
|
||||||
private val initialiseSerialization: Boolean = true,
|
private val initialiseSerialization: Boolean = true,
|
||||||
cordappLoader: CordappLoader = makeCordappLoader(configuration, versionInfo)
|
cordappLoader: CordappLoader = makeCordappLoader(configuration, versionInfo),
|
||||||
|
cacheFactoryPrototype: NamedCacheFactory = DefaultNamedCacheFactory()
|
||||||
) : AbstractNode<NodeInfo>(
|
) : AbstractNode<NodeInfo>(
|
||||||
configuration,
|
configuration,
|
||||||
createClock(configuration),
|
createClock(configuration),
|
||||||
DefaultNamedCacheFactory(),
|
cacheFactoryPrototype,
|
||||||
versionInfo,
|
versionInfo,
|
||||||
cordappLoader,
|
cordappLoader,
|
||||||
// Under normal (non-test execution) it will always be "1"
|
// Under normal (non-test execution) it will always be "1"
|
||||||
|
Loading…
Reference in New Issue
Block a user