S/Web Objects

Home S/Web Description S/Web Overview S/Web Installation S/Web Features S/Web Functions S/Web Objects S/Web Settings S/Web Troubleshoot S/Web FAQ S/Web Appendices

Cache Client Document LH Repository Request Response Server Session

Links on this page:
 

Properties

Methods

Server

This object handles information relating to this specific running S/WEB server

Properties:

PropertyGet/SetDescription
ANONYMOUSPROCSGet/SetExposes CLIENT object ANONYMOUSPROCS property (q.v.)
AREVGetReturns a true or false indicating if the server is running Advanced Revelation
CLEANUPCLIENTPROCGet/SetThis contains the name of a procedure that is called by the cleaning process once per each expired client about to be removed from the system. The procedure should be a subroutine that takes a single argument, which is the ID property of the client being removed.
CLEANUPINTERVALGet/SetModifies the server's cleanup interval value. This is a value in minutes indicating how much time should elapse between clean ups. The system cleanup task involves deleting clients who have reached the expiration time.
CLEANUPPERIODGet/SetModifies the server's cleanup period value. This is the maximum time in seconds that a cleanup should run for.
CLEANUPPROCGet/SetThis is a program the developer can have called after the system cleaning process.  This can be used for any regular occurring process required.  Examples include generic system record unlocking calls, system LISTS record cleanup or index flush calls.  Remember that while the server is processing your cleanup requests, it is not processing web requests.
DEBUGGERGet/SetEnables or disables the system debugger. If disabled the server will not drop to the debugger in the event of a fatal error but will restart itself.
IDGetRetrieves the current server's ID value. This value can be used as part of the ID for saved list records or any other process that requires a unique key value.
INITPROCGet/SetThe name of the procedure used to initialise the server.
IPCHECKGet/SetModifies the server's IP Check value. If true$ then the client will be logged off if the client IP address changes.
MODEGetRetrieves the current servers' mode - primary (True$) or secondary.
OEGetReturns a true or false indicating if the server is running OpenEngine
STATUSGetWhether the server is running - true or false.
UTCMODIFIERGet/SetModifies the UTC modifier for this server. This is an integer identifying the difference between this time zone and GMT.
UTCTIMEGetRetrieves the current time in UTC format as internal date : "." : internal time
XFILESGet/SetDetermines whether to replace all content in the request and response files with XXX before deleting to make it more difficult to un-erase the files.
XVERSIONGetRetrieves the current version of the server module.

Methods:

call www_Exec_Method( "SERVER", method, param1, param2, param3, param4, param5 )

MethodDescription 
CREATEThis method creates a new server object
DESTROYThis method destroys the current server object.  You should use the STOP method to actually stop the server cleanly.
EXECUTEStarts the server scanning.
GETThis method retrieves properties of the response object
LOGERRORThis method will be implemented in a future release of the software
SCANExecutes a one time scan of the incoming requests - permitting external control of the process.
SETThis method sets properties of the server object
STOPThis method is used to tell the server to stop.

[top]

CREATE method

This method initiates the current server.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

This method is called when S/Web is started.  The CREATE method initialises all of the environmental settings and configures the server for use.  This method should not be called by the end-user  and is only documented for completeness.

[top]

DESTROY method

This method shuts down the current server.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

This method should not be called by the end-user  and is only documented for completeness.  Using this method to shut down the server could result in system instability

[top]

EXECUTE method

Used to start the server off. If Param1 is set then the server merely initialises and expects an external process to deal with the incoming files.

ArgumentDescription 
param1  If True$ do not go into scanning loop.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

[top]

GET method

This method retrieves properties of the server object

ArgumentDescription 
param1  Property to retrieve - can be @Rm delimited to retrieve multiple properties.
param2  Property values returned.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
   Properties  =   "OE"
   if www_Exec_Method( "SERVER", "GET", Properties, RetVals, "", "", "", "", errorText ) then
      OpenEngine    =  Field( RetVals, @RM, 1 )
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

LOGERROR method

Not yet implemented.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

[top]

SCAN method

This method executes a one time scan of the request directory..

ArgumentDescription 
param1  Not used
param2  Not used
param3  Not used
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
  
   if www_Exec_Method( "SERVER", "SCAN", "", "", "", "", "", "", errorText ) then
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

SET method

This method sets properties of the SERVER object.

ArgumentDescription 
param1  Properties to set, @Rm delimited
param2  Values to set, @Rm delimited
param3  Previous values returned, @Rm delimited
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
   Properties  =   "IPCHECK"
   Values  =   True$
   if www_Exec_Method( "SERVER", "SET", Properties, Values, RetVals, "", "", "", errorText ) then
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

STOP method

This method sets the cancelled flag to allow a clean server closedown.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

[top]

Copyright © 2005 The Sprezzatura Group. All rights reserved.