Class MigrationRule
java.lang.Object
org.apache.dubbo.registry.client.migration.model.MigrationRule
# key = demo-consumer.migration
# group = DUBBO_SERVICEDISCOVERY_MIGRATION
# content
key: demo-consumer
step: APPLICATION_FIRST
threshold: 1.0
proportion: 60
delay: 60
force: false
interfaces:
- serviceKey: DemoService:1.0.0
threshold: 0.5
proportion: 30
delay: 30
force: true
step: APPLICATION_FIRST
- serviceKey: GreetingService:1.0.0
step: FORCE_APPLICATION
applications:
- serviceKey: TestApplication
threshold: 0.3
proportion: 20
delay: 10
force: false
step: FORCE_INTERFACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDelay()intgetForce()booleanstatic MigrationRulegetKey()intgetProportion(URL consumerURL) getStep()floatgetThreshold(URL consumerURL) <T> TgetValue(URL consumerURL, Function<SubMigrationRule, T> function) inthashCode()static MigrationRulevoidsetApplications(List<SubMigrationRule> applications) voidvoidvoidsetInterfaces(List<SubMigrationRule> interfaces) voidvoidsetProportion(Integer proportion) voidsetStep(MigrationStep step) voidsetThreshold(Float threshold) static StringtoYaml(MigrationRule rule)
-
Constructor Details
-
MigrationRule
public MigrationRule() -
MigrationRule
-
-
Method Details
-
getInitRule
-
getKey
-
setKey
-
getStep
-
getStep
-
getThreshold
-
getThreshold
-
setThreshold
-
getProportion
-
getProportion
-
setProportion
-
getDelay
-
getDelay
-
setDelay
-
setStep
-
getForce
-
getForce
-
getValue
-
setForce
-
getInterfaces
-
setInterfaces
-
getApplications
-
setApplications
-
parse
-
toYaml
-
equals
-
hashCode
public int hashCode()
-