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;
26 * Distributor parameters for the Super Dooper Distributor.
28 * @author Liam Fallon (liam.fallon@ericsson.com)
31 public class SuperDooperDistributorParameters extends DistributorParameters {
32 // Constants for SuperDooper configuration file locations
33 public static final String DEFAULT_SUPER_DOOPER_DISTRIBUTION_CONFIG_FILE = "superDooper/superDooper.xml";
34 public static final String DEFAULT_SUPER_DOOPER_DISTRIBUTION_JGROUPS_FILE =
35 "superDooper/jgroups-superDooper-apex.xml";
36 public static final boolean DEFAULT_SUPER_DOOPER_JAVA_NET_PREFER_IPV4_STACK = true;
37 public static final String DEFAULT_INFINSPAN_JGROUPS_BIND_ADDRESS = "localhost";
39 // SuperDooper configuration file names
40 private String configFile = DEFAULT_SUPER_DOOPER_DISTRIBUTION_CONFIG_FILE;
41 private String jgroupsFile = DEFAULT_SUPER_DOOPER_DISTRIBUTION_JGROUPS_FILE;
42 private boolean preferIPv4Stack = DEFAULT_SUPER_DOOPER_JAVA_NET_PREFER_IPV4_STACK;
43 private String jGroupsBindAddress = DEFAULT_INFINSPAN_JGROUPS_BIND_ADDRESS;
45 public SuperDooperDistributorParameters() {
49 public String getConfigFile() {
53 public void setConfigFile(final String configFile) {
54 this.configFile = configFile;
57 public String getJgroupsFile() {
61 public void setJgroupsFile(final String jgroupsFile) {
62 this.jgroupsFile = jgroupsFile;
65 public boolean preferIPv4Stack() {
66 return preferIPv4Stack;
69 public void setPreferIPv4Stack(final boolean preferIPv4Stack) {
70 this.preferIPv4Stack = preferIPv4Stack;
73 public String getjGroupsBindAddress() {
74 return jGroupsBindAddress;
77 public void setjGroupsBindAddress(final String jGroupsBindAddress) {
78 this.jGroupsBindAddress = jGroupsBindAddress;
82 public String toString() {
83 return "SuperDooperDistributorParameters [configFile=" + configFile + ", jgroupsFile=" + jgroupsFile
84 + ", preferIPv4Stack=" + preferIPv4Stack + ", jGroupsBindAddress=" + jGroupsBindAddress + "]";