public void configure ( ) throws LRException { // Trim or nullify strings nodeHost = StringUtil . nullifyBadInput ( nodeHost ) ; publishAuthUser = StringUtil . nullifyBadInput ( publishAuthUser ) ; publishAuthPassword = StringUtil . nullifyBadInput ( publishAuthPassword ) ; // Throw an exception if any of the required fields are null if ( nodeHost == null ) { throw new LRException ( LRException . NULL_FIELD ) ; } // Throw an error if the batch size is zero if ( batchSize == 0 ) { throw new LRException ( LRException . BATCH_ZERO ) ; } this . batchSize = batchSize ; this . publishFullUrl = publishProtocol + "://" + nodeHost + publishServiceUrl ; this . publishAuthUser = publishAuthUser ; this . publishAuthPassword = publishAuthPassword ; this . configured = true ; }
Attempt to configure the exporter with the values used in the constructor This must be called before an exporter can be used and after any setting of configuration values