Search in sources :

Example 1 with BulkFlowNodeStorage

use of org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorage in project workflow-cps-plugin by jenkinsci.

the class CpsFlowExecution method createStorage.

private TimingFlowNodeStorage createStorage() throws IOException {
    FlowNodeStorage wrappedStorage;
    FlowDurabilityHint hint = getDurabilityHint();
    wrappedStorage = (hint.isPersistWithEveryStep()) ? new SimpleXStreamFlowNodeStorage(this, getStorageDir()) : new BulkFlowNodeStorage(this, getStorageDir());
    return new TimingFlowNodeStorage(wrappedStorage);
}
Also used : BulkFlowNodeStorage(org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorage) SimpleXStreamFlowNodeStorage(org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage) FlowDurabilityHint(org.jenkinsci.plugins.workflow.flow.FlowDurabilityHint) BulkFlowNodeStorage(org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorage) FlowNodeStorage(org.jenkinsci.plugins.workflow.support.storage.FlowNodeStorage) SimpleXStreamFlowNodeStorage(org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage)

Aggregations

FlowDurabilityHint (org.jenkinsci.plugins.workflow.flow.FlowDurabilityHint)1 BulkFlowNodeStorage (org.jenkinsci.plugins.workflow.support.storage.BulkFlowNodeStorage)1 FlowNodeStorage (org.jenkinsci.plugins.workflow.support.storage.FlowNodeStorage)1 SimpleXStreamFlowNodeStorage (org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage)1