Archived
This forum has been archived. Please start a new discussion on GitHub.
IceGrid: How to obtain server ID from object ID
Hi,
I'm using Ice 3.3.1.
Is it possible to obtain the server identity from a given object identity?
My intention is to use IceGridAdmin to manually launch a set of server applications that host a selected set of object identities.
I can retreive the set of all server IDs stored in the IcGrid Registry via IceGrid.Admin.getAllserverIds(). Now I need a way of filtering out the server IDs that are applicable to the input list of object IDs.
Regards John
I'm using Ice 3.3.1.
Is it possible to obtain the server identity from a given object identity?
My intention is to use IceGridAdmin to manually launch a set of server applications that host a selected set of object identities.
I can retreive the set of all server IDs stored in the IcGrid Registry via IceGrid.Admin.getAllserverIds(). Now I need a way of filtering out the server IDs that are applicable to the input list of object IDs.
Regards John
0
Comments
-
Hi John,
You could call the IceGrid::Admin::getServerInfo method for each of the servers to get the server descriptors and check the well-known objects from these descriptors. This should allow you to build a map of object IDs to server IDs.
Cheers,
Benoit.0