int tsmSetPyramidInfoSetId ( PyramidInfo *info, int set_id, int server_group )

Sets the set ID for a server group in a PyramidInfo

Documentation

Sets the set ID for a server group in a PyramidInfo.

The PyramidInfo structure contains all of the information required to describe a single instance of a pyramid, be it on local disk or on a DPSS. In particular, a single pyramid can have a number of different server configurations.

This function lets you define the set ID for any server group of a Pyramid.

You specify which server group configuration of the pyramid you want to update by giving the server_group number. Internally, the PyramidInfo structure holds an array of ServerGroup structures - this function will automatically grow this server array if you specify a server_group number larger than the number of ServerGroups currently allocated, e.g. if you have not previously added any information to the ServerGroup array (i.e. the array is size 0), and you specify that you want to update the contents of server_group 2, then this function will add two new ServerGroup entries to the array, clear the contents of both to 0, then add the specified information to the second of these.

Returns:
TRUE if all went well, FALSE if something spooky happened.
Parameters:
info - the PyramidInfo structure describing the pyramid
set_id - the set ID of the server group specifed by server_group
server_group - the server group number to update (0,1,2,...)
Author:
Martin Reddy
Version:
31 October 1997
See Also:
tsmSetPyramidInfoMaster, tsmAddPyramidInfoServer, tsmAddPyramidInfoMetaData, tsmSetPyramidInfoName, tsmSetPyramidInfoPyramid, PyramidInfo


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page