|
| 1 | +/* |
| 2 | + * Copyright 2018 The Hyve |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
1 | 17 | package org.radarcns.hdfs; |
2 | 18 |
|
| 19 | +import static org.radarcns.hdfs.util.ProgressBar.formatTime; |
| 20 | +import static org.radarcns.hdfs.util.commandline.CommandLineArgs.nonNullOrDefault; |
| 21 | + |
3 | 22 | import com.beust.jcommander.JCommander; |
4 | 23 | import com.beust.jcommander.ParameterException; |
| 24 | +import java.io.IOException; |
| 25 | +import java.io.UncheckedIOException; |
| 26 | +import java.nio.file.Files; |
| 27 | +import java.text.SimpleDateFormat; |
| 28 | +import java.time.Duration; |
| 29 | +import java.time.Instant; |
| 30 | +import java.util.Date; |
| 31 | +import java.util.HashMap; |
| 32 | +import java.util.List; |
| 33 | +import java.util.Map; |
5 | 34 | import org.radarcns.hdfs.accounting.Accountant; |
6 | 35 | import org.radarcns.hdfs.config.HdfsSettings; |
7 | 36 | import org.radarcns.hdfs.config.RestructureSettings; |
|
17 | 46 | import org.slf4j.Logger; |
18 | 47 | import org.slf4j.LoggerFactory; |
19 | 48 |
|
20 | | -import java.io.IOException; |
21 | | -import java.io.UncheckedIOException; |
22 | | -import java.nio.file.Files; |
23 | | -import java.text.SimpleDateFormat; |
24 | | -import java.time.Duration; |
25 | | -import java.time.Instant; |
26 | | -import java.util.Date; |
27 | | -import java.util.HashMap; |
28 | | -import java.util.List; |
29 | | -import java.util.Map; |
30 | | - |
31 | | -import static org.radarcns.hdfs.util.ProgressBar.formatTime; |
32 | | -import static org.radarcns.hdfs.util.commandline.CommandLineArgs.nonNullOrDefault; |
33 | | - |
34 | 49 | /** Main application. */ |
35 | 50 | public class Application implements FileStoreFactory { |
36 | 51 | private static final Logger logger = LoggerFactory.getLogger(Application.class); |
|
0 commit comments