Package jetbrains.buildServer.serverSide
Class TmpFilesImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.TmpFilesImpl
-
- All Implemented Interfaces:
TmpFiles
,PositionConstraintAware
public class TmpFilesImpl extends Object implements TmpFiles, PositionConstraintAware
-
-
Constructor Summary
Constructors Constructor Description TmpFilesImpl(EventDispatcher<BuildServerListener> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServerTempDir(File dir)
Registers the specified dir for removal on server shutdownFile
createServerTempDir(String name)
Creates and returns a temp dir with the specified name as a suffix which will be removed on server shutdownPositionConstraint
getConstraint()
Constraint to be respected during objects sorting.
-
-
-
Constructor Detail
-
TmpFilesImpl
public TmpFilesImpl(@NotNull EventDispatcher<BuildServerListener> events)
-
-
Method Detail
-
createServerTempDir
@NotNull public File createServerTempDir(@NotNull String name) throws IOException
Description copied from interface:TmpFiles
Creates and returns a temp dir with the specified name as a suffix which will be removed on server shutdown- Specified by:
createServerTempDir
in interfaceTmpFiles
- Returns:
- see above
- Throws:
IOException
- if there is an error during temp dir creation
-
addServerTempDir
public void addServerTempDir(@NotNull File dir)
Description copied from interface:TmpFiles
Registers the specified dir for removal on server shutdown- Specified by:
addServerTempDir
in interfaceTmpFiles
- Parameters:
dir
- directory of interest
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in interfacePositionConstraintAware
- Returns:
- position constraint
-
-