Interface EnodeURL
public interface EnodeURL
The interface Enode url.
-
Method Summary
Modifier and TypeMethodDescriptionGets discovery port.intGets discovery port or zero.getHost()Gets the host.getIp()Gets ip.Gets ip as string.Gets listening port.intGets listening port or zero.org.apache.tuweni.bytes.BytesGets node id.booleanIs listening.booleanIs running discovery.toURI()Enode To URI.Enode to uri without discovery port.
-
Method Details
-
toURIWithoutDiscoveryPort
-
getNodeId
org.apache.tuweni.bytes.Bytes getNodeId()Gets node id.- Returns:
- the node id
-
getIp
-
getListeningPort
-
getListeningPortOrZero
int getListeningPortOrZero()Gets listening port or zero.- Returns:
- the listening port or zero
-
toURI
-
getDiscoveryPort
-
isListening
boolean isListening()Is listening.- Returns:
- the boolean
-
isRunningDiscovery
boolean isRunningDiscovery()Is running discovery.- Returns:
- the boolean
-
getIpAsString
-
getDiscoveryPortOrZero
int getDiscoveryPortOrZero()Gets discovery port or zero.- Returns:
- the discovery port or zero
-
getHost
-