| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
public interface PortSupplier
Mixin interface for location which allows it to supply ports from a given range
| Method Summary | |
|---|---|
| int | obtainPort(PortRange range)Reserve a port for your application, with a port number in a specific range. | 
| boolean | obtainSpecificPort(int portNumber)Reserve a specific port for an application. | 
| void | releasePort(int portNumber)Release a previously reserved port. | 
| Method Detail | 
|---|
public int obtainPort(PortRange range)
range -  the range of acceptable port numbers.
public boolean obtainSpecificPort(int portNumber)
portNumber -  the required port number.
public void releasePort(int portNumber)
portNumber -  the port number from a call to obtainPort(PortRange) or obtainSpecificPort(int)
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.