installAlgo()
获取连接后,调用其中的 installAlgo(String algoFileName, String algoInfoFileName, RequestConfig requestConfig)
方法即可:
algoFileName
: 算法 so 文件algoInfoFileName
:算法说明文件
文件起始路径为 classpath
目录,例如:
src
|
|---java
| |---xxxx.java
|
|---resources
|--algo
|
|---algoFileName.so
|---algoInfoFileName.yml
Response installresp = connection.installAlgo("algo/libplugin_k_core.so", "algo/k_core.yml", null);
uninstallAlgo()
获取连接后,调用其中的 Response uninstallAlgo(String algoName, RequestConfig requestConfig)
方法即可:
algoName
:算法名称
例如:
Response uninstallresp = connection.uninstallAlgo("k_core", null);