class Node extends BaseNode<Node,AccountId>
Internal utility class.
  • Constructor Details

    • Node

      Node(AccountId accountId, BaseNodeAddress address, ExecutorService executor)
      Constructor.
      Parameters:
      accountId - the account id
      address - the address as a managed node address
      executor - the executor service
    • Node

      Node(AccountId accountId, String address, ExecutorService executor)
      Constructor.
      Parameters:
      accountId - the account id
      address - the address as a string
      executor - the executor service
    • Node

      Node(Node node, BaseNodeAddress address)
      Constructor for a node that verifies certificates.
      Parameters:
      node - the node
      address - the address as a managed node address
  • Method Details

    • toInsecure

      Node toInsecure()
      Create an insecure version of this node
      Returns:
      the insecure version of the node
    • toSecure

      Node toSecure()
      Create a secure version of this node
      Returns:
      the secure version of the node
    • getKey

      AccountId getKey()
      Description copied from class: BaseNode
      Extract the key list
      Specified by:
      getKey in class BaseNode<Node,AccountId>
      Returns:
      the key list
    • getAccountId

      AccountId getAccountId()
      Extract the account id.
      Returns:
      the account id
    • getAddressBookEntry

      NodeAddress getAddressBookEntry()
      Extract the address book.
      Returns:
      the address book
    • setAddressBookEntry

      Node setAddressBookEntry(@Nullable NodeAddress addressBookEntry)
      Assign the address book.
      Parameters:
      addressBookEntry - the address book
      Returns:
      this
    • isVerifyCertificates

      boolean isVerifyCertificates()
      Are the certificates being verified?
      Returns:
      are the certificates being verified
    • setVerifyCertificates

      Node setVerifyCertificates(boolean verifyCertificates)
      Assign the certificate status.
      Parameters:
      verifyCertificates - should certificates be verified
      Returns:
      this
    • getChannelCredentials

      io.grpc.ChannelCredentials getChannelCredentials()
      Description copied from class: BaseNode
      Create TLS credentials when transport security is enabled
      Overrides:
      getChannelCredentials in class BaseNode<Node,AccountId>
      Returns:
      the channel credentials
    • toString

      public String toString()
      Overrides:
      toString in class Object