Interface SConnector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connect()
      Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connection
      void disconnect()
      Called by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here.
      java.util.Map<java.lang.String,​java.lang.Object> execute()
      Execute the connector.
      void setInputParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
      Set the input parameter for a connector.
      void validate()
      Validate the input parameters.
    • Method Detail

      • setInputParameters

        void setInputParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Set the input parameter for a connector.
        Parameters:
        parameters - parameters is a map with parameter names and their value.
      • execute

        java.util.Map<java.lang.String,​java.lang.Object> execute()
                                                                throws SConnectorException
        Execute the connector.
        Returns:
        the connector outputs map corresponding to the output definition.
        Throws:
        SConnectorException
      • connect

        void connect()
              throws SConnectorException
        Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connection
        Throws:
        SConnectorException
      • disconnect

        void disconnect()
                 throws SConnectorException
        Called by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here. The typical use of this is to be able to return connected objects that will be used in output operation and then disconnect them.
        Throws:
        SConnectorException