X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-protocolbuffer-encoding%2Fsrc%2Fmain%2Fresources%2FListenerRegistration.proto;h=3342a1364abba61a87dae70190859d7908c4e1d0;hb=6d73d16b194435ea1ea783a37d1b51fc1f558a1f;hp=27f3c232e726e2c3ae96d338a727717c4e771e8f;hpb=5ce59af75c7f53e05fccb55b6cf03350ab0eebac;p=controller.git diff --git a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/resources/ListenerRegistration.proto b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/resources/ListenerRegistration.proto index 27f3c232e7..3342a1364a 100644 --- a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/resources/ListenerRegistration.proto +++ b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/resources/ListenerRegistration.proto @@ -1,13 +1,40 @@ package org.opendaylight.controller.mdsal; +import "Common.proto"; + option java_package = "org.opendaylight.controller.protobuff.messages.registration"; option java_outer_classname = "ListenerRegistrationMessages"; -message Close { +/** used when a listener needs to be unregistered*/ +message CloseDataChangeListenerRegistration { + +} +/** reply to the CloseDataChangeListenerRegistration request*/ +message CloseDataChangeListenerRegistrationReply{ } -message CloseReply{ +/** + * When registering a listener at particular level of tree + * identified by instanceIdentifierPath. + * dataChangeListenerActorPath is path to actor that will + * receive the change event + * scope is the data change scope like BASE,ONE and SUBTREE + * defined in AsyncDataBroker.DataChangeScope + */ + +message RegisterChangeListener{ +required InstanceIdentifier instanceIdentifierPath=1; +required string dataChangeListenerActorPath=2; +required int32 dataChangeScope=3; +} +/** +* This is the reply for the RegisterChangeListener message +* It contains the listenerRegistration actor path +* that can be used to unregister the listener +*/ +message RegisterChangeListenerReply{ +required string listenerRegistrationPath=1; }