Skip to main content

%CSP.Mgr.GatewayMgrImpl

Method Inventory

Methods

method %OnNew(def) as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

method ActivateCSPIni() as %Status
Inherited description: ActivateCSPIni() activates changes made manually to the Gateway Configuration (CSP.ini)

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

classmethod CheckPermissions(method As %String, update As %Integer) as %Integer
method ClearCSPLog() as %Status
Inherited description: ClearCSPLog() clears the Event Log (CSP.log)

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method ClearCache(clearFilenames As %List) as %Status
Inherited description: ClearCache() clears the Gateway's Page Cache.

The values of clearFilenames determines the exact action of the method.

  1. An empty or undefined value indicates that the entire cache should be cleared.
  2. A list of the file names to be purged from the cache.
  3. A file name may contain a wildcard, '*'.
    1.  Clear all forms named 'zenutils.js', regardless of path: */zenutils.js
    2.  Clear all forms from the '/csp/samples/images/' location: /csp/samples/images/*
    3.  Clear all forms whose path/name contains the '/Zen_' token: */Zen* 

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method ClearCacheInternal(clearFilenames As %List) as %Status
method CloseConnections(connections As %String = "*") as %Status
Inherited description: CloseConnection() closes connections to this gateway.

connections specifies which connections are to be closed:

Connections Closed
Value
* All connections
Server Name Close connections to a specific server, e.g. LOCAL
number Close a specific connections, e.g. 3
list of numbers Close a list of specific connections, e.g, $lb(2,5,7)

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method GetApplicationParams(path As %String, ByRef configAry) as %Status
Inherited description: GetApplicationParams() gets the Application Access Parameters.

path indicates the application path whose parameters are being requested. See the GetApplicationPaths()() method to obtain a list of the application paths defined for this Gateway.

configAry [name,value] pairs are returned in local array

See SetApplicationParams() for a list of parameters.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetApplicationPaths(ByRef appPaths As %List) as %Status
Inherited description: GetApplicationPaths() gets the list of configured application paths for this Gateway.

appPaths is a list of strings, each an application path.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetCSPIni(ByRef cspIni, format As %String = $$$gfmtArray) as %Status
Inherited description: GetCSPIni() get the contents of the configuration file (CSP.ini).

format is the return format:
"array" - return as an array.
"stream" - returns as a %Stream.GlobalCharacter.

cspIni

If format="array", tke values are returned in a two-level array. A partial example:

cspini("[APP_PATH:/]", "Default_Server" ) = "LOCAL"
cspini("[APP_PATH:/csp]", "Default_Server") = "LOCAL"
cspini("[APP_PATH:/csp]", "GZIP_Minimum_File_Size") = "0"
cspini("[LOCAL]", "Ip_Address") = "127.0.0.1"
cspini("[LOCAL]", "Maximum_Server_Connections") = "4"
cspini("[LOCAL]", "Maximum_Session_Connections") = "3"
cspini("[LOCAL]", "Minimum_Server_Connections") = "30"
cspini("[LOCAL]", "Username") = "CSPSystem"

If format="stream", the data is returend as a %Stream.GlobalCharacter object which allows the CSP Ini text to be parsed directly.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetCSPLog(ByRef cspLogStream As %Stream.GlobalCharacter, startDate As %String = "now", direction As %Integer = -1, nEvents=1000) as %Status
Inherited description: GetCSPLog() gets the Event Log (CSP.log)

cspLogStream is a %Stream.GlobalCharacter stream from which you can read the lines of the returned from the event log When you close the stream, the temporary data from the server will be removed.

startDateTime the time from which to start returning events. The format the date one of the following:

   C format: e.g.:         Fri Apr 01 22:28:23 2011 
  RFC1123 format: e.g.:   Mon, 26 Jul 2010 15:09:28 GMT

The value "now" [default] will be replaced by the current date and time.

direction the direction to scan for events: 1 -> forward; -1 -> backward

nEvents the number of Events to return from the event file. Each event consists of one line in a structured name-value pair format. Caution: The CSP Log file contains tens of thousands of lines of text. If you request too many events in one call, GetCSPLog() will timeout waiting for the Gateway to finish transfering all the data.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetDefaultParams(ByRef configAry) as %Status
Inherited description: GetDefaultParams() gets Default Parameters.

config values are returned as named parameters of the object. See SetDefaultParams() for a list of parameters.

configAry [name,value] pairs are returned in local array

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetInfo(ByRef info, format As %String = $$$gfmtObject) as %Status
Inherited description: GetInfo() gets the information about the gateway.

