|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.AbstractClient<T>
public abstract class AbstractClient<T>
Abstract base class for IBigdataClient implementations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.bigdata.service.IBigdataClient |
|---|
IBigdataClient.Options |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
protected |
AbstractClient(Properties properties)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bigdata.service.IBigdataClient |
|---|
connect, disconnect, getFederation, isConnected |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
protected AbstractClient(Properties properties)
properties - See IBigdataClient.Options| Method Detail |
|---|
public Properties getProperties()
IBigdataClient
getProperties in interface IBigdataClient<T>public int getThreadPoolSize()
IBigdataClient
getThreadPoolSize in interface IBigdataClient<T>IBigdataClient.Options.CLIENT_THREAD_POOL_SIZEpublic int getDefaultRangeQueryCapacity()
IBigdataClient
getDefaultRangeQueryCapacity 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()
IBigdataClient
getMaxParallelTasksPerRequest 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.
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||