2 * Copyright (C) 2017 CTC, Inc. and others. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.usecaseui.server.service.intent;
18 import com.alibaba.fastjson.JSONArray;
19 import com.alibaba.fastjson.JSONObject;
20 import org.onap.usecaseui.server.bean.intent.CCVPNInstance;
21 import org.onap.usecaseui.server.bean.intent.IntentInstance;
22 import org.onap.usecaseui.server.bean.nsmf.common.ServiceResult;
23 import org.onap.usecaseui.server.util.Page;
25 import java.io.IOException;
26 import java.util.List;
29 public interface IntentInstanceService {
30 Page<CCVPNInstance> queryIntentInstance(CCVPNInstance instance, int currentPage, int pageSize);
31 int createCCVPNInstance(CCVPNInstance instance);
32 void getIntentInstanceProgress();
33 void getIntentInstanceCreateStatus();
34 List<CCVPNInstance> getFinishedInstanceInfo();
35 void getIntentInstanceBandwidth() throws IOException;
37 void deleteIntentInstance(String instanceId);
39 void activeIntentInstance(String instanceId);
41 void invalidIntentInstance(String instanceId);
43 Map<String, Object> queryInstancePerformanceData(String instanceId);
45 Object queryAccessNodeInfo() throws IOException;
47 JSONObject getInstanceStatus(JSONArray ids);
49 String formatBandwidth(String strValue);
51 String formatCloudPoint(String cloudPoint);
53 String formatAccessPoint(String accessPoint);
55 void addCustomer() throws IOException;
57 IntentInstance createIntentInstance(Object body,String businessInstanceId, String businessInstance, String type);
59 void deleteIntent(int id);
61 void verifyIntent(int id);
63 Page<IntentInstance> getIntentInstanceList(int currentPage, int pageSize);
65 ServiceResult createSlicingServiceWithIntent(Object slicingOrderBody);
67 int updateCCVPNInstance(CCVPNInstance instance);