Class RemoteParam
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RemoteParam
A dynamically assignable parameter that is location-specific.
There are 2 ways this mapping is determined:
- Default: Uses the RemoteLocationContext's destination
- Map: Uses the value of the RemoteLocationContext key provided in the parameter map.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default remote parameter.RemoteParam(Map<? extends RemoteLocationContext, ? extends Object> map) Constructs a map based remote parameter. -
Method Summary
Modifier and TypeMethodDescriptionDetermine the appropriate value for this parameter based on the location.toString()
-
Constructor Details
-
RemoteParam
public RemoteParam()Constructs a default remote parameter. Always maps the value to the destination of the provided RemoteLocationContext. -
RemoteParam
Constructs a map based remote parameter. Determines the value using the provided RemoteLocationContext as a key into the map.- Parameters:
map- Map with RemoteLocationContext keys.
-
-
Method Details