public class PathLocation
extends java.lang.Object
| Constructor | Description |
|---|---|
PathLocation(java.lang.String source,
java.util.List<RemoteLocation> dest) |
Create a new PathLocation with default HASH order.
|
PathLocation(java.lang.String source,
java.util.List<RemoteLocation> dest,
DestinationOrder order) |
Create a new PathLocation.
|
PathLocation(PathLocation other) |
Create a path location from another path.
|
PathLocation(PathLocation other,
java.lang.String firstNsId) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
RemoteLocation |
getDefaultLocation() |
Get the default or highest priority location.
|
DestinationOrder |
getDestinationOrder() |
Get the order for the destinations.
|
java.util.List<RemoteLocation> |
getDestinations() |
Get the list of locations found in the mount table.
|
java.util.Set<java.lang.String> |
getNamespaces() |
Get the subclusters defined for the destinations.
|
java.lang.String |
getSourcePath() |
Get the source path in the global namespace for this path location.
|
boolean |
hasMultipleDestinations() |
Check if this location supports multiple clusters/paths.
|
static PathLocation |
prioritizeDestination(PathLocation base,
java.lang.String firstNsId) |
Return a path location with the prioritized destinations based on
the current path location.
|
java.lang.String |
toString() |
public PathLocation(java.lang.String source,
java.util.List<RemoteLocation> dest,
DestinationOrder order)
source - Source path in the global name space.dest - Destinations of the mount table entry.order - Order of the locations.public PathLocation(java.lang.String source,
java.util.List<RemoteLocation> dest)
source - Source path in the global name space.dest - Destinations of the mount table entry.public PathLocation(PathLocation other)
other - Other path location to copy from.@Deprecated public PathLocation(PathLocation other, java.lang.String firstNsId)
other - Other path location to copy from.firstNsId - Identifier of the namespace to place first.public static PathLocation prioritizeDestination(PathLocation base, java.lang.String firstNsId)
base - The base path location we'd like to prioritize on.firstNsId - Identifier of the namespace to place first.public java.lang.String getSourcePath()
public java.util.Set<java.lang.String> getNamespaces()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasMultipleDestinations()
public java.util.List<RemoteLocation> getDestinations()
public DestinationOrder getDestinationOrder()
public RemoteLocation getDefaultLocation()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.