注册我的自定义集群选择策略是否需要编译源代码?

时间:2016-02-16 11:38:59

标签: orientdb

我看到doc2.1.x描述了自定义群集选择策略,如下所示: 将实施注册为服务。您可以通过在META-INF/service下创建新文件来执行此操作。使用文件名com.orientechnologies.orient.core.metadata.schema.clusterselection.OClusterSelectionStrategy。对于其内容,请使用完整的包对您的类进行编码。

这是否意味着我必须修改源代码项目,编译和发布?

1 个答案:

答案 0 :(得分:0)

是的,您必须修改源代码项目并进行编译。 我按照文档http://orientdb.com/docs/2.1/Cluster-Selection.html#custom-cluster-selection-strategies进行了操作 它有效。

enter image description here