private boolean needsBatchBuildStart(IndexerDefinition indexer) { return !indexer.getLifecycleState().isDeleteState() && indexer.getBatchIndexingState() == BatchIndexingState.BUILD_REQUESTED && indexer.getActiveBatchBuildInfo() == null; }
private boolean needsBatchBuildStart(IndexerDefinition indexer) { return !indexer.getLifecycleState().isDeleteState() && indexer.getBatchIndexingState() == BatchIndexingState.BUILD_REQUESTED && indexer.getActiveBatchBuildInfo() == null; }
ps.println(" + Lifecycle state: " + indexer.getLifecycleState()); ps.println(" + Incremental indexing state: " + indexer.getIncrementalIndexingState()); ps.println(" + Batch indexing state: " + indexer.getBatchIndexingState()); ps.println(" + SEP subscription ID: " + indexer.getSubscriptionId()); ps.println(" + SEP subscription timestamp: " + new DateTime(indexer.getSubscriptionTimestamp()));
ps.println(" + Lifecycle state: " + indexer.getLifecycleState()); ps.println(" + Incremental indexing state: " + indexer.getIncrementalIndexingState()); ps.println(" + Batch indexing state: " + indexer.getBatchIndexingState()); ps.println(" + SEP subscription ID: " + indexer.getSubscriptionId()); ps.println(" + SEP subscription timestamp: " + new DateTime(indexer.getSubscriptionTimestamp()));
if (indexer.getBatchIndexingState() == BatchIndexingState.BUILD_REQUESTED && currentIndexer.getBatchIndexingState() != BatchIndexingState.INACTIVE && currentIndexer.getBatchIndexingState() != BatchIndexingState.BUILD_REQUESTED) { throw new IndexerUpdateException("Cannot move batch indexing state from " + currentIndexer.getBatchIndexingState() + " to " + indexer.getBatchIndexingState());
if (indexer.getBatchIndexingState() == BatchIndexingState.BUILD_REQUESTED && currentIndexer.getBatchIndexingState() != BatchIndexingState.INACTIVE && currentIndexer.getBatchIndexingState() != BatchIndexingState.BUILD_REQUESTED) { throw new IndexerUpdateException("Cannot move batch indexing state from " + currentIndexer.getBatchIndexingState() + " to " + indexer.getBatchIndexingState());
throw new IndexerValidityException("General state should not be null."); if (indexer.getBatchIndexingState() == null) throw new IndexerValidityException("Build state should not be null."); if (indexer.getBatchIndexCliArguments() != null && indexer.getBatchIndexingState() != BatchIndexingState.BUILD_REQUESTED) { throw new IndexerValidityException("The build state must be set to BUILD_REQUESTED when setting batchIndexCliArguments");
throw new IndexerValidityException("General state should not be null."); if (indexer.getBatchIndexingState() == null) throw new IndexerValidityException("Build state should not be null."); if (indexer.getBatchIndexCliArguments() != null && indexer.getBatchIndexingState() != BatchIndexingState.BUILD_REQUESTED) { throw new IndexerValidityException("The build state must be set to BUILD_REQUESTED when setting batchIndexCliArguments");
public IndexerDefinitionBuilder startFrom(IndexerDefinition existingDefinition) { this.name = existingDefinition.getName(); this.lifecycleState = existingDefinition.getLifecycleState(); this.batchIndexingState = existingDefinition.getBatchIndexingState(); this.incrementalIndexingState = existingDefinition.getIncrementalIndexingState(); this.subscriptionId = existingDefinition.getSubscriptionId(); this.configuration = existingDefinition.getConfiguration(); this.indexerComponentFactory = existingDefinition.getIndexerComponentFactory(); this.connectionType = existingDefinition.getConnectionType(); this.connectionParams = existingDefinition.getConnectionParams(); this.defaultBatchIndexCliArguments = existingDefinition.getDefaultBatchIndexCliArguments(); this.batchIndexCliArguments = existingDefinition.getBatchIndexCliArguments(); this.lastBatchBuildInfo = existingDefinition.getLastBatchBuildInfo(); this.activeBatchBuildInfo = existingDefinition.getActiveBatchBuildInfo(); this.subscriptionTimestamp = existingDefinition.getSubscriptionTimestamp(); this.occVersion = existingDefinition.getOccVersion(); return this; }
public IndexerDefinitionBuilder startFrom(IndexerDefinition existingDefinition) { this.name = existingDefinition.getName(); this.lifecycleState = existingDefinition.getLifecycleState(); this.batchIndexingState = existingDefinition.getBatchIndexingState(); this.incrementalIndexingState = existingDefinition.getIncrementalIndexingState(); this.subscriptionId = existingDefinition.getSubscriptionId(); this.configuration = existingDefinition.getConfiguration(); this.indexerComponentFactory = existingDefinition.getIndexerComponentFactory(); this.connectionType = existingDefinition.getConnectionType(); this.connectionParams = existingDefinition.getConnectionParams(); this.defaultBatchIndexCliArguments = existingDefinition.getDefaultBatchIndexCliArguments(); this.batchIndexCliArguments = existingDefinition.getBatchIndexCliArguments(); this.lastBatchBuildInfo = existingDefinition.getLastBatchBuildInfo(); this.activeBatchBuildInfo = existingDefinition.getActiveBatchBuildInfo(); this.subscriptionTimestamp = existingDefinition.getSubscriptionTimestamp(); this.occVersion = existingDefinition.getOccVersion(); return this; }
node.put("batchIndexingState", indexer.getBatchIndexingState().toString()); node.put("incrementalIndexingState", indexer.getIncrementalIndexingState().toString());
node.put("batchIndexingState", indexer.getBatchIndexingState().toString()); node.put("incrementalIndexingState", indexer.getIncrementalIndexingState().toString());