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 WorkingDirectorycreate(File workingDirectory)static WorkingDirectorycreateIn(File parentDirectory, String directoryName)WorkingDirectorycreateSubWorkingDirectory(String directoryName)voiddelete()FilegetBlobStorageDirectory()FilegetLocalStateDirectory()FilegetSlotAllocationSnapshotDirectory()FilegetTmpDirectory()StringtoString()
-
-
-
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()
-
-