private Peer getPeer ( HFClient client , String peerName ) throws InvalidArgumentException { Peer peer = null ; Node p = peers . get ( peerName ) ; if ( p != null ) { peer = client . newPeer ( p . getName ( ) , p . getUrl ( ) , p . getProperties ( ) ) ; } return peer ; }
Returns a new Peer instance for the specified peer name