Search in sources :

Example 1 with SimpleSchedulerConfig

use of org.wso2.carbon.bpel.config.SimpleSchedulerConfig in project carbon-business-process by wso2.

the class BPELServerConfiguration method populateODESchedulerConfiguration.

/**
 * Populate ODE scheduler configuration.
 */
private void populateODESchedulerConfiguration() {
    if (bpsConfigDocument.getWSO2BPS().getODESchedulerConfiguration() != null) {
        SimpleSchedulerConfig config = bpsConfigDocument.getWSO2BPS().getODESchedulerConfiguration();
        odeSchedulerQueueLength = config.getODESchedulerQueueLength() > 0 ? config.getODESchedulerQueueLength() : odeSchedulerQueueLength;
        odeSchedulerImmediateInterval = config.getODESchedulerImmediateInterval() > 0 ? config.getODESchedulerImmediateInterval() : odeSchedulerImmediateInterval;
        odeSchedulerNearFutureInterval = config.getODESchedulerNearFutureInterval() > 0 ? config.getODESchedulerNearFutureInterval() : odeSchedulerNearFutureInterval;
        odeSchedulerStaleInterval = config.getODESchedulerStaleInterval() > 0 ? config.getODESchedulerStaleInterval() : odeSchedulerStaleInterval;
        odeSchedulerTransactionsPerSecond = config.getODESchedulerTransactionsPerSecond() > 0 ? config.getODESchedulerTransactionsPerSecond() : odeSchedulerTransactionsPerSecond;
        odeSchedulerWarningDelay = config.getODESchedulerWarningDelay() > 0 ? config.getODESchedulerWarningDelay() : odeSchedulerWarningDelay;
        odeSchedulerImmediateTransactionRetryLimit = config.getODESchedulerImmediateTransactionRetryLimit() > 0 ? config.getODESchedulerImmediateTransactionRetryLimit() : odeSchedulerImmediateTransactionRetryLimit;
        odeSchedulerImmediateTransactionRetryInterval = config.getODESchedulerImmediateInterval() > 0 ? config.getODESchedulerImmediateTransactionRetryInterval() : odeSchedulerImmediateTransactionRetryInterval;
    }
}
Also used : SimpleSchedulerConfig(org.wso2.carbon.bpel.config.SimpleSchedulerConfig)

Aggregations

SimpleSchedulerConfig (org.wso2.carbon.bpel.config.SimpleSchedulerConfig)1