Install Algorithm
Call method installAlgo(String algoFileName, String algoInfoFileName, RequestConfig requestConfig)
after establishing connection with server, where:
algoFileName
: the algorithm package file in 'so' format;algoInfoFileName
:the algorithm configuration file in 'yml format
The initial file directory is classpath
, such as:
src
|
|---java
| |---xxxx.java
|
|---resources
|--algo
|
|---algoFileName.so
|---algoInfoFileName.yml
Response installresp = connection.installAlgo("algo/libplugin_k_core.so", "algo/k_core.yml", null);
Uninstall Algorithm
Call method Response uninstallAlgo(String algoName, RequestConfig requestConfig)
, where:
algoName
: algorithm name
Example:
Response uninstallresp = connection.uninstallAlgo("k_core", null);