public Set < Location > getLocations ( ) throws FlexiantException { Set < Location > locations = new HashSet < Location > ( ) ; for ( Vdc vdc : this . getResources ( ResourceType . VDC , Vdc . class , null ) ) { locations . add ( Location . from ( vdc , this . getResource ( ( vdc ) . getClusterUUID ( ) , ResourceType . CLUSTER , Cluster . class ) ) ) ; } locations . addAll ( this . getResources ( ResourceType . CLUSTER , Cluster . class , null ) . stream ( ) . map ( Location :: from ) . collect ( Collectors . toList ( ) ) ) ; return locations ; }
Returns all locations .