Package org.apache.sling.servlets.post.impl.helper

# Klasse ChunkCleanUpTask

java.lang.Object
org.apache.sling.servlets.post.impl.helper.ChunkCleanUpTask

Alle implementierten Schnittstellen:
  `Runnable`

public class ChunkCleanUpTask extends Object implements Runnable
The `ChunkCleanUpTask` implements a job run at regular intervals to find incomplete chunk uploads and remove them from the repository to prevent littering the repository with incomplete chunks.

This task is configured with OSGi configuration for the PID `org.apache.sling.servlets.post.impl.helper.ChunkCleanUpTask` with property `scheduler.expression` being the schedule to execute the task. The schedule is a cron job expression as described at Cron Trigger with the default value configured to run twice a day at 0h41m31s and 12h4131s.

The property `chunk.cleanup.age` specifies chunk's age in minutes before it is considered for clean up.

Currently the cleanup tasks connects as the administrative user to the default workspace assuming users are stored in that workspace and the administrative user has full access.

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static @interface`
`ChunkCleanUpTask.Config`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ChunkCleanUpTask()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected void`
`activate(ChunkCleanUpTask.Config configuration)`
`void`
`run()`
Executes the job.

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### ChunkCleanUpTask

public ChunkCleanUpTask()

## Methodendetails

### run

public void run()
Executes the job. Is called for each triggered schedule point.

Angegeben von:
  `run` in Schnittstelle `Runnable`

### activate

protected void activate(ChunkCleanUpTask.Config configuration)