Class FullConnectorStatus


  • public class FullConnectorStatus
    extends Object
    Representation of the full connector status, comprised of the connector and connector configuration statuses.
    • Method Detail

      • validateConnectorStatusIn

        public void validateConnectorStatusIn​(ConnectorStatus... expected)
        Validates whether this connector status is in provided ones.
        Parameters:
        expected - expected connector statuses
        Throws:
        InvalidConnectorStatusException - if this connector status is different from the expected ones.
      • validateConfigurationStatusIsIn

        public void validateConfigurationStatusIsIn​(ConnectorStatus.ConnectorConfigurationStatus... expectedStatuses)
        Validates whether this connector configuration status is present among the provided statuses.
        Parameters:
        expectedStatuses - expected connector configuration statuses
        Throws:
        InvalidConnectorStatusException - if this connector status is not present among the provided statuses
      • validateConfigurationStatusIsNotIn

        public void validateConfigurationStatusIsNotIn​(ConnectorStatus.ConnectorConfigurationStatus... unexpectedStatuses)
        Validates whether this connector configuration status is not present among the provided statuses.
        Parameters:
        unexpectedStatuses - unexpected connector configuration statuses
        Throws:
        InvalidConnectorStatusException - if this connector status is present among the provided statuses
      • getStatus

        public ConnectorStatus getStatus()
        Returns this connector status.
        Returns:
        connector status
      • setStatus

        public void setStatus​(ConnectorStatus status)
        Sets this connector status.
        Parameters:
        status - connector status
      • setConfigurationStatus

        public void setConfigurationStatus​(ConnectorStatus.ConnectorConfigurationStatus configurationStatus)
        Sets this connector configuration status.
        Parameters:
        configurationStatus - connector configuration status
      • hasStatus

        public boolean hasStatus​(ConnectorStatus... expected)
        Returns whether this connector status contains the provided ones.
        Parameters:
        expected - expected connector statuses
        Returns:
        whether this connector status is equal to the provided one
      • hasConfigurationStatus

        public boolean hasConfigurationStatus​(ConnectorStatus.ConnectorConfigurationStatus expected)
        Returns whether this connector configuration status is equal to the provided one.
        Parameters:
        expected - expected connector configuration status
        Returns:
        whether this connector configuration status is equal to the provided one
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object