format is the return format:
"object" - return as %CSP.Mgr.GatewayInformation object;
"stream" - returns as the information as XML in a %Stream.GlobalCharacter.

info
if format="object" this is an instance of the %CSP.Mgr.GatewayInformation class.
if format="stream", this is a %Stream.GlobalCharacter containing the information as XML

<?xml version="1.0" encoding="UTF-8" ?>
<GatewayInformation>
<Version>2011.2.0.202.0</Version>
<Build>1102.1226</Build>
<WebServerName>localhost</WebServerName>
<WebServerPort>57773</WebServerPort>
<WebServerSoftware>Apache Cache_Server_Pages-Apache_Module/2011.2.0.202.0-1102.1226</WebServerSoftware>
<ActiveInterface>apapi</ActiveInterface>
</GatewayInformation>

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetServerParams(server As %String, ByRef configAry) as %Status
Inherited description: GetServerParams() gets the Server Access Parameters for this server.

server indicates that server path whose values are being requested. See the GetServers()() method to obtain a list of the servers defined for this Gateway.

configAry [name,value] pairs are returned in local array

See SetServerParams() for a list of parameters.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetServerStatus(path As %String = "*", server As %String = "*", ByRef statusAry) as %Status
Inherited description:

GetServerStatus() retrieves the 'online' status for either a single or a specified range of InterSystems IRIS servers

path is the application path as defined in the Gateway Configuration (or "*" for all)
server is the InterSystems IRIS server name as defined in the Gateway configuration (or "*" for all)

An array of servers and their status is returned as follows:

statusAry(path,server_number)=$List(server, status)

Where status is '1' for online and '0' for offline

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetServers(ByRef serverList As %List) as %Status
Inherited description: GetServers() gets the list of configured servers for this server.

serverList is a list of strings, each the name of a configured server.

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetSystemMetrics(ByRef metricsAry, timeout As %Integer = 5) as %Status
Inherited description: GetSystemMetrics() gets information related to Gateway performance. The information returned is used by the Gateway Monitor.

metricsAry [name,value] pairs are returned in local array

Security: No privileges are necessary to call this method.

method GetSystemStatus(ByRef sysStatus, format As %String = $$$gfmtObject) as %Status
Inherited description:

GetSystemStatus() gets the System Status.

format is the return format:
"object" - return as an object;
"stream" - returns as the information as XML.

systemStatus
if format="object" returned as an instance of a %CSP.Mgr.GatewaySystemStatus object. There are the following main sections to the status: Connections, Servers, Application Paths, Alternative Servers, and Cached Form.
if format="stream", this is a %Stream.GlobalCharacter containing the information as XML

Connection, number
WebServerPID
CacheServerName
IpAddress
TCPPort
CacheServerPID
Status
IdleTime
Activity
CacheServer, number
CacheServerName
IpAddress
TCPPort
TotalConnections
ConnectionsInUse
PrivateConnections
Activity
QueuedRequests
Application Path, path
AlternativeServer
CacheServerName
Activity
Status
Alternative Server, number
CacheServerName
Activity
Status
CachedForms
FormsInCache
CachedData
CacheActivity
CachedForms,Form, form name
Size
Activity

System Status XML Example

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method GetThisServerName(ByRef serversAry) as %Status
Inherited description: GetThisServerName() gets the name that the Gateway uses to access this InterSystems IRIS server. The Gateway can be configured to access the same InterSystems IRIS server via multiple names. Therefore a numbered array will be returned. Index zero will hold the name used to currently access this InterSystems IRIS server. Any other names will follow in the numbered list.

serversAry [number,name] pairs are returned in local array

Security: To call this method, you must hold the %Admin_Operate:Use or %Admin_Manage:Use privilege.

method SetApplicationParams(path As %String, ByRef configUpdates) as %Status
Inherited description: SetApplicationParams() updates settings in the 'Application Access' section.

path indicates that application path being updated. See the GetApplicationPaths()() method to obtain a list of the application paths defined for this Gateway.

configUpdates a local array whose [name,value] pairs are used to update the configuration.

Param NameDescription
Application_StatusService Status: Enabled, Disabled
Extra_CGI_Env_VariablesExtra CGI Environment Variables
Proc_ClassProcess with this class
GZIP_CompressionGZIP Compression: Enabled, Disabled
GZIP_Mininum_File_SizeGZIP minimum file size
GZIP_Exclude_File_TypesGZIP exclude file types
KeepAliveKeep alive: Enabled, Disabled, No Action
Non_Parsed_HeadersNon-parsed headers: Enabled, Disabled
Default_ServerDefault server
Alternative_ServersAlternative Servers.

