org.tranche.delete
Class DeleteFileTool

java.lang.Object
  extended by org.tranche.delete.DeleteFileTool

public class DeleteFileTool
extends java.lang.Object

This tool is used to delete an upload from the repository.

Author:
James "Augie" Hill - augman85@gmail.com

Field Summary
static int DEFAULT_THREADS
          Default parameters
 
Constructor Summary
DeleteFileTool()
           
 
Method Summary
 DeleteFileToolReport execute()
           
 boolean isLocked()
           
 boolean isPaused()
          Gets whether the upload is paused.
 boolean isStopped()
           
 void setPause(boolean paused)
          Set whether the upload is paused.
 void stop()
          Stops the upload.
 void throwExceptionIfLocked()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_THREADS

public static int DEFAULT_THREADS
Default parameters

Constructor Detail

DeleteFileTool

public DeleteFileTool()
Method Detail

isLocked

public boolean isLocked()
Returns:

throwExceptionIfLocked

public void throwExceptionIfLocked()

setPause

public void setPause(boolean paused)

Set whether the upload is paused.

Parameters:
paused - Whether the upload is paused.

isPaused

public boolean isPaused()

Gets whether the upload is paused.

Returns:
Whether the upload is paused.

stop

public void stop()

Stops the upload.


isStopped

public boolean isStopped()
Returns:

execute

public DeleteFileToolReport execute()
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license