/** * {@inheritDoc} */ @Override public final void setAgentName(String name) throws StorageException { if ((null == name) || "".equals(name)) { throw new StorageException("Agent name cannot be null or empty!"); } // don't allow reseting if (null == agentName) { agentName = name; // when we know the name init the logging LogInitializer.setAgentNameAndInitLogging(name); } if (log.isInfoEnabled()) { log.info("Agent name set to: " + name); } }