public class MigrationRule extends Object
| Modifier and Type | Field and Description |
|---|---|
static MigrationRule |
INIT |
| Constructor and Description |
|---|
MigrationRule() |
MigrationRule(String key) |
| Modifier and Type | Method and Description |
|---|---|
List<SubMigrationRule> |
getApplications() |
Integer |
getDelay() |
int |
getDelay(URL consumerURL) |
Boolean |
getForce() |
boolean |
getForce(URL consumerURL) |
List<SubMigrationRule> |
getInterfaces() |
String |
getKey() |
Integer |
getProportion() |
int |
getProportion(URL consumerURL) |
MigrationStep |
getStep() |
MigrationStep |
getStep(URL consumerURL) |
Float |
getThreshold() |
float |
getThreshold(URL consumerURL) |
static MigrationRule |
parse(String rawRule) |
void |
setApplications(List<SubMigrationRule> applications) |
void |
setDelay(Integer delay) |
void |
setForce(Boolean force) |
void |
setInterfaces(List<SubMigrationRule> interfaces) |
void |
setKey(String key) |
void |
setProportion(Integer proportion) |
void |
setStep(MigrationStep step) |
void |
setThreshold(Float threshold) |
static String |
toYaml(MigrationRule rule) |
public static final MigrationRule INIT
public MigrationRule()
public MigrationRule(String key)
public String getKey()
public void setKey(String key)
public MigrationStep getStep(URL consumerURL)
public MigrationStep getStep()
public float getThreshold(URL consumerURL)
public Float getThreshold()
public void setThreshold(Float threshold)
public Integer getProportion()
public int getProportion(URL consumerURL)
public void setProportion(Integer proportion)
public Integer getDelay()
public int getDelay(URL consumerURL)
public void setDelay(Integer delay)
public void setStep(MigrationStep step)
public Boolean getForce()
public boolean getForce(URL consumerURL)
public void setForce(Boolean force)
public List<SubMigrationRule> getInterfaces()
public void setInterfaces(List<SubMigrationRule> interfaces)
public List<SubMigrationRule> getApplications()
public void setApplications(List<SubMigrationRule> applications)
public static MigrationRule parse(String rawRule)
public static String toYaml(MigrationRule rule)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.