@POST @Path("/stop") @ApiOperation("Stop the Mesos scheduler driver.") public void stop() throws Exception { checkForbidden( configuration.isAllowTestResourceCalls(), "Test resource calls are disabled (set isAllowTestResourceCalls to true in configuration)"); managed.stop(); }
@POST @Path("/notleader") @ApiOperation("Make this instanceo of Singularity believe it's lost leadership.") public void setNotLeader() { checkForbidden( configuration.isAllowTestResourceCalls(), "Test resource calls are disabled (set isAllowTestResourceCalls to true in configuration)"); managed.notLeader(); }