cubefs/client/java
true1064 be050a789e test[java]: improve the operation types provided by TestCfsClient.java
close:#22687828
Signed-off-by: tangjingyu <tangjingyu@oppo.com>
2024-12-30 15:59:32 +08:00
..
src/main/java/io/cubefs/fs test[java]: improve the operation types provided by TestCfsClient.java 2024-12-30 15:59:32 +08:00
.gitignore feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
build.sh feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
pom.xml feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
README.md test[java]: improve the operation types provided by TestCfsClient.java 2024-12-30 15:59:32 +08:00

Usage

Build jar with dependencies

cd java
./build.sh

Deploy single-node cluster using docker

cd docker
./run_docker.sh -r

Run the java test program

java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient ls <dirpath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient read <filepath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient write <filepath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient ls <dirpath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient chmod <filepath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient unlink <filepath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient rmdir <dirpath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient mkdir <dirpath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient rename <frompath> <topath>