mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
Resolve compile issues
This commit is contained in:
parent
724a4e5a36
commit
c9fd22855e
@ -34,6 +34,7 @@ import net.corda.testing.node.internal.network.CrlServer.Companion.EMPTY_CRL
|
|||||||
import net.corda.testing.node.internal.network.CrlServer.Companion.FORBIDDEN_CRL
|
import net.corda.testing.node.internal.network.CrlServer.Companion.FORBIDDEN_CRL
|
||||||
import net.corda.testing.node.internal.network.CrlServer.Companion.NODE_CRL
|
import net.corda.testing.node.internal.network.CrlServer.Companion.NODE_CRL
|
||||||
import net.corda.testing.node.internal.network.CrlServer.Companion.withCrlDistPoint
|
import net.corda.testing.node.internal.network.CrlServer.Companion.withCrlDistPoint
|
||||||
|
import org.apache.activemq.artemis.api.core.QueueConfiguration
|
||||||
import org.apache.activemq.artemis.api.core.RoutingType
|
import org.apache.activemq.artemis.api.core.RoutingType
|
||||||
import org.assertj.core.api.Assertions.assertThat
|
import org.assertj.core.api.Assertions.assertThat
|
||||||
import org.assertj.core.api.Assertions.assertThatIllegalArgumentException
|
import org.assertj.core.api.Assertions.assertThatIllegalArgumentException
|
||||||
@ -495,7 +496,9 @@ class CertificateRevocationListNodeTests {
|
|||||||
val queueName = P2P_PREFIX + "Test"
|
val queueName = P2P_PREFIX + "Test"
|
||||||
val (artemisServer, artemisClient) = createArtemisServerAndClient(crlCheckSoftFail, crlCheckArtemisServer, nodeCrlDistPoint, sslHandshakeTimeout)
|
val (artemisServer, artemisClient) = createArtemisServerAndClient(crlCheckSoftFail, crlCheckArtemisServer, nodeCrlDistPoint, sslHandshakeTimeout)
|
||||||
artemisServer.use {
|
artemisServer.use {
|
||||||
artemisClient.started!!.session.createQueue(queueName, RoutingType.ANYCAST, queueName, true)
|
artemisClient.started!!.session.createQueue(
|
||||||
|
QueueConfiguration(queueName).setRoutingType(RoutingType.ANYCAST).setAddress(queueName).setDurable(true)
|
||||||
|
)
|
||||||
|
|
||||||
val nodeCert = createAMQPClient(serverPort, true, nodeCrlDistPoint)
|
val nodeCert = createAMQPClient(serverPort, true, nodeCrlDistPoint)
|
||||||
if (revokedNodeCert) {
|
if (revokedNodeCert) {
|
||||||
|
@ -9,6 +9,7 @@ import net.corda.core.internal.declaredField
|
|||||||
import net.corda.nodeapi.internal.ArtemisTcpTransport
|
import net.corda.nodeapi.internal.ArtemisTcpTransport
|
||||||
import org.apache.activemq.artemis.api.core.BaseInterceptor
|
import org.apache.activemq.artemis.api.core.BaseInterceptor
|
||||||
import org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor
|
import org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor
|
||||||
|
import org.apache.activemq.artemis.core.server.balancing.RedirectHandler
|
||||||
import org.apache.activemq.artemis.core.server.cluster.ClusterConnection
|
import org.apache.activemq.artemis.core.server.cluster.ClusterConnection
|
||||||
import org.apache.activemq.artemis.spi.core.protocol.ProtocolManager
|
import org.apache.activemq.artemis.spi.core.protocol.ProtocolManager
|
||||||
import org.apache.activemq.artemis.spi.core.remoting.Acceptor
|
import org.apache.activemq.artemis.spi.core.remoting.Acceptor
|
||||||
@ -29,7 +30,7 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
|||||||
listener: ServerConnectionLifeCycleListener?,
|
listener: ServerConnectionLifeCycleListener?,
|
||||||
threadPool: Executor,
|
threadPool: Executor,
|
||||||
scheduledThreadPool: ScheduledExecutorService?,
|
scheduledThreadPool: ScheduledExecutorService?,
|
||||||
protocolMap: Map<String, ProtocolManager<BaseInterceptor<*>>>?): Acceptor {
|
protocolMap: MutableMap<String, ProtocolManager<BaseInterceptor<*>, RedirectHandler<*>>>?): Acceptor {
|
||||||
val failureExecutor = OrderedExecutor(threadPool)
|
val failureExecutor = OrderedExecutor(threadPool)
|
||||||
return NodeNettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
return NodeNettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
||||||
}
|
}
|
||||||
@ -41,7 +42,7 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
|||||||
listener: ServerConnectionLifeCycleListener?,
|
listener: ServerConnectionLifeCycleListener?,
|
||||||
scheduledThreadPool: ScheduledExecutorService?,
|
scheduledThreadPool: ScheduledExecutorService?,
|
||||||
failureExecutor: Executor,
|
failureExecutor: Executor,
|
||||||
protocolMap: Map<String, ProtocolManager<BaseInterceptor<*>>>?) :
|
protocolMap: MutableMap<String, ProtocolManager<BaseInterceptor<*>, RedirectHandler<*>>>?) :
|
||||||
NettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
NettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
||||||
{
|
{
|
||||||
override fun start() {
|
override fun start() {
|
||||||
@ -55,8 +56,8 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getSslHandler(alloc: ByteBufAllocator?): SslHandler {
|
override fun getSslHandler(alloc: ByteBufAllocator?, peerHost: String?, peerPort: Int): SslHandler {
|
||||||
val sslHandler = super.getSslHandler(alloc)
|
val sslHandler = super.getSslHandler(alloc, peerHost, peerPort)
|
||||||
val handshakeTimeout = configuration[ArtemisTcpTransport.SSL_HANDSHAKE_TIMEOUT_NAME] as Duration?
|
val handshakeTimeout = configuration[ArtemisTcpTransport.SSL_HANDSHAKE_TIMEOUT_NAME] as Duration?
|
||||||
if (handshakeTimeout != null) {
|
if (handshakeTimeout != null) {
|
||||||
sslHandler.handshakeTimeoutMillis = handshakeTimeout.toMillis()
|
sslHandler.handshakeTimeoutMillis = handshakeTimeout.toMillis()
|
||||||
|
Loading…
Reference in New Issue
Block a user