private String getFirstMountPoint() throws SigarException { @SuppressWarnings("unchecked") final Set<Map.Entry<String, FileSystem>> entries = (Set<Map.Entry<String, FileSystem>>) sigar.getFileSystemMap().entrySet(); for (Map.Entry<String, FileSystem> e : entries) { if (e.getValue().getType() == FileSystem.TYPE_LOCAL_DISK) { return e.getKey(); } } throw new IllegalStateException("No mount point found"); }
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(path);
final Set<Map.Entry<String, FileSystem>> entries = (Set<Map.Entry<String, FileSystem>>) sigar.getFileSystemMap().entrySet(); for (Map.Entry<String, FileSystem> e : entries) { final FileSystem fs = e.getValue();
public FileSystemMap getFileSystemMap() throws SigarException {return _sigar.getFileSystemMap();}
private SigarLibrary() { logger.info("Initializing SIGAR library"); try { sigar = new Sigar(); mounts = sigar.getFileSystemMap(); initialized = true; } catch (SigarException e) { logger.info("Could not initialize SIGAR library {} ", e.getMessage()); } catch (UnsatisfiedLinkError linkError) { logger.info("Could not initialize SIGAR library {} ", linkError.getMessage()); } }
private SigarLibrary() { logger.info("Initializing SIGAR library"); try { sigar = new Sigar(); mounts = sigar.getFileSystemMap(); initialized = true; } catch (SigarException e) { logger.info("Could not initialize SIGAR library {} ", e.getMessage()); } catch (UnsatisfiedLinkError linkError) { logger.info("Could not initialize SIGAR library {} ", linkError.getMessage()); } }
private SigarLibrary() { logger.info("Initializing SIGAR library"); try { sigar = new Sigar(); mounts = sigar.getFileSystemMap(); initialized = true; } catch (SigarException e) { logger.info("Could not initialize SIGAR library {} ", e.getMessage()); } catch (UnsatisfiedLinkError linkError) { logger.info("Could not initialize SIGAR library {} ", linkError.getMessage()); } }
private SigarLibrary() { logger.info("Initializing SIGAR library"); try { sigar = new Sigar(); mounts = sigar.getFileSystemMap(); initialized = true; } catch (SigarException e) { logger.info("Could not initialize SIGAR library {} ", e.getMessage()); } catch (UnsatisfiedLinkError linkError) { logger.info("Could not initialize SIGAR library {} ", linkError.getMessage()); } }
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(location.getPath());
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(location.getPath());
final Set<Map.Entry<String, FileSystem>> entries = (Set<Map.Entry<String, FileSystem>>) sigar.getFileSystemMap().entrySet(); for (Map.Entry<String, FileSystem> e : entries) { final FileSystem fs = e.getValue();