如何从集群中的 Java 创建 Marklogic App-Services 端口 8000
How to create Marklogic App-Services port 8000 from Java in cluster
我使用 MarkLogic Java API com.marklogic.client.test.util.TestServerBootstrapper
的稍微修改版本设置了一个集群,以自动创建数据库以及以下 http 服务
Admin HTTP Security 0.0.0.0 8001 no
HealthCheck HTTP App-Services 0.0.0.0 7997 no
manage HTTP App-Services 0.0.0.0 8002 no
dbname HTTP dbname 0.0.0.0 8012 no
我已经能够在端口 8000 上手动创建默认应用服务的副本,并调整为使用不同的数据库和模块数据库作为
App-Services HTTP dbname 0.0.0.0 8013 no
我想知道如何通过修改 java api 客户端在端口 8013 上自动创建和拆除该应用程序服务。你能推荐我需要阅读的文档吗?
谢谢
康特
截至目前,Java 客户端 API 支持 MarkLogic REST Client API, but not the Management API。
来自Java Application Developer's Guide:
Note that you can only configure aspects of the underlying REST instance with the Java API. MarkLogic Server administration is not exposed in Java, so things such as creating indexes, creating users, creating databases, assigning roles to users, and so on must be done via the MarkLogic Admin Interface or other means (for example the Admin API or REST Management API).
如果您想从 Java 执行此操作,您可以向管理 API 发送 HTTP 请求。好消息:有一个社区驱动的项目将使这一切变得容易得多。查看 @rjrudin 的 ml-app-deployer, a Java Client for the Management API. He's also written a Gradle client,它使用了 ml-app-deployer。
我使用 MarkLogic Java API com.marklogic.client.test.util.TestServerBootstrapper
的稍微修改版本设置了一个集群,以自动创建数据库以及以下 http 服务
Admin HTTP Security 0.0.0.0 8001 no
HealthCheck HTTP App-Services 0.0.0.0 7997 no
manage HTTP App-Services 0.0.0.0 8002 no
dbname HTTP dbname 0.0.0.0 8012 no
我已经能够在端口 8000 上手动创建默认应用服务的副本,并调整为使用不同的数据库和模块数据库作为
App-Services HTTP dbname 0.0.0.0 8013 no
我想知道如何通过修改 java api 客户端在端口 8013 上自动创建和拆除该应用程序服务。你能推荐我需要阅读的文档吗?
谢谢 康特
截至目前,Java 客户端 API 支持 MarkLogic REST Client API, but not the Management API。
来自Java Application Developer's Guide:
Note that you can only configure aspects of the underlying REST instance with the Java API. MarkLogic Server administration is not exposed in Java, so things such as creating indexes, creating users, creating databases, assigning roles to users, and so on must be done via the MarkLogic Admin Interface or other means (for example the Admin API or REST Management API).
如果您想从 Java 执行此操作,您可以向管理 API 发送 HTTP 请求。好消息:有一个社区驱动的项目将使这一切变得容易得多。查看 @rjrudin 的 ml-app-deployer, a Java Client for the Management API. He's also written a Gradle client,它使用了 ml-app-deployer。