Class PostgresServerSurveyActionService

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, SurveyActionService

public class PostgresServerSurveyActionService extends SurveyActionServiceConnector
PostgresServerSurveyActionService surveys each of the databases hosted by a PostgreSQL Database Server.
  • Constructor Details

    • PostgresServerSurveyActionService

      public PostgresServerSurveyActionService()
  • Method Details

    • start

      Indicates that the survey action service is completely configured and can begin processing.

      The survey is broken into short units of work so that it does not hold a database transaction open for its whole duration: every query runs in auto-commit mode, the connection to the server's postgres database is released before the individual databases are surveyed, and each database is surveyed through its own connection, which is released before the next database starts. A database that cannot be surveyed is logged and skipped, and the annotations for each database are stored as soon as that database is complete, so a problem late in a large survey does not discard the work done before it.
      Overrides:
      start in class SurveyActionServiceConnector
      Throws:
      ConnectorCheckedException - a problem within the discovery service.
      UserNotAuthorizedException - the connector was disconnected before/during start
    • disconnect

      public void disconnect() throws ConnectorCheckedException
      Free up any resources held since the connector is no longer needed.
      Overrides:
      disconnect in class SurveyActionServiceConnector
      Throws:
      ConnectorCheckedException - the connector detected a problem.