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 voidaddServerTempDir(File dir)Registers the specified dir for removal on server shutdownFilecreateServerTempDir(String name)Creates and returns a temp dir with the specified name as a suffix which will be removed on server shutdownPositionConstraintgetConstraint()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:TmpFilesCreates and returns a temp dir with the specified name as a suffix which will be removed on server shutdown- Specified by:
createServerTempDirin 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:TmpFilesRegisters the specified dir for removal on server shutdown- Specified by:
addServerTempDirin interfaceTmpFiles- Parameters:
dir- directory of interest
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAwareConstraint to be respected during objects sorting.- Specified by:
getConstraintin interfacePositionConstraintAware- Returns:
- position constraint
-
-