public class StorageClientFactory extends VitamClientFactory<StorageClient>
StorageClient factory
Use to get a storage client in function of its type. Example :
{ @code // Retrieve default storage client StorageClient client = StorageClientFactory.getInstance().getStorageClient(); // Exists client.exists(tenantId, strategyId); }You can change the type of the client to get. The types are define into the enum
StorageClientType
. Use the changeDefaultClientType method to
change the client type.VitamClientFactoryInterface.VitamClientType
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_PATH
Default path
|
clientConfiguration
Modifier and Type | Method and Description |
---|---|
static void |
changeMode(ClientConfiguration configuration) |
StorageClient |
getClient()
Get the default storage client
|
static StorageClientFactory |
getInstance()
Get the StorageClientFactory instance
|
changeResourcePath, changeServerPort, disableUseAuthorizationFilter, enableUseAuthorizationFilter, getClientConfiguration, getDefaultConfigCient, getDefaultConfigCient, getHttpClient, getHttpClient, getResourcePath, getServiceUrl, getVitamClientType, getVitamThreadPoolExecutor, initialisation, isAllowGzipDecoded, isAllowGzipEncoded, resume, setGzipdecoded, setGzipEncoded, setVitamClientType, shutdown, toString
public static final String RESOURCE_PATH
public static StorageClientFactory getInstance()
public StorageClient getClient()
public static final void changeMode(ClientConfiguration configuration)
Copyright © 2018 Vitam. All rights reserved.