Package io.trino.execution.scheduler
Class SubnetBasedTopology
- java.lang.Object
-
- io.trino.execution.scheduler.SubnetBasedTopology
-
- All Implemented Interfaces:
NetworkTopology
public class SubnetBasedTopology extends Object implements NetworkTopology
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubnetBasedTopology.AddressProtocol
-
Constructor Summary
Constructors Constructor Description SubnetBasedTopology(SubnetTopologyConfig config)SubnetBasedTopology(List<Integer> cidrPrefixLengths, SubnetBasedTopology.AddressProtocol protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkLocationlocate(HostAddress address)
-
-
-
Constructor Detail
-
SubnetBasedTopology
@Inject public SubnetBasedTopology(SubnetTopologyConfig config)
-
SubnetBasedTopology
public SubnetBasedTopology(List<Integer> cidrPrefixLengths, SubnetBasedTopology.AddressProtocol protocol)
-
-
Method Detail
-
locate
public NetworkLocation locate(HostAddress address)
- Specified by:
locatein interfaceNetworkTopology
-
-