blob: 940bc5f9569d1736c7d97d0cef1fea7cbd2789b4 [file] [log] [blame]
Aharoni, Pavel (pa0916)8c70f072018-11-18 00:07:12 +02001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.osam.job;
24
25import org.onap.osam.job.dao.job.JobStatus;
26
27import java.util.List;
28import java.util.UUID;
29
30public interface AsyncJobService {
31
32 JobStatus calcStatus(String asyncRequestStatus);
33
34 List<UUID> pushBulkJob(String userId, boolean isSuccessful, boolean isOLTDependant);
35
36/*
37 List<String> PARAMS_TO_IGNORE = Arrays.asList("vnf_name", "vf_module_name");
38
39 List<ServiceInfo> getAllServicesInfo();
40
41
42 String getServiceInstantiationPath(ServiceInstantiation serviceInstantiationRequest);
43
44 String getOrchestrationRequestsPath();
45
46 ServiceInfo getServiceInfoByJobId(UUID jobUUID);
47
48 List<JobAuditStatus> getAuditStatuses(UUID jobUUID, JobAuditStatus.SourceStatus source);
49
50 ServiceInfo updateServiceInfo(UUID jobUUID, Consumer<ServiceInfo> serviceUpdater);
51
52 ServiceInfo updateServiceInfoAndAuditStatus(UUID jobUuid, Job.JobStatus jobStatus);
53
54 void auditVidStatus(UUID jobUUID, Job.JobStatus jobStatus);
55
56 void auditMsoStatus(UUID jobUUID, AsyncRequestStatus.Request msoRequestStatus);
57
58 void auditMsoStatus(UUID jobUUID, String jobStatus, String requestId, String additionalInfo);
59
60 void handleFailedInstantiation(UUID jobUUID);
61
62 void deleteJob(UUID jobId);
63
64 void hideServiceInfo(UUID jobUUID);
65
66 int getCounterForName(String name);
67
68 int getMaxRetriesGettingFreeNameFromAai();
69
70 void setMaxRetriesGettingFreeNameFromAai(int maxRetriesGettingFreeNameFromAai);
71
72 String getUniqueName(String name, ResourceType resourceType);
73*/
74}