def _connect(self):

        try:
            # Open Connection
            self.influx = InfluxDBClient(self.hostname, self.port,
                                         self.username, self.password,
                                         self.database, self.ssl)
            # Log
            self.log.debug("InfluxdbHandler: Established connection to "
                           "%s:%d/%s.",
                           self.hostname, self.port, self.database)
        except Exception, ex:
            # Log Error
            self._throttle_error("InfluxdbHandler: Failed to connect to "
                                 "%s:%d/%s. %s",
                                 self.hostname, self.port, self.database, ex)
            # Close Socket
            self._close()
            return
Get the plugin object for a given plugin id.
dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/handler/influxdbHandler.py/InfluxdbHandler._connect--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/workbench/workbench.py/Workbench.get_plugin