Package com.linkedin.venice.persona
Class Persona
- java.lang.Object
-
- com.linkedin.venice.persona.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.lang.String
getName()
java.util.Set<java.lang.String>
getOwners()
long
getQuotaNumber()
java.util.Set<java.lang.String>
getStoresToEnforce()
int
hashCode()
void
setName(java.lang.String name)
void
setOwners(java.util.Set<java.lang.String> owners)
void
setQuotaNumber(long quotaNumber)
void
setStoresToEnforce(java.util.Set<java.lang.String> storesToEnforce)
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-