1 /*******************************************************************************
2 * ============LICENSE_START========================================================================
3 * ONAP : ccsdk feature sdnr wt
4 * =================================================================================================
5 * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6 * =================================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8 * in compliance with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software distributed under the License
13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing permissions and limitations under
16 * ============LICENSE_END==========================================================================
17 ******************************************************************************/
19 * Problems generated by DeviceMonitor
24 package org.onap.ccsdk.features.sdnr.wt.devicemanager.devicemonitor.impl;
26 import javax.annotation.Nullable;
28 import org.onap.ccsdk.features.sdnr.wt.devicemanager.base.internalTypes.InternalSeverity;
29 import org.slf4j.Logger;
30 import org.slf4j.LoggerFactory;
32 public enum DeviceMonitorProblems {
35 * Mountpoint is not connected via NETCONF with NE/Mediator = ssh connection
37 connectionLossOAM(InternalSeverity.Major),
40 * Mountpoint is connected via Netconf to Mediator, but mediator is not responding.
41 * Connection state to NE is unknown.
43 connectionLossMediator(InternalSeverity.Major),
45 /** Mountpoint is connected via Netconf to Mediator.
46 * This connection is OK, but mediator <-> NE Connection is not OK
48 connectionLossNeOAM(InternalSeverity.Major);
50 private static final Logger LOG = LoggerFactory.getLogger(DeviceMonitorProblems.class);
51 InternalSeverity severity;
53 DeviceMonitorProblems(@Nullable InternalSeverity severity) {
54 if (severity != null) {
55 this.severity = severity;
59 InternalSeverity getSeverity() {
63 public void setSeverity(InternalSeverity severity) {
64 LOG.info("Change severity for {} from {} to {}", name(), this.severity, severity);
65 this.severity=severity;