Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
EnvConfig.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.integrationtesting.config;
20 
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 
28 @JsonIgnoreProperties(ignoreUnknown = true)
29 public class EnvConfig {
30 
31  private final String rootCaseOutputPath;
32  private final String rootTestOutputPath;
33  private final String rootTestSuitesPath;
34  private final String rootGoldPath;
35  private final String diffOutputPath;
36 
42 
43  private String workingDirectory;
44  private Boolean useRelativeOutput;
45 
46 
70  @JsonCreator
71  public EnvConfig(
72  @JsonProperty("rootCaseOutputPath") String rootCaseOutputPath,
73  @JsonProperty("rootTestSuitesPath") String rootTestSuitesPath,
74  @JsonProperty("rootTestOutputPath") String rootTestOutputPath,
75  @JsonProperty("dbConnection") ConnectionConfig dbConnection,
76  @JsonProperty("mqConnection") ConnectionConfig mqConnection,
77  @JsonProperty("solrConnection") ConnectionConfig solrConnection,
78  @JsonProperty("zkConnection") ConnectionConfig zkConnection,
79  @JsonProperty("crConnection") ConnectionConfig crConnection,
80  @JsonProperty("workingDirectory") String workingDirectory,
81  @JsonProperty("useRelativeOutput") Boolean useRelativeOutput,
82  @JsonProperty("rootGoldPath") String rootGoldPath,
83  @JsonProperty("diffOutputPath") String diffOutputPath) {
84 
85  this.rootCaseOutputPath = rootCaseOutputPath;
86  this.rootTestOutputPath = rootTestOutputPath;
87  this.rootTestSuitesPath = rootTestSuitesPath;
88  this.rootGoldPath = rootGoldPath;
89  this.diffOutputPath = diffOutputPath;
90  this.workingDirectory = workingDirectory;
91  this.useRelativeOutput = useRelativeOutput;
92 
93  this.dbConnection = dbConnection;
94  this.mqConnection = mqConnection;
95  this.solrConnection = solrConnection;
96  this.zkConnection = zkConnection;
97  this.crConnection = crConnection;
98  }
99 
103  public String getRootCaseOutputPath() {
104  return rootCaseOutputPath;
105  }
106 
110  public String getRootTestOutputPath() {
111  return rootTestOutputPath;
112  }
113 
119  public String getWorkingDirectory() {
120  return workingDirectory;
121  }
122 
130  public void setWorkingDirectory(String workingDirectory) {
131  this.workingDirectory = workingDirectory;
132  }
133 
138  public String getRootTestSuitesPath() {
139  return rootTestSuitesPath;
140  }
141 
148  public boolean getUseRelativeOutput() {
149  return Boolean.TRUE.equals(useRelativeOutput);
150  }
151 
160  public void setUseRelativeOutput(boolean useRelativeOutput) {
161  this.useRelativeOutput = useRelativeOutput;
162  }
163 
168  return dbConnection;
169  }
170 
175  return mqConnection;
176  }
177 
182  return solrConnection;
183  }
184 
189  return zkConnection;
190  }
191 
196  return crConnection;
197  }
198 
202  public String getRootGoldPath() {
203  return rootGoldPath;
204  }
205 
209  public String getDiffOutputPath() {
210  return diffOutputPath;
211  }
212 
213 }
EnvConfig(@JsonProperty("rootCaseOutputPath") String rootCaseOutputPath,@JsonProperty("rootTestSuitesPath") String rootTestSuitesPath,@JsonProperty("rootTestOutputPath") String rootTestOutputPath,@JsonProperty("dbConnection") ConnectionConfig dbConnection,@JsonProperty("mqConnection") ConnectionConfig mqConnection,@JsonProperty("solrConnection") ConnectionConfig solrConnection,@JsonProperty("zkConnection") ConnectionConfig zkConnection,@JsonProperty("crConnection") ConnectionConfig crConnection,@JsonProperty("workingDirectory") String workingDirectory,@JsonProperty("useRelativeOutput") Boolean useRelativeOutput,@JsonProperty("rootGoldPath") String rootGoldPath,@JsonProperty("diffOutputPath") String diffOutputPath)
Definition: EnvConfig.java:71
void setUseRelativeOutput(boolean useRelativeOutput)
Definition: EnvConfig.java:160

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.