/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
D | NoopViewManagerTest.java | 62 ViewManager viewManager = NoopStats.newNoopViewManager(); in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() local 63 viewManager.registerView(view1); in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() 68 viewManager.registerView(view2); in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() 70 assertThat(viewManager.getView(VIEW_NAME).getView()).isEqualTo(view1); in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() 79 ViewManager viewManager = NoopStats.newNoopViewManager(); in noopViewManager_RegisterView_AllowRegisteringSameViewTwice() local 80 viewManager.registerView(view); in noopViewManager_RegisterView_AllowRegisteringSameViewTwice() 81 viewManager.registerView(view); in noopViewManager_RegisterView_AllowRegisteringSameViewTwice() 86 ViewManager viewManager = NoopStats.newNoopViewManager(); in noopViewManager_RegisterView_DisallowNull() local 88 viewManager.registerView(null); in noopViewManager_RegisterView_DisallowNull() 93 ViewManager viewManager = NoopStats.newNoopViewManager(); in noopViewManager_GetView_GettingNonExistentViewReturnsNull() local [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | ViewManagerImplTest.java | 124 private final ViewManagerImpl viewManager = statsComponent.getViewManager(); field in ViewManagerImplTest 139 viewManager.registerView(view); in testRegisterAndGetCumulativeView() 140 assertThat(viewManager.getView(VIEW_NAME).getView()).isEqualTo(view); in testRegisterAndGetCumulativeView() 141 assertThat(viewManager.getView(VIEW_NAME).getAggregationMap()).isEmpty(); in testRegisterAndGetCumulativeView() 142 assertThat(viewManager.getView(VIEW_NAME).getWindowData()).isInstanceOf(CumulativeData.class); in testRegisterAndGetCumulativeView() 147 assertThat(viewManager.getAllExportedViews()).isEmpty(); in testGetAllExportedViews() 162 viewManager.registerView(cumulativeView1); in testGetAllExportedViews() 163 viewManager.registerView(cumulativeView2); in testGetAllExportedViews() 164 viewManager.registerView(intervalView); in testGetAllExportedViews() 167 assertThat(viewManager.getAllExportedViews()).containsExactly(cumulativeView1, cumulativeView2); in testGetAllExportedViews() [all …]
|
D | StatsRecorderImplTest.java | 84 private final ViewManager viewManager = statsComponent.getViewManager(); field in StatsRecorderImplTest 97 viewManager.registerView(view); in record_CurrentContextNotSet() 99 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextNotSet() 116 viewManager.registerView(view); in record_CurrentContextSet() 126 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextSet() 142 viewManager.registerView(view); in record_UnregisteredMeasure() 149 ViewData viewData = viewManager.getView(VIEW_NAME); in record_UnregisteredMeasure() 165 viewManager.registerView(view); in record_WithAttachments_Distribution() 167 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_Distribution() 190 viewManager.registerView(view); in record_WithAttachments_DistributionNoHistogram() [all …]
|
/external/opencensus-java/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/ |
D | RpcViews.java | 144 static void registerAllGrpcViews(ViewManager viewManager) { in registerAllGrpcViews() argument 145 registerClientGrpcViews(viewManager); in registerAllGrpcViews() 146 registerServerGrpcViews(viewManager); in registerAllGrpcViews() 161 static void registerClientGrpcViews(ViewManager viewManager) { in registerClientGrpcViews() argument 163 viewManager.registerView(view); in registerClientGrpcViews() 179 static void registerServerGrpcViews(ViewManager viewManager) { in registerServerGrpcViews() argument 181 viewManager.registerView(view); in registerServerGrpcViews() 201 static void registerAllCumulativeViews(ViewManager viewManager) { in registerAllCumulativeViews() argument 203 viewManager.registerView(view); in registerAllCumulativeViews() 221 static void registerAllIntervalViews(ViewManager viewManager) { in registerAllIntervalViews() argument [all …]
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
D | HttpViewsTest.java | 34 @Mock ViewManager viewManager; field in HttpViewsTest 43 HttpViews.registerAllClientViews(viewManager); in registerClientViews() 45 verify(viewManager).registerView(view); in registerClientViews() 51 HttpViews.registerAllServerViews(viewManager); in registerServerViews() 53 verify(viewManager).registerView(view); in registerServerViews() 59 HttpViews.registerAllViews(viewManager); in registerAll() 61 verify(viewManager).registerView(view); in registerAll() 64 verify(viewManager).registerView(view); in registerAll()
|
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/ |
D | HttpViews.java | 62 static void registerAllClientViews(ViewManager viewManager) { in registerAllClientViews() argument 64 viewManager.registerView(view); in registerAllClientViews() 80 static void registerAllServerViews(ViewManager viewManager) { in registerAllServerViews() argument 82 viewManager.registerView(view); in registerAllServerViews() 99 static void registerAllViews(ViewManager viewManager) { in registerAllViews() argument 100 registerAllClientViews(viewManager); in registerAllViews() 101 registerAllServerViews(viewManager); in registerAllViews()
|
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusStatsCollector.java | 55 private final ViewManager viewManager; field in PrometheusStatsCollector 106 for (View view : viewManager.getAllExportedViews()) { in collect() 113 ViewData viewData = viewManager.getView(view.getName()); in collect() 147 for (View view : viewManager.getAllExportedViews()) { in describe() 166 PrometheusStatsCollector(ViewManager viewManager) { in PrometheusStatsCollector() argument 167 this.viewManager = viewManager; in PrometheusStatsCollector()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | StatsComponentImplBase.java | 36 private final ViewManagerImpl viewManager; field in StatsComponentImplBase 47 this.viewManager = new ViewManagerImpl(statsManager); in StatsComponentImplBase() 58 return viewManager; in getViewManager() 78 viewManager.clearStats(); in setState() 80 viewManager.resumeStatsCollection(); in setState()
|
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/ |
D | SignalFxStatsExporterWorkerThreadTest.java | 64 @Mock private ViewManager viewManager; field in SignalFxStatsExporterWorkerThreadTest 96 factory, endpoint, TEST_TOKEN, ONE_SECOND, viewManager); in createThread() 104 Mockito.when(viewManager.getAllExportedViews()).thenReturn(ImmutableSet.<View>of()); in senderThreadInterruptStopsLoop() 108 factory, endpoint, TEST_TOKEN, ONE_SECOND, viewManager); in senderThreadInterruptStopsLoop() 131 Mockito.when(viewManager.getAllExportedViews()).thenReturn(ImmutableSet.of(view)); in setsDatapointsFromViewOnSession() 132 Mockito.when(viewManager.getView(Mockito.eq(viewName))).thenReturn(viewData); in setsDatapointsFromViewOnSession() 136 factory, endpoint, TEST_TOKEN, ONE_SECOND, viewManager); in setsDatapointsFromViewOnSession()
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExporterWorker.java | 79 private final ViewManager viewManager; field in StackdriverExporterWorker 92 ViewManager viewManager, in StackdriverExporterWorker() argument 99 this.viewManager = viewManager; in StackdriverExporterWorker() 173 for (View view : viewManager.getAllExportedViews()) { in export() 176 viewDataList.add(viewManager.getView(view.getName())); in export()
|
D | StackdriverStatsExporter.java | 81 ViewManager viewManager, in StackdriverStatsExporter() argument 90 viewManager, in StackdriverStatsExporter()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/ |
D | QuickStart.java | 50 private static final ViewManager viewManager = Stats.getViewManager(); field in QuickStart 85 viewManager.registerView(VIDEO_SIZE_VIEW); in main() 107 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME); in main()
|
/external/opencensus-java/exporters/stats/signalfx/src/main/java/io/opencensus/exporter/stats/signalfx/ |
D | SignalFxStatsExporter.java | 51 private SignalFxStatsExporter(SignalFxStatsConfiguration configuration, ViewManager viewManager) { in SignalFxStatsExporter() argument 60 viewManager); in SignalFxStatsExporter()
|
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
D | StatszZPageHandler.java | 74 private final ViewManager viewManager; field in StatszZPageHandler 158 viewManager.getAllExportedViews(), root, measures, cachedViews); in emitHtmlBody() 175 ViewData viewData = viewManager.getView(current.viewName); in emitHtmlBody() 597 static StatszZPageHandler create(ViewManager viewManager) { in create() argument 598 return new StatszZPageHandler(viewManager); in create() 601 private StatszZPageHandler(ViewManager viewManager) { in StatszZPageHandler() argument 602 this.viewManager = viewManager; in StatszZPageHandler()
|
D | RpczZPageHandler.java | 111 private final ViewManager viewManager; field in RpczZPageHandler 347 ViewData viewData = viewManager.getView(view.getName()); in getStatsSnapshots() 459 static RpczZPageHandler create(ViewManager viewManager) { in create() argument 460 return new RpczZPageHandler(viewManager); in create() 463 private RpczZPageHandler(ViewManager viewManager) { in RpczZPageHandler() argument 464 this.viewManager = viewManager; in RpczZPageHandler()
|
/external/opencensus-java/api/src/main/java/io/opencensus/stats/ |
D | NoopStats.java | 86 private final ViewManager viewManager = newNoopViewManager(); field in NoopStats.NoopStatsComponent 91 return viewManager; in getViewManager()
|
/external/opencensus-java/ |
D | README.md | 138 private static final ViewManager viewManager = Stats.getViewManager(); 163 viewManager.registerView(VIDEO_SIZE_VIEW); 181 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME);
|