Create seed code of svnfm vnfmdriver
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / com / nokia / vfcadaptor / vnfmdriver / inf / VnfmDriverMgmrInf.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package com.nokia.vfcadaptor.vnfmdriver.inf;
18
19 import com.nokia.vfcadaptor.exception.VnfmDriverException;
20 import com.nokia.vfcadaptor.vnfmdriver.bo.HealVnfRequest;
21 import com.nokia.vfcadaptor.vnfmdriver.bo.HealVnfResponse;
22 import com.nokia.vfcadaptor.vnfmdriver.bo.InstantiateVnfRequest;
23 import com.nokia.vfcadaptor.vnfmdriver.bo.InstantiateVnfResponse;
24 import com.nokia.vfcadaptor.vnfmdriver.bo.OperStatusVnfResponse;
25 import com.nokia.vfcadaptor.vnfmdriver.bo.QueryVnfResponse;
26 import com.nokia.vfcadaptor.vnfmdriver.bo.ScaleVnfRequest;
27 import com.nokia.vfcadaptor.vnfmdriver.bo.ScaleVnfResponse;
28 import com.nokia.vfcadaptor.vnfmdriver.bo.TerminateVnfRequest;
29 import com.nokia.vfcadaptor.vnfmdriver.bo.TerminateVnfResponse;
30
31 public interface VnfmDriverMgmrInf {
32
33         public InstantiateVnfResponse instantiateVnf(InstantiateVnfRequest request, String vnfmId) throws VnfmDriverException;
34
35         public TerminateVnfResponse terminateVnf(TerminateVnfRequest request, String vnfmId, String vnfInstanceId) throws VnfmDriverException;
36         
37         public QueryVnfResponse queryVnf(String vnfmId, String vnfInstanceId) throws VnfmDriverException;
38
39         public OperStatusVnfResponse getOperStatus(String vnfmId, String jobId) throws VnfmDriverException;
40
41         public ScaleVnfResponse scaleVnf(ScaleVnfRequest request, String vnfmId, String vnfInstanceId) throws VnfmDriverException;
42
43         public HealVnfResponse healVnf(HealVnfRequest request, String vnfmId, String vnfInstanceId) throws VnfmDriverException;
44 }