@Test public void getRootIdentifiers() throws Exception { String[] ids = {"a", "b"}; String[] dataRootPaths = new String[ids.length]; DataDirsConfigImpl dataRootConfig = configureDataRoot(ids, dataRootPaths); Set<String> expectedIds = new HashSet<>(); Collections.addAll(expectedIds, ids); assertEquals(expectedIds, dataRootConfig.getRootIdentifiers()); }
Set<String> getRootIdentifiers() { return Collections.unmodifiableSet(dataRootMap.keySet()); }
DataDirsConfigImpl implements DataDirsConfig, ManageableServerComponent, StateDumpable { Set<String> getRootIdentifiers() { return Collections.unmodifiableSet(dataRootMap.keySet()); } }
DataDirsConfigImpl implements DataDirsConfig, ManageableServerComponent, StateDumpable { Set<String> getRootIdentifiers() { return Collections.unmodifiableSet(dataRootMap.keySet()); } DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, Path metadataDir, Map<String, Path> dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories, boolean skipIO); }
DataDirsConfigImpl implements DataDirsConfig, ManageableServerComponent, StateDumpable { Set<String> getRootIdentifiers() { return Collections.unmodifiableSet(dataRootMap.keySet()); } DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, Path metadataDir, Map<String, Path> dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories, boolean skipIO); @Override DataDirs getDataDirectoriesForServer(PlatformConfiguration platformConfiguration); @Override void addDataDirectory(String name, String path); void addDataDirectory(String name, String path, boolean skipIO); @Override void validateDataDirectory(String name, String path); void validateDataDirectory(String name, String path, boolean skipIO); @Override void onManagementRegistryCreated(EntityManagementRegistry registry); @Override void onManagementRegistryClose(EntityManagementRegistry registry); @Override void addStateTo(StateDumpCollector dump); @Override void close(); long getDiskUsageByRootIdentifier(String identifier); }
DataDirsConfigImpl implements DataDirsConfig, ManageableServerComponent, StateDumpable { Set<String> getRootIdentifiers() { return Collections.unmodifiableSet(dataRootMap.keySet()); } DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, Path metadataDir, Map<String, Path> dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories);  DataDirsConfigImpl(IParameterSubstitutor parameterSubstitutor, PathResolver pathResolver, org.terracotta.data.config.DataDirectories dataDirectories, boolean skipIO); @Override DataDirs getDataDirectoriesForServer(PlatformConfiguration platformConfiguration); @Override void addDataDirectory(String name, String path); void addDataDirectory(String name, String path, boolean skipIO); @Override void validateDataDirectory(String name, String path); void validateDataDirectory(String name, String path, boolean skipIO); @Override void onManagementRegistryCreated(EntityManagementRegistry registry); @Override void onManagementRegistryClose(EntityManagementRegistry registry); @Override void addStateTo(StateDumpCollector dump); @Override void close(); long getDiskUsageByRootIdentifier(String identifier);  }