Added @ThreadSafe.
This commit is contained in:
@@ -5,24 +5,29 @@ import java.io.File;
|
|||||||
/**
|
/**
|
||||||
* Information about a file system. This is a snapshot view and does not change.
|
* Information about a file system. This is a snapshot view and does not change.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public interface FileSystem {
|
public interface FileSystem {
|
||||||
/**
|
/**
|
||||||
* Returns the root directory of this file system.
|
* Returns the root directory of this file system.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
File getMountPoint();
|
File getMountPoint();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the operating system specific name for the type of this file system.
|
* Returns the operating system specific name for the type of this file system.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
String getFileSystemType();
|
String getFileSystemType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this file system is a remote file system, or false if local.
|
* Returns true if this file system is a remote file system, or false if local.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
boolean isRemote();
|
boolean isRemote();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the operating system specific name for this file system.
|
* Returns the operating system specific name for this file system.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
String getDeviceName();
|
String getDeviceName();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,13 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Provides access to the file systems of the current machine.
|
* Provides access to the file systems of the current machine.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public interface FileSystems extends NativeIntegration {
|
public interface FileSystems extends NativeIntegration {
|
||||||
/**
|
/**
|
||||||
* Returns the set of all file systems for the current machine.
|
* Returns the set of all file systems for the current machine.
|
||||||
*
|
*
|
||||||
* @throws NativeException On failure.
|
* @throws NativeException On failure.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
List<FileSystem> getFileSystems() throws NativeException;
|
List<FileSystem> getFileSystems() throws NativeException;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,14 @@ import java.io.File;
|
|||||||
/**
|
/**
|
||||||
* Functions to query and modify a file's POSIX meta-data.
|
* Functions to query and modify a file's POSIX meta-data.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public interface PosixFile extends NativeIntegration {
|
public interface PosixFile extends NativeIntegration {
|
||||||
/**
|
/**
|
||||||
* Sets the mode for the given file.
|
* Sets the mode for the given file.
|
||||||
*
|
*
|
||||||
* @throws NativeException On failure.
|
* @throws NativeException On failure.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
void setMode(File path, int perms) throws NativeException;
|
void setMode(File path, int perms) throws NativeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -18,6 +20,7 @@ public interface PosixFile extends NativeIntegration {
|
|||||||
*
|
*
|
||||||
* @throws NativeException On failure.
|
* @throws NativeException On failure.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
int getMode(File path) throws NativeException;
|
int getMode(File path) throws NativeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,6 +28,7 @@ public interface PosixFile extends NativeIntegration {
|
|||||||
*
|
*
|
||||||
* @throws NativeException On failure.
|
* @throws NativeException On failure.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
void symlink(File link, String contents) throws NativeException;
|
void symlink(File link, String contents) throws NativeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,5 +36,6 @@ public interface PosixFile extends NativeIntegration {
|
|||||||
*
|
*
|
||||||
* @throws NativeException On failure.
|
* @throws NativeException On failure.
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
String readLink(File link) throws NativeException;
|
String readLink(File link) throws NativeException;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user