public class EmbeddedClient<T> extends AbstractScaleOutClient<T>
EmbeddedFederation
Modifier and Type | Class and Description |
---|---|
static interface |
EmbeddedClient.Options
Options for the embedded (in process) federation.
|
AbstractScaleOutClient.MetadataIndexCachePolicy
log
Constructor and Description |
---|
EmbeddedClient(Properties properties) |
Modifier and Type | Method and Description |
---|---|
EmbeddedFederation<T> |
connect()
Connect to a bigdata federation.
|
void |
disconnect(boolean immediateShutdown)
Disconnect from the bigdata federation.
|
IBigdataFederation<T> |
getFederation()
Return the connected federation,
|
boolean |
isConnected()
Return
true iff the client is connected to a federation. |
finalize, getBatchApiOnly, getDefaultRangeQueryCapacity, getDelegate, getIndexCacheCapacity, getIndexCacheTimeout, getLocatorCacheCapacity, getLocatorCacheTimeout, getMaxParallelTasksPerRequest, getMaxStaleLocatorRetries, getProperties, getTaskTimeout, getThreadPoolSize, isReadConsistent, setDelegate
public EmbeddedClient(Properties properties)
properties
- See EmbeddedFederation.Options
.public boolean isConnected()
IBigdataClient
true
iff the client is connected to a federation.public void disconnect(boolean immediateShutdown)
IBigdataClient
Normal shutdown allows any existing client requests to federation services to complete but does not schedule new requests, and then terminates any background processing that is being performed on the behalf of the client (service discovery, etc).
Immediate shutdown terminates any client requests to federation services, and then terminate any background processing that is being performed on the behalf of the client (service discovery, etc).
Note: Immediate shutdown can cause odd exceptions to be logged. Normal shutdown is recommended unless there is a reason to force immediate shutdown.
immediateShutdown
- When true
an immediate shutdown will be
performed as described above. Otherwise a normal shutdown will
be performed.public IBigdataFederation<T> getFederation()
IBigdataClient
public EmbeddedFederation<T> connect()
IBigdataClient
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.