public class SQLMetadataSegmentManager extends Object implements MetadataSegmentManager
Constructor and Description |
---|
SQLMetadataSegmentManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.google.common.base.Supplier<MetadataSegmentManagerConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables,
SQLMetadataConnector connector) |
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 SQLMetadataSegmentManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.google.common.base.Supplier<MetadataSegmentManagerConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables, SQLMetadataConnector connector)
public void start()
start
in interface MetadataSegmentManager
public void stop()
stop
in interface MetadataSegmentManager
public boolean enableDatasource(String ds)
enableDatasource
in interface MetadataSegmentManager
public boolean enableSegment(String segmentId)
enableSegment
in interface MetadataSegmentManager
public boolean removeDatasource(String ds)
removeDatasource
in interface MetadataSegmentManager
public boolean removeSegment(String ds, String segmentID)
removeSegment
in interface MetadataSegmentManager
public boolean isStarted()
isStarted
in interface MetadataSegmentManager
public DruidDataSource getInventoryValue(String key)
getInventoryValue
in interface MetadataSegmentManager
public Collection<DruidDataSource> getInventory()
getInventory
in interface MetadataSegmentManager
public Collection<String> getAllDatasourceNames()
getAllDatasourceNames
in interface MetadataSegmentManager
public void poll()
poll
in interface MetadataSegmentManager
Copyright © 2011–2015. All rights reserved.