public Set < Node > find ( String host ) { Set < Node > resultSet = new HashSet < Node > ( ) ; if ( host != null ) { for ( Node node : socketToNodeMap . values ( ) ) { if ( host . equals ( node . getHost ( ) ) ) { resultSet . add ( node ) ; } } } return resultSet ; }
Finds the set of nodes by host .