Package com.yahoo.vespa.model
Class PortAllocBridge
- java.lang.Object
-
- com.yahoo.vespa.model.PortAllocBridge
-
public class PortAllocBridge extends Object
API for allocating network ports This class acts as a bridge between NetworkPortRequestor and HostPorts for a single call to allocatePorts(), gathering the resulting port allocations in a list of integers.- Author:
- arnej
-
-
Constructor Summary
Constructors Constructor Description PortAllocBridge(HostPorts host, NetworkPortRequestor service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
allocatePort(String suffix)
int
requirePort(int port, String suffix)
List<Integer>
result()
int
wantPort(int port, String suffix)
-
-
-
Constructor Detail
-
PortAllocBridge
public PortAllocBridge(HostPorts host, NetworkPortRequestor service)
-
-