Package io.trino.metadata
Class InternalNode
- java.lang.Object
-
- io.trino.metadata.InternalNode
-
-
Constructor Summary
Constructors Constructor Description InternalNode(String nodeIdentifier, URI internalUri, NodeVersion nodeVersion, boolean coordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetHost()HostAddressgetHostAndPort()URIgetHttpUri()Deprecated.InetAddressgetInternalAddress()URIgetInternalUri()StringgetNodeIdentifier()NodeVersiongetNodeVersion()StringgetVersion()inthashCode()booleanisCoordinator()StringtoString()
-
-
-
Constructor Detail
-
InternalNode
public InternalNode(String nodeIdentifier, URI internalUri, NodeVersion nodeVersion, boolean coordinator)
-
-
Method Detail
-
getNodeIdentifier
public String getNodeIdentifier()
- Specified by:
getNodeIdentifierin interfaceNode
-
getHttpUri
@Deprecated public URI getHttpUri()
Deprecated.- Specified by:
getHttpUriin interfaceNode
-
getInternalUri
public URI getInternalUri()
-
getInternalAddress
public InetAddress getInternalAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
getHostAndPort
public HostAddress getHostAndPort()
- Specified by:
getHostAndPortin interfaceNode
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceNode
-
isCoordinator
public boolean isCoordinator()
- Specified by:
isCoordinatorin interfaceNode
-
getNodeVersion
public NodeVersion getNodeVersion()
-
-