Ens.Adapter

abstract class Ens.Adapter extends %RegisteredObject, Ens.Settings

Base class for adapters that communicate with external applications

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 7

Summary

Properties
%CredentialsObj %WarnedLatest BusinessHost Credentials
KeepaliveInterval RegistryID
Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
AssignOneSetting ClearAllAppData ClearRuntimeAppData ClearStaticAppData
CredentialsSet EnumerateSettingsClose EnumerateSettingsExecute EnumerateSettingsFetch
GetSettings OnInit OnKeepalive OnTearDown
Subclasses
Ens.InboundAdapter Ens.OutboundAdapter

Properties

property %CredentialsObj as Ens.Config.Credentials;
This is the credentials object containing the values to be used to access the datasouce
property %WarnedLatest as %Boolean [ InitialExpression = 0,Transient ];
Flag whether we have already warned about the class being recompiled
property BusinessHost as Ens.Host;
property Credentials as %String;
This is the ID name of the set of credentials values to be used to access the external system
property KeepaliveInterval as %Numeric [ InitialExpression = 0 ];
Frequency with which to wake up and call OnKeepalive() method (not supported for InProc Operations)
property RegistryID as %String(MAXLEN=260);
ID of External Service Registry entry
Leave blank if you are not using the external registry
This will be used to find values to be applied to the Adapter and Host settings

Methods

classmethod ClearAllAppData(pConfigName As %String)
Clear both static and runtime App Data
classmethod ClearRuntimeAppData(pConfigName As %String)
Clear runtime data for a config item. This is normally used to store adapter error status for input files, and is cleared automatically each time the item restarts.
classmethod ClearStaticAppData(pConfigName As %String)
Clear static data for a config item. This is normally used to store already-processed status for input files, and other persistent values related to adapters, such as the %LastId for the SQL Inbound Adapter.
method CredentialsSet(pInVal As %String) as %Status
This is a Set accessor method for the Credentials property.
method OnInit() as %Status
This user callback method is called just after %OnNew()
method OnKeepalive(pStatus As %Status = $$$OK) as %Status
This method is called from the Host.OnTask() method. It will be called within KeepaliveInterval of the last return from OnTask() or OnKeepalive().
method OnTearDown() as %Status
This user callback method is called just before %OnClose()
Copyright © 1997-2020 InterSystems Corporation, Cambridge, MA