Using TCP Adapters with Ensemble - InterSystems Documentation
Using TCP Adapters with Ensemble - InterSystems Documentation
Using TCP Adapters with Ensemble - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Creating Custom <strong>TCP</strong> Adapter ClassesOnInit()Method OnInit() As %StatusThe <strong>Ensemble</strong> framework calls OnInit() after creating the outbound adapter object and setting its configurableproperty values. The OnInit() method provides a way for an outbound adapter to perform any special setup actions.Depending on the values of the relevant adapter settings, one of these actions might be to open a socket to a porton the <strong>TCP</strong> listener.OnTearDown()Method OnTearDown() As %StatusThe <strong>Ensemble</strong> framework calls OnTearDown() during shutdown, before destroying the outbound adapter object.The OnTearDown() method provides a way for an outbound adapter to perform any special cleanup actions suchas disconnecting from the <strong>TCP</strong> listener.54 <strong>Using</strong> <strong>TCP</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong>