public abstract class AbstractClient<T> extends Object implements IBigdataClient<T>
IBigdataClient implementations.IBigdataClient.Options| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClient(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Extended to
IBigdataClient.disconnect(boolean) if the client is
still connected when it is finalized. |
boolean |
getBatchApiOnly()
When
true requests for non-batch API operations will throw
exceptions. |
int |
getDefaultRangeQueryCapacity()
The default capacity when a client issues a range query request.
|
IFederationDelegate<T> |
getDelegate()
The delegate for the federation.
|
int |
getIndexCacheCapacity()
The capacity of the client's
IIndex proxy cache. |
long |
getIndexCacheTimeout()
The timeout in milliseconds for stale entries in the client's
IIndex proxy cache. |
int |
getLocatorCacheCapacity() |
long |
getLocatorCacheTimeout() |
int |
getMaxParallelTasksPerRequest()
The maximum #of tasks that may be submitted in parallel for a single user
request.
|
int |
getMaxStaleLocatorRetries()
The maximum #of retries when an operation results in a
StaleLocatorException. |
Properties |
getProperties()
An object wrapping the properties used to configure the client.
|
long |
getTaskTimeout()
The timeout in milliseconds for a task submitted to an
IDataService. |
int |
getThreadPoolSize()
The configured #of threads in the client's thread pool.
|
boolean |
isReadConsistent() |
void |
setDelegate(IFederationDelegate<T> delegate)
Set the delegate for the federation.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, getFederation, isConnectedprotected AbstractClient(Properties properties)
properties - See IBigdataClient.Optionspublic Properties getProperties()
IBigdataClientgetProperties in interface IBigdataClient<T>public int getThreadPoolSize()
IBigdataClientgetThreadPoolSize in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_THREAD_POOL_SIZEpublic int getDefaultRangeQueryCapacity()
IBigdataClientgetDefaultRangeQueryCapacity in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_RANGE_QUERY_CAPACITYpublic boolean getBatchApiOnly()
IBigdataClienttrue requests for non-batch API operations will throw
exceptions.getBatchApiOnly in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_BATCH_API_ONLYpublic int getMaxStaleLocatorRetries()
IBigdataClientStaleLocatorException.getMaxStaleLocatorRetries in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_MAX_STALE_LOCATOR_RETRIESpublic int getMaxParallelTasksPerRequest()
IBigdataClientgetMaxParallelTasksPerRequest in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_MAX_PARALLEL_TASKS_PER_REQUESTpublic boolean isReadConsistent()
isReadConsistent in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_READ_CONSISTENTpublic long getTaskTimeout()
IBigdataClientIDataService.getTaskTimeout in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_TASK_TIMEOUTpublic int getLocatorCacheCapacity()
public long getLocatorCacheTimeout()
public int getIndexCacheCapacity()
IBigdataClientIIndex proxy cache.getIndexCacheCapacity in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_INDEX_CACHE_CAPACITYpublic long getIndexCacheTimeout()
IBigdataClientIIndex proxy cache.getIndexCacheTimeout in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_INDEX_CACHE_TIMEOUTpublic final IFederationDelegate<T> getDelegate()
public final void setDelegate(IFederationDelegate<T> delegate)
delegate - The delegate.IllegalArgumentException - if the argument is null.IllegalStateException - if the property has already been set to a different value.IllegalStateException - if the client is already connected.protected void finalize()
throws Throwable
IBigdataClient.disconnect(boolean) if the client is
still connected when it is finalized.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.