X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ves-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fvesagent%2FVesConfiguration.java;fp=ves-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fvesagent%2FVesConfiguration.java;h=7ec6b66e993d330b876cfab003c12038c7a873d5;hb=a58ada8fd244e69cf2ebe48a251fcdd4d48acec4;hp=0000000000000000000000000000000000000000;hpb=5096ffe11e0c38f2a1cc60ccba41d27c1333f22a;p=oam%2Ftr069-adapter.git diff --git a/ves-agent/src/main/java/org/commscope/tr069adapter/vesagent/VesConfiguration.java b/ves-agent/src/main/java/org/commscope/tr069adapter/vesagent/VesConfiguration.java new file mode 100644 index 0000000..7ec6b66 --- /dev/null +++ b/ves-agent/src/main/java/org/commscope/tr069adapter/vesagent/VesConfiguration.java @@ -0,0 +1,164 @@ +/* + * ============LICENSE_START======================================================================== + * ONAP : tr-069-adapter + * ================================================================================================= + * Copyright (C) 2020 CommScope Inc Intellectual Property. + * ================================================================================================= + * This tr-069-adapter software file is distributed by CommScope Inc 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 + * + * This file 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======================================================================= + */ + +package org.commscope.tr069adapter.vesagent; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.Configuration; + +@Configuration +@ConfigurationProperties(prefix = "config") +public class VesConfiguration { + + private String faultvesCollectorHost; + private String faultvesCollectorPort; + private String pnfregvesCollectorHost; + private String pnfregvesCollectorPort; + private String vendorName; + private String vesVersion; + private String eventVersion; + private String faultEventType; + private String pnfRegEventType; + private String faultFeildVersion; + private String pnfFeildVersion; + private String unitFamily; + private String unitType; + private String faultEventSourcePrefix; + + public String getFaultvesCollectorHost() { + return faultvesCollectorHost; + } + + public void setFaultvesCollectorHost(String faultvesCollectorHost) { + this.faultvesCollectorHost = faultvesCollectorHost; + } + + public String getFaultvesCollectorPort() { + return faultvesCollectorPort; + } + + public void setFaultvesCollectorPort(String faultvesCollectorPort) { + this.faultvesCollectorPort = faultvesCollectorPort; + } + + public String getPnfregvesCollectorHost() { + return pnfregvesCollectorHost; + } + + public void setPnfregvesCollectorHost(String pnfregvesCollectorHost) { + this.pnfregvesCollectorHost = pnfregvesCollectorHost; + } + + public String getPnfregvesCollectorPort() { + return pnfregvesCollectorPort; + } + + public void setPnfregvesCollectorPort(String pnfregvesCollectorPort) { + this.pnfregvesCollectorPort = pnfregvesCollectorPort; + } + + public String getVendorName() { + return vendorName; + } + + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + public String getVesVersion() { + return vesVersion; + } + + public void setVesVersion(String vesVersion) { + this.vesVersion = vesVersion; + } + + public String getEventVersion() { + return eventVersion; + } + + public void setEventVersion(String eventVersion) { + this.eventVersion = eventVersion; + } + + public String getFaultEventType() { + return faultEventType; + } + + public void setFaultEventType(String faultEventType) { + this.faultEventType = faultEventType; + } + + public String getFaultFeildVersion() { + return faultFeildVersion; + } + + public void setFaultFeildVersion(String faultFeildVersion) { + this.faultFeildVersion = faultFeildVersion; + } + + public String getPnfFeildVersion() { + return pnfFeildVersion; + } + + public void setPnfFeildVersion(String pnfFeildVersion) { + this.pnfFeildVersion = pnfFeildVersion; + } + + public String getFaultVesUrl() { + return "http://" + getFaultvesCollectorHost() + ":" + getFaultvesCollectorPort() + + "/eventListener/v7"; + } + + public String getPnfRegVesUrl() { + return "http://" + getPnfregvesCollectorHost() + ":" + getPnfregvesCollectorPort() + + "/eventListener/v7"; + } + + public String getUnitFamily() { + return unitFamily; + } + + public void setUnitFamily(String unitFamily) { + this.unitFamily = unitFamily; + } + + public String getUnitType() { + return unitType; + } + + public void setUnitType(String unitType) { + this.unitType = unitType; + } + + public String getFaultEventSourcePrefix() { + return faultEventSourcePrefix; + } + + public void setFaultEventSourcePrefix(String faultEventSourcePrefix) { + this.faultEventSourcePrefix = faultEventSourcePrefix; + } + + public String getPnfRegEventType() { + return pnfRegEventType; + } + + public void setPnfRegEventType(String pnfRegEventType) { + this.pnfRegEventType = pnfRegEventType; + } +}