Carmelo Cascone | 17fc9e4 | 2016-05-31 11:29:21 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 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 org.onosproject.bmv2.api.service; |
| 18 | |
Carmelo Cascone | 9e39e31 | 2016-06-16 14:47:09 -0700 | [diff] [blame] | 19 | import com.google.common.annotations.Beta; |
Carmelo Cascone | 17fc9e4 | 2016-05-31 11:29:21 -0700 | [diff] [blame] | 20 | import org.onosproject.bmv2.api.runtime.Bmv2Device; |
| 21 | |
| 22 | /** |
| 23 | * A listener of BMv2 device events. |
| 24 | */ |
Carmelo Cascone | 9e39e31 | 2016-06-16 14:47:09 -0700 | [diff] [blame] | 25 | @Beta |
Carmelo Cascone | 17fc9e4 | 2016-05-31 11:29:21 -0700 | [diff] [blame] | 26 | public interface Bmv2DeviceListener { |
| 27 | |
| 28 | /** |
| 29 | * Handles a hello message. |
| 30 | * |
| 31 | * @param device the BMv2 device that originated the message |
| 32 | * @param instanceId the ID of the BMv2 process instance |
| 33 | * @param jsonConfigMd5 the MD5 sum of the JSON configuration currently running on the device |
| 34 | */ |
| 35 | void handleHello(Bmv2Device device, int instanceId, String jsonConfigMd5); |
| 36 | } |