summaryrefslogblamecommitdiffstats
path: root/src/main/java/org/openslx/taskmanager/tasks/DummyTask.java
blob: 083e4b094dcc60d3ea31092e406025065a5badba (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                      

                                                


                                                                            


                                           




                                                               






                                          

                                           









                                           
package org.openslx.taskmanager.tasks;

import org.openslx.taskmanager.api.AbstractTask;

/**
 * DummyTask - main purpose is to check if the task manager is still working
 */
public class DummyTask extends AbstractTask
{

	private DummyTaskStatus status = new DummyTaskStatus();

	@Override
	protected boolean initTask()
	{
		return true;
	}

	@Override
	protected boolean execute()
	{
		setStatusObject( status );
		this.status.progress = 100;
		return true;
	}

	class DummyTaskStatus
	{

		protected int progress = 0;

	}

}