synchronized public Future<?> executeTask(TaskTypes type, String name, long repDeg) {
		if(type == TaskTypes.BACKUPFILE) {
			return executor.submit(new BackupFileTask(name, (int)repDeg));
		}
		else if(type == TaskTypes.RESTOREFILE) {
			return executor.submit(new RestoreFileTask(name));
		}
		else if(type == TaskTypes.DELETEFILE) {
			return executor.submit(new DeleteFileTask(name));
		}
		else if(type == TaskTypes.SETMEMORY) {
			return executor.submit(new SetAllocatedMemoryTask(repDeg));
		}
		else if(type == TaskTypes.CHECKCHUNK) {
			return executor.submit(new CheckChunkAvailabilityTask());
		}
		else return null;
			
		
	}