$scope.resizePool = function()

in src/main/webapp/js/controllers.js [136:152]


    $scope.resizePool = function() {
        $scope.alertWarnMessage = null;
        $scope.alertInfoMessage = null;
        $scope.brokerInitialized = false;
        $http.post('/fraud/pool/init/' + $scope.poolSize).success(function (data, status, headers, config) {
            console.log("Attempt to resize pool succeeded, new size=" + $scope.poolSize);
        }).error(function (data, status, headers, config) {
            $scope.alertWarnMessage = "Attempt to resize pool failed, error=" + data;
        }).finally(function () {
            $scope.fraudScoreResults = [];
            $scope.brokerInitialized = true;
            $scope.currentTaskThroughput = 0;
            $scope.secondTaskThroughput = 0;
            $scope.minuteTaskThroughput = 0;
        });

    }