forked from linkedin/venice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06bf58c
commit ca65467
Showing
70 changed files
with
2,525 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
internal/venice-client-common/src/main/java/com/linkedin/venice/read/RequestType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package com.linkedin.venice.read; | ||
|
||
public enum RequestType { | ||
SINGLE_GET(""), MULTI_GET("multiget_"), MULTI_GET_STREAMING("multiget_streaming_"), COMPUTE("compute_"), | ||
COMPUTE_STREAMING("compute_streaming_"); | ||
SINGLE_GET("", "single_get"), MULTI_GET("multiget_", "multi_get"), | ||
MULTI_GET_STREAMING("multiget_streaming_", "multi_get_streaming"), COMPUTE("compute_", "compute"), | ||
COMPUTE_STREAMING("compute_streaming_", "compute_streaming"); | ||
|
||
private String metricPrefix; | ||
private String requestTypeName; | ||
|
||
RequestType(String metricPrefix) { | ||
RequestType(String metricPrefix, String requestTypeName) { | ||
this.metricPrefix = metricPrefix; | ||
this.requestTypeName = requestTypeName; | ||
} | ||
|
||
public String getMetricPrefix() { | ||
return this.metricPrefix; | ||
} | ||
|
||
public String getRequestTypeName() { | ||
return this.requestTypeName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...-common/src/main/java/com/linkedin/venice/stats/StatsSupplierVeniceMetricsRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.linkedin.venice.stats; | ||
|
||
/** copy of {@link StatsSupplierMetricsRepository} for {@link VeniceMetricsRepository} */ | ||
public interface StatsSupplierVeniceMetricsRepository<T extends AbstractVeniceStats> { | ||
/** | ||
* Legacy function, for implementations that do not use total stats in their constructor. | ||
* | ||
* @see #get(VeniceMetricsRepository, String, String, AbstractVeniceStats) which is the only caller. | ||
*/ | ||
T get(VeniceMetricsRepository metricsRepository, String storeName, String clusterName); | ||
|
||
/** | ||
* This is the function that gets called by {@link AbstractVeniceAggStats}, and concrete classes can | ||
* optionally implement it in order to be provided with the total stats instance. | ||
*/ | ||
default T get(VeniceMetricsRepository metricsRepository, String storeName, String clusterName, T totalStats) { | ||
return get(metricsRepository, storeName, clusterName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.