Home > Class Reference > ENSLIB namespace > Ens.Job

Ens.Job

class Ens.Job extends %Library.RegisteredObject

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter DOMAIN = Ensemble;
parameter FGLAUNCHWAIT = 30;
parameter FGTELNETWAIT = 30;
parameter JOBSTARTWAIT = 120;

Properties (Including Private)

property Name as %String;
Name of this job instance
Property methods: NameDisplayToLogical(), NameGet(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property TaskPass as %Integer;
The number of times OnTask() has run.
Property methods: TaskPassDisplayToLogical(), TaskPassGet(), TaskPassIsValid(), TaskPassLogicalToDisplay(), TaskPassNormalize(), TaskPassSet()

Methods (Including Private)

classmethod AbortOperation(pJob As %String = "") as %Status
classmethod CleanUpDeadJobs()
classmethod EnumerateClose(ByRef qHandle As %Binary) as %Status
classmethod EnumerateExecute(ByRef qHandle As %Binary) as %Status
classmethod EnumerateFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
classmethod Launch(pConfigName As %String = "", pForeground As %Boolean, pDisableErrorTraps As %Boolean, pInterimJob As %String = "", Output pChildJob As %String, Output pListeningTelnetPort As %String = "") as %Status
classmethod MakeNotQuiescent()
classmethod MakeQuiescent(pTimeout As %Numeric = 10, Output pIsQuiescent As %Boolean)
classmethod MarkDeadJobs()
classmethod RecoverActiveMessage(pId As %ObjectIdentity, pName As %String, pMarkAsCrashed As %Boolean = 1) as %Status
classmethod Register(pConfigName As %String, pIsTempJob As %Integer, pForeground As %Boolean, pJob As %String, pInterimJob As %String, pJobStatus As %String) as %Status
classmethod SetStatus(pJobStatus As %Integer, pDetail As %String)
classmethod ShouldAbort() as %Boolean
classmethod ShouldBeQuiescent() as %Boolean
classmethod ShouldSuspend() as %Boolean
classmethod ShouldTerminate() as %Boolean
classmethod Start(pConfigName As %String, pDisableErrorTraps As %Boolean, pIsTempJob As %Boolean = 0, pForeground As %Boolean = 0, pInterimJob As %String = "", pEventName As %String = "") as %Status
Start a background Job in the specified namespace.
classmethod Stop(pJob As %String, pTimeout As %Numeric = 10, pForce As %Boolean = 0) as %Status
Stop one job
classmethod StopAll(pTimeout As %Integer = 10, pForce As %Boolean = 0) as %Status
Stop all jobs
classmethod SuspendOperation(pJob As %String) as %Status
classmethod UnRegister(pConfigName As %String, pJob)

Queries

query Enumerate()
Selects Job As %String, ConfigName As %String, Mode As %String, Status As %String, Detail As %String, ActiveMessage As %String, State As %String
List the known jobs and their information

Inherited Members

Inherited Methods (Including Private)