protected Client getClient ( String id ) throws IOException { Get get = new Get . Builder ( getIndexName ( ) , id ) . type ( "client" ) . build ( ) ; //$NON-NLS-1$ JestResult result = getClient ( ) . execute ( get ) ; if ( result . isSucceeded ( ) ) { Client client = result . getSourceAsObject ( Client . class ) ; return client ; } else { return null ; } }
Gets the client synchronously .