class %Net.Remote.Utility
extends %RegisteredObject
This class is for InterSystems internal use.
Helper methods for %Net.Remote classes.
classmethod CheckGateway(pServer As %String, pPort As %String, pVerbose As %Boolean = 0)
as %Boolean
Check if Gateway is running and is responding to PING.
classmethod GetAllClassesClose(ByRef qHandle As %Binary)
as %Status
classmethod GetAllClassesExecute(ByRef qHandle As %Binary, pFilename As %String, pServer As %String, pPort As %String)
as %Status
classmethod GetAllClassesFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0)
as %Status
classmethod IsEnsembleNamespace()
as %Boolean
Checks for Ensemble-enabled namespace.
classmethod IsServerLocal(pServer As %String)
as %Boolean
Check if the server address or name corresponds to the local machine.
classmethod RunCommandViaCPIPE(pCmd As %String, Output pDevice, Output pOutput, pTimeout As %Integer = 10)
as %Status
Run a command using a CPIPE device.
The first unused CPIPE device is allocated and returned in pDevice. Upon exit the device is open;
it is up to the caller to close that device when done with it.
Note that CPIPE (and PIPE) devices are supported on Unix and Windows, but not on VMS. If this method is invoked
on an instance installed on VMS, execution flow will be diverted to method RunCommandViaZF
which uses a different technique.
classmethod RunCommandViaZF(pCmd As %String, Output pTempFileName, Output pOutput, pTimeout As %Integer = 10, pDeleteTempFile As %Boolean = 1, Output pRetCode As %String)
as %Status
Run a command using $ZF(-1) and an external temporary file to store the command output.
If pDeleteTempFile is 0 (false), the temporary file is not deleted; in this case, it is up to the caller to delete it when done with it.
query GetAllClasses(pFilename As %String, pServer As %String, pPort As %String)
Selects
Classname As %String
This query returns all classes found inside pFilename (passed to Execute() as the 1st argument).
Must also pass the name/IP of the server (2nd argument) and port (3rd argument) of a running Object Gateway Server.