blob: a42912f7bc4781018d3405cbc26c0670c6fba7f3 [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';
Sean Condon5ca00262018-09-06 17:55:25 +010017import {
18 FnService,
19 LoadingService,
20 LogService,
21 WebSocketService,
22 SortDir, TableBaseImpl, TableResponse
23} from 'gui2-fw-lib';
prai9d445962018-07-27 13:27:43 +053024import { ActivatedRoute } from '@angular/router';
25
26/**
27* ONOS GUI -- Processor View Component extends TableBaseImpl
28*/
29@Component({
30 selector: 'onos-processor',
31 templateUrl: './processor.component.html',
32 styleUrls: ['./processor.component.css', '../../../fw/widget/table.css', '../../../fw/widget/table.theme.css']
33})
34export class ProcessorComponent extends TableBaseImpl implements OnInit, OnDestroy {
35
36 constructor(
37 protected fs: FnService,
38 protected log: LogService,
39 protected ls: LoadingService,
40 protected as: ActivatedRoute,
41 protected wss: WebSocketService,
42 ) {
43 super(fs, ls, log, wss, 'processor');
44 }
45
46 ngOnInit() {
47 this.init();
48 this.log.debug('ProcessorComponent initialized');
49 }
50
51 ngOnDestroy() {
52 this.destroy();
53 this.log.debug('ProcessorComponent destroyed');
54 }
55}