0d021c919fbfebf5116bfbca98079037e4c910d5
[policy/apex-pdp.git] /
1 /*-
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
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
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.
16  * 
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.service.engine.parameters.dummyclasses;
22
23 import org.onap.policy.apex.context.parameters.DistributorParameters;
24
25 /**
26  * Distributor parameters for the Super Dooper Distributor.
27  * 
28  * @author Liam Fallon (liam.fallon@ericsson.com)
29  * @version
30  */
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";
38
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;
44
45     public SuperDooperDistributorParameters() {
46         super();
47     }
48
49     public String getConfigFile() {
50         return configFile;
51     }
52
53     public void setConfigFile(final String configFile) {
54         this.configFile = configFile;
55     }
56
57     public String getJgroupsFile() {
58         return jgroupsFile;
59     }
60
61     public void setJgroupsFile(final String jgroupsFile) {
62         this.jgroupsFile = jgroupsFile;
63     }
64
65     public boolean isPreferIPv4Stack() {
66         return preferIPv4Stack;
67     }
68
69     public void setPreferIPv4Stack(final boolean preferIPv4Stack) {
70         this.preferIPv4Stack = preferIPv4Stack;
71     }
72
73     public String getJgroupsBindAddress() {
74         return jgroupsBindAddress;
75     }
76
77     public void setjGroupsBindAddress(final String jgroupsBindAddress) {
78         this.jgroupsBindAddress = jgroupsBindAddress;
79     }
80
81     @Override
82     public String toString() {
83         return "SuperDooperDistributorParameters [configFile=" + configFile + ", jgroupsFile=" + jgroupsFile
84                 + ", preferIPv4Stack=" + preferIPv4Stack + ", jGroupsBindAddress=" + jgroupsBindAddress + "]";
85     }
86 }