public class CouchBaseConnector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CouchBaseConnector.SUFFIX |
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNTING_MANAGER_BUCKET_NAME |
static long |
AUTO_RELEASE_AFTER |
protected com.couchbase.client.java.Cluster |
cluster |
protected AggregatorPersitenceConfiguration |
configuration |
static long |
CONNECTION_TIMEOUT |
static long |
CONNECTION_TIMEOUT_BUCKET |
protected Map<String,com.couchbase.client.java.Bucket> |
connectionMap |
protected static CouchBaseConnector |
couchBaseConnector |
protected static com.couchbase.client.java.env.CouchbaseEnvironment |
ENV |
static long |
KEEP_ALIVE_INTERVAL |
static long |
MAX_REQUEST_LIFE_TIME |
protected static com.couchbase.client.java.PersistTo |
PERSIST_TO |
protected Map<String,Class<? extends org.gcube.documentstore.records.Record>> |
recordTypeMap |
static long |
VIEW_TIMEOUT_BUCKET |
| Modifier | Constructor and Description |
|---|---|
protected |
CouchBaseConnector() |
| Modifier and Type | Method and Description |
|---|---|
static AggregationStatus |
getAggregationStatus(String recordType,
AggregationType aggregationType,
Date aggregationStartDate) |
com.couchbase.client.java.Bucket |
getBucket(String recordType,
AggregationType aggregationType,
CouchBaseConnector.SUFFIX suffix) |
Set<String> |
getConnectionMapKeys() |
static CouchBaseConnector |
getInstance() |
static AggregationStatus |
getLast(String recordType,
AggregationType aggregationType,
Date aggregationStartDate,
Date aggregationEndDate) |
Set<String> |
getRecordTypes() |
static List<AggregationStatus> |
getUnterminated(Date aggregationStartDate,
Date aggregationEndDate) |
static List<AggregationStatus> |
getUnterminated(String recordType,
AggregationType aggregationType,
Date aggregationStartDate,
Date aggregationEndDate) |
static void |
upsertAggregationStatus(AggregationStatus aggregationStatus) |
public static final long MAX_REQUEST_LIFE_TIME
public static final long KEEP_ALIVE_INTERVAL
public static final long AUTO_RELEASE_AFTER
public static final long VIEW_TIMEOUT_BUCKET
public static final long CONNECTION_TIMEOUT_BUCKET
public static final long CONNECTION_TIMEOUT
public static final String ACCOUNTING_MANAGER_BUCKET_NAME
protected static final com.couchbase.client.java.env.CouchbaseEnvironment ENV
protected static final com.couchbase.client.java.PersistTo PERSIST_TO
protected static CouchBaseConnector couchBaseConnector
protected AggregatorPersitenceConfiguration configuration
protected com.couchbase.client.java.Cluster cluster
public static CouchBaseConnector getInstance() throws Exception
Exceptionpublic com.couchbase.client.java.Bucket getBucket(String recordType, AggregationType aggregationType, CouchBaseConnector.SUFFIX suffix)
public static AggregationStatus getLast(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate) throws Exception
Exceptionpublic static List<AggregationStatus> getUnterminated(Date aggregationStartDate, Date aggregationEndDate) throws Exception
Exceptionpublic static List<AggregationStatus> getUnterminated(String recordType, AggregationType aggregationType, Date aggregationStartDate, Date aggregationEndDate) throws Exception
Exceptionpublic static AggregationStatus getAggregationStatus(String recordType, AggregationType aggregationType, Date aggregationStartDate) throws Exception
Exceptionpublic static void upsertAggregationStatus(AggregationStatus aggregationStatus) throws Exception
ExceptionCopyright © 2019. All Rights Reserved.