This is an example on how to use microprofile metrics in TomEE. The project includes a docker profile which can be used to create a Docker image.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-wadl2java-plugin</artifactId> | |
<version>2.7.5</version> | |
<configuration> | |
<sourceRoot>${basedir}/src/main/java</sourceRoot> | |
<wadlOptions> | |
<wadlOption> | |
<wadl>${basedir}/src/test/resources/sample.wadl</wadl> | |
<impl>true</impl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
portainer: | |
image: portainer/portainer:1.24.1-alpine | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /tmp/portainer_password:/tmp/portainer_password | |
ports: | |
- 9000:9000 | |
command: -H unix:///var/run/docker.sock --no-auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FizzBuzz { | |
static java.util.function.Predicate<Integer> divBy(int n) { return i -> (i % n) == 0;} | |
static String fizzBuzz(Integer intIn){ | |
String fizz = divBy(3).test(intIn) ? "Fizz" : ""; | |
String buzz = divBy(5).test(intIn) ? "Buzz" : ""; | |
return (fizz.isEmpty() && buzz.isEmpty()) ? intIn.toString() : fizz + buzz; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-XX:+PrintGCDateStamps | |
-XX:+PrintGCTimeStamps | |
-XX:+PrintTenuringDistribution | |
-XX:+PrintGCDetails | |
-XX:+PrintGCApplicationStoppedTime |
I hereby claim:
- I am cchacin on github.
- I am cchacin (https://keybase.io/cchacin) on keybase.
- I have a public key ASAYGkVTEuMIdYEZKAq7C_HPps7zN04Cw7SwseICUU7lago
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
filebeat: | |
image: docker.elastic.co/beats/filebeat-oss:6.6.1 | |
container_name: filebeat | |
hostname: filebeat | |
depends_on: | |
- elasticsearch | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package customers; | |
import org.assertj.core.api.Assertions; | |
import org.junit.jupiter.api.Test; | |
import java.util.LinkedHashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.function.BiFunction; |
- Libraries (feel free to start, watch or even fork, you can contribute since the list is open source)
- Podcasts (you can subscribe using
iTunes
or any podcast app in yout phone likeCastbox
)- No Fluff Just Stuff (Java)
- JCrete (Java)
- HaskellCast (Functional Programming, mainly Haskell)
- LambdaCast (Functional Programming)
- InfoQ (Java / Tech)
- AirHacks (Java mostly JavaEE)
- JavaPubHouse (Java)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{>classJavadoc}} | |
{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{#additionalAnnotations}} | |
{{{additionalAnnotations}}}{{/additionalAnnotations}} | |
{{>generatedAnnotation}} | |
public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}} { | |
{{#vars}} | |
{{#isEnum}} | |
{{^isContainer}} | |
{{>modelInnerEnum}} |
NewerOlder