Class Persona

  • Direct Known Subclasses:
    ReadPersona, StoragePersona

    public class Persona
    extends java.lang.Object
    A class to represent a Persona, a relationship between stores and a quota system that is enforced. This class is created to be serialized into ZooKeeper.
    • Constructor Summary

      Constructors 
      Constructor Description
      Persona()  
      Persona​(Persona persona)  
      Persona​(java.lang.String name, long quotaNumber, java.util.Set<java.lang.String> storesToEnforce, java.util.Set<java.lang.String> owners)  
    • Constructor Detail

      • Persona

        public Persona​(java.lang.String name,
                       long quotaNumber,
                       java.util.Set<java.lang.String> storesToEnforce,
                       java.util.Set<java.lang.String> owners)
      • Persona

        public Persona​(Persona persona)
      • Persona

        public Persona()
    • Method Detail

      • getName

        public java.lang.String getName()
      • getQuotaNumber

        public long getQuotaNumber()
      • getStoresToEnforce

        public java.util.Set<java.lang.String> getStoresToEnforce()
      • getOwners

        public java.util.Set<java.lang.String> getOwners()
      • setName

        public void setName​(java.lang.String name)
      • setQuotaNumber

        public void setQuotaNumber​(long quotaNumber)
      • setStoresToEnforce

        public void setStoresToEnforce​(java.util.Set<java.lang.String> storesToEnforce)
      • setOwners

        public void setOwners​(java.util.Set<java.lang.String> owners)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object