Page History
...
Code Block |
---|
Response = Memory_Services(Service, Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, Param9, Param10@Service, @Params) |
Returns
The meaning of the response value depends on the service.
Parameters
Parameter | Description |
---|---|
Service@Service | The name of the service being requested. Required. |
Param1 - Param10@Params | Generic parameters. Refer to a specific service to determine the actual parameters used. |
Remarks
This SRP FrameWorks utility service is a general purpose error tracking and reporting utility. Unlike OpenInsight error routines, Error_Services
does not interfere with normal operations even if a previous error condition was set. The developer is given the right (and responsibility) to make these decisionsdesigned to store small and large amounts of data in memory for quick retrieval. A very common use of Memory_Services
is to store the results of other services. Thus, the beginning of each service would first check to see if a value already exists before going through the expense of running the entire service logic again. If the data being stored in Memory_Services
needs to be refreshed after a short amount of time, the GetValue service can specify when this should expire.
Services
Service | Description | |||
---|---|---|---|---|
KeyExists | Usage: Comments: Returns: | |||
GetValue | Usage: Comments: Returns: | |||
SetValue | Usage: Comments: | Clears all error conditions and related informationUpdates the value pair stored in the SRP Hash Table for the current Key ID. Returns: | RemoveKey||
IsValueExpired | Usage: | RemoveKey'
Comments: | Returns the most current error messageThis relies upon the time marker set using the SetValue service. If this value has net yet been set then the value will be considered as expired. Returns: | The most current error message.Returns a Boolean flag indicated whether the current value for the indicated KeyID has expired. |
IsValueCurrent | CreateHashTableUsage: | CreateHashTable'
Comments: | Returns the stack of error messages. This will be @FM delimitedThis relies upon the time marker set using the SetValue service. If this value has net yet been set then the value will be considered as expired. Returns: | |
RemoveKeyThe stack of error messages.ReleaseHashTable | Usage: Comments:
True if there is an error condition, False if there is no error condition. Removes the Key ID, and its value pair, from the SRP Hash Table. Returns: | |||
CreateHashTable | Usage: Comments: Returns: | |||
ReleaseHashTable | Usage: Comments: Returns: | |||
RemoveAllHashTables | Usage: Comments: Returns: | |||
GetHandle | Usage: Comments: Returns: |
...
See comments. |
Params
The proper use of the generic arguments are defined in the definition of each service above.
...