diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-04-24 13:54:40 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-04-24 13:54:40 +0200 |
commit | 4d828e1a3195e55365c865aa3a78af9668742643 (patch) | |
tree | 07fff2683933c96297a8ba577bbdc89888da16e1 /kamon-examples/kamon-annotation-example/java/src/main | |
parent | 469c11dc1ddb140f407a33f48033e533bf60611c (diff) | |
download | Kamon-4d828e1a3195e55365c865aa3a78af9668742643.tar.gz Kamon-4d828e1a3195e55365c865aa3a78af9668742643.tar.bz2 Kamon-4d828e1a3195e55365c865aa3a78af9668742643.zip |
Prepare for the major cleanup
Moved all the original files from src/main to src/legacy-main, same with test files. Also
removed the autoweave module, examples and bench as I'm planning to have them in separate
repositories.
Diffstat (limited to 'kamon-examples/kamon-annotation-example/java/src/main')
8 files changed, 0 insertions, 123 deletions
diff --git a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/KamonSpringApplication.java b/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/KamonSpringApplication.java deleted file mode 100644 index 8103306b..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/KamonSpringApplication.java +++ /dev/null @@ -1,12 +0,0 @@ -package kamon; - -import kamon.akka.pingpong.PingPong; -import kamon.annotation.KamonController; -import org.springframework.boot.SpringApplication; - -public class KamonSpringApplication { - public static void main(String... args) { - Kamon.start(); - SpringApplication.run(new Object[] {KamonController.class, PingPong.class}, args); - } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/PingPong.java b/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/PingPong.java deleted file mode 100644 index 8ef2f621..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/PingPong.java +++ /dev/null @@ -1,22 +0,0 @@ -package kamon.akka.pingpong; - -import akka.actor.ActorRef; -import akka.actor.ActorSystem; -import akka.actor.Props; -import org.springframework.stereotype.Component; - -import javax.annotation.PostConstruct; - -@Component -public class PingPong { - - @PostConstruct - public void initialize() { - final ActorSystem system = ActorSystem.create("kamon-spring-boot-actor-system"); - - final ActorRef pinger = system.actorOf(Props.create(Pinger.class), "pinger"); - final ActorRef ponger = system.actorOf(Props.create(Ponger.class), "ponger"); - - pinger.tell(new Ponger.PongMessage(), ponger); - } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Pinger.java b/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Pinger.java deleted file mode 100644 index dcab35b6..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Pinger.java +++ /dev/null @@ -1,12 +0,0 @@ -package kamon.akka.pingpong; - -import akka.actor.UntypedActor; - -class Pinger extends UntypedActor { - static final class PingMessage {} - - public void onReceive(Object message) throws Exception { - if (message instanceof Ponger.PongMessage) getSender().tell(new PingMessage(), getSelf()); - else unhandled(message); - } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Ponger.java b/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Ponger.java deleted file mode 100644 index b4e8ecfa..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/akka/pingpong/Ponger.java +++ /dev/null @@ -1,12 +0,0 @@ -package kamon.akka.pingpong; - -import akka.actor.UntypedActor; - -class Ponger extends UntypedActor { - static final class PongMessage {} - - public void onReceive(Object message) throws Exception { - if (message instanceof Pinger.PingMessage) getSender().tell(new PongMessage(), getSelf()); - else unhandled(message); - } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/annotation/KamonController.java b/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/annotation/KamonController.java deleted file mode 100644 index 27eeda53..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/java/kamon/annotation/KamonController.java +++ /dev/null @@ -1,17 +0,0 @@ -package kamon.annotation; - -import org.springframework.boot.autoconfigure.*; -import org.springframework.stereotype.*; -import org.springframework.web.bind.annotation.*; - -@Controller -@EnableAutoConfiguration -@RequestMapping("/kamon") -@EnableKamon -public class KamonController { - - @RequestMapping("/counter") - @ResponseBody - @Count(name = "awesomeCounter") - public String counter() { return "count!!!"; } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/resources/META-INF/aop.xml b/kamon-examples/kamon-annotation-example/java/src/main/resources/META-INF/aop.xml deleted file mode 100644 index 9b144860..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/resources/META-INF/aop.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd"> - -<aspectj> - <weaver options="-Xlint:ignore"> - <include within="kamon..*"/> - <exclude within="org.aspectj.*"/> - </weaver> -</aspectj> diff --git a/kamon-examples/kamon-annotation-example/java/src/main/resources/application.conf b/kamon-examples/kamon-annotation-example/java/src/main/resources/application.conf deleted file mode 100644 index 1755bfc5..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/resources/application.conf +++ /dev/null @@ -1,21 +0,0 @@ -############################### -# Kamon related configuration # -############################### - -kamon { - - metric { - filters { - trace.includes = [ "**" ] - akka-actor.includes = [ "**" ] - akka-actor.excludes = ["*/system/**", "*/user/IO-**" ] - akka-dispatcher.includes = [ "**" ] - akka-dispatcher.excludes = [ ] - } - } - - modules { - kamon-annotation.auto-start = yes - kamon-log-reporter.auto-start = yes - } -} diff --git a/kamon-examples/kamon-annotation-example/java/src/main/resources/logback.xml b/kamon-examples/kamon-annotation-example/java/src/main/resources/logback.xml deleted file mode 100644 index fac5ad3d..00000000 --- a/kamon-examples/kamon-annotation-example/java/src/main/resources/logback.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<configuration> - <property name="CONSOLE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex"/> - - <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> - - <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> - <encoder> - <pattern>${CONSOLE_LOG_PATTERN}</pattern> - </encoder> - </appender> - - <root level="INFO"> - <appender-ref ref="CONSOLE" /> - </root> - - <!-- logger name="org.springframework" level="DEBUG"/ --> - -</configuration> |