1
0
Fork 0

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:
Michael Hackstein 2014-02-13 10:20:26 +01:00
parent eb92d33261
commit 0f9d44802b
3 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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>

View File

@ -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)
}
})
});
},