Package org.elasticsearch.test
Class PosixPermissionsResetter
java.lang.Object
org.elasticsearch.test.PosixPermissionsResetter
- All Implemented Interfaces:
AutoCloseable
Stores the posix attributes for a path and resets them on close.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetPermissions(Set<PosixFilePermission> newPermissions)
-
Constructor Details
-
PosixPermissionsResetter
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
setPermissions
- Throws:
IOException
-
getCopyPermissions
-