mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Resolve compile issues
This commit is contained in:
parent
724a4e5a36
commit
c9fd22855e
@ -9,4 +9,4 @@ package net.corda.common.logging
|
||||
* (originally added to source control for ease of use)
|
||||
*/
|
||||
|
||||
internal const val CURRENT_MAJOR_RELEASE = "4.9-SNAPSHOT"
|
||||
internal const val CURRENT_MAJOR_RELEASE = "4.9-SNAPSHOT"
|
@ -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.NODE_CRL
|
||||
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.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.api.Assertions.assertThatIllegalArgumentException
|
||||
@ -495,7 +496,9 @@ class CertificateRevocationListNodeTests {
|
||||
val queueName = P2P_PREFIX + "Test"
|
||||
val (artemisServer, artemisClient) = createArtemisServerAndClient(crlCheckSoftFail, crlCheckArtemisServer, nodeCrlDistPoint, sslHandshakeTimeout)
|
||||
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)
|
||||
if (revokedNodeCert) {
|
||||
|
@ -9,6 +9,7 @@ import net.corda.core.internal.declaredField
|
||||
import net.corda.nodeapi.internal.ArtemisTcpTransport
|
||||
import org.apache.activemq.artemis.api.core.BaseInterceptor
|
||||
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.spi.core.protocol.ProtocolManager
|
||||
import org.apache.activemq.artemis.spi.core.remoting.Acceptor
|
||||
@ -29,7 +30,7 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
||||
listener: ServerConnectionLifeCycleListener?,
|
||||
threadPool: Executor,
|
||||
scheduledThreadPool: ScheduledExecutorService?,
|
||||
protocolMap: Map<String, ProtocolManager<BaseInterceptor<*>>>?): Acceptor {
|
||||
protocolMap: MutableMap<String, ProtocolManager<BaseInterceptor<*>, RedirectHandler<*>>>?): Acceptor {
|
||||
val failureExecutor = OrderedExecutor(threadPool)
|
||||
return NodeNettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
||||
}
|
||||
@ -41,7 +42,7 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
||||
listener: ServerConnectionLifeCycleListener?,
|
||||
scheduledThreadPool: ScheduledExecutorService?,
|
||||
failureExecutor: Executor,
|
||||
protocolMap: Map<String, ProtocolManager<BaseInterceptor<*>>>?) :
|
||||
protocolMap: MutableMap<String, ProtocolManager<BaseInterceptor<*>, RedirectHandler<*>>>?) :
|
||||
NettyAcceptor(name, clusterConnection, configuration, handler, listener, scheduledThreadPool, failureExecutor, protocolMap)
|
||||
{
|
||||
override fun start() {
|
||||
@ -55,8 +56,8 @@ class NodeNettyAcceptorFactory : AcceptorFactory {
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSslHandler(alloc: ByteBufAllocator?): SslHandler {
|
||||
val sslHandler = super.getSslHandler(alloc)
|
||||
override fun getSslHandler(alloc: ByteBufAllocator?, peerHost: String?, peerPort: Int): SslHandler {
|
||||
val sslHandler = super.getSslHandler(alloc, peerHost, peerPort)
|
||||
val handshakeTimeout = configuration[ArtemisTcpTransport.SSL_HANDSHAKE_TIMEOUT_NAME] as Duration?
|
||||
if (handshakeTimeout != null) {
|
||||
sslHandler.handshakeTimeoutMillis = handshakeTimeout.toMillis()
|
||||
|
Loading…
Reference in New Issue
Block a user