Package com.linkedin.venice.helix
Class Replica
- java.lang.Object
-
- com.linkedin.venice.helix.Replica
-
public class Replica extends java.lang.Object
Replica is the basic unit to distribute data, replica is belong to a partition and running in a instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance
getInstance()
int
getPartitionId()
java.lang.String
getResource()
HelixState
getStatus()
void
setStatus(HelixState status)
void
setStatus(java.lang.String status)
Used by the JSON deserializerjava.lang.String
toString()
-
-
-
Constructor Detail
-
Replica
public Replica(Instance instance, int partitionId, java.lang.String resource)
-
-
Method Detail
-
getInstance
public Instance getInstance()
-
getPartitionId
public int getPartitionId()
-
getResource
public java.lang.String getResource()
-
getStatus
public HelixState getStatus()
-
setStatus
public void setStatus(java.lang.String status)
Used by the JSON deserializer
-
setStatus
public void setStatus(HelixState status)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-