作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.druid.indexing.overlord.ZkWorker.getCurrCapacityUsed()
方法的一些代码示例,展示了ZkWorker.getCurrCapacityUsed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkWorker.getCurrCapacityUsed()
方法的具体详情如下:
包路径:io.druid.indexing.overlord.ZkWorker
类名称:ZkWorker
方法名:getCurrCapacityUsed
暂无
代码示例来源:origin: com.n3twork.druid/druid-indexing-service
public boolean isAtCapacity()
{
return getCurrCapacityUsed() >= worker.getCapacity();
}
代码示例来源:origin: io.druid/druid-indexing-service
public ImmutableWorkerInfo toImmutable()
{
return new ImmutableWorkerInfo(
worker.get(),
getCurrCapacityUsed(),
getAvailabilityGroups(),
getRunningTaskIds(),
lastCompletedTaskTime.get(),
blacklistedUntil.get()
);
}
代码示例来源:origin: com.n3twork.druid/druid-indexing-service
@Override
public int compare(
ZkWorker zkWorker, ZkWorker zkWorker2
)
{
int retVal = -Ints.compare(zkWorker.getCurrCapacityUsed(), zkWorker2.getCurrCapacityUsed());
if (retVal == 0) {
retVal = zkWorker.getWorker().getHost().compareTo(zkWorker2.getWorker().getHost());
}
return retVal;
}
}
代码示例来源:origin: com.n3twork.druid/druid-indexing-service
public boolean canRunTask(Task task)
{
return (worker.getCapacity() - getCurrCapacityUsed() >= task.getTaskResource().getRequiredCapacity()
&& !getAvailabilityGroups().contains(task.getTaskResource().getAvailabilityGroup()));
}
本文整理了Java中io.druid.indexing.overlord.ZkWorker.getCurrCapacityUsed()方法的一些代码示例,展示了ZkWorker.getCurrCapa
我是一名优秀的程序员,十分优秀!