MQZ_REFRESH_CACHE (Refresh all authorizations) on IBM i
This function is provided by an MQZAS_VERSION_3 authorization service component. It is invoked by the queue manager to refresh the list of authorizations held internally by the component.
The function identifier for this function (for MQZEP) is MQZID_REFRESH_CACHE (8L).
Syntax
- MQZ_REFRESH_CACHE
- (QMgrName, ComponentData, Continuation, CompCode, Reason)
Parameters
- QMgrName (MQCHAR48) - input
- Queue manager name.
The name of the queue manager calling the component. This name is padded with blanks to the full length of the parameter; the name is not terminated by a null character.
The queue manager name is passed to the component for information; the authorization service interface does not require the component to use it in any defined manner.
- ComponentData (MQBYTE x ComponentDataLength ) - input/output
- Component data.
This data is kept by the queue manager on behalf of this particular component. Any changes made to it by any of the functions provided by this component are preserved, and presented the next time a function of the component is called.
The length of this data area is passed by the queue manager in the ComponentDataLength parameter of the MQZ_INIT_AUTHORITY call.
- Continuation (MQLONG) - output
- Continuation indicator set by component.
The following values can be specified:
- MQZCI_DEFAULT
- Continuation dependent on queue manager.
For MQZ_REFRESH_CACHE, this has the same effect as MQZCI_CONTINUE.
- MQZCI_CONTINUE
- Continue with next component.
- MQZCI_STOP
- Do not continue with next component.
- CompCode (MQLONG) - output
- Completion code.
It is one of the following:
- MQCC_OK
- Successful completion.
- MQCC_FAILED
- Call failed.
- Reason (MQLONG) - output
- Reason code qualifying CompCode.
If CompCode is MQCC_OK:
- MQRC_NONE
- (0, X'000') No reason to report.
If CompCode is MQCC_FAILED:
- MQRC_SERVICE_ERROR
- (2289, X'8F1') Unexpected error occurred accessing service.
C invocation
MQZ_REFRESH_CACHE (QMgrName, ComponentData, &Continuation, &CompCode, &Reason);Declare the parameters as follows:
MQCHAR48 QMgrName; /* Queue manager name */ MQBYTE ComponentData[n]; /* Component data */ MQLONG Continuation; /* Continuation indicator set by component */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code qualifying CompCode */Parent topic: Installable services interface reference information on IBM i