private Set < Integer > extractPortsSet ( SystemMember member ) throws AdminException { Set < Integer > portsSet = new HashSet < Integer > ( ) ; SystemMemberCache cache = member . getCache ( ) ; if ( cache != null ) { SystemMemberCacheServer [ ] cacheServers = cache . getCacheServers ( ) ; if ( cacheServers != null ) { for ( SystemMemberCacheServer cacheServer : cacheServers ) { portsSet . add ( cacheServer . getPort ( ) ) ; } } } return portsSet ; }
Extracts port from the SystemMember object .