Tabnine Logo
StorageLocationConfig.getPath
Code IndexAdd Tabnine to your IDE (free)

How to use
getPath
method
in
org.apache.druid.segment.loading.StorageLocationConfig

Best Java code snippets using org.apache.druid.segment.loading.StorageLocationConfig.getPath (Showing top 6 results out of 315)

origin: apache/incubator-druid

public File getInfoDir()
{
 if (infoDir == null) {
  if (locations == null || locations.size() == 0) {
   throw new ISE("You have no segment cache locations defined. Please configure druid.segmentCache.locations to use one or more locations.");
  }
  infoDir = new File(locations.get(0).getPath(), "info_dir");
 }
 return infoDir;
}
origin: apache/incubator-druid

 @Inject
 public DruidSysMonitor(
   SegmentLoaderConfig config
 )
 {
  final List<StorageLocationConfig> locs = config.getLocations();
  List<String> dirs = Lists.newArrayListWithExpectedSize(locs.size());
  for (StorageLocationConfig loc : locs) {
   dirs.add(loc.getPath().toString());
  }

  addDirectoriesToMonitor(dirs.toArray(new String[0]));
 }
}
origin: apache/incubator-druid

@Inject
public SegmentLoaderLocalCacheManager(
  IndexIO indexIO,
  SegmentLoaderConfig config,
  @Json ObjectMapper mapper
)
{
 this.indexIO = indexIO;
 this.config = config;
 this.jsonMapper = mapper;
 this.locations = new ArrayList<>();
 for (StorageLocationConfig locationConfig : config.getLocations()) {
  locations.add(new StorageLocation(
    locationConfig.getPath(),
    locationConfig.getMaxSize(),
    locationConfig.getFreeSpacePercent()
  ));
 }
}
origin: org.apache.druid/druid-server

public File getInfoDir()
{
 if (infoDir == null) {
  if (locations == null || locations.size() == 0) {
   throw new ISE("You have no segment cache locations defined. Please configure druid.segmentCache.locations to use one or more locations.");
  }
  infoDir = new File(locations.get(0).getPath(), "info_dir");
 }
 return infoDir;
}
origin: org.apache.druid/druid-server

 @Inject
 public DruidSysMonitor(
   SegmentLoaderConfig config
 )
 {
  final List<StorageLocationConfig> locs = config.getLocations();
  List<String> dirs = Lists.newArrayListWithExpectedSize(locs.size());
  for (StorageLocationConfig loc : locs) {
   dirs.add(loc.getPath().toString());
  }

  addDirectoriesToMonitor(dirs.toArray(new String[0]));
 }
}
origin: org.apache.druid/druid-server

@Inject
public SegmentLoaderLocalCacheManager(
  IndexIO indexIO,
  SegmentLoaderConfig config,
  @Json ObjectMapper mapper
)
{
 this.indexIO = indexIO;
 this.config = config;
 this.jsonMapper = mapper;
 this.locations = Lists.newArrayList();
 for (StorageLocationConfig locationConfig : config.getLocations()) {
  locations.add(new StorageLocation(
    locationConfig.getPath(),
    locationConfig.getMaxSize(),
    locationConfig.getFreeSpacePercent()
  ));
 }
}
org.apache.druid.segment.loadingStorageLocationConfiggetPath

Popular methods of StorageLocationConfig

  • <init>
  • setPath
  • getFreeSpacePercent
  • getMaxSize
  • setMaxSize

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • String (java.lang)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JOptionPane (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now