GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - trekawek/toxiproxy-java: Java API client for the Toxiproxy

BranchesTags
Open more actions menu

Latest commit

 

History

272 Commits
272 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
TESTING.md
TESTING.md
 
 
bnd.bnd
bnd.bnd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

toxiproxy-java

Build Status

This is a client library for the Toxiproxy - a proxy that simulates network and system conditions. With toxiproxy-java you may use a convenient Java API to create and manage proxies. Before you using this library, please read the Usage section of the Toxiproxy README.

Installation:

<dependency>
  <groupId>eu.rekawek.toxiproxy</groupId>
  <artifactId>toxiproxy-java</artifactId>
  <version>2.1.7</version>
</dependency>

Usage

By default, the ToxiproxyClient tries to connect to the http://localhost:8474. This might be changed using the parametrized constructor:

ToxiproxyClient client = new ToxiproxyClient("192.168.1.1", 8474);

Following snippet will create a new proxy for the MySQL service:

Proxy mysqlProxy = client.createProxy("mysql", "localhost:21212", "localhost:3306");

The proxy will listen on port 21212 on the loopback interface and transfer all the traffic to port 3306. We may also create a toxic:

mysqlProxy.toxics().latency("my-latency-toxic", DOWNSTREAM, 100).setJitter(15);

For a full list of toxics, please visit the Toxiproxy README.

About

Java API client for the Toxiproxy

Resources

Readme
License
Activity

Stars

127 stars

Watchers

4 watching

Forks

16 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.