fwSystemOverview
8.4.1
|
bool | flagGetHost = true |
string | fwSystemOverviewFunc_getStrFromState (int stat) |
int | fwSystemOverviewFunc_setProjPmonNotRunning (string projDp) |
int | fwSystemOverviewFunc_setProjPmonNotResponding (string projDp) |
int | fwSystemOverviewFunc_getProjManagersData (string projDp, dyn_string &type, dyn_int &num, dyn_string &opt, dyn_uint &mode, dyn_uint &index, dyn_int &cStat, dyn_int &okStat, dyn_int &pid, dyn_uint &resetMin, dyn_uint &restart, dyn_uint &secKill, dyn_time &startTime, dyn_bool &lastUpdated) |
int | fwSystemOverviewFunc_getProjAccessData (string projDp, string &hostName, unsigned &pmonPortNo, string &userName, string &userPassword, string &sharedDir) |
int | fwSystemOverviewFunc_getProjDPList (string sysDp, dyn_string &projDpList) |
string | fwSystemOverviewFunc_sysNoToDp (unsigned sysNo) |
int | fwSystemOverviewFunc_getSysData (string sysDp, unsigned &sysNo, string &sysName, unsigned &parentNo, dyn_uint &childNodes, dyn_string &projDpList) |
This library contains functions associated with the JCOP Framework System Overview tool. The functions read the configuration file and build a hierarchy of systems and projects within each system. Then the Projects are polled simultaneously via the PMON port and the managers information and states are updated in datapoint
string fwSystemOverviewFunc_getStrFromState | ( | int | stat | ) |
Converts state in integer format to a string format. NOTE: By modifying this function one can add additional states
stat | Integer state |
int fwSystemOverviewFunc_setProjPmonNotRunning | ( | string | projDp | ) |
Sets the projects current state as PMON_NOT_RUNNING
projDp | Project datapoint name |
int fwSystemOverviewFunc_setProjPmonNotResponding | ( | string | projDp | ) |
Sets the projects current state as PMON_NOT_RESPONDING
projDp | Project datapoint name |
int fwSystemOverviewFunc_getProjManagersData | ( | string | projDp, |
dyn_string & | type, | ||
dyn_int & | num, | ||
dyn_string & | opt, | ||
dyn_uint & | mode, | ||
dyn_uint & | index, | ||
dyn_int & | cStat, | ||
dyn_int & | okStat, | ||
dyn_int & | pid, | ||
dyn_uint & | resetMin, | ||
dyn_uint & | restart, | ||
dyn_uint & | secKill, | ||
dyn_time & | startTime, | ||
dyn_bool & | lastUpdated | ||
) |
Gets all the information about the managers in project. Note: The relation between data from all the arrays is based on the Index of the array.
projDp | Project datapoint name |
type | Array of manager types |
num | Array of manager number |
opt | Array of manager options |
mode | Array of manager startup mode |
index | Array of managet index |
cStat | Array of current state of managers |
okStat | Array of Ok States of manager as defined in the configuration file. This array can be shorter than the other arrays |
pid | Array of process ids of manager |
resetMin | Array of reset start counter for manager |
restart | Array of restart for manager |
secKill | Array of Seconds to Kill for manager |
startTime | Array of start time for manager |
lastUpdated | Array of flags that indicated if the manager was updated during the last PMON scan |
int fwSystemOverviewFunc_getProjAccessData | ( | string | projDp, |
string & | hostName, | ||
unsigned & | pmonPortNo, | ||
string & | userName, | ||
string & | userPassword, | ||
string & | sharedDir | ||
) |
Gets Access data for polling the project
projDp | Project datapoint name |
hostName | Host machine name on which the project is running |
pmonPortNo | Port number of the PMON port |
userName | User name which has access priviledge to the PMON |
userPassword | Password for the user |
sharedDir | Shared directory path for the project folder |
int fwSystemOverviewFunc_getProjDPList | ( | string | sysDp, |
dyn_string & | projDpList | ||
) |
Get project datapoint names registered for a system
sysDp | System Datapoint name |
projDpList | Array of project datapoint names |
string fwSystemOverviewFunc_sysNoToDp | ( | unsigned | sysNo | ) |
Convert system number to datapoint name
sysNo | System number |
int fwSystemOverviewFunc_getSysData | ( | string | sysDp, |
unsigned & | sysNo, | ||
string & | sysName, | ||
unsigned & | parentNo, | ||
dyn_uint & | childNodes, | ||
dyn_string & | projDpList | ||
) |
Get system data
sysDp | System datapoint name |
sysNo | System number |
sysName | System name |
parentNo | Parent system number |
childNodes | Children nodes |
projDpList | Project datapoint name list |
bool flagGetHost = true |
Extracts the the project parameters, manager and ok state information for the project. NOTE: This is one of the functions to read configuration information, save data in datapoint and initialise the data structure required by fwSystemOverview tool
projStr | String which contained project parameters is parsed and the projDp datapoint is populated |
sysNo | The number of the system for which the project is configured |
projDp | Datapoint name where the parsed project information is stored |