public class ClusterService extends Object
The service saves the content in XML format. The size of an XML representation of a Imixs document is only slightly different in size from the serialized map object. This is the reason why we do not store the document map in a serialized object format.
The ClusterService creates a Core-KeySpace automatically which is used for the internal management.
| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_ARCHIVE_CLUSTER_CONTACTPOINTS |
static String |
ENV_ARCHIVE_CLUSTER_KEYSPACE |
static String |
ENV_ARCHIVE_CLUSTER_REPLICATION_CLASS |
static String |
ENV_ARCHIVE_CLUSTER_REPLICATION_FACTOR |
static String |
ENV_WORKFLOW_SERVICE_AUTHMETHOD |
static String |
ENV_WORKFLOW_SERVICE_ENDPOINT |
static String |
ENV_WORKFLOW_SERVICE_PASSWORD |
static String |
ENV_WORKFLOW_SERVICE_USER |
static String |
KEYSPACE_REGEX |
static String |
TABLE_SCHEMA_DOCUMENTS |
static String |
TABLE_SCHEMA_DOCUMENTS_DATA |
static String |
TABLE_SCHEMA_SNAPSHOTS |
static String |
TABLE_SCHEMA_SNAPSHOTS_BY_DOCUMENT |
static String |
TABLE_SCHEMA_SNAPSHOTS_BY_MODIFIED |
static String |
TABLE_SCHEMA_SNAPSHOTS_BY_UNIQUEID |
| Constructor and Description |
|---|
ClusterService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createArchiveTableSchema(com.datastax.driver.core.Session session)
This helper method creates the ImixsArchive document table schema if not yet
exists
|
protected com.datastax.driver.core.Session |
createKeySpace(String keySpace)
This method creates a cassandra keySpace.
|
com.datastax.driver.core.Session |
getSession() |
protected com.datastax.driver.core.Cluster |
initCluster()
This method creates a Cassandra Cluster object.
|
boolean |
isValidKeyspaceName(String keySpace)
Test if the keyspace name is valid.
|
public static final String KEYSPACE_REGEX
public static final String ENV_ARCHIVE_CLUSTER_CONTACTPOINTS
public static final String ENV_ARCHIVE_CLUSTER_KEYSPACE
public static final String ENV_ARCHIVE_CLUSTER_REPLICATION_FACTOR
public static final String ENV_ARCHIVE_CLUSTER_REPLICATION_CLASS
public static final String ENV_WORKFLOW_SERVICE_ENDPOINT
public static final String ENV_WORKFLOW_SERVICE_USER
public static final String ENV_WORKFLOW_SERVICE_PASSWORD
public static final String ENV_WORKFLOW_SERVICE_AUTHMETHOD
public static final String TABLE_SCHEMA_SNAPSHOTS
public static final String TABLE_SCHEMA_SNAPSHOTS_BY_UNIQUEID
public static final String TABLE_SCHEMA_SNAPSHOTS_BY_MODIFIED
public static final String TABLE_SCHEMA_DOCUMENTS
public static final String TABLE_SCHEMA_SNAPSHOTS_BY_DOCUMENT
public static final String TABLE_SCHEMA_DOCUMENTS_DATA
public com.datastax.driver.core.Session getSession()
protected com.datastax.driver.core.Cluster initCluster()
throws ArchiveException
ArchiveExceptionpublic boolean isValidKeyspaceName(String keySpace)
keySpace - protected com.datastax.driver.core.Session createKeySpace(String keySpace) throws ArchiveException
Depending on the KeyspaceType, the method creates the core table schema to store configurations, or the extended Archive table schcema which is used to store imixs documents.
cluster - ArchiveExceptionprotected void createArchiveTableSchema(com.datastax.driver.core.Session session)
Copyright © 2016–2020 Imixs Software Solutions GmbH. All rights reserved.