aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers
diff options
context:
space:
mode:
authorherbert <herbert.eiselt@highstreet-technologies.com>2019-12-14 00:06:42 +0100
committerherbert <herbert.eiselt@highstreet-technologies.com>2019-12-14 00:07:02 +0100
commitda4fd6169717cfa04d644d0af0d23dd089a6e373 (patch)
tree3c7a2c804b001349dc24852f7e488061a2f733f4 /sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers
parent58f412ad18c1daf622e54ed36db6014f4e04f3f7 (diff)
remove old version
of devicemodel devicemanager oldux featureaggregator Issue-ID: SDNC-1004 Signed-off-by: herbert <herbert.eiselt@highstreet-technologies.com> Change-Id: I5337643181e2398e5a8097e4ee14fa4ac96d0d4c
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers')
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts96
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts60
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts56
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts65
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts105
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts63
10 files changed, 0 insertions, 697 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts
deleted file mode 100644
index ba765c8cb..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { AdaptiveModulationDataType, AdaptiveModulationResult } from '../models/adaptiveModulationDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IAdaptiveModulationState extends IExternalTableState<AdaptiveModulationDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Adaptive modulation from historicalperformance database.
- */
-const adaptiveModulationSearchHandler = createSearchDataHandler<AdaptiveModulationResult, AdaptiveModulationDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- time2StatesS: hit._source["performance-data"]["time2-states-s"],
- time2States: hit._source["performance-data"]["time2-states"],
- time2StatesL: hit._source["performance-data"]["time2-states-l"],
- time4StatesS: hit._source["performance-data"]["time4-states-s"],
- time4States: hit._source["performance-data"]["time4-states"],
- time4StatesL: hit._source["performance-data"]["time4-states-l"],
- time16StatesS: hit._source["performance-data"]["time16-states-s"],
- time16States: hit._source["performance-data"]["time16-states"],
- time16StatesL: hit._source["performance-data"]["time16-states-l"],
- time32StatesS: hit._source["performance-data"]["time32-states-s"],
- time32States: hit._source["performance-data"]["time32-states"],
- time32StatesL: hit._source["performance-data"]["time32-states-l"],
- time64StatesS: hit._source["performance-data"]["time64-states-s"],
- time64States: hit._source["performance-data"]["time64-states"],
- time64StatesL: hit._source["performance-data"]["time64-states-l"],
- time128StatesS: hit._source["performance-data"]["time128-states-s"],
- time128States: hit._source["performance-data"]["time128-states"],
- time128StatesL: hit._source["performance-data"]["time128-states-l"],
- time256StatesS: hit._source["performance-data"]["time256-states-s"],
- time256States: hit._source["performance-data"]["time256-states"],
- time256StatesL: hit._source["performance-data"]["time256-states-l"],
- time512StatesS: hit._source["performance-data"]["time512-states-s"],
- time512States: hit._source["performance-data"]["time512-states"],
- time512StatesL: hit._source["performance-data"]["time512-states-l"],
- time1024StatesS: hit._source["performance-data"]["time1024-states-s"],
- time1024States: hit._source["performance-data"]["time1024-states"],
- time1024StatesL: hit._source["performance-data"]["time1024-states-l"],
- time2048StatesS: hit._source["performance-data"]["time2048-states-s"],
- time2048States: hit._source["performance-data"]["time2048-states"],
- time2048StatesL: hit._source["performance-data"]["time2048-states-l"],
- time4096StatesS: hit._source["performance-data"]["time4096-states-s"],
- time4096States: hit._source["performance-data"]["time4096-states"],
- time4096StatesL: hit._source["performance-data"]["time4096-states-l"],
- time8192StatesS: hit._source["performance-data"]["time8192-states-s"],
- time8192States: hit._source["performance-data"]["time8192-states"],
- time8192StatesL: hit._source["performance-data"]["time8192-states-l"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: adaptiveModulationActionHandler,
- createActions: createAdaptiveModulationActions,
- createProperties: createAdaptiveModulationProperties,
- createPreActions: createAdaptiveModulationPreActions,
- reloadAction: adaptiveModulationReloadAction,
-} = createExternal<AdaptiveModulationDataType>(adaptiveModulationSearchHandler, appState => appState.performanceHistory.adaptiveModulation);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts
deleted file mode 100644
index 41aceca9f..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import {
- AllAvailableLtpsLoadedAction,
- LoadAllAvailableLtpsAction,
-} from '../actions/ltpAction';
-
-import { LtpIds } from '../models/availableLtps';
-
-export interface IAvailableLtpsState {
- distinctLtps: LtpIds[];
- busy: boolean;
-}
-
-const connectedNetworkElementsStateInit: IAvailableLtpsState = {
- distinctLtps: [],
- busy: false
-};
-
-export const availableLtpsActionHandler: IActionHandler<IAvailableLtpsState> = (state = connectedNetworkElementsStateInit, action) => {
- if (action instanceof LoadAllAvailableLtpsAction) {
-
- state = {
- ...state,
- busy: true
- };
-
- } else if (action instanceof AllAvailableLtpsLoadedAction) {
- if (!action.error && action.availableLtps) {
- state = {
- ...state,
- distinctLtps: action.availableLtps,
- busy: false
- };
- } else {
- state = {
- ...state,
- busy: false
- };
- }
- }
- return state;
-}; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts
deleted file mode 100644
index ee14063c2..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import { AllConnectedNetworkElementsLoadedAction, LoadAllConnectedNetworkElementsAction } from '../actions/connectedNetworkElementsActions';
-import { ConnectedNetworkElementIds } from '../models/connectedNetworkElements';
-
-export interface IConnectedNetworkElementsState {
- connectedNetworkElementIds: ConnectedNetworkElementIds[];
- busy: boolean;
-}
-
-const connectedNetworkElementsStateInit: IConnectedNetworkElementsState = {
- connectedNetworkElementIds: [],
- busy: false
-};
-
-export const connectedNetworkElementsActionHandler: IActionHandler<IConnectedNetworkElementsState> = (state = connectedNetworkElementsStateInit, action) => {
- if (action instanceof LoadAllConnectedNetworkElementsAction) {
-
- state = {
- ...state,
- busy: true
- };
-
- } else if (action instanceof AllConnectedNetworkElementsLoadedAction) {
- if (!action.error && action.connectedNetworkElementIds) {
- state = {
- ...state,
- connectedNetworkElementIds: action.connectedNetworkElementIds,
- busy: false
- };
- } else {
- state = {
- ...state,
- busy: false
- };
- }
- }
- return state;
-}; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts
deleted file mode 100644
index 074c97d91..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { CrossPolarDiscriminationDataType, CrossPolarDiscriminationResult } from '../models/crossPolarDiscriminationDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ICrossPolarDiscriminationState extends IExternalTableState<CrossPolarDiscriminationDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for CPD from historicalperformance database.
- */
-const crossPolarDiscriminationSearchHandler = createSearchDataHandler<CrossPolarDiscriminationResult, CrossPolarDiscriminationDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- xpdMin: hit._source["performance-data"]["xpd-min"],
- xpdAvg: hit._source["performance-data"]["xpd-avg"],
- xpdMax: hit._source["performance-data"]["xpd-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: crossPolarDiscriminationActionHandler,
- createActions: createCrossPolarDiscriminationActions,
- createProperties: createCrossPolarDiscriminationProperties,
- createPreActions: createCrossPolarDiscriminationPreActions,
- reloadAction: crossPolarDiscriminationReloadAction,
-} = createExternal<CrossPolarDiscriminationDataType>(crossPolarDiscriminationSearchHandler, appState => appState.performanceHistory.crossPolarDiscrimination);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts
deleted file mode 100644
index 51b537fea..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as moment from 'moment';
-
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { PerformanceResult, PerformanceDataType } from '../models/performanceDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IPerformanceDataState extends IExternalTableState<PerformanceDataType> { }
-
-/**
-* Creates elastic search material data fetch handler for performance data from historicalperformance15min database.
-*/
-const performanceDataSearchHandler = createSearchDataHandler<PerformanceResult, PerformanceDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- es: hit._source["performance-data"]["es"],
- ses: hit._source["performance-data"]["ses"],
- unavailability: hit._source["performance-data"]["unavailability"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: performanceDataActionHandler,
- createActions: createPerformanceDataActions,
- createProperties: createPerformanceDataProperties,
- createPreActions: createPerformanceDataPreActions,
- reloadAction: performanceDataReloadAction
-} = createExternal<PerformanceDataType>(performanceDataSearchHandler, appState => appState.performanceHistory.performanceData);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts
deleted file mode 100644
index 85ff01634..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-// main state handler
-
-import { combineActionHandler } from '../../../../framework/src/flux/middleware';
-
-// ** do not remove **
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import { IConnectAppStoreState } from '../../../connectApp/src/handlers/connectAppRootHandler';
-import { IPerformanceDataState, performanceDataActionHandler } from './performanceDataHandler';
-import { IReceiveLevelState, receiveLevelActionHandler } from './receiveLevelHandler';
-import { ITransmissionPowerState, transmissionPowerActionHandler } from './transmissionPowerHandler';
-import { IAdaptiveModulationState, adaptiveModulationActionHandler } from './adaptiveModulationHandler';
-import { ITemperatureState, temperatureActionHandler } from './temperatureHandler';
-import { ISignalToInterferenceState, signalToInterferenceActionHandler } from './signalToInterferenceHandler';
-import { ICrossPolarDiscriminationState, crossPolarDiscriminationActionHandler } from './crossPolarDiscriminationHandler';
-import { SetPanelAction } from '../actions/panelChangeActions';
-import { IConnectedNetworkElementsState, connectedNetworkElementsActionHandler } from './connectedNetworkElementsActionHandler';
-import { IAvailableLtpsState, availableLtpsActionHandler } from './availableLtpsActionHandler';
-import { PmDataInterval } from '../models/performanceDataType';
-import { TimeChangeAction } from '../actions/timeChangeAction';
-import { UpdateMountId } from '../actions/connectedNetworkElementsActions';
-
-export interface IPerformanceHistoryStoreState {
- mountId: string;
- networkElements: IConnectedNetworkElementsState;
- ltps: IAvailableLtpsState;
- performanceData: IPerformanceDataState;
- receiveLevel: IReceiveLevelState;
- transmissionPower: ITransmissionPowerState;
- adaptiveModulation: IAdaptiveModulationState;
- temperature: ITemperatureState;
- signalToInterference: ISignalToInterferenceState;
- crossPolarDiscrimination: ICrossPolarDiscriminationState;
- currentOpenPanel: string | null;
- pmDataIntervalType: PmDataInterval;
-}
-
-const mountIdHandler: IActionHandler<string> = (state = "", action) => {
- if (action instanceof UpdateMountId) {
- state = "";
- if (action.nodeId) {
- state = action.nodeId;
- }
- }
- return state;
-}
-
-
-const currentOpenPanelHandler: IActionHandler<string | null> = (state = null, action) => {
- if (action instanceof SetPanelAction) {
- state = action.panelId;
- }
- return state;
-}
-
-const currentPMDataIntervalHandler: IActionHandler<PmDataInterval> = (state = PmDataInterval.pmInterval15Min, action) => {
- if (action instanceof TimeChangeAction) {
- state = action.time;
- }
- return state;
-}
-
-declare module '../../../../framework/src/store/applicationStore' {
- interface IApplicationStoreState {
- performanceHistory: IPerformanceHistoryStoreState;
- connect: IConnectAppStoreState;
- }
-}
-
-const actionHandlers = {
- mountId: mountIdHandler,
- networkElements: connectedNetworkElementsActionHandler,
- ltps: availableLtpsActionHandler,
- performanceData: performanceDataActionHandler,
- receiveLevel: receiveLevelActionHandler,
- transmissionPower: transmissionPowerActionHandler,
- adaptiveModulation: adaptiveModulationActionHandler,
- temperature: temperatureActionHandler,
- signalToInterference: signalToInterferenceActionHandler,
- crossPolarDiscrimination: crossPolarDiscriminationActionHandler,
- currentOpenPanel: currentOpenPanelHandler,
- pmDataIntervalType: currentPMDataIntervalHandler
-};
-
-const performanceHistoryRootHandler = combineActionHandler<IPerformanceHistoryStoreState>(actionHandlers);
-export default performanceHistoryRootHandler;
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts
deleted file mode 100644
index adb70b120..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { ReceiveLevelDataType, ReceiveLevelResult } from '../models/receiveLevelDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IReceiveLevelState extends IExternalTableState<ReceiveLevelDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for receiveLevel from historicalperformance database.
- */
-const receiveLevelSearchHandler = createSearchDataHandler<ReceiveLevelResult, ReceiveLevelDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- rxLevelMin: hit._source["performance-data"]["rx-level-min"],
- rxLevelAvg: hit._source["performance-data"]["rx-level-avg"],
- rxLevelMax: hit._source["performance-data"]["rx-level-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: receiveLevelActionHandler,
- createActions: createReceiveLevelActions,
- createProperties: createReceiveLevelProperties,
- createPreActions: createReceiveLevelPreActions,
- reloadAction: receiveLevelReloadAction,
-} = createExternal<ReceiveLevelDataType>(receiveLevelSearchHandler, appState => appState.performanceHistory.receiveLevel);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts
deleted file mode 100644
index aa75ba226..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { SignalToInterferenceDataType, SignalToInterferenceResult } from '../models/signalToInteferenceDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ISignalToInterferenceState extends IExternalTableState<SignalToInterferenceDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for SINR from historicalperformance database.
- */
-const signalToInterferenceSearchHandler = createSearchDataHandler<SignalToInterferenceResult, SignalToInterferenceDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- snirMin: hit._source["performance-data"]["snir-min"],
- snirAvg: hit._source["performance-data"]["snir-avg"],
- snirMax: hit._source["performance-data"]["snir-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: signalToInterferenceActionHandler,
- createActions: createSignalToInterferenceActions,
- createProperties: createSignalToInterferenceProperties,
- createPreActions: createSignalToInterferencePreActions,
- reloadAction: signalToInterferenceReloadAction,
-} = createExternal<SignalToInterferenceDataType>(signalToInterferenceSearchHandler, appState => appState.performanceHistory.signalToInterference);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts
deleted file mode 100644
index 8a9ae7025..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { TemperatureDataType, TemperatureResult } from '../models/temperatureDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ITemperatureState extends IExternalTableState<TemperatureDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Temperature from historicalperformance database.
- */
-const temperatureSearchHandler = createSearchDataHandler<TemperatureResult, TemperatureDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- rfTempMin: hit._source["performance-data"]["rf-temp-min"],
- rfTempAvg: hit._source["performance-data"]["rf-temp-avg"],
- rfTempMax: hit._source["performance-data"]["rf-temp-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: temperatureActionHandler,
- createActions: createTemperatureActions,
- createProperties: createTemperatureProperties,
- createPreActions: createTemperaturePreActions,
- reloadAction: temperatureReloadAction,
-} = createExternal<TemperatureDataType>(temperatureSearchHandler, appState => appState.performanceHistory.temperature);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts
deleted file mode 100644
index c2ad82183..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { TransmissionPowerDataType, TransmissionPowerResult } from '../models/transmissionPowerDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ITransmissionPowerState extends IExternalTableState<TransmissionPowerDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Transmission power from historicalperformance database.
- */
-const transmissionPowerSearchHandler = createSearchDataHandler<TransmissionPowerResult, TransmissionPowerDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- txLevelMin: hit._source["performance-data"]["tx-level-min"],
- txLevelAvg: hit._source["performance-data"]["tx-level-avg"],
- txLevelMax: hit._source["performance-data"]["tx-level-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: transmissionPowerActionHandler,
- createActions: createTransmissionPowerActions,
- createProperties: createTransmissionPowerProperties,
- createPreActions: createTransmissionPowerPreActions,
- reloadAction: transmissionPowerReloadAction,
-} = createExternal<TransmissionPowerDataType>(transmissionPowerSearchHandler, appState => appState.performanceHistory.transmissionPower);
-