Configurable, DNSToSwitchMapping, DNSToSwitchMappingWithDependency@Private @Evolving public class ScriptBasedMappingWithDependency extends ScriptBasedMapping implements DNSToSwitchMappingWithDependency
DNSToSwitchMappingWithDependency interface using
a script configured via the
CommonConfigurationKeysPublic.NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY option.
It contains a static class RawScriptBasedMappingWithDependency
that performs the getDependency work.
ScriptBasedMapping.RawScriptBasedMappingNO_SCRIPTrawMapping| Constructor | Description |
|---|---|
ScriptBasedMappingWithDependency() |
Create an instance with the default configuration.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<java.lang.String> |
getDependency(java.lang.String name) |
Get dependencies in the topology for a given host
|
void |
setConf(Configuration conf) |
Set the configuration to be used by this object.
|
java.lang.String |
toString() |
getConfgetSwitchMap, isSingleSwitch, reloadCachedMappings, reloadCachedMappings, resolvedumpTopology, isMappingSingleSwitch, isSingleSwitchByScriptPolicyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreloadCachedMappings, reloadCachedMappings, resolvepublic ScriptBasedMappingWithDependency()
Calling setConf(Configuration) will trigger a
re-evaluation of the configuration settings and so be used to
set up the mapping script.
public java.lang.String toString()
toString in class ScriptBasedMappingpublic void setConf(Configuration conf)
This will get called in the superclass constructor, so a check is needed to ensure that the raw mapping is defined before trying to relaying a null configuration.
.This will get called in the superclass constructor, so a check is needed to ensure that the raw mapping is defined before trying to relaying a null configuration.
setConf in interface ConfigurablesetConf in class ScriptBasedMappingconf - input Configuration.public java.util.List<java.lang.String> getDependency(java.lang.String name)
getDependency in interface DNSToSwitchMappingWithDependencyname - - host name for which we are getting dependencyCopyright © 2008–2025 Apache Software Foundation. All rights reserved.