Last change
on this file since 15301 was
12761,
checked in by dglaser, 9 years ago
|
#2429: Worked on the maintenance WebApp plugin:
- Space Usage Page: Displays the number of rows and allocated disk space for every database table
- Plugin Page: Shows unused plugins and provides functionality to delete all and specific plugins
- FactTask Page: Allows to aggregate all Job Tasks to a single task for a given job or jobs within an selected time period
- FactClientInfo Page: Allows to aggregate consecutive FactClientInfo entries with the same state and isallowedtocalculate flag
|
File size:
1.1 KB
|
Line | |
---|
1 | (function () {
|
---|
2 | var module = appMaintenancePlugin.getAngularModule();
|
---|
3 | module.controller('app.maintenance.spaceUsageCtrl',
|
---|
4 | ['$scope', '$interval', 'app.maintenance.spaceUsageService', function ($scope, $interval, spaceUsageService) {
|
---|
5 | $scope.interval = defaultPageUpdateInterval;
|
---|
6 |
|
---|
7 | var getTableInformations = function () {
|
---|
8 | spaceUsageService.getHiveTableInformation({}, function (tableInformations) {
|
---|
9 | $scope.hiveTableInformation = tableInformations;
|
---|
10 | });
|
---|
11 | spaceUsageService.getStatisticsTableInformation({}, function (tableInformations) {
|
---|
12 | $scope.statisticsTableInformation = tableInformations;
|
---|
13 | });
|
---|
14 | };
|
---|
15 |
|
---|
16 | $scope.updateInterval = $interval(getTableInformations, $scope.interval);
|
---|
17 | var cancelInterval = $scope.$on('$locationChangeSuccess', function () {
|
---|
18 | $interval.cancel($scope.updateInterval);
|
---|
19 | cancelInterval();
|
---|
20 | });
|
---|
21 | getTableInformations(); // init page
|
---|
22 | }]
|
---|
23 | );
|
---|
24 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.