-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small refactor to remove some magic strings
- Loading branch information
1 parent
2484b72
commit 5ca1719
Showing
3 changed files
with
159 additions
and
63 deletions.
There are no files selected for viewing
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
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
19 changes: 19 additions & 0 deletions
19
.../java/org/datadog/jmxfetch/util/server/app/org/datadog/jmxfetch/util/server/JDKImage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.datadog.jmxfetch.util.server.app.org.datadog.jmxfetch.util.server; | ||
|
||
public enum JDKImage { | ||
BASE("base"), | ||
JDK_11("eclipse-temurin:11"), | ||
JDK_17("eclipse-temurin:17"), | ||
JDK_21("eclipse-temurin:21"); | ||
|
||
private final String image; | ||
|
||
private JDKImage(final String image) { | ||
this.image = image; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.image; | ||
} | ||
} |