Class SocketAccess
java.lang.Object
org.opensearch.repositories.azure.SocketAccess
This plugin uses azure libraries to connect to azure storage services. For these remote calls the plugin needs
SocketPermission 'connect' to establish connections. This class wraps the operations requiring access in
AccessController.doPrivileged(PrivilegedAction) blocks.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TdoPrivilegedException(PrivilegedExceptionAction<T> operation) static <T> TdoPrivilegedIOException(PrivilegedExceptionAction<T> operation) static void
-
Method Details
-
doPrivilegedIOException
public static <T> T doPrivilegedIOException(PrivilegedExceptionAction<T> operation) throws IOException - Throws:
IOException
-
doPrivilegedException
public static <T> T doPrivilegedException(PrivilegedExceptionAction<T> operation) throws com.azure.storage.blob.models.BlobStorageException - Throws:
com.azure.storage.blob.models.BlobStorageException
-
doPrivilegedVoidException
public static void doPrivilegedVoidException(SocketAccess.StorageRunnable action) throws com.azure.storage.blob.models.BlobStorageException, URISyntaxException - Throws:
com.azure.storage.blob.models.BlobStorageExceptionURISyntaxException
-