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, wait
connect, disconnect, getFederation, isConnected
protected AbstractClient(Properties properties)
properties
- See IBigdataClient.Options
public Properties getProperties()
IBigdataClient
getProperties
in interface IBigdataClient<T>
public int getThreadPoolSize()
IBigdataClient
getThreadPoolSize
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_THREAD_POOL_SIZE
public int getDefaultRangeQueryCapacity()
IBigdataClient
getDefaultRangeQueryCapacity
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_RANGE_QUERY_CAPACITY
public boolean getBatchApiOnly()
IBigdataClient
true
requests for non-batch API operations will throw
exceptions.getBatchApiOnly
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_BATCH_API_ONLY
public int getMaxStaleLocatorRetries()
IBigdataClient
StaleLocatorException
.getMaxStaleLocatorRetries
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_MAX_STALE_LOCATOR_RETRIES
public int getMaxParallelTasksPerRequest()
IBigdataClient
getMaxParallelTasksPerRequest
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_MAX_PARALLEL_TASKS_PER_REQUEST
public boolean isReadConsistent()
isReadConsistent
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_READ_CONSISTENT
public long getTaskTimeout()
IBigdataClient
IDataService
.getTaskTimeout
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_TASK_TIMEOUT
public int getLocatorCacheCapacity()
public long getLocatorCacheTimeout()
public int getIndexCacheCapacity()
IBigdataClient
IIndex
proxy cache.getIndexCacheCapacity
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_INDEX_CACHE_CAPACITY
public long getIndexCacheTimeout()
IBigdataClient
IIndex
proxy cache.getIndexCacheTimeout
in interface IBigdataClient<T>
IBigdataClient.Options.CLIENT_INDEX_CACHE_TIMEOUT
public 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.