mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-19 09:47:27 +10:00
[강운덕] [LUCYSUS-1744] metadata를 request response구조로 전달하도록 변경.
재전송 로직은 추가적으로 필요함. git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-profiler-bootstrap/trunk@2259 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.nhn.pinpoint.profiler.config;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.util.HashSet;
|
||||
import java.util.Properties;
|
||||
@@ -9,7 +10,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.nhn.pinpoint.common.ServiceType;
|
||||
import com.nhn.pinpoint.common.util.PropertyUtils;
|
||||
import com.nhn.pinpoint.profiler.util.NumberUtils;
|
||||
|
||||
public class ProfilerConfig {
|
||||
@@ -55,7 +55,7 @@ public class ProfilerConfig {
|
||||
|
||||
public void readConfigFile(String pinpiontConfigFileName) throws IOException {
|
||||
try {
|
||||
Properties properties = PropertyUtils.readProperties(pinpiontConfigFileName);
|
||||
Properties properties = readProperties(pinpiontConfigFileName);
|
||||
readPropertyValues(properties);
|
||||
} catch (FileNotFoundException fe) {
|
||||
if (logger.isLoggable(Level.WARNING)) {
|
||||
@@ -70,7 +70,22 @@ public class ProfilerConfig {
|
||||
}
|
||||
}
|
||||
|
||||
public String getCollectorServerIp() {
|
||||
private Properties readProperties(String configFileName) throws IOException {
|
||||
Properties properties = new Properties();
|
||||
FileReader fileReader = new FileReader(configFileName);
|
||||
try {
|
||||
properties.load(fileReader);
|
||||
} finally {
|
||||
try {
|
||||
fileReader.close();
|
||||
} catch (IOException e) {
|
||||
// 무시
|
||||
}
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
||||
public String getCollectorServerIp() {
|
||||
return collectorServerIp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user