Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bostrt/java-exhaust-ephemeral
https://github.com/bostrt/java-exhaust-ephemeral
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bostrt/java-exhaust-ephemeral
- Owner: bostrt
- Created: 2018-10-09T20:53:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T21:13:14.000Z (about 6 years ago)
- Last Synced: 2024-11-01T10:08:36.064Z (2 months ago)
- Language: Java
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Environment Variables
- `TEST_HOSTNAME`: The target hostname to open socket with.
- `TEST_PORT`: The target port to open socket with.
- `DEBUG`: Prints debug info for this test app. Right now, just prints the current date each time a new socket is created. Defaults to `false`.
- `DELAY`: The number of MILLISECONDS to sleep between each socket creation. Defaults to 100ms.
- `EXIT_ON_FAIL`: Exit the application upon an Exception while creating a socket. Defaults to `true`. Set to `false` if you will leave this test running for a long time and need to capture data while it is executing.
# Running
## Basic Java
```
# javac Main.java
# TEST_HOSTNAME=redhat.com TEST_PORT=443 java Main
```## Docker
```
# docker build -t java-exhaust-ephemeral .
# docker run -e TEST_HOSTNAME=redhat.com -e TEST_PORT=443 -e DEBUG=true --rm -it java-exhaust-ephemeral
```## OpenShift 3.x
```
# oc new-app https://github.com/bostrt/java-exhaust-ephemeral.git
# oc set env dc/java-exhaust-ephemeral TEST_HOSTNAME=kubernetes.default.svc TEST_PORT=443 DELAY=1 DEBUG=true
```