Class ServerNotificationsConnector

  • All Implemented Interfaces:
    ConnectorInterface, VersionInfoInterface

    public class ServerNotificationsConnector
    extends Connector
    implements ConnectorInterface
    The Connector listens for local or remote Server API notifications depending on the mode selected by setting a Connector parameter. In remote mode the Connector hooks into remote TDI systems and registers for notifications. In local mode the Connector registers for Server API notifications emitted in the TDI JVM - the notifications can be emitted by the Server API layer. When the Connector receives a notification it stores it into an internal Connector buffer for later retrieval by the standard getNextEntry() Connector method which is called by the AssemblyLine for Connectors in Iterator mode.
    • Constructor Detail

      • ServerNotificationsConnector

        public ServerNotificationsConnector()
        Constructor for the ServerNotificationListenerConnector object
    • Method Detail

      • initialize

        public void initialize​(java.lang.Object aObj)
                        throws java.lang.Exception
        Reads connector parameter's values and initialize the Connector.
        Specified by:
        initialize in interface ConnectorInterface
        Overrides:
        initialize in class Connector
        Parameters:
        aObj - Null, Socket or ConnectorMode class
        Throws:
        java.lang.Exception - If invalid Connector parameter values are supplied.
      • putEntry

        public void putEntry​(Entry entry)
                      throws java.lang.Exception
        Emits a custom Server API notification
        Specified by:
        putEntry in interface ConnectorInterface
        Overrides:
        putEntry in class Connector
        Parameters:
        entry - The entry that holds the notification data
        Throws:
        java.lang.Exception - If emiting notification fails.
      • terminate

        public void terminate()
                       throws java.lang.Exception
        Terminate the connector. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser function if a parser is active.
        Specified by:
        terminate in interface ConnectorInterface
        Overrides:
        terminate in class Connector
        Throws:
        java.lang.Exception - If terminate fails.
      • getVersion

        public java.lang.String getVersion()
        Version information.
        Specified by:
        getVersion in interface VersionInfoInterface
        Returns:
        the version information