/** * {@inheritDoc} */ @Override public final void setRepository(String host, int port) throws StorageException { if ((null == host) || "".equals(host)) { throw new StorageException("Repository host name cannot be null or empty!"); } if (port < 1) { throw new StorageException("Repository port has to be greater than 0!"); } // can not reset repository if (null == repository) { this.repository = new RepositoryConfig(host, port); } if (log.isInfoEnabled()) { log.info("Repository definition added. Host: " + host + " Port: " + port); } }