2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2016-2018 Ericsson. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.apex.service.engine.parameters.dummyclasses;
23 import org.onap.policy.apex.context.parameters.DistributorParameters;
24 import org.onap.policy.apex.model.basicmodel.service.ParameterService;
27 * Distributor parameters for the Super Dooper Distributor
29 * @author Liam Fallon (liam.fallon@ericsson.com)
32 public class SuperDooperDistributorParameters extends DistributorParameters {
33 // Constants for SuperDooper configuration file locations
34 public static final String DEFAULT_SUPER_DOOPER_DISTRIBUTION_CONFIG_FILE = "superDooper/superDooper.xml";
35 public static final String DEFAULT_SUPER_DOOPER_DISTRIBUTION_JGROUPS_FILE =
36 "superDooper/jgroups-superDooper-apex.xml";
37 public static final boolean DEFAULT_SUPER_DOOPER_JAVA_NET_PREFER_IPV4_STACK = true;
38 public static final String DEFAULT_INFINSPAN_JGROUPS_BIND_ADDRESS = "localhost";
40 // SuperDooper configuration file names
41 private String configFile = DEFAULT_SUPER_DOOPER_DISTRIBUTION_CONFIG_FILE;
42 private String jgroupsFile = DEFAULT_SUPER_DOOPER_DISTRIBUTION_JGROUPS_FILE;
43 private boolean preferIPv4Stack = DEFAULT_SUPER_DOOPER_JAVA_NET_PREFER_IPV4_STACK;
44 private String jGroupsBindAddress = DEFAULT_INFINSPAN_JGROUPS_BIND_ADDRESS;
46 public SuperDooperDistributorParameters() {
47 super(SuperDooperDistributorParameters.class.getCanonicalName());
48 ParameterService.registerParameters(SuperDooperDistributorParameters.class, this);
49 ParameterService.registerParameters(DistributorParameters.class, this);
52 public String getConfigFile() {
56 public void setConfigFile(final String configFile) {
57 this.configFile = configFile;
60 public String getJgroupsFile() {
64 public void setJgroupsFile(final String jgroupsFile) {
65 this.jgroupsFile = jgroupsFile;
68 public boolean preferIPv4Stack() {
69 return preferIPv4Stack;
72 public void setPreferIPv4Stack(final boolean preferIPv4Stack) {
73 this.preferIPv4Stack = preferIPv4Stack;
76 public String getjGroupsBindAddress() {
77 return jGroupsBindAddress;
80 public void setjGroupsBindAddress(final String jGroupsBindAddress) {
81 this.jGroupsBindAddress = jGroupsBindAddress;
85 public String toString() {
86 return "SuperDooperDistributorParameters [configFile=" + configFile + ", jgroupsFile=" + jgroupsFile
87 + ", preferIPv4Stack=" + preferIPv4Stack + ", jGroupsBindAddress=" + jGroupsBindAddress + "]";