提交 c699c64c 编写于 作者: wu-sheng's avatar wu-sheng

Remove some useless codes in agent-core.

上级 16fe2ba5
package org.skywalking.apm.agent.core.context;
/**
* The <code>Injectable</code> represents a callback
* The <code>Injectable</code> represents a provider, which gives the reference of {@link ContextCarrier} and peer
* for the agent core, for cross-process propagation.
*
* @author wusheng
*/
......
......@@ -2,16 +2,6 @@ package org.skywalking.apm.agent.core.context.tag;
import org.skywalking.apm.agent.core.context.trace.AbstractSpan;
/**
* This is the abstract tag.
* All span's tags inherit from {@link AbstractTag},
* which provide an easy way to
* {@link Span#setTag(String, String)} ,
* {@link Span#setTag(String, Integer)}
* {@link Span#setTag(String, boolean)} ,
* <p>
* Created by wusheng on 2017/2/17.
*/
public abstract class AbstractTag<T> {
/**
* The key of this Tag.
......
......@@ -22,21 +22,6 @@ public final class Tags {
*/
public static final StringTag STATUS_CODE = new StringTag("status_code");
/**
* SPAN_KIND hints at the relationship between spans, e.g. client/server.
*/
public static final StringTag SPAN_KIND = new StringTag("span.kind");
/**
* A constant for setting the span kind to indicate that it represents a server span.
*/
public static final String SPAN_KIND_SERVER = "server";
/**
* A constant for setting the span kind to indicate that it represents a client span.
*/
public static final String SPAN_KIND_CLIENT = "client";
/**
* SPAN_LAYER represents the kind of span.
* <p>
......
......@@ -5,14 +5,10 @@ package org.skywalking.apm.agent.core.dictionary;
*/
public class DictionaryUtil {
public static int nullValue() {
return -1;
return 0;
}
public static boolean isNull(int value) {
return value == nullValue();
}
public static boolean isNull(String text) {
return text == null;
public static boolean isNull(int id) {
return id == nullValue();
}
}
package org.skywalking.apm.agent.core.dictionary;
/**
* @author wusheng
*/
public class DictionaryValueHolder {
private int value = DictionaryUtil.nullValue();
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册