Scheduler Client API
All features relying on the Scheduler must use the SchedulerClient API to add, remove, update or get Triggers to or from the Scheduler instance.

Direct accesses into the repository to System Triggers, System Jobs are forbidden.
Detailed description of the SchedulerClient API
The SchedulerClient API is detailed into the JavaDoc provided with HOPEX installation.
See “MegaSchedulerClient” into either:
• online documentation: HOPEX Power Studio > HOPEX APIs > JavaDoc
• java\doc folder of HOPEX installation site: mj_api.doc.zip documentation package.
Java
Documentation
See “MegaSchedulerClient” into either:
• online documentation: HOPEX Power Studio > HOPEX APIs > JavaDoc
• java\doc folder of HOPEX installation site: mj_api.doc.zip documentation package.
VB Script
Documentation
To get access to the SchedulerClient API, use the SchedulerClient Method available on MegaRoot.
Example:
Set objSchedulerClient = GetRoot().InvokeFunction("~nNmUTwNTF94K[SchedulerClient]")
Members available on the SchedulerClient object are defined below (for detailed description see JavaDoc documentation):
Class SchedulerClient
Public Property Get State() As String
Public Property Get ConnectionMode() As Integer
Public Property Let ConnectionMode(Integer intConnectionMode)
Public Property Get DefaultUpdateMode() As Integer
Public Property Let DefaultUpdateMode(Integer intDefaultUpdateMode)
Public Sub StartScheduler()
Public Sub StopScheduler()
Public Sub ReloadTriggers()
Public Function NewTrigger() As MegaObject
Public Sub AddTrigger(mgobjTrigger As MegaObject, strOptions As String)
Public Sub RemoveTrigger(mgobjTriggerId As Object, strOptions As String)
Public Sub UpdateTrigger(mgobjTrigger As MegaObject, strOptions As String)
Public Function GetTrigger(mgidTriggerId As Object, strOptions As String) As MegaObject
Public Function GetAllTriggers() As MegaCollection
End Class
Examples