Committed by
Mahesh Poojary Huawei
[ONOS-3117] Listen service function events in VtnRscManager
Change-Id: I7a7392999765d3c44806311e43e93ee40118adbf
Showing
3 changed files
with
5 additions
and
16 deletions
... | @@ -15,13 +15,14 @@ | ... | @@ -15,13 +15,14 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.vtnrsc.portchain; | 16 | package org.onosproject.vtnrsc.portchain; |
17 | 17 | ||
18 | +import org.onosproject.event.ListenerService; | ||
18 | import org.onosproject.vtnrsc.PortChain; | 19 | import org.onosproject.vtnrsc.PortChain; |
19 | import org.onosproject.vtnrsc.PortChainId; | 20 | import org.onosproject.vtnrsc.PortChainId; |
20 | 21 | ||
21 | /** | 22 | /** |
22 | * Service for interacting with the inventory of port chains. | 23 | * Service for interacting with the inventory of port chains. |
23 | */ | 24 | */ |
24 | -public interface PortChainService { | 25 | +public interface PortChainService extends ListenerService<PortChainEvent, PortChainListener> { |
25 | 26 | ||
26 | /** | 27 | /** |
27 | * Returns if the port chain is existed. | 28 | * Returns if the port chain is existed. | ... | ... |
... | @@ -18,32 +18,20 @@ package org.onosproject.vtnrsc.service; | ... | @@ -18,32 +18,20 @@ package org.onosproject.vtnrsc.service; |
18 | import java.util.Iterator; | 18 | import java.util.Iterator; |
19 | 19 | ||
20 | import org.onlab.packet.MacAddress; | 20 | import org.onlab.packet.MacAddress; |
21 | +import org.onosproject.event.ListenerService; | ||
21 | import org.onosproject.net.Device; | 22 | import org.onosproject.net.Device; |
22 | import org.onosproject.net.DeviceId; | 23 | import org.onosproject.net.DeviceId; |
23 | import org.onosproject.net.HostId; | 24 | import org.onosproject.net.HostId; |
24 | import org.onosproject.vtnrsc.SegmentationId; | 25 | import org.onosproject.vtnrsc.SegmentationId; |
25 | import org.onosproject.vtnrsc.TenantId; | 26 | import org.onosproject.vtnrsc.TenantId; |
26 | import org.onosproject.vtnrsc.VirtualPortId; | 27 | import org.onosproject.vtnrsc.VirtualPortId; |
28 | +import org.onosproject.vtnrsc.event.VtnRscEvent; | ||
27 | import org.onosproject.vtnrsc.event.VtnRscListener; | 29 | import org.onosproject.vtnrsc.event.VtnRscListener; |
28 | 30 | ||
29 | /** | 31 | /** |
30 | * Service for interacting with the inventory of Vtn resource. | 32 | * Service for interacting with the inventory of Vtn resource. |
31 | */ | 33 | */ |
32 | -public interface VtnRscService { | 34 | +public interface VtnRscService extends ListenerService<VtnRscEvent, VtnRscListener> { |
33 | - /** | ||
34 | - * Adds the specified listener. | ||
35 | - * | ||
36 | - * @param listener VtnRsc listener | ||
37 | - */ | ||
38 | - void addListener(VtnRscListener listener); | ||
39 | - | ||
40 | - /** | ||
41 | - * Removes the specified listener. | ||
42 | - * | ||
43 | - * @param listener VtnRsc listener | ||
44 | - */ | ||
45 | - void removeListener(VtnRscListener listener); | ||
46 | - | ||
47 | /** | 35 | /** |
48 | * Returns the SegmentationId of tenant. | 36 | * Returns the SegmentationId of tenant. |
49 | * | 37 | * | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment