MembershipNamenodeResolver@Private
@Evolving
public interface ActiveNamenodeResolver
RouterRpcServer to:
NamenodeHeartbeatService to register a discovered NN.| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<java.lang.String> |
getDisabledNamespaces() |
Get a list of all namespaces that are disabled.
|
java.util.List<? extends FederationNamenodeContext> |
getNamenodesForBlockPoolId(java.lang.String blockPoolId) |
Returns a prioritized list of the most recent cached registration entries
for a single block pool ID.
|
java.util.List<? extends FederationNamenodeContext> |
getNamenodesForNameserviceId(java.lang.String nameserviceId,
boolean listObserversFirst) |
Returns a prioritized list of the most recent cached registration entries
for a single nameservice ID.
|
java.util.Set<FederationNamespaceInfo> |
getNamespaces() |
Get a list of all namespaces that are registered and active in the
federation.
|
boolean |
registerNamenode(NamenodeStatusReport report) |
Register a namenode in the State Store.
|
void |
rotateCache(java.lang.String nsId,
FederationNamenodeContext namenode,
boolean listObserversFirst) |
Rotate cache, make the current namenode have the lowest priority,
to ensure that the current namenode will not be accessed first next time.
|
void |
setRouterId(java.lang.String routerId) |
Assign a unique identifier for the parent router service.
|
void |
updateActiveNamenode(java.lang.String ns,
java.net.InetSocketAddress successfulAddress) |
Report a successful, active NN address for a nameservice or blockPool.
|
void |
updateUnavailableNamenode(java.lang.String ns,
java.net.InetSocketAddress failedAddress) |
Report a failed, unavailable NN address for a nameservice or blockPool.
|
void updateUnavailableNamenode(java.lang.String ns,
java.net.InetSocketAddress failedAddress)
throws java.io.IOException
ns - Nameservice identifier.failedAddress - The address the failed responded to the command.java.io.IOException - If the state store cannot be accessed.void updateActiveNamenode(java.lang.String ns,
java.net.InetSocketAddress successfulAddress)
throws java.io.IOException
ns - Nameservice identifier.successfulAddress - The address the successful responded to the
command.java.io.IOException - If the state store cannot be accessed.java.util.List<? extends FederationNamenodeContext> getNamenodesForNameserviceId(java.lang.String nameserviceId, boolean listObserversFirst) throws java.io.IOException
nameserviceId - Nameservice identifier.listObserversFirst - Observer read case, observer NN will be ranked firstjava.io.IOException - If the state store cannot be accessed.java.util.List<? extends FederationNamenodeContext> getNamenodesForBlockPoolId(java.lang.String blockPoolId) throws java.io.IOException
blockPoolId - Block pool identifier for the nameservice.java.io.IOException - If the state store cannot be accessed.boolean registerNamenode(NamenodeStatusReport report) throws java.io.IOException
report - Namenode status report.java.io.IOException - Throws exception if the namenode could not be
registered.java.util.Set<FederationNamespaceInfo> getNamespaces() throws java.io.IOException
java.io.IOException - Throws exception if the namespace list is not
available.java.util.Set<java.lang.String> getDisabledNamespaces()
throws java.io.IOException
java.io.IOException - If the disabled list is not available.void setRouterId(java.lang.String routerId)
routerId - Unique string identifier for the router.void rotateCache(java.lang.String nsId,
FederationNamenodeContext namenode,
boolean listObserversFirst)
nsId - name service idnamenode - namenode contextslistObserversFirst - Observer read case, observer NN will be ranked firstCopyright © 2008–2025 Apache Software Foundation. All rights reserved.