public class MetadataInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataInfo.ServiceInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REVISION |
| Constructor and Description |
|---|
MetadataInfo(String app) |
MetadataInfo(String app,
String revision,
Map<String,MetadataInfo.ServiceInfo> services) |
| Modifier and Type | Method and Description |
|---|---|
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–2022 The Apache Software Foundation. All rights reserved.