Results 1 to 5 of 5

Thread: getting server-properties directly from IceGrid

  1. #1
    thomas is offline Registered User
    Name: Thomas Hentschel
    Organization: Technical University of Munich
    Project: intelligent information distribution system
    Join Date
    Jul 2011
    Posts
    9

    Question getting server-properties directly from IceGrid

    How to get directly the server-properties (those you can define in your application.xml for instance) of a registered server in IceGrid without contacting the server itself?

    I've got an server-template in my application.xml which is used to create server-instances at runtime with activation set to "on-demand". Some servers shut down if there is no current work to do.

    My problem is that another process needs some properties of all servers of a given type and I dont want to start all "sleeping" servers to get their properties. I've seen that the IceGridGui is able to list all properties even of server which are shut down.

    I have not found any hint in the documentation but I guess that my needed information is lying in the ServerInfos oder ServerDescriptor (IceGridGUI is showing the properties in the server-view) which I can get from IceGrid::Admin but both seem not to contain my needed piece of information.
    Last edited by thomas; 08-25-2011 at 10:37 AM.

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Thomas,

    Did you try getting the server info using the IceGrid::Admin::getServerInfo method and you lookup for the properties in the propertySet attribute of the server descriptor contained in the server info structure? The properties here are the effective properties of the server (they should be the same as the one showed by the "icegridadmin server describe" command).

    Cheers,
    Benoit.

  3. #3
    thomas is offline Registered User
    Name: Thomas Hentschel
    Organization: Technical University of Munich
    Project: intelligent information distribution system
    Join Date
    Jul 2011
    Posts
    9
    thanks for your reply. I have not seen that the command-line-tool is also able to get the properties. I will have a look at the implementation of the command-line-tool.

    But I am still confused: I am able to get the ServerDescriptor from the ServerInfo which i get from IceGrid::Admin but in the documentation of the ServerDescriptor there is no properties-member.
    The ServerInstanceDescriptor contains a propertySet but not the ServerDescriptor.

    I will have a look at the implementation of the command-line-tool first and will post if my problem is solved then.

  4. #4
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Yes, the propertySet attribute is an attribute of CommunicatorDescriptor which ServerDescriptor inherits from.

    Cheers,
    Benoit.

  5. #5
    thomas is offline Registered User
    Name: Thomas Hentschel
    Organization: Technical University of Munich
    Project: intelligent information distribution system
    Join Date
    Jul 2011
    Posts
    9
    ahh, the propertySet is inherited. I always thought that it is a struct like the ServerInstanceDescriptor and have never thought that there can be derived values ...
    Thanks for your answer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceGrid - Java system properties
    By guerjam in forum Help Center
    Replies: 2
    Last Post: 04-04-2011, 03:44 PM
  2. icegrid and server-instances
    By area51 in forum Help Center
    Replies: 9
    Last Post: 08-17-2009, 03:47 AM
  3. Server instanciation in IceGrid
    By Gilles in forum Help Center
    Replies: 5
    Last Post: 03-11-2009, 06:44 AM
  4. Replies: 2
    Last Post: 03-29-2007, 03:26 AM
  5. How to modify server properties on the fly?
    By ymcao_cn in forum Help Center
    Replies: 4
    Last Post: 07-26-2006, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •