Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

Utils.Servers

class Utils.Servers

This class is responsible for creating log files that can be retrieved and collected.

Method Inventory

Methods

classmethod AdjustGlobals(save As %Boolean = 0)
classmethod ClearUsageInfo()
classmethod CopyFile(origname As %String, newname As %String) as %Status
classmethod DeleteFile(filename As %String, verbose As %Boolean = 0)
Deletes the given filename if possible; logs an error if not (DBMTables.ActivityLog).
classmethod GetDirectorySize(directory As %String, readable As %Boolean = 1) as %Decimal
Get the total size of the given directory (if it exists). Currently this method is not supported for Windows, and always returns 0 on Windows systems. If the boolean argument "readable" is set to 1, the result is given in human-readable format including units. If the boolean argument "readable" is set to 0, the result is given in kilobytes.
classmethod GetDocBookMapsSelectable()
Returns 1 if maps in DocBook.block are selectable, 0 otherwise
classmethod GetHaveUpdated() as %Boolean
Returns 1 if we have done a full reload or a safe reload; returns 0 otherwise.
classmethod GetPorts(ByRef return) as %Status
returns a multidimensional array with subscripts WebServerPort and DefaultPort
classmethod GetSunday(hdate As %Integer) as %Integer
classmethod LogContentUpdate(loadtype As %String = "initinstall", elapsedMinutes As %Integer = "")
classmethod LogInitialContentIfNeeded()
classmethod LogTaskManagerInfo()
classmethod ProcessSessionCountsGlobal(save As %Boolean = 0)
classmethod PromptForCredentials()
classmethod WriteContentStatsFile(verbose As %Boolean = 0)
classmethod WriteCountFiles(verbose As %Boolean = 0)
classmethod WriteMarkerFile(filename As %String = "", contents As %String = "", verbose As %Boolean = 0)
classmethod WriteSettingsFile(verbose As %Boolean = 0)
classmethod WriteUpdatesFile(verbose As %Boolean = 0)
classmethod WriteVersionsFile(verbose As %Boolean = 0)
FeedbackOpens in a new tab