@InterfaceAudience.Private
@InterfaceStability.Unstable
public class SLSRunner
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
SLSRunner.NodeDetails
Class to encapsulate all details about the node.
|
static class |
SLSRunner.TraceType
The type of trace in input.
|
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
SLSRunner() |
SLSRunner(org.apache.hadoop.conf.Configuration tempConf) |
| Modifier and Type | Method and Description |
|---|---|
static void |
decreaseRemainingApps() |
Map<org.apache.hadoop.yarn.api.records.NodeId,NMSimulator> |
getNmMap() |
static Map<String,Object> |
getSimulateInfoMap() |
static void |
main(String[] argv) |
int |
run(String[] argv) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setSimulationParams(SLSRunner.TraceType inType,
String[] inTraces,
String nodes,
String outDir,
Set<String> trackApps,
boolean printsimulation) |
void |
start() |
void |
stop() |
public SLSRunner()
throws ClassNotFoundException
ClassNotFoundExceptionpublic SLSRunner(org.apache.hadoop.conf.Configuration tempConf)
throws ClassNotFoundException
ClassNotFoundExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.conf.Configuredpublic static Map<String,Object> getSimulateInfoMap()
public void setSimulationParams(SLSRunner.TraceType inType, String[] inTraces, String nodes, String outDir, Set<String> trackApps, boolean printsimulation) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void start()
throws IOException,
ClassNotFoundException,
org.apache.hadoop.yarn.exceptions.YarnException,
InterruptedException
IOExceptionClassNotFoundExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionpublic Map<org.apache.hadoop.yarn.api.records.NodeId,NMSimulator> getNmMap()
public static void decreaseRemainingApps()
public void stop()
throws InterruptedException
InterruptedExceptionpublic int run(String[] argv) throws IOException, InterruptedException, org.apache.commons.cli.ParseException, ClassNotFoundException, org.apache.hadoop.yarn.exceptions.YarnException
run in interface org.apache.hadoop.util.ToolIOExceptionInterruptedExceptionorg.apache.commons.cli.ParseExceptionClassNotFoundExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.