public class DruidServer extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_REPLICANTS |
static int |
DEFAULT_PRIORITY |
static String |
DEFAULT_TIER |
Constructor and Description |
---|
DruidServer(DruidNode node,
DruidServerConfig config,
String type) |
DruidServer(String name,
String host,
long maxSize,
String type,
String tier,
int priority) |
Modifier and Type | Method and Description |
---|---|
DruidServer |
addDataSegment(String segmentId,
io.druid.timeline.DataSegment segment) |
DruidServer |
addDataSegments(DruidServer server) |
int |
compareTo(Object o) |
boolean |
equals(Object o) |
long |
getCurrSize() |
DruidDataSource |
getDataSource(String dataSource) |
Iterable<DruidDataSource> |
getDataSources() |
String |
getHost() |
long |
getMaxSize() |
DruidServerMetadata |
getMetadata() |
String |
getName() |
int |
getPriority() |
io.druid.timeline.DataSegment |
getSegment(String segmentName) |
Map<String,io.druid.timeline.DataSegment> |
getSegments() |
String |
getTier() |
String |
getType() |
int |
hashCode() |
boolean |
isAssignable() |
DruidServer |
removeDataSegment(String segmentId) |
ImmutableDruidServer |
toImmutableDruidServer() |
String |
toString() |
public static final int DEFAULT_PRIORITY
public static final int DEFAULT_NUM_REPLICANTS
public static final String DEFAULT_TIER
public DruidServer(DruidNode node, DruidServerConfig config, String type)
public String getName()
public DruidServerMetadata getMetadata()
public String getHost()
public long getCurrSize()
public long getMaxSize()
public String getType()
public String getTier()
public boolean isAssignable()
public int getPriority()
public io.druid.timeline.DataSegment getSegment(String segmentName)
public DruidServer addDataSegment(String segmentId, io.druid.timeline.DataSegment segment)
public DruidServer addDataSegments(DruidServer server)
public DruidServer removeDataSegment(String segmentId)
public DruidDataSource getDataSource(String dataSource)
public Iterable<DruidDataSource> getDataSources()
public int compareTo(Object o)
compareTo
in interface Comparable
public ImmutableDruidServer toImmutableDruidServer()
Copyright © 2011–2015. All rights reserved.