mirror of https://gitee.com/bigwinds/arangodb
Started with server side, route now exists and reacts, no functionality yet. Fixed problem in db server entry, forgotten class
This commit is contained in:
parent
eb92d33261
commit
0f9d44802b
|
@ -38,6 +38,15 @@
|
|||
cluster = require("org/arangodb/cluster"),
|
||||
_ = require("underscore");
|
||||
|
||||
/** Plan and start a new cluster
|
||||
*
|
||||
* This will plan a new cluster with the information
|
||||
* given in the body
|
||||
*/
|
||||
controller.post("/plan", function(req, res) {
|
||||
require("console").log(JSON.stringify(req.body()));
|
||||
});
|
||||
|
||||
if (cluster.isCluster()) {
|
||||
// only make these functions available in cluster mode!
|
||||
|
||||
|
@ -47,7 +56,7 @@
|
|||
servers = comm.current.DBServers(),
|
||||
dbs = comm.current.Databases(),
|
||||
coords = comm.current.Coordinators();
|
||||
|
||||
|
||||
/** Get all DBServers
|
||||
*
|
||||
* Get a list of all running and expected DBServers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="control-group">
|
||||
<div class="control-group dispatcher">
|
||||
<label for="host_1" class="control-label">Server:</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="host_1" placeholder="Server" class="input-xlarge"></input>
|
||||
|
|
|
@ -35,12 +35,12 @@
|
|||
}
|
||||
$.ajax("cluster/plan", {
|
||||
type: "POST",
|
||||
data: {
|
||||
data: JSON.stringify({
|
||||
type: "testSetup",
|
||||
dispatcher: h + ":" + p,
|
||||
numberDBServers: parseInt(d, 10),
|
||||
numberCoordinators: parseInt(c, 10)
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue