Rename package and app.
This commit is contained in:
parent
7431ce836e
commit
b95c5ca115
14
README.md
14
README.md
|
@ -4,17 +4,17 @@ Small utility to measure network performance between two hosts.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
You need Java (JRE) version 8 or later to run jperf.
|
You need Java (JRE) version 8 or later to run jnetperf.
|
||||||
|
|
||||||
## Usage Instructions
|
## Usage Instructions
|
||||||
|
|
||||||
- Install the jperf package (*.deb*, *.rpm* or *.jar*) from [downloads](https://bitbucket.org/mnellemann/jperf/downloads/) or compile from source.
|
- Install the jnetperf package (*.deb*, *.rpm* or *.jar*) from [downloads](https://bitbucket.org/mnellemann/jnetperf/downloads/) or compile from source.
|
||||||
- Run **/opt/jperf/bin/jperf**, if installed from package
|
- Run **/opt/jnetperf/bin/jperf**, if installed from package
|
||||||
- Or as **java -jar /path/to/jperf.jar**
|
- Or as **java -jar /path/to/jnetperf.jar**
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
Usage: jperf [-hV] [-l=SIZE] [-n=NUM] [-p=PORT] (-c=HOST | -s)
|
Usage: jnetperf [-hV] [-l=SIZE] [-n=NUM] [-p=PORT] (-c=HOST | -s)
|
||||||
Network performance measurement tool.
|
Network Performance Testing.
|
||||||
-c, --connect=HOST Connect to remote server
|
-c, --connect=HOST Connect to remote server
|
||||||
-h, --help Show this help message and exit.
|
-h, --help Show this help message and exit.
|
||||||
-l, --pkt-len=SIZE Datagram size in bytes, max 65507 [default: 65507]
|
-l, --pkt-len=SIZE Datagram size in bytes, max 65507 [default: 65507]
|
||||||
|
@ -26,7 +26,7 @@ Network performance measurement tool.
|
||||||
|
|
||||||
## Development Information
|
## Development Information
|
||||||
|
|
||||||
You need Java (JDK) version 8 or later to build jperf.
|
You need Java (JDK) version 8 or later to build jnetperf.
|
||||||
|
|
||||||
### Build & Test
|
### Build & Test
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ java {
|
||||||
|
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClass = 'biz.nellemann.jperf.Application'
|
mainClass = 'biz.nellemann.jnetperf.Application'
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named('test') {
|
tasks.named('test') {
|
||||||
|
@ -59,12 +59,12 @@ jar {
|
||||||
|
|
||||||
apply plugin: 'com.netflix.nebula.ospackage'
|
apply plugin: 'com.netflix.nebula.ospackage'
|
||||||
ospackage {
|
ospackage {
|
||||||
packageName = 'jperf'
|
packageName = 'jnetperf'
|
||||||
release = '1'
|
release = '1'
|
||||||
user = 'root'
|
user = 'root'
|
||||||
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
|
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
|
||||||
|
|
||||||
into '/opt/jperf'
|
into '/opt/jnetperf'
|
||||||
|
|
||||||
from(shadowJar.outputs.files) {
|
from(shadowJar.outputs.files) {
|
||||||
into 'lib'
|
into 'lib'
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
projectId = jperf
|
projectId = jnetperf
|
||||||
projectGroup = biz.nellemann.jperf
|
projectGroup = biz.nellemann.jnetperf
|
||||||
projectVersion = 0.0.4
|
projectVersion = 0.0.5
|
||||||
|
|
|
@ -2,4 +2,4 @@ plugins {
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
|
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = 'jperf'
|
rootProject.name = 'jnetperf'
|
||||||
|
|
|
@ -13,11 +13,9 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import picocli.CommandLine;
|
import picocli.CommandLine;
|
||||||
import picocli.CommandLine.Command;
|
import picocli.CommandLine.Command;
|
||||||
|
|
||||||
|
@ -25,12 +23,10 @@ import java.io.IOException;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
@Command(name = "jperf", mixinStandardHelpOptions = true, versionProvider = VersionProvider.class, description = "Network performance measurement tool.")
|
|
||||||
|
@Command(name = "jnetperf", mixinStandardHelpOptions = true, versionProvider = VersionProvider.class, description = "Network Performance Testing.")
|
||||||
public class Application implements Callable<Integer> {
|
public class Application implements Callable<Integer> {
|
||||||
|
|
||||||
final Logger log = LoggerFactory.getLogger(Application.class);
|
|
||||||
|
|
||||||
|
|
||||||
@CommandLine.ArgGroup(exclusive = true, multiplicity = "1")
|
@CommandLine.ArgGroup(exclusive = true, multiplicity = "1")
|
||||||
RunMode runMode;
|
RunMode runMode;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
public enum DataType {
|
public enum DataType {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.DatagramPacket;
|
import java.net.DatagramPacket;
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.DatagramPacket;
|
import java.net.DatagramPacket;
|
|
@ -13,7 +13,7 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf;
|
package biz.nellemann.jnetperf;
|
||||||
|
|
||||||
import picocli.CommandLine;
|
import picocli.CommandLine;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This Spock specification was generated by the Gradle 'init' task.
|
* This Spock specification was generated by the Gradle 'init' task.
|
||||||
*/
|
*/
|
||||||
package biz.nellemann.jperf
|
package biz.nellemann.jnetperf
|
||||||
|
|
||||||
import spock.lang.Specification
|
import spock.lang.Specification
|
||||||
|
|
Loading…
Reference in a new issue