Rename package and app.

This commit is contained in:
Mark Nellemann 2023-06-29 20:47:58 +02:00
parent 7431ce836e
commit b95c5ca115
12 changed files with 24 additions and 28 deletions

View file

@ -4,17 +4,17 @@ Small utility to measure network performance between two hosts.
## 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
- Install the jperf package (*.deb*, *.rpm* or *.jar*) from [downloads](https://bitbucket.org/mnellemann/jperf/downloads/) or compile from source.
- Run **/opt/jperf/bin/jperf**, if installed from package
- Or as **java -jar /path/to/jperf.jar**
- Install the jnetperf package (*.deb*, *.rpm* or *.jar*) from [downloads](https://bitbucket.org/mnellemann/jnetperf/downloads/) or compile from source.
- Run **/opt/jnetperf/bin/jperf**, if installed from package
- Or as **java -jar /path/to/jnetperf.jar**
```shell
Usage: jperf [-hV] [-l=SIZE] [-n=NUM] [-p=PORT] (-c=HOST | -s)
Network performance measurement tool.
Usage: jnetperf [-hV] [-l=SIZE] [-n=NUM] [-p=PORT] (-c=HOST | -s)
Network Performance Testing.
-c, --connect=HOST Connect to remote server
-h, --help Show this help message and exit.
-l, --pkt-len=SIZE Datagram size in bytes, max 65507 [default: 65507]
@ -26,7 +26,7 @@ Network performance measurement tool.
## 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

View file

@ -32,7 +32,7 @@ java {
application {
mainClass = 'biz.nellemann.jperf.Application'
mainClass = 'biz.nellemann.jnetperf.Application'
}
tasks.named('test') {
@ -59,12 +59,12 @@ jar {
apply plugin: 'com.netflix.nebula.ospackage'
ospackage {
packageName = 'jperf'
packageName = 'jnetperf'
release = '1'
user = 'root'
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
into '/opt/jperf'
into '/opt/jnetperf'
from(shadowJar.outputs.files) {
into 'lib'

View file

@ -1,3 +1,3 @@
projectId = jperf
projectGroup = biz.nellemann.jperf
projectVersion = 0.0.4
projectId = jnetperf
projectGroup = biz.nellemann.jnetperf
projectVersion = 0.0.5

View file

@ -2,4 +2,4 @@ plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
}
rootProject.name = 'jperf'
rootProject.name = 'jnetperf'

View file

@ -13,11 +13,9 @@
See the License for the specific language governing permissions and
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.Command;
@ -25,12 +23,10 @@ import java.io.IOException;
import java.net.SocketException;
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> {
final Logger log = LoggerFactory.getLogger(Application.class);
@CommandLine.ArgGroup(exclusive = true, multiplicity = "1")
RunMode runMode;

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
public enum DataType {

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
import java.io.IOException;
import java.nio.ByteBuffer;

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
import java.time.Duration;
import java.time.Instant;

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
import java.io.IOException;
import java.net.DatagramPacket;

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
import java.io.IOException;
import java.net.DatagramPacket;

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package biz.nellemann.jperf;
package biz.nellemann.jnetperf;
import picocli.CommandLine;

View file

@ -1,7 +1,7 @@
/*
* This Spock specification was generated by the Gradle 'init' task.
*/
package biz.nellemann.jperf
package biz.nellemann.jnetperf
import spock.lang.Specification