Skip to content

Commit

Permalink
[Improvement] Removed unused/non-updated objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Jun 25, 2024
1 parent e200aa3 commit c649748
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public class LocalDLMEmulator {

private final String zkEnsemble;
private final URI uri;
private final List<File> tmpDirs = new ArrayList<File>();
private final int zkTimeoutSec;
private final Thread bkStartupThread;
private final String zkHost;
Expand Down Expand Up @@ -180,9 +179,6 @@ public void teardown() throws Exception {
bkStartupThread.interrupt();
bkStartupThread.join();
}
for (File dir : tmpDirs) {
FileUtils.forceDeleteOnExit(dir);
}
}

public String getZkServers() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class DynamicConfigurationFactory {
private static final Logger LOG = LoggerFactory.getLogger(DynamicConfigurationFactory.class);

private final Map<String, DynamicDistributedLogConfiguration> dynamicConfigs;
private final List<ConfigurationSubscription> subscriptions;
private final ScheduledExecutorService executorService;
private final int reloadPeriod;
private final TimeUnit reloadUnit;
Expand All @@ -60,7 +59,6 @@ public DynamicConfigurationFactory(ScheduledExecutorService executorService,
this.reloadPeriod = reloadPeriod;
this.reloadUnit = reloadUnit;
this.dynamicConfigs = new HashMap<String, DynamicDistributedLogConfiguration>();
this.subscriptions = new LinkedList<ConfigurationSubscription>();
}

public synchronized Optional<DynamicDistributedLogConfiguration> getDynamicConfiguration(
Expand All @@ -77,7 +75,6 @@ public synchronized Optional<DynamicDistributedLogConfiguration> getDynamicConfi
List<FileConfigurationBuilder> fileConfigBuilders = Lists.newArrayList(properties);
ConfigurationSubscription subscription = new ConfigurationSubscription(
dynConf, fileConfigBuilders, executorService, reloadPeriod, reloadUnit);
subscriptions.add(subscription);
dynamicConfigs.put(configPath, dynConf);
LOG.info("Loaded dynamic configuration at {}", configPath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public void tailContainerLog() {
}

public String getContainerLog() {
StringBuilder sb = new StringBuilder();

LogContainerCmd logContainerCmd = this.dockerClient.logContainerCmd(this.getContainerId());
logContainerCmd.withStdOut(true).withStdErr(true);
Expand All @@ -94,7 +93,7 @@ public String getContainerLog() {
} catch (InterruptedException e) {

}
return sb.toString();
return "";
}

public ExecResult execCmd(String... cmd) throws Exception {
Expand Down

0 comments on commit c649748

Please sign in to comment.