public interface YmsService
| Modifier and Type | Method and Description |
|---|---|
YdtResponse |
executeOperation(YdtBuilder operationRequest)
Once the NBI protocol translates the request information into an abstract
YANG data tree, it uses YANG management system as a broker to get the
operation executed in ONOS.
|
YangCodecHandler |
getYangCodecHandler()
Returns YANG codec handler utility.
|
String |
getYangFile(YangModuleIdentifier moduleIdentifier)
Protocols like RESTCONF, use the definitions within the YANG modules
advertised by the server are used to construct an RPC operation or
data resource identifier.
|
YangModuleLibrary |
getYangModuleLibrary()
Protocols like RESTCONF, share the list of YANG modules it support.
|
YangNotificationService |
getYangNotificationService()
Returns YANG notification service.
|
YdtBuilder |
getYdtBuilder(String logicalRootName,
String rootNamespace,
YmsOperationType operationType)
Returns YANG data tree builder.
|
YdtBuilder |
getYdtBuilder(String logicalRootName,
String rootNamespace,
YmsOperationType operationType,
Object schemaRegistryForYdt)
Returns YANG data tree builder attached with a given schema registry.
|
YdtWalker |
getYdtWalker()
Returns YANG data tree walker.
|
void |
registerDefaultCodec(YangDataTreeCodec defaultCodec,
YangProtocolEncodingFormat dataFormat)
Register protocol specific default CODEC.
|
void |
registerService(Object appManager,
Class<?> yangService,
List<String> supportedFeatureList)
Registers service with YANG management system.
|
void |
unRegisterService(Object appManager,
Class<?> yangService)
Unregisters service which is registered in YANG management system.
|
YdtBuilder getYdtBuilder(String logicalRootName, String rootNamespace, YmsOperationType operationType)
logicalRootName - name of a protocol specific logical container
node to group data across multiple applications.
This is only a logical container to group more
than one application's root node. It is not
validated against any YANG definitionrootNamespace - namespace of logical root container, if any,
otherwise it can be sent as nulloperationType - maps the request type to a corresponding
operation request type to YANG management systemYdtBuilder getYdtBuilder(String logicalRootName, String rootNamespace, YmsOperationType operationType, Object schemaRegistryForYdt)
logicalRootName - name of a protocol specific logical container
node to group data across multiple
applications.
This is only a logical container to group
more
than one application's root node. It is not
validated against any YANG definitionrootNamespace - namespace of logical root container, if any,
otherwise it can be sent as nulloperationType - maps the request type to a corresponding
operation request type to YANG management
systemschemaRegistryForYdt - schema registry for Ydt, protocol CODECS get
this value from YMS in
"decodeProtocolDataToYdt" and
"decodeCompositeProtocolDataToYdt" and
provide it while obtaining YdtBuilderYdtWalker getYdtWalker()
YdtResponse executeOperation(YdtBuilder operationRequest)
operationRequest - operation request that was constructed
by NBI protocol using YANG data tree
builder. This operation request contains
operation request that needs to be
executed on the applicable application(s)YangNotificationService getYangNotificationService()
void registerService(Object appManager, Class<?> yangService, List<String> supportedFeatureList)
appManager - application manager instance which is
implementing the service defined in YANG.yangService - service interface generated by ONOS YANG
tools corresponding to the interface modeled
in YANG.supportedFeatureList - mentions the list of YANG features supported
by the application implementation.
If it is null, then the application
implementation supports all the features
defined in the registered YANG module.void unRegisterService(Object appManager, Class<?> yangService)
appManager - application manager instance which is implementing
the service defined in YANG.yangService - service interface generated by ONOS YANG tools
corresponding to the interface modeled in YANG.YangModuleLibrary getYangModuleLibrary()
String getYangFile(YangModuleIdentifier moduleIdentifier)
moduleIdentifier - module's identifiervoid registerDefaultCodec(YangDataTreeCodec defaultCodec, YangProtocolEncodingFormat dataFormat)
defaultCodec - default codec to be used for a particular protocol
data formatdataFormat - data format to which encoding to be done.
Currently XML and
JSON formats are supported.YangCodecHandler getYangCodecHandler()