fwInstallation  8.4.1
Functions | Variables
fwInstallationDBUpgrade.ctl File Reference

Functions

int fwInstallationDBUpgrade_registerProjectToolUpgradeRequest (dyn_mixed upgradeInfo, string host="", string project="")
 
int fwInstallationDBUpgrade_unregisterProjectToolUpgradeRequest (string host="", string project="")
 
int fwInstallationDBUpgrade_isProjectToolUpgradeRequestRegistered (int project_id, int computer_id, bool &exists)
 
int fwInstallationDBUpgrade_getProjectToolUpgradeRequest (dyn_mixed &upgradeInfo, string host="", string project="")
 

Variables

const string csFwInstallationDBUpgradeLibVersion = "8.4.1"
 

Detailed Description

This library contains the functions necessary to register and unregister upgrade request of the installation tool in the System Configuration DB. The functions in these library are not intended to be called from user scripts

Author
Fernando Varela Rodriguez (EN-ICE)
Date
September 2010

Function Documentation

int fwInstallationDBUpgrade_registerProjectToolUpgradeRequest ( dyn_mixed  upgradeInfo,
string  host = "",
string  project = "" 
)

This function registers in the database the upgrade of the installation tool

Parameters
upgradeInfodyn_mixed array containing the information necessary to upgrade the installation tool
hostname of the host where the project runs
projectname of the project where the compnent has to be reinstalled
Returns
0 if OK, -1 if error
int fwInstallationDBUpgrade_unregisterProjectToolUpgradeRequest ( string  host = "",
string  project = "" 
)

This function unregisters from the database the upgrade of the installation tool in a given project

Parameters
hostname of the host where the project runs
projectname of the project
Returns
0 if OK, -1 if error
int fwInstallationDBUpgrade_isProjectToolUpgradeRequestRegistered ( int  project_id,
int  computer_id,
bool &  exists 
)

This function checks if an upgrade of the installation tool has already been registered in the DB for a given project

Parameters
project_idDB index of the project
computer_idDB index of the host
existsTRUE if a pending request already exists
Returns
true if the upgrade request already exists, otherwise false
int fwInstallationDBUpgrade_getProjectToolUpgradeRequest ( dyn_mixed &  upgradeInfo,
string  host = "",
string  project = "" 
)

This function retrieves the pending upgrade request for the installation tool in a project

Parameters
upgradeInfodyn_mixed array containing the upgrade information
hostname of the host where the project runs
projectname of the project
Returns
0 if OK, -1 if error

Variable Documentation

const string csFwInstallationDBUpgradeLibVersion = "8.4.1"

Version of this library. Used to determine the coherency of all libraries of the installation tool Please do not edit it manually