org.eclipse.dirigible.components.jobs.SystemJob Maven / Gradle / Ivy
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.dirigible.components.jobs;
import java.util.Optional;
/**
* The Class SystemJob.
*/
public abstract class SystemJob extends DirigibleJob {
/**
* Gets the trigger group.
*
* @return the trigger group
*/
@Override
protected final Optional getTriggerGroup() {
return Optional.of("system");
}
/**
* Gets the job group.
*
* @return the job group
*/
@Override
protected final Optional getJobGroup() {
return Optional.of("system");
}
@Override
protected String getTriggerDescription() {
return this.getClass() + "_trigger";
}
@Override
protected String getJobDescription() {
return this.getClass() + "_job";
}
}