Class CohortDescription

  • All Implemented Interfaces:
    java.io.Serializable

    public class CohortDescription
    extends java.lang.Object
    CohortDescription describes a single cohort.
    See Also:
    Serialized Form
    • Constructor Detail

      • CohortDescription

        public CohortDescription()
        Default constructor
      • CohortDescription

        public CohortDescription​(CohortDescription template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getCohortName

        public java.lang.String getCohortName()
        Return the name of the cohort.
        Returns:
        string name
      • setCohortName

        public void setCohortName​(java.lang.String cohortName)
        Set up the name of the cohort
        Parameters:
        cohortName - string name
      • getConnectionStatus

        public CohortConnectionStatus getConnectionStatus()
        Return the status of the connection to the cohort.
        Returns:
        status
      • setConnectionStatus

        public void setConnectionStatus​(CohortConnectionStatus connectionStatus)
        Set up the status of the connector tio the cohort.
        Parameters:
        connectionStatus - status
      • getTopicConnection

        @Deprecated
        public Connection getTopicConnection()
        Deprecated.
        Return the connection to the principle cohort topic if it is in use.
        Returns:
        Connection object
      • setTopicConnection

        @Deprecated
        public void setTopicConnection​(Connection topicConnection)
        Deprecated.
        Set up the connection to the principle cohort topic if it is in use.
        Parameters:
        topicConnection - Connection object
      • getSingleTopicConnection

        public Connection getSingleTopicConnection()
        Return the connection to the single cohort topic if it is in use.
        Returns:
        Connection object
      • setSingleTopicConnection

        public void setSingleTopicConnection​(Connection singleTopicConnection)
        Set up the connection to the single cohort topic if it is in use.
        Parameters:
        singleTopicConnection - Connection object
      • getRegistrationTopicConnection

        public Connection getRegistrationTopicConnection()
        Return the connection to the registration cohort topic if it is in use.
        Returns:
        Connection object
      • setRegistrationTopicConnection

        public void setRegistrationTopicConnection​(Connection registrationTopicConnection)
        Set up the connection to the registration cohort topic if it is in use.
        Parameters:
        registrationTopicConnection - Connection object
      • getTypesTopicConnection

        public Connection getTypesTopicConnection()
        Return the connection to the types cohort topic if it is in use.
        Returns:
        Connection object
      • setTypesTopicConnection

        public void setTypesTopicConnection​(Connection typesTopicConnection)
        Set up the connection to the types cohort topic if it is in use.
        Parameters:
        typesTopicConnection - Connection object
      • getInstancesTopicConnection

        public Connection getInstancesTopicConnection()
        Return the connection to the instances cohort topic if it is in use.
        Returns:
        Connection object
      • setInstancesTopicConnection

        public void setInstancesTopicConnection​(Connection instanceTopicConnection)
        Set up the connection to the instances cohort topic if it is in use.
        Parameters:
        instanceTopicConnection - Connection object
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code