public final class ProcessContainer extends Object implements Container
Modifier and Type | Method and Description |
---|---|
void |
addGlobalFiles(File globalFilesFolder) |
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.
|
String |
toString() |
public void addLocalFiles(Iterable<File> files)
Container
addLocalFiles
in interface Container
files
- the files to be added to the container.public void addGlobalFiles(File globalFilesFolder)
addGlobalFiles
in interface Container
public void run(List<String> commandLine)
Container
public boolean isRunning()
public int getMemory()
public int getNumberOfCores()
getNumberOfCores
in interface Container
public String getRackName()
getRackName
in interface Container
public String getContainerID()
getContainerID
in interface Container
public void close()
Container
close
in interface AutoCloseable
close
in interface Container
Copyright © 2017 The Apache Software Foundation. All rights reserved.