Skip to main content

Ens.Adapter

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

Base class for adapters that communicate with external applications

Property Inventory

Method Inventory

Properties

property %CredentialsObj as Ens.Config.Credentials;
This is the credentials object containing the values to be used to access the datasouce
Property methods: %CredentialsObjGet(), %CredentialsObjGetObject(), %CredentialsObjGetObjectId(), %CredentialsObjGetSwizzled(), %CredentialsObjIsValid(), %CredentialsObjNewObject(), %CredentialsObjSet(), %CredentialsObjSetObject(), %CredentialsObjSetObjectId(), %CredentialsObjUnSwizzle()
property %WarnedLatest as %Boolean [ InitialExpression = 0 , Transient ];
Flag whether we have already warned about the class being recompiled
Property methods: %WarnedLatestDisplayToLogical(), %WarnedLatestGet(), %WarnedLatestIsValid(), %WarnedLatestLogicalToDisplay(), %WarnedLatestNormalize(), %WarnedLatestSet()
property BusinessHost as Ens.Host;
Property methods: BusinessHostGet(), BusinessHostGetSwizzled(), BusinessHostIsValid(), BusinessHostNewObject(), BusinessHostSet()
property Credentials as %String;
This is the ID name of the set of credentials values to be used to access the external system
Property methods: CredentialsDisplayToLogical(), CredentialsGet(), CredentialsIsValid(), CredentialsLogicalToDisplay(), CredentialsLogicalToOdbc(), CredentialsNormalize()
property KeepaliveInterval as %Numeric [ InitialExpression = 0 ];
Frequency with which to wake up and call OnKeepalive() method (not supported for InProc Operations)
Property methods: KeepaliveIntervalDisplayToLogical(), KeepaliveIntervalGet(), KeepaliveIntervalIsValid(), KeepaliveIntervalLogicalToDisplay(), KeepaliveIntervalNormalize(), KeepaliveIntervalSet()
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
Property methods: RegistryIDDisplayToLogical(), RegistryIDGet(), RegistryIDIsValid(), RegistryIDLogicalToDisplay(), RegistryIDLogicalToOdbc(), RegistryIDNormalize(), RegistryIDSet()

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
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()

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab