com.ibm.connectors

Class AbstractInputConnectorFilter

    • Method Detail

      • onInitialise

        protected void onInitialise()
                             throws java.lang.Exception
        Method called after initialisation state has been saved. Connectors may use this method to initialise themselves as needed.
        Throws:
        java.lang.Exception
      • processInboundData

        public void processInboundData(java.lang.Object data,
                                       java.util.Properties properties)
        Description copied from interface: ConnectorCallback
        Notify host application of inbound data
        Specified by:
        processInboundData in interface ConnectorCallback
      • filterInboundData

        protected abstract java.lang.Object filterInboundData(java.lang.Object input,
                                                              java.util.Properties properties)
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface InputConnector
        Returns:
        is the connector listening?
      • getName

        public java.lang.String getName()
        Description copied from interface: Connector
        Returns the name allocated by the runtime to this connector when it was initialsed.
        Specified by:
        getName in interface Connector
        Returns:
        the name of the connector
        See Also:
        Connector.getName()
      • getProperties

        public java.util.Properties getProperties()
        Description copied from interface: Connector
        Returns the properties object passed to connector when it was initialised
        Specified by:
        getProperties in interface Connector
        Returns:
        the connector's properties
        See Also:
        Connector.getProperties()
      • getProperty

        public java.lang.String getProperty(java.lang.String name)
        Utility method to return a property of a particular name
        Parameters:
        name - property name
        Returns:
        property value
      • getCallback

        public ConnectorCallback getCallback()
        Description copied from interface: Connector
        Returns a callback object that the connector can use to feed data and results back to the host application. Used mainly for event input, and the results of asynchronous output/request.
        Specified by:
        getCallback in interface Connector
        Returns:
        the application callback
        See Also:
        Connector.getCallback()
      • getLogger

        public java.util.logging.Logger getLogger()
        Description copied from interface: Connector
        Returns a java.util.Logger which uses the connector's name, to enable the connector to log to the host application's logging mechanism
        Specified by:
        getLogger in interface Connector
        Returns:
        the connector's assigned logger object
        See Also:
        Connector.getLogger()
IBM TM
CommonTM Connector API