public interface Container extends AutoCloseable
In the case of the local resourcemanager, this slice is always the one of the machine where the job was submitted.
Modifier and Type | Method and Description |
---|---|
void |
addGlobalFiles(File globalFolder) |
void |
addLocalFiles(Iterable<File> files)
Copies the files to the working directory of the container.
|
void |
close()
Kills the Container.
|
String |
getContainerID() |
File |
getFolder() |
int |
getMemory() |
String |
getNodeID() |
int |
getNumberOfCores() |
String |
getRackName() |
boolean |
isRunning() |
void |
run(List<String> commandLine)
Run the given commandLine in the container.
|
void run(List<String> commandLine)
commandLine
- the command line to execute. It will typically be joined by spaces to form the command line.void addLocalFiles(Iterable<File> files)
files
- the files to be added to the container.void addGlobalFiles(File globalFolder)
boolean isRunning()
String getContainerID()
int getMemory()
int getNumberOfCores()
void close()
close
in interface AutoCloseable
String getRackName()
Copyright © 2017 The Apache Software Foundation. All rights reserved.