X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fconfig%2Fdistributed_datastore_provider%2FDistributedConfigDataStoreProviderModule.java;h=18071e591e473bc7b23d85c344b1f2353296b191;hp=18f5681386631c200b88498be0534d85b1a7c204;hb=94362614be25e34e8427c02799daffb8cae29d94;hpb=5a0edd493bafc365647bc6311b4b7da86a78645d diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/distributed_datastore_provider/DistributedConfigDataStoreProviderModule.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/distributed_datastore_provider/DistributedConfigDataStoreProviderModule.java index 18f5681386..18071e591e 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/distributed_datastore_provider/DistributedConfigDataStoreProviderModule.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/distributed_datastore_provider/DistributedConfigDataStoreProviderModule.java @@ -20,13 +20,14 @@ public class DistributedConfigDataStoreProviderModule extends AbstractDistribute private BundleContext bundleContext; public DistributedConfigDataStoreProviderModule( - org.opendaylight.controller.config.api.ModuleIdentifier identifier, - org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { + final org.opendaylight.controller.config.api.ModuleIdentifier identifier, + final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); } - public DistributedConfigDataStoreProviderModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, - DistributedConfigDataStoreProviderModule oldModule, AutoCloseable oldInstance) { + public DistributedConfigDataStoreProviderModule(final ModuleIdentifier identifier, + final DependencyResolver dependencyResolver, final DistributedConfigDataStoreProviderModule oldModule, + final AutoCloseable oldInstance) { super(identifier, dependencyResolver, oldModule, oldInstance); } @@ -36,7 +37,7 @@ public class DistributedConfigDataStoreProviderModule extends AbstractDistribute } @Override - public boolean canReuseInstance(AbstractDistributedConfigDataStoreProviderModule oldModule) { + public boolean canReuseInstance(final AbstractDistributedConfigDataStoreProviderModule oldModule) { return true; } @@ -54,7 +55,7 @@ public class DistributedConfigDataStoreProviderModule extends AbstractDistribute return newDatastoreContext(null); } - private static DatastoreContext newDatastoreContext(ConfigProperties inProps) { + private static DatastoreContext newDatastoreContext(final ConfigProperties inProps) { ConfigProperties props = inProps; if (props == null) { props = new ConfigProperties(); @@ -62,6 +63,9 @@ public class DistributedConfigDataStoreProviderModule extends AbstractDistribute return DatastoreContext.newBuilder() .logicalStoreType(LogicalDatastoreType.CONFIGURATION) + .tempFileDirectory("./data") + .fileBackedStreamingThresholdInMegabytes(props.getFileBackedStreamingThresholdInMegabytes() + .getValue().intValue()) .maxShardDataChangeExecutorPoolSize(props.getMaxShardDataChangeExecutorPoolSize().getValue().intValue()) .maxShardDataChangeExecutorQueueSize(props.getMaxShardDataChangeExecutorQueueSize() .getValue().intValue()) @@ -92,12 +96,16 @@ public class DistributedConfigDataStoreProviderModule extends AbstractDistribute props.getShardCommitQueueExpiryTimeoutInSeconds().getValue().intValue()) .transactionDebugContextEnabled(props.getTransactionDebugContextEnabled()) .customRaftPolicyImplementation(props.getCustomRaftPolicyImplementation()) - .shardSnapshotChunkSize(props.getShardSnapshotChunkSize().getValue().intValue()) + .maximumMessageSliceSize(props.getMaximumMessageSliceSize().getValue().intValue()) .useTellBasedProtocol(props.getUseTellBasedProtocol()) + .syncIndexThreshold(props.getSyncIndexThreshold().getValue()) + .backendAlivenessTimerIntervalInSeconds(props.getBackendAlivenessTimerIntervalInSeconds().getValue()) + .frontendRequestTimeoutInSeconds(props.getFrontendRequestTimeoutInSeconds().getValue()) + .frontendNoProgressTimeoutInSeconds(props.getFrontendNoProgressTimeoutInSeconds().getValue()) .build(); } - public void setBundleContext(BundleContext bundleContext) { + public void setBundleContext(final BundleContext bundleContext) { this.bundleContext = bundleContext; } }