mirror of https://gitee.com/bigwinds/arangodb
handle cluster shutdown
This commit is contained in:
parent
001551dc9e
commit
89c784361c
|
@ -11,7 +11,8 @@
|
|||
"planSymmetrical" : "planSymmetric",
|
||||
"planAsymmetrical" : "planAsymmetric",
|
||||
"shards" : "showShards",
|
||||
"showCluster" : "showCluster"
|
||||
"showCluster" : "showCluster",
|
||||
"handleClusterDown" : "handleClusterDown"
|
||||
},
|
||||
|
||||
getNewRoute: function(last) {
|
||||
|
|
|
@ -401,7 +401,18 @@
|
|||
},
|
||||
|
||||
clusterShutdown : function() {
|
||||
window.App.navigate("", {trigger: true});
|
||||
this.stopUpdating();
|
||||
$.ajax({
|
||||
cache: false,
|
||||
type: "GET",
|
||||
async: false, // sequential calls!
|
||||
url: "cluster/shutdown",
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
}
|
||||
});
|
||||
window.App.navigate("handleClusterDown", {trigger: true});
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue