Interface EnodeURL


public interface EnodeURL
The interface Enode url.
  • Method Details

    • toURIWithoutDiscoveryPort

      URI toURIWithoutDiscoveryPort()
      Enode to uri without discovery port.
      Returns:
      the uri
    • getNodeId

      org.apache.tuweni.bytes.Bytes getNodeId()
      Gets node id.
      Returns:
      the node id
    • getIp

      InetAddress getIp()
      Gets ip.
      Returns:
      the ip
    • getListeningPort

      Optional<Integer> getListeningPort()
      Gets listening port.
      Returns:
      the listening port
    • getListeningPortOrZero

      int getListeningPortOrZero()
      Gets listening port or zero.
      Returns:
      the listening port or zero
    • toURI

      URI toURI()
      Enode To URI.
      Returns:
      the uri
    • getDiscoveryPort

      Optional<Integer> getDiscoveryPort()
      Gets discovery port.
      Returns:
      the discovery port
    • isListening

      boolean isListening()
      Is listening.
      Returns:
      the boolean
    • isRunningDiscovery

      boolean isRunningDiscovery()
      Is running discovery.
      Returns:
      the boolean
    • getIpAsString

      String getIpAsString()
      Gets ip as string.
      Returns:
      the ip as string
    • getDiscoveryPortOrZero

      int getDiscoveryPortOrZero()
      Gets discovery port or zero.
      Returns:
      the discovery port or zero
    • getHost

      String getHost()
      Gets the host.
      Returns:
      the host