cubefs/java
true1064 3e060881ca test[java]: improve the operation types provided by TestCfsClient.java
close:#22687828
Signed-off-by: true1064 <tangjingyu@oppo.com>
2024-12-26 09:24:22 +08:00
..
src/main test[java]: improve the operation types provided by TestCfsClient.java 2024-12-26 09:24:22 +08:00
.gitignore add libsdk compilation to project Makefile 2021-01-28 14:37:33 +08:00
build.sh enhance: pack libcfs.so into jar 2021-01-28 14:37:33 +08:00
pom.xml feat(client): update pom.xml for maven 2024-07-22 17:10:59 +08:00
README.md test[java]: improve the operation types provided by TestCfsClient.java 2024-12-26 09:24:22 +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>