Module org.elasticsearch.xcore
Class SocketAccess
java.lang.Object
org.elasticsearch.xpack.core.common.socket.SocketAccess
X-pack uses various libraries that establish socket connections. For these remote calls the plugin requires
SocketPermission 'connect' to establish connections. This class wraps the operations requiring access in
AccessController.doPrivileged(PrivilegedAction) blocks.-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> RdoPrivileged(CheckedSupplier<R, IOException> supplier) static voiddoPrivileged(org.elasticsearch.core.CheckedRunnable<IOException> action)
-
Method Details
-
doPrivileged
- Throws:
IOException
-
doPrivileged
public static void doPrivileged(org.elasticsearch.core.CheckedRunnable<IOException> action) throws IOException - Throws:
IOException
-