

10:31, EEST

April 3, 2012

Hi,
There is no automatic logic yet for those metadata nodes. In practice as far as I’m aware almost nothing yet uses those.
IF you just meant how the NamespaceArray is to be updated, it can be done via
server.getNodeManagerRoot().getServerData().updateNamespaceArray();
(If you add them after starting, this happens internally on start automatically)
As to adding a NamespaceMetadataType instance(s) below the Server/Namespaces can be done as adding “any other node” with the SDK, as “they are just nodes”. As to how to do that, open the MyNodeManager in the sampleconsoleserver example and seach for “createInstance”. That is to say, something like
instance = nodeManagerUaNode.createInstance(NamespaceMetadataTypeNode.class, …)
You must then also attach it via the reference + fill the data. Since it (NamespaceMetadataTypeNode) is a base information model type that is generated to the SDK (by us), you can use just e.g. instance.setNamespaceVersion(…) etc.
1 Guest(s)
