This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
forked from eclipse/kapua
/
QueuedJobExecutionService.java
40 lines (37 loc) · 1.72 KB
/
QueuedJobExecutionService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*******************************************************************************
* Copyright (c) 2019, 2020 Eurotech and/or its affiliates and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eurotech - initial API and implementation
*******************************************************************************/
package org.eclipse.kapua.job.engine.queue;
import org.eclipse.kapua.KapuaException;
import org.eclipse.kapua.model.query.KapuaQuery;
import org.eclipse.kapua.service.KapuaEntityService;
import org.eclipse.kapua.service.KapuaUpdatableEntityService;
/**
* {@link QueuedJobExecutionService} exposes APIs to manage {@link QueuedJobExecution} objects.<br>
* It includes APIs to create, update, find, list and delete {@link QueuedJobExecution}s.<br>
* Instances of the {@link QueuedJobExecutionService} can be acquired through the {@link org.eclipse.kapua.locator.KapuaLocator} object.
*
* @since 1.1.0
*/
public interface QueuedJobExecutionService extends KapuaEntityService<QueuedJobExecution, QueuedJobExecutionCreator>,
KapuaUpdatableEntityService<QueuedJobExecution> {
/**
* Returns the {@link QueuedJobExecutionListResult} with elements matching the provided query.
*
* @param query The {@link QueuedJobExecutionQuery} used to filter results.
* @return The {@link QueuedJobExecutionListResult} with elements matching the query parameter.
* @throws KapuaException
* @since 1.1.0
*/
@Override
QueuedJobExecutionListResult query(KapuaQuery query) throws KapuaException;
}