HADOOP-14400. Fix warnings from spotbugs in hadoop-tools. Contributed by Weiwei Yang.

This commit is contained in:
Akira Ajisaka 2017-05-10 05:57:12 -05:00 committed by Owen O'Malley
parent ddc88eaf88
commit 3e2ca23a53
1 changed files with 7 additions and 0 deletions

View File

@ -216,6 +216,13 @@ public class SLSRunner extends Configured implements Tool {
return Collections.unmodifiableMap(simulateInfoMap);
}
/**
* @return an unmodifiable view of the simulated info map.
*/
public static Map<String, Object> getSimulateInfoMap() {
return Collections.unmodifiableMap(simulateInfoMap);
}
public void setSimulationParams(TraceType inType, String[] inTraces,
String nodes, String outDir, Set<String> trackApps,
boolean printsimulation) throws IOException, ClassNotFoundException {