修复部分问题
This commit is contained in:
parent
b08470b8b6
commit
4eff915cea
|
|
@ -1,4 +1,4 @@
|
|||
package com.a.eye.skywalking.toolkit.log4j.v2.x;
|
||||
package com.a.eye.skywalking.toolkit.log.log4j.v2.x;
|
||||
|
||||
/**
|
||||
* Created by wusheng on 2016/12/11.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.a.eye.skywalking.toolkit.log4j.v2.x;
|
||||
package com.a.eye.skywalking.toolkit.log.log4j.v2.x;
|
||||
|
||||
|
||||
import org.apache.logging.log4j.core.LogEvent;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.a.eye.skywalking.toolkit.logback.v1.x;
|
||||
package com.a.eye.skywalking.toolkit.log.logback.v1.x;
|
||||
|
||||
import ch.qos.logback.classic.pattern.ClassicConverter;
|
||||
import ch.qos.logback.classic.spi.ILoggingEvent;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.a.eye.skywalking.toolkit.logback.v1.x;
|
||||
package com.a.eye.skywalking.toolkit.log.logback.v1.x;
|
||||
|
||||
import ch.qos.logback.classic.PatternLayout;
|
||||
|
||||
|
|
@ -28,12 +28,6 @@
|
|||
<artifactId>zookeeper</artifactId>
|
||||
<version>3.4.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-all</artifactId>
|
||||
<version>1.10.19</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.curator</groupId>
|
||||
<artifactId>curator-test</artifactId>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ public final class BuriedPointMachineUtil {
|
|||
}
|
||||
|
||||
public static int getProcessNo() {
|
||||
if (processNo != -1) {
|
||||
if (processNo == -1) {
|
||||
String name = ManagementFactory.getRuntimeMXBean().getName();
|
||||
try {
|
||||
processNo = Integer.parseInt(name.split("@")[0]);
|
||||
}catch(Throwable t){
|
||||
} catch (Throwable t) {
|
||||
processNo = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -39,9 +39,9 @@ public final class BuriedPointMachineUtil {
|
|||
if (StringUtil.isEmpty(IP)) {
|
||||
InetAddress netAddress = getInetAddress();
|
||||
if (null == netAddress) {
|
||||
IP = "N/A";
|
||||
}else{
|
||||
IP = netAddress.getHostAddress(); //get the ip address
|
||||
IP = "N/A";
|
||||
} else {
|
||||
IP = netAddress.getHostAddress(); //get the ip address
|
||||
}
|
||||
}
|
||||
return IP;
|
||||
|
|
@ -51,16 +51,16 @@ public final class BuriedPointMachineUtil {
|
|||
if (StringUtil.isEmpty(hostName)) {
|
||||
InetAddress netAddress = getInetAddress();
|
||||
if (null == netAddress) {
|
||||
hostName = "N/A";
|
||||
}else{
|
||||
hostName = netAddress.getHostName(); //get the host address
|
||||
hostName = "N/A";
|
||||
} else {
|
||||
hostName = netAddress.getHostName(); //get the host address
|
||||
}
|
||||
}
|
||||
return hostName;
|
||||
}
|
||||
|
||||
public static String getHostDesc(){
|
||||
return getHostName() + "/" + getHostIp();
|
||||
|
||||
public static String getHostDesc() {
|
||||
return getHostName() + "/" + getHostIp();
|
||||
}
|
||||
|
||||
private BuriedPointMachineUtil() {
|
||||
|
|
|
|||
|
|
@ -18,12 +18,6 @@
|
|||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.grpc</groupId>
|
||||
<artifactId>grpc-testing</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.curator</groupId>
|
||||
<artifactId>curator-test</artifactId>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.a.eye.skywalking.storage.alarm;
|
||||
package com.a.eye.skywalking.routing.alarm;
|
||||
|
||||
import com.a.eye.skywalking.network.grpc.AckSpan;
|
||||
import com.a.eye.skywalking.network.grpc.TraceId;
|
||||
|
|
|
|||
|
|
@ -153,9 +153,6 @@
|
|||
{{else}}
|
||||
{{>totalSize}}个调用节点,
|
||||
{{/if}}消耗总时长:{{>totalTime}}ms。
|
||||
{{if hasCallChainTree}}
|
||||
<button class="btn btn-primary" onclick="javascript:gotoCallChainTree(this);" value="{{>callChainTreeToken}}">查看调用树</button>
|
||||
{{/if}}
|
||||
</h5>
|
||||
</div>
|
||||
<ul id="myTab" class="nav nav-tabs">
|
||||
|
|
|
|||
Loading…
Reference in New Issue