Big refactor. Rename the api-module root package name .

This commit is contained in:
wusheng 2017-02-20 21:54:08 +08:00
parent 22dba10bde
commit 75d8aba0f4
140 changed files with 306 additions and 312 deletions

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.health.report;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import java.util.Arrays;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging.api;
package com.a.eye.skywalking.api.logging.api;
/**
* LogManager is the {@link LogResolver} implementation manager.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging.api;
package com.a.eye.skywalking.api.logging.api;
/**
* {@link LogResolver} just do only one thing: return the {@link ILog} implementation.

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.logging.impl.log4j2;
package com.a.eye.skywalking.api.logging.impl.log4j2;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.ILog;
import org.apache.logging.log4j.Logger;
/**

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.logging.impl.log4j2;
package com.a.eye.skywalking.api.logging.impl.log4j2;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogResolver;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogResolver;
import org.apache.logging.log4j.LogManager;
/**

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
public final class StringUtil {
public static boolean isEmpty(String str) {

View File

@ -2,13 +2,13 @@ package com.a.eye.skywalking.agent;
import com.a.eye.skywalking.agent.junction.SkyWalkingEnhanceMatcher;
import com.a.eye.skywalking.conf.Config;
import com.a.eye.skywalking.conf.SnifferConfigInitializer;
import com.a.eye.skywalking.api.conf.SnifferConfigInitializer;
import com.a.eye.skywalking.logging.EasyLogResolver;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.AbstractClassEnhancePluginDefine;
import com.a.eye.skywalking.plugin.PluginBootstrap;
import com.a.eye.skywalking.plugin.PluginDefineCategory;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.AbstractClassEnhancePluginDefine;
import com.a.eye.skywalking.api.plugin.PluginBootstrap;
import com.a.eye.skywalking.api.plugin.PluginDefineCategory;
import com.a.eye.skywalking.plugin.PluginException;
import net.bytebuddy.agent.builder.AgentBuilder;
import net.bytebuddy.description.NamedElement;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.agent.junction;
import com.a.eye.skywalking.plugin.PluginDefineCategory;
import com.a.eye.skywalking.api.plugin.PluginDefineCategory;
import net.bytebuddy.description.NamedElement;
/**

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.conf;
package com.a.eye.skywalking.api.conf;
public class Config {

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.conf;
package com.a.eye.skywalking.api.conf;
import com.a.eye.skywalking.util.TraceIdGenerator;
import com.a.eye.skywalking.api.util.TraceIdGenerator;
public class Constants {
/**

View File

@ -1,9 +1,9 @@
package com.a.eye.skywalking.conf;
package com.a.eye.skywalking.api.conf;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.util.ConfigInitializer;
import com.a.eye.skywalking.util.StringUtil;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.util.ConfigInitializer;
import com.a.eye.skywalking.api.util.StringUtil;
import java.io.File;
import java.io.FileInputStream;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.TraceSegmentRef;
import com.a.eye.skywalking.util.StringUtil;
import com.a.eye.skywalking.api.util.StringUtil;
import java.io.Serializable;
/**

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.queue.TraceSegmentProcessQueue;
import com.a.eye.skywalking.api.queue.TraceSegmentProcessQueue;
import com.a.eye.skywalking.trace.Span;
import com.a.eye.skywalking.trace.TraceSegment;

View File

@ -1,11 +1,9 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.Span;
import com.a.eye.skywalking.trace.TraceSegment;
import com.a.eye.skywalking.util.TraceIdGenerator;
import java.lang.reflect.Executable;
import com.a.eye.skywalking.api.util.TraceIdGenerator;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.TraceSegment;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogResolver;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogResolver;
/**
* Created by wusheng on 2016/11/26.

View File

@ -1,6 +1,7 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.util.LoggingUtil;
import java.net.URLEncoder;
@ -12,7 +13,7 @@ import static com.a.eye.skywalking.logging.LogLevel.*;
/**
* Created by xin on 16-6-23.
*/
public class EasyLogger implements com.a.eye.skywalking.logging.api.ILog {
public class EasyLogger implements ILog {
private Class toBeLoggerClass;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
public interface IWriter {
void write(String message);

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
/**
* Created by xin on 2016/12/7.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
public class STDOutWriter implements IWriter {

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
import com.a.eye.skywalking.conf.Config;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.logging;
package com.a.eye.skywalking.api.logging;
import com.a.eye.skywalking.conf.Config;

View File

@ -1,8 +1,9 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.util.StringUtil;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.ClassEnhancePluginDefine;
import com.a.eye.skywalking.api.util.StringUtil;
import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.pool.TypePool.Resolution;
@ -10,7 +11,7 @@ import net.bytebuddy.pool.TypePool.Resolution;
* Basic abstract class of all sky-walking auto-instrumentation plugins.
* <p>
* It provides the outline of enhancing the target class.
* If you want to know more about enhancing, you should go to see {@link com.a.eye.skywalking.plugin.interceptor.enhance.ClassEnhancePluginDefine}
* If you want to know more about enhancing, you should go to see {@link ClassEnhancePluginDefine}
*/
public abstract class AbstractClassEnhancePluginDefine {
private static ILog logger = LogManager.getLogger(AbstractClassEnhancePluginDefine.class);

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import net.bytebuddy.pool.TypePool;
import java.net.URL;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.util.StringUtil;
import com.a.eye.skywalking.api.util.StringUtil;
import java.io.BufferedReader;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import java.util.HashMap;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
public class PluginException extends RuntimeException {
private static final long serialVersionUID = -6020188711867490724L;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import java.io.IOException;
import java.net.URL;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import net.bytebuddy.ByteBuddy;
import net.bytebuddy.dynamic.ClassFileLocator;
import net.bytebuddy.dynamic.DynamicType;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.bytebuddy;
package com.a.eye.skywalking.api.plugin.bytebuddy;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.bytebuddy;
package com.a.eye.skywalking.api.plugin.bytebuddy;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
import com.a.eye.skywalking.plugin.PluginException;

View File

@ -1,15 +1,17 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
import com.a.eye.skywalking.api.plugin.AbstractClassEnhancePluginDefine;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.ClassEnhancePluginDefine;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Enhanced instance field type.
*
* Any plugins({@link com.a.eye.skywalking.plugin.AbstractClassEnhancePluginDefine}'s subclass) override
* {@link com.a.eye.skywalking.plugin.interceptor.enhance.ClassEnhancePluginDefine#getConstructorsInterceptPoints}
* Any plugins({@link AbstractClassEnhancePluginDefine}'s subclass) override
* {@link ClassEnhancePluginDefine#getConstructorsInterceptPoints}
* or
* {@link com.a.eye.skywalking.plugin.interceptor.enhance.ClassEnhancePluginDefine#getInstanceMethodsInterceptPoints}
* {@link ClassEnhancePluginDefine#getInstanceMethodsInterceptPoints}
* will add a field with this type.
*
* @author wusheng

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
public class InterceptorException extends RuntimeException {
private static final long serialVersionUID = 7846035239994885019L;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor;
package com.a.eye.skywalking.api.plugin.interceptor;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.interceptor.assist;
package com.a.eye.skywalking.api.plugin.interceptor.assist;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.InterceptorException;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
/**
* {@link NoCocurrencyAceessObject} is an abstract class,

View File

@ -1,9 +1,9 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.loader.InterceptorInstanceLoader;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.interceptor.loader.InterceptorInstanceLoader;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import net.bytebuddy.implementation.bind.annotation.AllArguments;
import net.bytebuddy.implementation.bind.annotation.FieldProxy;
import net.bytebuddy.implementation.bind.annotation.RuntimeType;

View File

@ -1,11 +1,10 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.AbstractClassEnhancePluginDefine;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.AbstractClassEnhancePluginDefine;
import com.a.eye.skywalking.plugin.PluginException;
import com.a.eye.skywalking.plugin.interceptor.*;
import com.a.eye.skywalking.util.StringUtil;
import com.a.eye.skywalking.api.util.StringUtil;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.implementation.MethodDelegation;

View File

@ -1,5 +1,6 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.api.plugin.interceptor.StaticMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.StaticMethodsInterceptPoint;
/**

View File

@ -1,9 +1,9 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.loader.InterceptorInstanceLoader;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.interceptor.loader.InterceptorInstanceLoader;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import net.bytebuddy.implementation.bind.annotation.*;
import java.lang.reflect.Method;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
/**
* Plugins, which only need enhance class static methods.

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.interceptor.loader.InterceptorInstanceLoader;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.interceptor.loader.InterceptorInstanceLoader;
import net.bytebuddy.implementation.bind.annotation.AllArguments;
import net.bytebuddy.implementation.bind.annotation.Origin;
import net.bytebuddy.implementation.bind.annotation.RuntimeType;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
/**
* Constructor context.

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import net.bytebuddy.implementation.bind.annotation.AllArguments;
import net.bytebuddy.implementation.bind.annotation.FieldProxy;
import net.bytebuddy.implementation.bind.annotation.RuntimeType;

View File

@ -0,0 +1,5 @@
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
public interface FieldGetter {
Object getValue();
}

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
public interface FieldSetter {
void setValue(Object value);

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
/**
* The instance constructor's interceptor interface.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
/**
* Instance method invoke context.

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
/**
* A interceptor, which intercept method's invocation.

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
/**
* This is a method return value manipulator.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
/**
* Method invoke context.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
package com.a.eye.skywalking.api.plugin.interceptor.enhance;
/**
* Static method invoke context.

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin.interceptor.loader;
package com.a.eye.skywalking.api.plugin.interceptor.loader;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogManager;
import com.a.eye.skywalking.api.logging.api.ILog;
import com.a.eye.skywalking.api.logging.api.LogManager;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.queue;
package com.a.eye.skywalking.api.queue;
import com.a.eye.skywalking.trace.TraceSegment;
import com.lmax.disruptor.EventFactory;

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.queue;
package com.a.eye.skywalking.api.queue;
import com.a.eye.skywalking.conf.Config;
import com.a.eye.skywalking.context.TracerContext;
import com.a.eye.skywalking.api.context.TracerContext;
import com.a.eye.skywalking.context.TracerContextListener;
import com.a.eye.skywalking.health.report.HealthCollector;
import com.a.eye.skywalking.health.report.HeathReading;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
import java.lang.management.ManagementFactory;
import java.net.InetAddress;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
/**
* Created data xin on 2016/12/4.

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.util;
package com.a.eye.skywalking.api.util;
import com.a.eye.skywalking.conf.Constants;
import java.util.UUID;

View File

@ -1,5 +0,0 @@
package com.a.eye.skywalking.plugin.interceptor.enhance;
public interface FieldGetter {
Object getValue();
}

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import org.junit.Assert;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.Span;
import com.a.eye.skywalking.trace.TraceSegment;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.TraceSegment;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.context;
package com.a.eye.skywalking.api.context;
import com.a.eye.skywalking.trace.Span;
import com.a.eye.skywalking.trace.TraceSegment;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
public class BeInterceptedClass {
public BeInterceptedClass(){

View File

@ -1,9 +1,7 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import java.io.IOException;
import com.a.eye.skywalking.plugin.PluginResourcesResolver;
public class PluginResourceResoverTest {
public static void main(String[] args) throws IOException {

View File

@ -1,10 +1,10 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.ConstructorInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.MethodInterceptResult;
public class TestAroundInterceptor implements InstanceMethodsAroundInterceptor {

View File

@ -1,9 +1,11 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.api.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.StaticMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.ClassEnhancePluginDefine;
import com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.StaticMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.enhance.ClassEnhancePluginDefine;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,9 +1,9 @@
package com.a.eye.skywalking.plugin;
package com.a.eye.skywalking.api.plugin;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.StaticMethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.StaticMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.StaticMethodInvokeContext;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.StaticMethodsAroundInterceptor;
public class TestStaticAroundInterceptor implements StaticMethodsAroundInterceptor {

View File

@ -1,7 +1,7 @@
package com.a.eye.skywalking.plugin.dubbo;
package com.a.eye.skywalking.api.plugin.dubbo;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,15 +1,15 @@
package com.a.eye.skywalking.plugin.dubbo;
package com.a.eye.skywalking.api.plugin.dubbo;
import com.a.eye.skywalking.api.plugin.dubbox.bugfix.below283.BugFixAcitve;
import com.a.eye.skywalking.api.plugin.dubbox.bugfix.below283.SWBaseBean;
import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor;
import com.a.eye.skywalking.invoke.monitor.RPCServerInvokeMonitor;
import com.a.eye.skywalking.model.ContextData;
import com.a.eye.skywalking.model.Identification;
import com.a.eye.skywalking.plugin.dubbox.bugfix.below283.BugFixAcitve;
import com.a.eye.skywalking.plugin.dubbox.bugfix.below283.SWBaseBean;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.MethodInterceptResult;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.dubbox.bugfix.below283;
package com.a.eye.skywalking.api.plugin.dubbox.bugfix.below283;
public final class BugFixAcitve {
public static boolean isActive = false;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.httpClient.v4;
package com.a.eye.skywalking.api.plugin.httpClient.v4;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.ConstructorInvokeContext;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
@ -8,8 +8,8 @@ import org.apache.http.HttpRequest;
import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor;
import com.a.eye.skywalking.model.Identification;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.MethodInterceptResult;
public class HttpClientExecuteInterceptor implements InstanceMethodsAroundInterceptor {
/**

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.httpClient.v4.define;
package com.a.eye.skywalking.api.plugin.httpClient.v4.define;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.httpClient.v4.define;
package com.a.eye.skywalking.api.plugin.httpClient.v4.define;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.httpClient.v4.define;
package com.a.eye.skywalking.api.plugin.httpClient.v4.define;
import com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.httpClient.v4.define;
package com.a.eye.skywalking.api.plugin.httpClient.v4.define;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.httpClient.v4.define;
package com.a.eye.skywalking.api.plugin.httpClient.v4.define;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.jdbc;
package com.a.eye.skywalking.api.plugin.jdbc;
import com.a.eye.skywalking.api.plugin.jdbc.define.JDBCBuriedPointType;
import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor;
import com.a.eye.skywalking.model.Identification;
import com.a.eye.skywalking.plugin.jdbc.define.JDBCBuriedPointType;
import java.sql.SQLException;

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.jdbc;
package com.a.eye.skywalking.api.plugin.jdbc;
import com.a.eye.skywalking.api.plugin.jdbc.define.JDBCBuriedPointType;
import com.a.eye.skywalking.model.Identification;
import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor;
import com.a.eye.skywalking.plugin.jdbc.define.JDBCBuriedPointType;
import java.sql.SQLException;

View File

@ -1,6 +1,6 @@
package com.a.eye.skywalking.plugin.jdbc;
package com.a.eye.skywalking.api.plugin.jdbc;
import com.a.eye.skywalking.context.ContextManager;
import com.a.eye.skywalking.api.context.ContextManager;
import com.a.eye.skywalking.trace.Span;
import com.a.eye.skywalking.trace.tag.Tags;
import java.sql.SQLException;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.jdbc;
package com.a.eye.skywalking.api.plugin.jdbc;
import java.sql.Connection;
import java.sql.ResultSet;

View File

@ -1,8 +1,8 @@
package com.a.eye.skywalking.plugin.jdbc;
package com.a.eye.skywalking.api.plugin.jdbc;
import com.a.eye.skywalking.api.plugin.jdbc.define.JDBCBuriedPointType;
import com.a.eye.skywalking.model.Identification;
import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor;
import com.a.eye.skywalking.plugin.jdbc.define.JDBCBuriedPointType;
import java.sql.SQLException;

View File

@ -1,7 +1,8 @@
package com.a.eye.skywalking.plugin.jdbc.define;
package com.a.eye.skywalking.api.plugin.jdbc.define;
import com.a.eye.skywalking.api.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.api.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint;
import com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.jdbc.define;
package com.a.eye.skywalking.api.plugin.jdbc.define;
public class H2PluginDefine extends AbstractDatabasePluginDefine {
@Override

View File

@ -1,4 +1,4 @@
package com.a.eye.skywalking.plugin.jdbc.define;
package com.a.eye.skywalking.api.plugin.jdbc.define;
import com.a.eye.skywalking.api.IBuriedPointType;

View File

@ -1,11 +1,11 @@
package com.a.eye.skywalking.plugin.jdbc.define;
package com.a.eye.skywalking.api.plugin.jdbc.define;
import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.ConstructorInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.MethodInterceptResult;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext;
import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.plugin.jdbc.SWConnection;
import com.a.eye.skywalking.api.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import com.a.eye.skywalking.api.plugin.jdbc.SWConnection;
import java.sql.Connection;
import java.util.Properties;

Some files were not shown because too many files have changed in this diff Show More