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)
ContaineraddLocalFiles in interface Containerfiles - the files to be added to the container.public void addGlobalFiles(File globalFilesFolder)
addGlobalFiles in interface Containerpublic void run(List<String> commandLine)
Containerpublic boolean isRunning()
public int getMemory()
public int getNumberOfCores()
getNumberOfCores in interface Containerpublic String getRackName()
getRackName in interface Containerpublic String getContainerID()
getContainerID in interface Containerpublic void close()
Containerclose in interface AutoCloseableclose in interface ContainerCopyright © 2017 The Apache Software Foundation. All rights reserved.