@ConditionalOnProperty(name="elasticjob.dump.enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(value=SnapshotServiceProperties.class)
public class ElasticJobSnapshotServiceConfiguration
extends Object
| Constructor and Description |
|---|
ElasticJobSnapshotServiceConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SnapshotService |
snapshotService(org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter registryCenter,
SnapshotServiceProperties snapshotServiceProperties)
Create a Snapshot service bean and start listening.
|
public ElasticJobSnapshotServiceConfiguration()
@ConditionalOnProperty(name="elasticjob.dump.port")
@Bean(initMethod="listen",
destroyMethod="close")
public SnapshotService snapshotService(org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter registryCenter,
SnapshotServiceProperties snapshotServiceProperties)
registryCenter - registry centersnapshotServiceProperties - snapshot service propertiesCopyright © 2020 The Apache Software Foundation. All rights reserved.