An individual mirror node.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hedera.hashgraph.sdk.BaseNode
BaseNode.MetadataInterceptor -
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.BaseNode
address, badGrpcStatusCount, channel, currentBackoff, executor, maxBackoff, minBackoff, readmitTime -
Constructor Summary
ConstructorsConstructorDescriptionMirrorNode(BaseNodeAddress address, ExecutorService executor) Constructor.MirrorNode(String address, ExecutorService executor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturn the local host ip address(package private) BaseNodeAddressgetKey()Extract the key list(package private) StringBuild the REST base URL for this mirror node.Methods inherited from class com.hedera.hashgraph.sdk.BaseNode
channelFailedToConnect, channelFailedToConnect, channelFailedToConnectAsync, close, decreaseBackoff, getAddress, getBadGrpcStatusCount, getChannel, getChannelCredentials, getMaxBackoff, getMinBackoff, getRemainingTimeForBackoff, increaseBackoff, isHealthy, setMaxBackoff, setMinBackoff, unhealthyBackoffRemaining
-
Constructor Details
-
MirrorNode
MirrorNode(BaseNodeAddress address, ExecutorService executor) Constructor.- Parameters:
address- the node address as a managed node addressexecutor- the executor service
-
MirrorNode
MirrorNode(String address, ExecutorService executor) Constructor.- Parameters:
address- the node address as a stringexecutor- the executor service
-
-
Method Details
-
getAuthority
Description copied from class:BaseNodeReturn the local host ip address- Overrides:
getAuthorityin classBaseNode<MirrorNode,BaseNodeAddress> - Returns:
- the authority address
-
getKey
BaseNodeAddress getKey()Description copied from class:BaseNodeExtract the key list- Specified by:
getKeyin classBaseNode<MirrorNode,BaseNodeAddress> - Returns:
- the key list
-
getRestBaseUrl
String getRestBaseUrl()Build the REST base URL for this mirror node.- Returns:
- scheme://host[:port]/api/v1
-