public Set < String > getAllRacks ( ) { netlock . readLock ( ) . lock ( ) ; try { Set < String > result = new HashSet < String > ( this . racks ) ; result . addAll ( this . masterRacksSet ) ; return result ; } finally { netlock . readLock ( ) . unlock ( ) ; } }
Returns the set of racks