public class DatabaseSegmentManager extends Object
Constructor and Description |
---|
DatabaseSegmentManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.google.common.base.Supplier<DatabaseSegmentManagerConfig> config,
com.google.common.base.Supplier<DbTablesConfig> dbTables,
org.skife.jdbi.v2.IDBI dbi) |
Modifier and Type | Method and Description |
---|---|
boolean |
enableDatasource(String ds) |
boolean |
enableSegment(String segmentId) |
Collection<String> |
getAllDatasourceNames() |
Collection<DruidDataSource> |
getInventory() |
DruidDataSource |
getInventoryValue(String key) |
boolean |
isStarted() |
void |
poll() |
boolean |
removeDatasource(String ds) |
boolean |
removeSegment(String ds,
String segmentID) |
void |
start() |
void |
stop() |
@Inject public DatabaseSegmentManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.google.common.base.Supplier<DatabaseSegmentManagerConfig> config, com.google.common.base.Supplier<DbTablesConfig> dbTables, org.skife.jdbi.v2.IDBI dbi)
public void start()
public void stop()
public boolean enableDatasource(String ds)
public boolean enableSegment(String segmentId)
public boolean removeDatasource(String ds)
public boolean isStarted()
public DruidDataSource getInventoryValue(String key)
public Collection<DruidDataSource> getInventory()
public Collection<String> getAllDatasourceNames()
public void poll()
Copyright © 2015. All rights reserved.