corda / net.corda.testing.driver / NodeHandle

NodeHandle

interface NodeHandle : AutoCloseable

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

Properties

baseDirectory

abstract val baseDirectory: Path

The location of the node's base directory

jmxAddress

abstract val jmxAddress: <ERROR CLASS>?

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

nodeInfo

abstract val nodeInfo: <ERROR CLASS>

Get the NodeInfo for this node

p2pAddress

abstract val p2pAddress: <ERROR CLASS>

Get the p2p address for this node

rpc

abstract val rpc: <ERROR CLASS>

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.

rpcAddress

abstract val rpcAddress: <ERROR CLASS>

Get the rpc address for this node

rpcAdminAddress

abstract val rpcAdminAddress: <ERROR CLASS>

Get the rpc admin address for this node

rpcUsers

abstract val rpcUsers: List<User>

Get a List of User's for this node

Functions

stop

abstract fun stop(): Unit

Stops the referenced node.

Extension Functions

logFile

fun NodeHandle.logFile(): File

Inheritors

InProcess

interface InProcess : NodeHandle

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

OutOfProcess

interface OutOfProcess : NodeHandle

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