MCPcopy
hub / github.com/oshi/oshi / FileSystem

Interface FileSystem

oshi-core/src/main/java/oshi/software/os/FileSystem.java:35–93  ·  view source on GitHub ↗

The File System is a logical arrangement, usually in a hierarchial tree, where files are placed for storage and retrieval. It may consist of one or more file stores.

Source from the content-addressed store, hash-verified

33 * more file stores.
34 */
35@ThreadSafe
36public interface FileSystem {
37
38 /**
39 * Get file stores on this machine
40 *
41 * Instantiates a list of {@link oshi.software.os.OSFileStore} objects,
42 * representing a storage pool, device, partition, volume, concrete file system
43 * or other implementation specific means of file storage.
44 *
45 * @return A list of {@link oshi.software.os.OSFileStore} objects or an empty
46 * array if none are present.
47 */
48 List<OSFileStore> getFileStores();
49
50 /**
51 * Get file stores on this machine
52 *
53 * Instantiates a list of {@link oshi.software.os.OSFileStore} objects,
54 * representing a storage pool, device, partition, volume, concrete file system
55 * or other implementation specific means of file storage.
56 *
57 * @param localOnly
58 * If true, filters the list to only local file stores.
59 *
60 * @return A list of {@link oshi.software.os.OSFileStore} objects or an empty
61 * array if none are present.
62 */
63 List<OSFileStore> getFileStores(boolean localOnly);
64
65 /**
66 * The current number of open file descriptors. A file descriptor is an abstract
67 * handle used to access I/O resources such as files and network connections. On
68 * UNIX-based systems there is a system-wide limit on the number of open file
69 * descriptors.
70 *
71 * On Windows systems, this method returns the total number of handles held by
72 * Processes. While Windows handles are conceptually similar to file
73 * descriptors, they may also refer to a number of non-I/O related objects.
74 *
75 * @return The number of open file descriptors if available, 0 otherwise.
76 */
77 long getOpenFileDescriptors();
78
79 /**
80 * The maximum number of open file descriptors. A file descriptor is an abstract
81 * handle used to access I/O resources such as files and network connections. On
82 * UNIX-based systems there is a system-wide limit on the number of open file
83 * descriptors.
84 *
85 * On Windows systems, this method returns the theoretical max number of handles
86 * (2^24-2^15 on 32-bit, 2^24-2^16 on 64-bit). There may be a lower per-process
87 * limit. While Windows handles are conceptually similar to file descriptors,
88 * they may also refer to a number of non-I/O related objects.
89 *
90 * @return The maximum number of file descriptors if available, 0 otherwise.
91 */
92 long getMaxFileDescriptors();

Callers 10

testFileSystemMethod · 0.95
mainMethod · 0.65
initMethod · 0.65
updateDatasetsMethod · 0.65
printFileSystemMethod · 0.65
updateAttributesMethod · 0.65
testFileSystemMethod · 0.95
printFileSystemMethod · 0.65
testFileSystemMethod · 0.95
printFileSystemMethod · 0.65

Implementers 8

AbstractFileSystemoshi-core/src/main/java/oshi/software/
FreeBsdFileSystemoshi-core/src/main/java/oshi/software/
SolarisFileSystemoshi-core/src/main/java/oshi/software/
OpenBsdFileSystemoshi-core/src/main/java/oshi/software/
AixFileSystemoshi-core/src/main/java/oshi/software/
WindowsFileSystemoshi-core/src/main/java/oshi/software/
LinuxFileSystemoshi-core/src/main/java/oshi/software/
MacFileSystemoshi-core/src/main/java/oshi/software/

Calls

no outgoing calls

Tested by

no test coverage detected