public class MicroserviceVersionRule extends Object
| Constructor and Description |
|---|
MicroserviceVersionRule(String appId,
String microserviceName,
String strVersionRule) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId() |
MicroserviceVersionRuleData |
getData() |
InstanceCache |
getInstanceCache() |
Map<String,MicroserviceInstance> |
getInstances() |
<T extends MicroserviceVersion> |
getLatestMicroserviceVersion() |
String |
getMicroserviceName() |
org.apache.servicecomb.foundation.common.cache.VersionedCache |
getVersionedCache() |
VersionRule |
getVersionRule() |
void |
update(Map<String,MicroserviceVersion> allVersions,
Collection<MicroserviceInstance> allInstances) |
public String getAppId()
public String getMicroserviceName()
public VersionRule getVersionRule()
public <T extends MicroserviceVersion> T getLatestMicroserviceVersion()
public Map<String,MicroserviceInstance> getInstances()
public InstanceCache getInstanceCache()
public org.apache.servicecomb.foundation.common.cache.VersionedCache getVersionedCache()
public MicroserviceVersionRuleData getData()
public void update(Map<String,MicroserviceVersion> allVersions, Collection<MicroserviceInstance> allInstances)
allVersions - all versions even not belongs to this ruleallInstances - all instances even not belongs to this rule, related MicroserviceVersion always existsCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.