From a6a25591cb90c05f2cf5980a07380f2822b481a7 Mon Sep 17 00:00:00 2001 From: ascrutae Date: Fri, 3 Jun 2016 18:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96skywalking-agent?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skywalking-agent/pom.xml | 69 +++++++++++++++++++ .../skywalking/agent/SkywalkingAgent.java | 13 ++++ .../src/main/resources/log4j2.xml | 13 ++++ 3 files changed, 95 insertions(+) create mode 100644 skywalking-agent/pom.xml create mode 100644 skywalking-agent/src/main/java/com/ai/cloud/skywalking/agent/SkywalkingAgent.java create mode 100644 skywalking-agent/src/main/resources/log4j2.xml diff --git a/skywalking-agent/pom.xml b/skywalking-agent/pom.xml new file mode 100644 index 0000000000..ce3b6e6d7e --- /dev/null +++ b/skywalking-agent/pom.xml @@ -0,0 +1,69 @@ + + 4.0.0 + + com.ai.cloud + skywalking-agent + 1.0-Final + jar + + skywalking-agent + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + + + org.apache.logging.log4j + log4j-core + 2.6 + + + com.ai.cloud + skywalking-jedis-2.x-plugin + 1.0b + + + + + + org.apache.maven.plugins + maven-shade-plugin + 1.4 + + + package + + shade + + + + + skywalking-plugin.def + + + + com.ai.cloud.skywalking.agent.SkywalkingAgent + + + + + + + + + + + + + diff --git a/skywalking-agent/src/main/java/com/ai/cloud/skywalking/agent/SkywalkingAgent.java b/skywalking-agent/src/main/java/com/ai/cloud/skywalking/agent/SkywalkingAgent.java new file mode 100644 index 0000000000..bc1b7dd853 --- /dev/null +++ b/skywalking-agent/src/main/java/com/ai/cloud/skywalking/agent/SkywalkingAgent.java @@ -0,0 +1,13 @@ +package com.ai.cloud.skywalking.agent; + +import com.ai.cloud.skywalking.plugin.PluginBootstrap; + +import java.lang.instrument.Instrumentation; + +public class SkywalkingAgent { + + public static void premain(String agentArgs, Instrumentation inst) { + PluginBootstrap bootstrap = new PluginBootstrap(); + bootstrap.start(); + } +} diff --git a/skywalking-agent/src/main/resources/log4j2.xml b/skywalking-agent/src/main/resources/log4j2.xml new file mode 100644 index 0000000000..91e20d37a4 --- /dev/null +++ b/skywalking-agent/src/main/resources/log4j2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file -- GitLab