Get site List for a volume

This functionality is used to get the List of Sites where the specified Volume exists in Image Server. It returns the Home Site and  the Sites where it is replicated.

 

Usage in Visual C++/Visual Basic Application

Usage in Java Application

Error

 

Usage in Visual C++/Visual Basic Application

Prototype

int WINAPI NGISGetSitesForVolume ( LPTSTR cabinetName, short VolumeId,

       LPINT NoOfSites, LPGETSITESFORVOLUME * SiteInfoList

                 )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image Cabinet to which the User wants to connect.

NOT NULL

Input Parameter

VolumeId

Index of the Volume for which the User wants to find out the Site List.

Integer > 0

Input Parameter

NoOfSites

Total number of Sites where the specified Volume is found.

Integer >= 0

Output Parameter

SiteInfoList

Pointer to a variable that receives the starting value of a  List of objects of type GETSITESFOR 

VOLUME.

 

Output Parameter

 

Output Parameters

This method return 1 if the call is successful, otherwise, it returns an error code.

 

 

Usage in Java Application

 

Prototype

public int JPISGetSitesForVolume ( String cabinetName, short VolumeId,

              JPDBInteger NoOfSitesFnd, Vector SiteInfoList

             )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image Cabinet to which the User wants to connect.

NOT NULL

Input parameter

VolumeId

Index of the Volume for which the User wants to find out Site List.

Integer > 0

Input parameter

NoOfSitesFnd

Total number of Sites where the specified Volume is found.

Integer>=0

Output parameter

SiteInfoList

It is a vector of JPDBISSite objects where Volume was found.

 

Output parameter

 

Output Parameters

This method return 1 if the call is successful, otherwise, it returns an error code.