Remove outdated doc for A1 Adaptor
[integration.git] / test / mocks / masspnfsim / pnf-sim-lightweight / src / main / java / org / onap / pnfsimulator / Main.java
1 /*
2  * ============LICENSE_START=======================================================
3  * PNF-REGISTRATION-HANDLER
4  * ================================================================================ Copyright (C)
5  * 2018 NOKIA Intellectual Property. All rights reserved.
6  * ================================================================================ Licensed under
7  * the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License. ============LICENSE_END=========================================================
16  */
17
18 package org.onap.pnfsimulator;
19
20 import java.util.concurrent.TimeUnit;
21 import org.onap.pnfsimulator.message.MessageProvider;
22 import org.onap.pnfsimulator.simulator.validation.JSONValidator;
23 import org.springframework.boot.SpringApplication;
24 import org.springframework.boot.autoconfigure.SpringBootApplication;
25 import org.springframework.context.annotation.Bean;
26 import org.springframework.scheduling.annotation.EnableAsync;
27
28 @SpringBootApplication
29 @EnableAsync
30 public class Main {
31
32     public static void main(String[] args) throws InterruptedException {
33         SpringApplication.run(Main.class, args);
34
35         TimeUnit.SECONDS.sleep(5);
36         System.out.println("Start sending VES events");
37
38
39     }
40
41     @Bean
42     public MessageProvider messageProvider() {
43         return new MessageProvider();
44     }
45
46     @Bean
47     public JSONValidator jsonValidator() {
48         return new JSONValidator();
49     }
50
51 }
52
53