public final class SmartClientFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECTION_MANAGER_PROPERTY_KEY |
static java.lang.String |
DISABLE_APACHE_RETRY |
static java.lang.String |
IDLE_CONNECTION_MONITOR_PROPERTY_KEY |
static java.lang.String |
MAX_CONNECTIONS |
static int |
MAX_CONNECTIONS_DEFAULT |
static java.lang.String |
MAX_CONNECTIONS_PER_HOST |
static int |
MAX_CONNECTIONS_PER_HOST_DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
static com.sun.jersey.api.client.Client |
createSmartClient(com.emc.rest.smart.SmartConfig smartConfig) |
static com.sun.jersey.api.client.Client |
createSmartClient(com.emc.rest.smart.SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler) |
static com.sun.jersey.api.client.Client |
createStandardClient(com.emc.rest.smart.SmartConfig smartConfig)
This creates a standard apache-based Jersey client, configured with a SmartConfig, but without any load balancing
or node polling.
|
static com.sun.jersey.api.client.Client |
createStandardClient(com.emc.rest.smart.SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler)
This creates a standard apache-based Jersey client, configured with a SmartConfig, but without any load balancing
or node polling.
|
static void |
destroy(com.sun.jersey.api.client.Client client)
Destroy this client.
|
public static final java.lang.String DISABLE_APACHE_RETRY
public static final java.lang.String MAX_CONNECTIONS
public static final java.lang.String MAX_CONNECTIONS_PER_HOST
public static final int MAX_CONNECTIONS_DEFAULT
public static final int MAX_CONNECTIONS_PER_HOST_DEFAULT
public static final java.lang.String IDLE_CONNECTION_MONITOR_PROPERTY_KEY
public static final java.lang.String CONNECTION_MANAGER_PROPERTY_KEY
public static com.sun.jersey.api.client.Client createSmartClient(com.emc.rest.smart.SmartConfig smartConfig)
public static com.sun.jersey.api.client.Client createSmartClient(com.emc.rest.smart.SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler)
public static com.sun.jersey.api.client.Client createStandardClient(com.emc.rest.smart.SmartConfig smartConfig)
public static com.sun.jersey.api.client.Client createStandardClient(com.emc.rest.smart.SmartConfig smartConfig,
com.sun.jersey.api.client.ClientHandler clientHandler)
public static void destroy(com.sun.jersey.api.client.Client client)
This method must be called when there are not responses pending otherwise undefined behavior will occur.
The client must not be reused after this method is called otherwise undefined behavior will occur.