public class ServerHolder extends Object implements Comparable<ServerHolder>
Constructor and Description |
---|
ServerHolder(ImmutableDruidServer server,
LoadQueuePeon peon) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ServerHolder serverHolder) |
boolean |
equals(Object o) |
Long |
getAvailableSize() |
Long |
getCurrServerSize() |
Long |
getLoadQueueSize() |
Long |
getMaxSize() |
LoadQueuePeon |
getPeon() |
Double |
getPercentUsed() |
ImmutableDruidServer |
getServer() |
Long |
getSizeUsed() |
int |
hashCode() |
boolean |
isLoadingSegment(io.druid.timeline.DataSegment segment) |
boolean |
isServingSegment(io.druid.timeline.DataSegment segment) |
public ServerHolder(ImmutableDruidServer server, LoadQueuePeon peon)
public ImmutableDruidServer getServer()
public LoadQueuePeon getPeon()
public Long getMaxSize()
public Long getCurrServerSize()
public Long getLoadQueueSize()
public Long getSizeUsed()
public Double getPercentUsed()
public Long getAvailableSize()
public boolean isServingSegment(io.druid.timeline.DataSegment segment)
public boolean isLoadingSegment(io.druid.timeline.DataSegment segment)
public int compareTo(ServerHolder serverHolder)
compareTo
in interface Comparable<ServerHolder>
Copyright © 2011–2015. All rights reserved.