This takes one of the following values:

LoadBalancing - Load balancing and failover

FailOver - Failover only

Disabled - Disabled

Alternative_Server_[n]Alternative server
Alternative_Server_[n]_StatusAlternative Server Status: Enabled, Disabled, OFFLINE

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method SetDefaultParams(ByRef configUpdates) as %Status
Inherited description: SetDefaultParams() updates parameters in the 'Default Parameters' section.

configUpdates a local array whose [name,value] pairs are used to update the configuration.

Param NameDescription
Instance_Host_NameInstance host name
SM_FormsAccess to these forms
UsernameUser name
PasswordPassword
All passwords will be encrypted (as appropriate) before they are saved in CSP.ini.
SM_TimeoutSession Timeout
System_ManagerSystem Manager Machine(s)
System_Manager_UNPW_OverrideOverride Username and Password Checkbox
"1"=checked; ""=unchecked
Server_Response_TimeoutServer response timeout
Queued_Request_TimeoutQueued request timeout
No_Activity_TimoutNo activity timeout
Env_ParametersEvent Log Level
Event_Log_FileEvent log file
Event_Log_Rotation_SizeEvent log rotation size
Maximum_Logged_Request_SizeMaximum data logged per HTTP request
Document_RootWeb document root
ASP_DirectoryTemp ASP Directory
WS_Service_StatusService State: Enabled,Disabled
NSD_Document_RootNSD Document Root
Server_ErrorServer Error
Server_BusyServer_Busy
Server_UnavailableServer Unavailable
Server_TimeoutServer timeout
Connection_ClosedConnection closed

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method SetServerParams(server As %String, ByRef configUpdates) as %Status
Inherited description: SetServerParams() updates settings in the 'Server Access' section.

server indicates that server path being updated. See the GetServers()() method to obtain a list of the servers configured on this Gateway.

configUpdates a local array whose [name,value] pairs are used to update the configuration.

Param NameDescription
Server_StatusServer status: Enabled, Disabled
Ip_AddressIP Address
TCP_PortTCP Port
Minimum_Server_ConnectionsMinimum server connections
Maximum_Server_ConnectionsMaximum server connections
Connection_Security_LevelConnection Security Level

This takes a numeric value:

0 Password

1 Kerberos

2 Kerberos with Packet Integrity

3 Kerboros with Encryption

10 SSL

ProductProduct

This takes a numeric value:

0 (deprecated)

1 InterSystems IRIS

Service_Principal_NameService principal name
KeytableKey table
SSLCC_ProtocolSSL Protocol

Deprecated; use SSLCC_Protocol_Min and SSLCC_Protocol_Max instead

SSLCC_Protocol_MinMinimum SSL/TLS Protocol Version

This takes a numeric value:

4 TLSv1.0

8 TLSv1.1

16 TLSv1.2

32 TLSv1.3

SSLCC_Protocol_MaxMaximum SSL/TLS Protocol Version

This takes a numeric value:

4 TLSv1.0

8 TLSv1.1

16 TLSv1.2

32 TLSv1.3

SSLCC_Key_TypeSSL Key Type

This takes a numeric value:

1 DSA

2 RSA

SSLCC_Verify_PeerSSL Verify Peer checkbox:

"1"=Checked;""=Unchecked"

SSLCC_Cipher_SuitesThe Cipher Suite list (TLSv1.2 and below)
SSLCC_Cipher_Suites_1_3The Cipher Suite list (TLSv1.3)
SSLCC_Certificate_FileSSL Certificate File
SSLCC_Certificate_Key_FileSSL Certifictate Key File
SSLCC_CA_Certificate_FileSSL CA Certificate File

Alternative Servers should be saved as a contiguous set of alternative servers as follows:

Alternative_Server_1=APPSERVER1
Alternative_Server_1_Status=Enabled
Alternative_Server_2=APPSERVER2
Alternative_Server_2=Disabled

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

method SetServerStatus(path As %String = "*", server As %String = "*", status As %Integer) as %Status
Inherited description:

SetServerStatus() sets the 'online' status for either a single or a specified range of InterSystems IRIS servers

path is the application path as defined in the Gateway Configuration (or "*" for all)
server is the InterSystems IRIS server name as defined in the Gateway configuration (or "*" for all)
status is '1' for online and '0' for offline

Security: To call this method, you must hold the %Admin_Manage:Use privilege.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab