Skip to content

Package: JobTargetService

JobTargetService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.job.targets;
14:
15: import org.eclipse.kapua.KapuaException;
16: import org.eclipse.kapua.model.query.KapuaQuery;
17: import org.eclipse.kapua.service.KapuaEntityService;
18: import org.eclipse.kapua.service.KapuaUpdatableEntityService;
19:
20: /**
21: * {@link JobTargetService} exposes APIs to manage JobTarget objects.<br>
22: * It includes APIs to create, update, find, list and delete Jobs.<br>
23: * Instances of the JobTargetService can be acquired through the ServiceLocator object.
24: *
25: * @since 1.0
26: */
27: public interface JobTargetService extends KapuaEntityService<JobTarget, JobTargetCreator>,
28: KapuaUpdatableEntityService<JobTarget> {
29:
30: /**
31: * Returns the {@link JobTargetListResult} with elements matching the provided query.
32: *
33: * @param query The {@link JobTargetQuery} used to filter results.
34: * @return The {@link JobTargetListResult} with elements matching the query parameter.
35: * @throws KapuaException
36: * @since 1.0.0
37: */
38: @Override
39: JobTargetListResult query(KapuaQuery query) throws KapuaException;
40: }