corda / net.corda.testing.driver / InProcess

InProcess

@DoNotImplement interface InProcess : NodeHandle

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

Properties

services

abstract val services: ServiceHub

Services which are available to this node

Inherited Properties

baseDirectory

abstract val baseDirectory: Path

The location of the node's base directory

jmxAddress

abstract val jmxAddress: NetworkHostAndPort?

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

nodeInfo

abstract val nodeInfo: NodeInfo

Get the NodeInfo for this node

p2pAddress

abstract val p2pAddress: NetworkHostAndPort

Get the p2p address for this node

rpc

abstract val rpc: CordaRPCOps

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: NetworkHostAndPort

Get the rpc address for this node

rpcAdminAddress

abstract val rpcAdminAddress: NetworkHostAndPort

Get the rpc admin address for this node

rpcUsers

abstract val rpcUsers: List<User>

Get a List of User's for this node

Functions

registerInitiatedFlow

abstract fun <T : FlowLogic<*>> registerInitiatedFlow(initiatedFlowClass: Class<T>): Observable<T>

Register a flow that is initiated by another flow

startFlow

open fun <T> startFlow(logic: FlowLogic<T>): CordaFuture<T>

Starts an already constructed flow. Note that you must be on the server thread to call this method.

Inherited Functions

stop

abstract fun stop(): Unit

Stops the referenced node.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.