Class BaseNodeAddress

java.lang.Object
com.hedera.hashgraph.sdk.BaseNodeAddress

class BaseNodeAddress extends Object
Internal utility class.
  • Field Details

  • Constructor Details

    • BaseNodeAddress

      public BaseNodeAddress(@Nullable String name, @Nullable String address, int port)
      Constructor.
      Parameters:
      name - the name part
      address - the address part
      port - the port part
    • BaseNodeAddress

      public BaseNodeAddress(@Nullable String name, @Nullable String address, int port, boolean secure)
      Constructor.
      Parameters:
      name - the name part
      address - the address part
      port - the port part
      secure - secure transport
  • Method Details

    • fromString

      public static BaseNodeAddress fromString(String string)
      Create a managed node address fom a string.
      Parameters:
      string - the string representation
      Returns:
      the new managed node address
    • getName

      public String getName()
      Extract the name.
      Returns:
      the name
    • getAddress

      public String getAddress()
      Extract the address.
      Returns:
      the address
    • getPort

      public int getPort()
      Extract the port.
      Returns:
      the port
    • isInProcess

      public boolean isInProcess()
      Are we in process?
      Returns:
      are we in process
    • isTransportSecurity

      public boolean isTransportSecurity()
      Are we secure?
      Returns:
      are we secure
    • toInsecure

      public BaseNodeAddress toInsecure()
      Create a new insecure managed node.
      Returns:
      the insecure managed node address
    • toSecure

      public BaseNodeAddress toSecure()
      Create a new managed node.
      Returns:
      the secure managed node address
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object