public long getId ( ) throws SnowizardClientException { for ( final String host : hosts ) { try { final SnowizardResponse snowizard = executeRequest ( host ) ; if ( snowizard != null ) { return snowizard . getId ( 0 ) ; } } catch ( final Exception ex ) { LOGGER . warn ( "Unable to get ID from host ({})" , host ) ; } } throw new SnowizardClientException ( "Unable to generate ID from Snowizard" ) ; }
Get a new ID from Snowizard