corda / net.corda.testing.driver / NodeHandle

NodeHandle

@DoNotImplement interface NodeHandle : AutoCloseable

A base interface which represents a node as part of the driver dsl, extended by InProcess and OutOfProcess

Properties

baseDirectory

The location of the node's base directory

abstract val baseDirectory: Path

jmxAddress

Get the JMX server address for this node, if JMX is enabled

abstract val jmxAddress: NetworkHostAndPort?

nodeInfo

Get the NodeInfo for this node

abstract val nodeInfo: NodeInfo

p2pAddress

Get the p2p address for this node

abstract val p2pAddress: NetworkHostAndPort

rpc

Interface to the node's RPC system. The first RPC user will be used to login if are any, otherwise a default one will be added and that will be used.

abstract val rpc: CordaRPCOps

rpcAddress

Get the rpc address for this node

abstract val rpcAddress: NetworkHostAndPort

rpcAdminAddress

Get the rpc admin address for this node

abstract val rpcAdminAddress: NetworkHostAndPort

rpcUsers

Get a List of User's for this node

abstract val rpcUsers: List<User>

Functions

stop

Stops the referenced node.

abstract fun stop(): Unit

Extension Functions

logFile

fun NodeHandle.logFile(): File

Inheritors

InProcess

Interface which represents an in process node and exposes available services.

interface InProcess : NodeHandle

OutOfProcess

Interface which represents an out of process node and exposes its process handle.

interface OutOfProcess : NodeHandle