synchronized public Future<?> executeTask(TaskTypes type, byte[] fileID, int chunkNo) {
		switch(type) {
		case DELETE:
			return executor.submit(new DeleteTask(fileID));
		case RESTORECHUNK:
			return executor.submit(new RestoreChunkTask(fileID, chunkNo));
		case REMOVE:
			return executor.submit(new RemoveTask());
		default:
			return null;
		}
	}