Hi,
We are able to add child site, but how do we access in plugin, we don’t see sample, we have sample for component.
We have management and smartclient plugin component, which needs to access camera items from all sites
Hi,
We are able to add child site, but how do we access in plugin, we don’t see sample, we have sample for component.
We have management and smartclient plugin component, which needs to access camera items from all sites
The Management Client works with one site at the time, you can see this also in the way you can configure cameras and rules etc.
The Smart Client automatically logs in on all sites in the hierarchy. If you look at the ConfigDump tool plugin sample you can see how you have the configuration / information for all cameras.
So if we have management plugin, do we need to install the plugin in all the management servers(parent and child)?
can smart client get the plugin configuration from all the sites automatically if we have same plugin in all sites?
Please consider the Management Client; you can configure one site at a time and you can then switch site by use of the Federated Site Hierarchy. Same as this general mode of operation in the Management Client a Management Client plug-in will know only one site, but if you switch site it will know the current site always.
It is important for me to stress that the management plugin is installed and run in the Management Client. It is irrelevant (not interesting) where the Management Server is.
If you have multiple Management Clients, and this is the usual scenario, then you need to make sure they all have your plug-in installed. (Unless it is OK that some clients can use the plug-in and others can’t.)
You can say that a direct contrast to the Management Clients focus on one site at the time is the Smart Client. It will automatically log in on all sites. All configuration, events etc. are automatically covering all sites the Smart Client is logged in to.
The Smart Client plug-in is installed on the Smart Client PC and loaded and run in the Smart Client.
We are clear about management. But in smartclient, as you told it auto logins to all sites
We have same plugin running in parent and children, in smart client we are not able to get the plugin item configuration from both on login. only getting from parent
How do we get all the configuration from parent and child in smartclient.
I think I have confused the subject thinking about the general system configuration where my answer is true that all configuration is cached, available in the MIP methods.
When it comes to your items only the top site information is cached. You can ask for it from the other sites, one at a time, using -
--
MIP Environment: VideoOS.Platform.Configuration Class Reference
virtual Item VideoOS.Platform.Configuration.GetItemConfiguration(ServerId serverId,
Guid pluginDefinitionId,
Guid itemKind,
Guid objectId
)[inline, virtual]
Retrieve one item of a specific Kind and with a specific objectId. Also see comment on GetItemConfiguration about converting to own class.
Parameters:
pluginDefinitionId The plug-in owner of the configuration
itemKind The ID of the ItemNode
objectId The specific id of the Item to get
serverId Identify the server the configuration is located
Returns:
The found Item. If no nodes exists null is returned
--
Notice the ServerId which you must include.
Hi,
Any plugin sample and API to get serverID->ChildServerIDs, so we can loop and query all the plugin configuration from servers
Try to see the ConfigDump tool plugin sample.