File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
solr/solrj/src/java/org/apache/solr/common/cloud Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,7 @@ public int hashCode() {
548
548
* @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#NRT}
549
549
* this collection was created with
550
550
*/
551
+ @ Deprecated
551
552
public Integer getNumNrtReplicas () {
552
553
return getNumReplicas (Replica .Type .NRT );
553
554
}
@@ -556,6 +557,7 @@ public Integer getNumNrtReplicas() {
556
557
* @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#TLOG}
557
558
* this collection was created with
558
559
*/
560
+ @ Deprecated
559
561
public Integer getNumTlogReplicas () {
560
562
return getNumReplicas (Replica .Type .TLOG );
561
563
}
@@ -564,14 +566,15 @@ public Integer getNumTlogReplicas() {
564
566
* @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#PULL}
565
567
* this collection was created with
566
568
*/
569
+ @ Deprecated
567
570
public Integer getNumPullReplicas () {
568
571
return getNumReplicas (Replica .Type .PULL );
569
572
}
570
573
571
574
/**
572
575
* @return the number of replicas of a given type this collection was created with
573
576
*/
574
- public Integer getNumReplicas (Replica .Type type ) {
577
+ public int getNumReplicas (Replica .Type type ) {
575
578
return numReplicas .get (type );
576
579
}
577
580
You can’t perform that action at this time.
0 commit comments