Пример #1
0
  private String getInstanceLogFileDirectory(Server targetServer) throws IOException {

    String logFileDetailsForServer = "";
    String targetConfigName = "";

    Cluster clusterForInstance = targetServer.getCluster();
    if (clusterForInstance != null) {
      targetConfigName = clusterForInstance.getConfigRef();
    } else {
      targetConfigName = targetServer.getConfigRef();
    }

    logFileDetailsForServer = loggingConfig.getLoggingFileDetails(targetConfigName);

    return logFileDetailsForServer;
  }