HP WebQoS Software manual Class Values, Process Group

Page 23

 

 

 

Using the WebQoS API

 

 

 

wq_set_proc_cls()

 

class Values

 

 

 

 

wq_set_proc_cls() can pass the following values:

Table 2-7

wq_set_proc_cls() class Values

 

 

 

 

 

 

Process Group

 

class Value

 

 

 

 

 

 

 

Low

 

WQ_SVCCLS_LOW

 

 

 

 

 

 

 

Medium

 

WQ_SVCCLS_MED

 

 

 

 

 

 

 

High

 

WQ_SVCCLS_HIGH

 

 

 

 

 

 

 

Other

 

WQ_SVCCLS_OTHER

 

 

 

 

 

 

 

PRM_SYS class; accessible by root only

WQ_SVCCLS_ROOT

 

 

 

 

 

 

 

Return Value

 

 

 

 

wq_set_proc_cls() returns 0 if it is successful or -1 if an error

 

occurred.

 

 

 

 

Errors

 

 

 

 

If error logging to syslog is enabled, certain errors are logged to a file (you

 

can specify the file in /etc/syslog.conf). Refer to the syslog(3C) and

 

syslogd(1M) man pages for information about enabling logging.

 

When an error occurs, errorcode is set to one of the following:

Table 2-8

wq_set_proc_cls() Error Codes

 

 

 

 

Error Code

Description

 

 

 

 

WQERR_BADSCOPE

The value provided for scope is not defined.

 

 

Currently, WQ_SCOPE_PROCESS is the only

 

 

defined value.

 

 

 

 

WQERR_BADSVCCLASS

The value provided for class is not a defined

 

 

process group.

 

 

 

 

WQERR_CONNECT

Problems connecting to the SCA process. If error

 

 

logging to syslog is enabled, the errors are logged

 

 

to a file.

 

 

 

 

 

Chapter 2

23

Image 23
Contents HP WebQoS on HP-UX API Programmer’s Guide Legal Notices Page Page Contents Troubleshooting Printing History Page About the WebQoS API Overview Example Initial Service RequestExample Subsequent Service Requests WebQoS Example Setting the Process GroupOverview Using the WebQoS API Using the WebQoS API Wqgetsessioncls Return Value Error Code DescriptionWqsetsessioncls Class of Request Cls Value Classification Rule Cls ValuesExample Return Value Condition or Process GroupMultithreaded Applications Wqsetproccls Process Group Class ValuesUsing the WebQoS API wqsetproccls Troubleshooting Select the Classification Rules tab ChecklistRequest Classification Rule Class Error Codes Request Classification Rule Class Error Codes Process Group Error Codes Process Group Error Codes Error Code Wqerrpermission Error Code WqerrotherProcess Group Error Codes Sample Programs, Configuration, and Header Files Sample Session Class Program Sample Process Group Program Sample Process Group Program Svccls.allow Configuration File Webqosapi.h Header File Webqosapi.h Header File Webqosapi.h Header File Index Index Index
Related manuals
Manual 182 pages 33.13 Kb Manual 150 pages 36.15 Kb