Ens.Director
abstract class Ens.Director
Method Inventory
- Console()
- CreateBusinessService()
- DeleteProduction()
- EnableConfigItem()
- GetActiveProductionName()
- GetAdapterSettingValue()
- GetAdapterSettings()
- GetCurrProductionSettingValue()
- GetCurrProductionSettings()
- GetHostSettingValue()
- GetHostSettings()
- GetItemSettingValue()
- GetItemSettings()
- GetProductionSettingValue()
- GetProductionSettings()
- GetProductionStatus()
- GetProductionSummary()
- GetRunningProductionShutdownTimeout()
- GetRunningProductionUpdateTimeout()
- GetSystemProductionSummary()
- IsItemEnabled()
- IsProductionRunning()
- ParseConfigItemName()
- ProductionNeedsUpdate()
- RecoverProduction()
- RestartAutoAddedItem()
- RestartProduction()
- SetAutoStart()
- StartProduction()
- StopProduction()
- SystemStart()
- SystemStop()
- TempStopConfigItem()
- UpdateProduction()
- actualizeProductionDifferences()
- findProductionDifferences()
- getProductionItems()
- getRunningJobData()
- hasDisabledActorProcess()
- killProductionGlobals()
Parameters
Methods
This method creates a Business Service object from which you can send messages.
pTargetDispatchName: is the configuration name of the business service.
pBusinessService: is an output parameter that contains the business service object.
It returns an error and will not delete the class if the production class to be deleted is the current production for the namespace and is not stopped.
It is the caller's responsibility to check and handle the necessary Source Control environment used by $SYSTEM.OBJ.Delete() if needed.
The parameter pLeaveProductionDeleteToCaller allows the caller to delete the Production class within a separate Source Control aware API and not use $SYSTEM.OBJ.Delete().
Enable or disable a ConfigItem in a Production. The Production may be running or not.
The pConfigItemName argument gives the name of the config item to be enabled or disabled.
In the case of multiple matching items with the same config name, if any is already enabled then the pEnable=1 option will do nothing and the pEnable=0 option will disable the running matching production item, or if not running then the first matching enabled item that it finds. The pDoUpdate=1 option will call the Ens.Director.UpdateProduction() method in this class.
See ParseConfigItemName() for full syntax of the ConfigItem name specification string.
This method returns the production status via the output parameters.
pProductionName: Returns the production name when the status is running, suspended or troubled.
pState: Outputs production status. The valid values are: $$$eProductionStateRunning $$$eProductionStateStopped $$$eProductionStateSuspended $$$eProductionStateTroubled
The pConfigItemName argument may contain the following elements:
ProductionName||ConfigName|CommentOrClassname
Only the ConfigName portion is required. If ProductionName is not given, then the currently running or last run Production will be used. CommentOrClassname is the name shown in the Config page's dropdown list for multiple items having the same ConfigName. If it is not given, then if more than one item of the given ConfigName exists, all will match.
In order for this method to work properly, none of the names of the items in your production should contain the '|' character.
This method can be used to restart certain items that are automatically added to a production: Ens.Alarm, Ens.MonitorService and Ens.ScheduleHandler, since by default they are behind the scenes production item and not added to the production class definition.
The default is to update the production after stopping the identified job.
This means all reasons for an update production are attempted to be addressed.
The 4 parameters are:
pAutoAddedItem - can be Ens.Alarm, Ens.ScheduleHandler or Ens.MonitorService
pUpdateProduction - defaults to 1 (true)
pForce - defaults to 0. If true it will force the job to be stopped after the timeout and if the production is to be updated apply force there if needed.
pTimeout - defaults to 10. The timeout used to stop the job and also the optional update production call.
This method stops and restarts the running production.
pTimeout: How many seconds to wait for the jobs to go down.
pForce: It indicates if we should forcefully kill the jobs which can not stop by themselves.
Productions are started in descending order of priority followed by alphabetically.
pStartupPriority argument is used to set the relative priority for auto start of productions within the instance. The default is to check first for a recommended value and if a recommended value has not been set then the default value of 0 is used.
The setting of a recommended value is currently reserved for internal use.
This method stops the running production.
pTimeout: How many seconds to wait for the jobs to go down.
pForce: It indicates if we should forcefully kill the jobs which can not stop by themselves.
Temporarily stop an enabled ConfigItem in a Production without changing the item's Enabled setting in the production. The production definition class is unchanged. The temporary stop is not maintained through production restarts or mirror failover. This is only used if the Production is running. This does not apply to business processes with a pool size of 0 (using the general actor pool).
The pConfigItemName argument gives the name of the config item to be temporarily stopped. The mechanism for indicating the config item ought to be temporarily stopped makes use of the mechanism used for stopping a scheduled stopped item.
See ParseConfigItemName() for full syntax of the ConfigItem name specification string.
This method updates the running production.
pTimeout: How many seconds to wait for the jobs to go down.
pForce: It indicates if we should forcefully kill the jobs which can not stop by themselves.
pCalledByScheduleHandler: This parameter is set to 1 when it is called by the schedule handler.