private void loadConfigurationFromJvmParameters(){
  String repositoryProperty=System.getProperty(REPOSITORY_PROPERTY);
  if (null != repositoryProperty) {
    String[] repositoryIpHost=repositoryProperty.split(":");
    if (repositoryIpHost.length == 2) {
      String repositoryIp=repositoryIpHost[0];
      String repositoryPort=repositoryIpHost[1];
      if (StringUtils.isNotBlank(repositoryIp) && StringUtils.isNotBlank(repositoryPort)) {
        log.info("Repository information found in the JVM parameters: IP=" + repositoryIp + " Port="+ repositoryPort);
        try {
          int port=Integer.parseInt(repositoryPort);
          setRepository(repositoryIp,port);
        }
 catch (        Exception e) {
          log.warn("Repository could not be defined from the data in the JVM parameters",e);
        }
      }
    }
  }
  String agentName=System.getProperty(AGENT_NAME_PROPERTY);
  if (StringUtils.isNotBlank(agentName)) {
    try {
      log.info("Agent name found in the JVM parameters: AgentName=" + agentName);
      setAgentName(agentName);
    }
 catch (    Exception e) {
      log.warn("Agent name could not be defined from the data in the JVM parameters",e);
    }
  }
 else {
    try {
      setAgentName(DEFAULT_AGENT_NAME);
    }
 catch (    StorageException e) {
      log.warn("Agent name could not be defined from default agent name",e);
    }
  }
}

private void loadConfigurationFromJvmParameters ( ) { String repositoryProperty = System . getProperty ( REPOSITORY_PROPERTY ) ; if ( null != repositoryProperty ) { String [ ] repositoryIpHost = repositoryProperty . split ( ":" ) ; if ( repositoryIpHost . length == 2 ) { String repositoryIp = repositoryIpHost [ 0 ] ; String repositoryPort = repositoryIpHost [ 1 ] ; if ( StringUtils . isNotBlank ( repositoryIp ) && StringUtils . isNotBlank ( repositoryPort ) ) { log . info ( "Repository information found in the JVM parameters: IP=" + repositoryIp + " Port=" + repositoryPort ) ; try { int port = Integer . parseInt ( repositoryPort ) ; setRepository ( repositoryIp , port ) ; } catch ( Exception e ) { log . warn ( "Repository could not be defined from the data in the JVM parameters" , e ) ; } } } } String agentName = System . getProperty ( AGENT_NAME_PROPERTY ) ; if ( StringUtils . isNotBlank ( agentName ) ) { try { log . info ( "Agent name found in the JVM parameters: AgentName=" + agentName ) ; setAgentName ( agentName ) ; } catch ( Exception e ) { log . warn ( "Agent name could not be defined from the data in the JVM parameters" , e ) ; } } else { try { setAgentName ( DEFAULT_AGENT_NAME ) ; } catch ( StorageException e ) { log . warn ( "Agent name could not be defined from default agent name" , e ) ; } } }
checks if the jvm parameters have the repository and agent information .
