Merge "Fixed for bug 1197"
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / src / main / resources / ListenerRegistration.proto
1 package org.opendaylight.controller.mdsal;
2
3 import "Common.proto";
4
5 option java_package = "org.opendaylight.controller.protobuff.messages.registration";
6 option java_outer_classname = "ListenerRegistrationMessages";
7
8 /** used when a listener needs to be unregistered*/
9 message CloseDataChangeListenerRegistration {
10
11 }
12 /** reply to the CloseDataChangeListenerRegistration request*/
13 message CloseDataChangeListenerRegistrationReply{
14
15 }
16
17 /**
18  * When registering a listener at particular level of tree
19  * identified by instanceIdentifierPath.
20  * dataChangeListenerActorPath is path to actor that will
21  * receive the change event
22  * scope is the data change scope like BASE,ONE and SUBTREE
23  * defined in AsyncDataBroker.DataChangeScope
24  */
25
26 message RegisterChangeListener{
27 required InstanceIdentifier instanceIdentifierPath=1;
28 required string dataChangeListenerActorPath=2;
29 required int32 dataChangeScope=3;
30 }
31 /**
32 * This is the reply for the RegisterChangeListener message
33 * It contains the listenerRegistration actor path
34 * that can be used to unregister the listener
35 */
36 message RegisterChangeListenerReply{
37 required string listenerRegistrationPath=1;
38
39 }
40