icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/NodesController.java
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;
	}
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;
	}
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.

@param member
- the specified SystemMember
@return - port if its found, -1 otherwise
@throws AdminException
Extracts port from the SystemMember object .