/** * Returns the type of the configured binary store. * * @return the type of the configured binary store, never {@code null} */ public String getType() { return binaryStorage.getString(FieldName.TYPE, FieldValue.BINARY_STORAGE_TYPE_TRANSIENT); }
/** * Get the name of the thread pool that should be used for optimization work. * * @return the thread pool name; never null */ public String getThreadPoolName() { return optimization.getString(FieldName.THREAD_POOL, Default.OPTIMIZATION_POOL); }
/** * Get the name of the thread pool that should be used for sequencing work. * * @return the thread pool name; never null */ public String getThreadPoolName() { return sequencing.getString(FieldName.THREAD_POOL, Default.SEQUENCING_POOL); }
/** * Get the time that the first garbage collection process should be run. * * @return the initial time; never null */ public String getInitialTimeExpression() { return gc.getString(FieldName.INITIAL_TIME, Default.GARBAGE_COLLECTION_INITIAL_TIME); }
/** * The location of the journal * * @return a {@code non-null} String */ public String location() { return this.journalingDoc.getString(FieldName.JOURNAL_LOCATION, Default.JOURNAL_LOCATION); }
/** * Get the time that the first garbage collection process should be run. * * @return the initial time; never null */ public String getInitialTimeExpression() { return gc.getString(FieldName.INITIAL_TIME, Default.GARBAGE_COLLECTION_INITIAL_TIME); }
/** * Get the name of the thread pool that should be used for sequencing work. * * @return the thread pool name; never null */ public String getThreadPoolName() { return sequencing.getString(FieldName.THREAD_POOL, Default.SEQUENCING_POOL); }
/** * The location of the journal * * @return a {@code non-null} String */ public String location() { return this.journalingDoc.getString(FieldName.JOURNAL_LOCATION, Default.JOURNAL_LOCATION); }
/** * Returns the type of the configured binary store. * * @return the type of the configured binary store, never {@code null} */ public String getType() { return binaryStorage.getString(FieldName.TYPE, FieldValue.BINARY_STORAGE_TYPE_TRANSIENT); }
/** * Get the name of the thread pool that should be used for garbage collection work. * * @return the thread pool name; never null */ public String getThreadPoolName() { return gc.getString(FieldName.THREAD_POOL, Default.GARBAGE_COLLECTION_POOL); }
/** * Get the time that the first optimization process should be run. * * @return the initial time; never null */ public String getInitialTimeExpression() { return optimization.getString(FieldName.INITIAL_TIME, Default.OPTIMIZATION_INITIAL_TIME); }
/** * Get the time that the first GC process should be run. * * @return the initial time; never null */ public String getInitialTimeExpression() { return journalingDoc.getString(FieldName.INITIAL_TIME, Default.GARBAGE_COLLECTION_INITIAL_TIME); }
/** * Get the name of the JAAS policy. * * @return the policy name; never null and '{@value Default#JAAS_POLICY_NAME}' by default. */ public String getPolicyName() { String policy = jaas.getString(FieldName.JAAS_POLICY_NAME, Default.JAAS_POLICY_NAME); return policy != null && policy.trim().length() == 0 ? null : policy; } }
/** * Get the name of the JAAS policy. * * @return the policy name; never null and '{@value Default#JAAS_POLICY_NAME}' by default. */ public String getPolicyName() { String policy = jaas.getString(FieldName.JAAS_POLICY_NAME, Default.JAAS_POLICY_NAME); return policy != null && policy.trim().length() == 0 ? null : policy; } }
@Override public WorkspaceMatchRule getWorkspaceMatchRule() { String rule = doc.getString(FieldName.WORKSPACES, Default.WORKSPACES); return RepositoryIndexDefinition.workspaceMatchRule(rule); }
/** * Get the name of the workspace that should be used for sessions where the client does not specify the name of the workspace. * * @return the default workspace name; never null */ public String getDefaultWorkspaceName() { Document workspaces = doc.getDocument(FieldName.WORKSPACES); if (workspaces != null) { return workspaces.getString(FieldName.DEFAULT, Default.DEFAULT); } return Default.DEFAULT; }
/** * Gets the way reindexing should be performed. * * @return a {@link ReindexingMode} instance, never {@code null} */ public ReindexingMode mode() { String defaultMode = ReindexingMode.IF_MISSING.name(); String reindexingMode = reindexing == null ? defaultMode : reindexing.getString(FieldName.REINDEXING_MODE, defaultMode); return ReindexingMode.valueOf(reindexingMode.toUpperCase()); } }
public ChildReferencesInfo getChildReferencesInfo( Document document ) { // Now look at the 'childrenInfo' document for info about the next block ... Document childrenInfo = document.getDocument(CHILDREN_INFO); if (childrenInfo != null) { long totalSize = childrenInfo.getLong(COUNT, 0L); long blockSize = childrenInfo.getLong(BLOCK_SIZE, 0L); String nextBlockKey = childrenInfo.getString(NEXT_BLOCK); String lastBlockKey = childrenInfo.getString(LAST_BLOCK, nextBlockKey); return new ChildReferencesInfo(totalSize, blockSize, nextBlockKey, lastBlockKey); } return null; }
private static Document ensureNamed( Document document, String documentName ) { String name = document.getString(FieldName.NAME); if (isEmpty(name) && documentName != null && documentName.trim().length() != 0) { EditableDocument doc = Schematic.newDocument(document); doc.setString(FieldName.NAME, documentName); document = doc; } return document; }
public ChildReferencesInfo getChildReferencesInfo( Document document ) { // Now look at the 'childrenInfo' document for info about the next block ... Document childrenInfo = document.getDocument(CHILDREN_INFO); if (childrenInfo != null) { long totalSize = childrenInfo.getLong(COUNT, 0L); long blockSize = childrenInfo.getLong(BLOCK_SIZE, 0L); String nextBlockKey = childrenInfo.getString(NEXT_BLOCK); String lastBlockKey = childrenInfo.getString(LAST_BLOCK, nextBlockKey); return new ChildReferencesInfo(totalSize, blockSize, nextBlockKey, lastBlockKey); } return null; }