use of com.att.cdp.zones.model.Port in project AJSC by att.
the class ConnectedServer method getPorts.
/**
* Override the API class to actually get and return the list of ports from the service provider and to cache them
* once obtained.
*
* @see com.att.cdp.zones.model.Server#getPorts()
*/
@Override
public List<Port> getPorts() throws ZoneException {
Context context = getContext();
ComputeService service = context.getComputeService();
List<Port> ports = service.getPorts(this);
if (ports == null) {
ports = new ArrayList<Port>();
}
return ports;
}
Aggregations