Class CohortDescription

java.lang.Object
org.odpi.openmetadata.repositoryservices.properties.CohortDescription
All Implemented Interfaces:
Serializable

public class CohortDescription extends Object
CohortDescription describes a single cohort.
See Also:
  • Constructor Details

    • CohortDescription

      public CohortDescription()
      Default constructor
    • CohortDescription

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

    • getCohortName

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

      public void setCohortName(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 String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class 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 Object
      Returns:
      int hash code