public interface EtpAccessListener
Monitoring the WITSML access is purely optional, but it can be quite useful in order to provide logging information, performance statistics, quality KPIs etc.
Example:
/** * Class for monitoring server access. */ public final class ClientListener implements no.petroware.jwitsml.etp.EtpAccessListener { @Override public void access(EtpAccess access) { : } } // Register the access listener etpServer.addAccessListener(new ClientListener());The access() method will be called for every message sent between the ETP client and server.
EtpServer.addAccessListener(EtpAccessListener)
,
EtpAccess
Modifier and Type | Method and Description |
---|---|
void |
access(EtpAccess access)
Method called on every message between the ETP client and server.
|
void access(EtpAccess access)
access
- Description of the access being made. Never null.Copyright © 2023 Petroware AS - https://petroware.no