Replicate Volume

This functionality is used to replicate the documents belonging to a Volume, on the specified Site. To replicate a Volume  first of all that volume should be  locked for the required process by giving ProcessId and UserId and then the required  function is proceeded.

 

Usage in Visual C++/Visual Basic Application

Usage in Java Application

Error

 

Usage in Visual C++/Visual Basic Application

Prototype

int WINAPI NGISReplicateVolume (LPTSTR cabinetName, short VolumeId, short ReplicaSite )

 

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 whose documents are to be replicated.

Integer > 0

Input Parameter

ReplicaSite

Index of the Site where the documents are to be replicated.

Integer > 0

Input 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 JPISReplicateVolume (String cabinetName, short VolumeId, short RepSite)

 

Overloaded Prototype

public int JPISReplicateVolume ( String cabinetName, short VolumeId, short RepSite,

                                                      int UserId, JPDBInteger LockBy, JPDBShort ProcId )

 

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 whose documents are to be replicated.

Integer > 0

Input Parameter

RepSite

Index of the Site where the documents are to be replicated.

Integer > 0

Input Parameter

UserId

User index who is performing the  process

Integer

Input parameter

LockBy

Index of the user who is performing the process, returned from the DataBase

Integer

Output parameter

ProcId

Index for compaction process

Integer = 1

Input/Output parameter

 

Output Parameters

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