File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
src/main/groovy/com/marklogic/gradle/task/cluster Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 11group =com.marklogic
22version =3.6.1
3- mlAppDeployerDependency =com.marklogic:ml-app-deployer:3.6.1
3+ mlAppDeployerDependency =com.marklogic:ml-app-deployer:dev
44mlcpUtilDependency =com.marklogic:mlcp-util:0.9.0
55mlDataMovementDependency =com.marklogic:marklogic-data-movement-components:1.0
Original file line number Diff line number Diff line change @@ -2,19 +2,15 @@ package com.marklogic.gradle.task.cluster
22
33import com.marklogic.gradle.task.MarkLogicTask
44import com.marklogic.mgmt.ManageClient
5- import com.marklogic.mgmt.admin.ActionRequiringRestart
5+ import com.marklogic.mgmt.resource.clusters.ClusterManager
66import org.gradle.api.tasks.TaskAction
77
88class RestartClusterTask extends MarkLogicTask {
99
1010 @TaskAction
1111 void restartCluster () {
1212 final ManageClient client = getManageClient();
13- getAdminManager(). invokeActionRequiringRestart(new ActionRequiringRestart () {
14- public boolean execute () {
15- client. postForm(" /manage/v2" , " state" , " restart" )
16- return true ;
17- }
18- });
13+ println " Restarting local cluster"
14+ new ClusterManager (client). restartLocalCluster(getAdminManager())
1915 }
2016}
You can’t perform that action at this time.
0 commit comments