Class WorkingDirectory
- java.lang.Object
-
- org.apache.flink.runtime.entrypoint.WorkingDirectory
-
public class WorkingDirectory extends Object
Class that manages a working directory for a process/instance. When being instantiated, this class makes sure that the specified working directory exists.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkingDirectory
create(File workingDirectory)
static WorkingDirectory
createIn(File parentDirectory, String directoryName)
WorkingDirectory
createSubWorkingDirectory(String directoryName)
void
delete()
File
getBlobStorageDirectory()
File
getLocalStateDirectory()
File
getSlotAllocationSnapshotDirectory()
File
getTmpDirectory()
String
toString()
-
-
-
Method Detail
-
delete
public void delete() throws IOException
- Throws:
IOException
-
getTmpDirectory
public File getTmpDirectory()
-
getLocalStateDirectory
public File getLocalStateDirectory()
-
getSlotAllocationSnapshotDirectory
public File getSlotAllocationSnapshotDirectory()
-
createSubWorkingDirectory
public WorkingDirectory createSubWorkingDirectory(String directoryName) throws IOException
- Throws:
IOException
-
create
public static WorkingDirectory create(File workingDirectory) throws IOException
- Throws:
IOException
-
createIn
public static WorkingDirectory createIn(File parentDirectory, String directoryName) throws IOException
- Throws:
IOException
-
getBlobStorageDirectory
public File getBlobStorageDirectory()
-
-