org.weakref.jmx.Managed Java Examples
The following examples show how to use
org.weakref.jmx.Managed.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClusterSizeMonitor.java From presto with Apache License 2.0 | 5 votes |
@Managed public synchronized int getRequiredWorkers() { return futuresQueue.stream() .map(MinNodesFuture::getExecutionMinCount) .max(Integer::compareTo) .orElse(0); }
Example #2
Source File: PageFunctionCompiler.java From presto with Apache License 2.0 | 5 votes |
@Nullable @Managed @Nested public CacheStatsMBean getFilterCache() { return filterCacheStats; }
Example #3
Source File: DispatchManager.java From presto with Apache License 2.0 | 5 votes |
@Managed public long getRunningQueries() { return queryTracker.getAllQueries().stream() .filter(query -> query.getBasicQueryInfo().getState() == RUNNING && !query.getBasicQueryInfo().getQueryStats().isFullyBlocked()) .count(); }
Example #4
Source File: InternalResourceGroup.java From presto with Apache License 2.0 | 5 votes |
@Managed @Override public void setHardConcurrencyLimit(int hardConcurrencyLimit) { checkArgument(hardConcurrencyLimit >= 0, "hardConcurrencyLimit is negative"); synchronized (root) { boolean oldCanRun = canRunMore(); this.hardConcurrencyLimit = hardConcurrencyLimit; if (canRunMore() != oldCanRun) { updateEligibility(); } } }
Example #5
Source File: ShardCompactor.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public CounterStat getInputShards() { return inputShards; }
Example #6
Source File: OrderingCompiler.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public CacheStatsMBean getPageWithPositionsComparatorsStats() { return new CacheStatsMBean(pageWithPositionComparators); }
Example #7
Source File: TaskExecutor.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public TimeDistribution getIntermediateSplitWaitTime() { return intermediateSplitWaitTime; }
Example #8
Source File: ClusterMemoryPool.java From presto with Apache License 2.0 | 4 votes |
@Managed public synchronized int getNodes() { return nodes; }
Example #9
Source File: PrestoS3FileSystemStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public CounterStat getAwsThrottleExceptions() { return awsThrottleExceptions; }
Example #10
Source File: BackupStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public DistributionStat getCopyToBackupShardSizeBytes() { return copyToBackupShardSizeBytes; }
Example #11
Source File: IndexJoinLookupStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public CounterStat getSuccessfulIndexJoinLookupsBySingleRequest() { return successfulIndexJoinLookupsBySingleRequest; }
Example #12
Source File: TaskExecutor.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public TimeDistribution getIntermediateSplitWallTime() { return intermediateSplitWallTime; }
Example #13
Source File: HeartbeatFailureDetector.java From presto with Apache License 2.0 | 4 votes |
@Managed(description = "Total number of known services") public int getTotalCount() { return tasks.size(); }
Example #14
Source File: AsyncHttpExecutionMBean.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public ThreadPoolExecutorMBean getTimeoutExecutor() { return timeoutExecutor; }
Example #15
Source File: ThriftMetastoreStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public ThriftMetastoreApiStats getGrantTablePrivileges() { return grantTablePrivileges; }
Example #16
Source File: IcebergFileWriterFactory.java From presto with Apache License 2.0 | 4 votes |
@Managed @Flatten public OrcWriterStats getOrcWriterStats() { return orcWriterStats; }
Example #17
Source File: TaskExecutor.java From presto with Apache License 2.0 | 4 votes |
@Managed public long getCompletedSplitsLevel1() { return completedSplitsPerLevel.get(1); }
Example #18
Source File: TaskExecutor.java From presto with Apache License 2.0 | 4 votes |
@Managed public long getCompletedTasksLevel4() { return completedTasksPerLevel.get(4); }
Example #19
Source File: ThriftMetastoreStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public ThriftMetastoreApiStats getRevokeRole() { return revokeRole; }
Example #20
Source File: ClusterMemoryManager.java From presto with Apache License 2.0 | 4 votes |
@Managed public long getClusterMemoryBytes() { return clusterMemoryBytes.get(); }
Example #21
Source File: ThriftMetastoreStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public ThriftMetastoreApiStats getGetPartitionsByNames() { return getPartitionsByNames; }
Example #22
Source File: ClusterMemoryManager.java From presto with Apache License 2.0 | 4 votes |
@Managed public long getClusterUserMemoryReservation() { return clusterUserMemoryReservation.get(); }
Example #23
Source File: PinotMetrics.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public PinotMetricsStats getBrokerRoutingTableStats() { return brokerRoutingTableStats; }
Example #24
Source File: ManagedBackupStore.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public BackupOperationStats getShardExists() { return shardExists; }
Example #25
Source File: BackupStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public DistributionStat getCopyToBackupBytesPerSecond() { return copyToBackupBytesPerSecond; }
Example #26
Source File: SqlQueryManager.java From presto with Apache License 2.0 | 4 votes |
@Managed(description = "Query query management executor") @Nested public ThreadPoolExecutorMBean getManagementExecutor() { return queryManagementExecutorMBean; }
Example #27
Source File: SplitSchedulerStats.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public DistributionStat getSplitsScheduledPerIteration() { return splitsPerIteration; }
Example #28
Source File: SpillSpaceTracker.java From presto with Apache License 2.0 | 4 votes |
/** * Returns the number of bytes currently on disk. */ @Managed public synchronized long getCurrentBytes() { return currentBytes; }
Example #29
Source File: ShardCleaner.java From presto with Apache License 2.0 | 4 votes |
@Managed @Nested public CounterStat getBackupJobErrors() { return backupJobErrors; }
Example #30
Source File: SqlTaskManager.java From presto with Apache License 2.0 | 4 votes |
@Managed(description = "Task notification executor") @Nested public ThreadPoolExecutorMBean getTaskNotificationExecutor() { return taskNotificationExecutorMBean; }