blob: a7840ec89fad3ddbecdb5ba56bb85e9120c65e11 [file] [log] [blame]
prai9d445962018-07-27 13:27:43 +05301/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { Component, OnDestroy, OnInit } from '@angular/core';
17import { SortDir, TableBaseImpl, TableResponse } from '../../../fw/widget/table.base';
18import { WebSocketService } from '../../../fw/remote/websocket.service';
19import { LogService } from '../../../log.service';
20import { LoadingService } from '../../../fw/layer/loading.service';
21import { FnService } from '../../../fw/util/fn.service';
22import { ActivatedRoute } from '@angular/router';
23
24/**
25* ONOS GUI -- Processor View Component extends TableBaseImpl
26*/
27@Component({
28 selector: 'onos-processor',
29 templateUrl: './processor.component.html',
30 styleUrls: ['./processor.component.css', '../../../fw/widget/table.css', '../../../fw/widget/table.theme.css']
31})
32export class ProcessorComponent extends TableBaseImpl implements OnInit, OnDestroy {
33
34 constructor(
35 protected fs: FnService,
36 protected log: LogService,
37 protected ls: LoadingService,
38 protected as: ActivatedRoute,
39 protected wss: WebSocketService,
40 ) {
41 super(fs, ls, log, wss, 'processor');
42 }
43
44 ngOnInit() {
45 this.init();
46 this.log.debug('ProcessorComponent initialized');
47 }
48
49 ngOnDestroy() {
50 this.destroy();
51 this.log.debug('ProcessorComponent destroyed');
52 }
53}