NodeHandle
Keywords: net.corda.testing.driver.NodeHandle interface
Date: 2023-09-18

net.corda.testing.driver

## Interface NodeHandle

- All Known Subinterfaces:
    InProcess, OutOfProcess

      @DoNotImplement
      public NodeHandle

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

  See Also:
    `driver`, `interface InProcess`, `interface OutOfProcess`

- - ### Constructor Detail

    - #### NodeHandle

          public NodeHandle()

  - ### Method Detail

    - #### getNodeInfo

          @NotNull
          NodeInfo getNodeInfo()

      Get the `class NodeInfo` for this node

      See Also:
        `class NodeInfo`

    - #### getRpc

          @NotNull
          CordaRPCOps getRpc()

      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.

    - #### getP2pAddress

          @NotNull
          NetworkHostAndPort getP2pAddress()

      Get the p2p address for this node

    - #### getRpcAddress

          @NotNull
          NetworkHostAndPort getRpcAddress()

      Get the rpc address for this node

    - #### getRpcAdminAddress

          @NotNull
          NetworkHostAndPort getRpcAdminAddress()

      Get the rpc admin address for this node

    - #### getJmxAddress

          @Nullable
          NetworkHostAndPort getJmxAddress()

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

    - #### getRpcUsers

          @NotNull
          java.util.List<net.corda.testing.node.User> getRpcUsers()

      Get a List of `class User`'s for this node

      See Also:
        List, `class User`

    - #### getBaseDirectory

          @NotNull
          java.nio.file.Path getBaseDirectory()

      The location of the node's base directory

    - #### stop

          void stop()

      Stops the referenced node.