public class MetadataInfo extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MetadataInfo.ServiceInfo |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_REVISION |
| 构造器和说明 |
|---|
MetadataInfo(String app) |
MetadataInfo(String app,
String revision,
Map<String,MetadataInfo.ServiceInfo> services) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addService(MetadataInfo.ServiceInfo serviceInfo) |
String |
calAndGetRevision() |
String |
getApp() |
Map<String,String> |
getExtendParams() |
String |
getParameter(String key,
String serviceKey) |
Map<String,String> |
getParameters(String serviceKey) |
MetadataInfo.ServiceInfo |
getServiceInfo(String serviceKey) |
Map<String,MetadataInfo.ServiceInfo> |
getServices() |
boolean |
hasReported() |
void |
markChanged() |
void |
markReported() |
void |
removeService(MetadataInfo.ServiceInfo serviceInfo) |
void |
removeService(String key) |
void |
setApp(String app) |
void |
setRevision(String revision) |
void |
setServices(Map<String,MetadataInfo.ServiceInfo> services) |
String |
toString() |
public static String DEFAULT_REVISION
public MetadataInfo(String app)
public MetadataInfo(String app, String revision, Map<String,MetadataInfo.ServiceInfo> services)
public void addService(MetadataInfo.ServiceInfo serviceInfo)
public void removeService(MetadataInfo.ServiceInfo serviceInfo)
public void removeService(String key)
public String calAndGetRevision()
public void setRevision(String revision)
public boolean hasReported()
public void markReported()
public void markChanged()
public String getApp()
public void setApp(String app)
public Map<String,MetadataInfo.ServiceInfo> getServices()
public void setServices(Map<String,MetadataInfo.ServiceInfo> services)
public MetadataInfo.ServiceInfo getServiceInfo(String serviceKey)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.