public Collection < String > getLocalPlacements ( ) { List < String > placements = Lists . newArrayList ( ) ; for ( String placementName : _placementFactory . getValidPlacements ( ) ) { Placement placement ; try { placement = get ( placementName ) ; } catch ( UnknownPlacementException e ) { continue ; // Placement must live in another data center. } placements . add ( placement . getName ( ) ) ; } return placements ; }
Returns all placements accessible in the local data center including internal placements .