All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sirius.biz.jobs.system.TestJob Maven / Gradle / Ivy

There is a newer version: 9.6
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.biz.jobs.system;

import sirius.biz.jobs.JobParameterDescription;
import sirius.kernel.commons.Context;
import sirius.kernel.di.std.Register;
import sirius.web.tasks.ManagedTaskContext;

import javax.annotation.Nonnull;
import java.util.function.Consumer;

/**
 * Created by aha on 22.07.16.
 */
@Register(classes = SystemJobDescription.class)
public class TestJob extends SystemJobDescription {
    @Override
    public void collectParameters(Consumer parameterCollector) {

    }

    @Override
    public boolean verifyParameters(Context parameters) {
        return true;
    }

    @Override
    public void execute(Context parameters, ManagedTaskContext task) {
        task.log("Hello");
    }

    @Nonnull
    @Override
    public String getName() {
        return "test";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy