public class SchemaDiscovery extends Object implements org.apache.servicecomb.registry.api.Discovery
| Constructor and Description |
|---|
SchemaDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
enabled() |
org.apache.servicecomb.registry.api.registry.MicroserviceInstances |
findServiceInstances(String appId,
String serviceName,
String versionRule,
String revision) |
List<org.apache.servicecomb.registry.api.registry.Microservice> |
getAllMicroservices() |
org.apache.servicecomb.registry.api.registry.Microservice |
getMicroservice(String microserviceId) |
org.apache.servicecomb.registry.api.registry.MicroserviceInstance |
getMicroserviceInstance(String serviceId,
String instanceId) |
int |
getOrder() |
String |
getSchema(String microserviceId,
Collection<org.apache.servicecomb.registry.api.registry.MicroserviceInstance> instances,
String schemaId) |
void |
init() |
String |
name() |
void |
run() |
public static final String NAME
public org.apache.servicecomb.registry.api.registry.Microservice getMicroservice(String microserviceId)
getMicroservice in interface org.apache.servicecomb.registry.api.Discoverypublic List<org.apache.servicecomb.registry.api.registry.Microservice> getAllMicroservices()
getAllMicroservices in interface org.apache.servicecomb.registry.api.Discoverypublic String getSchema(String microserviceId, Collection<org.apache.servicecomb.registry.api.registry.MicroserviceInstance> instances, String schemaId)
getSchema in interface org.apache.servicecomb.registry.api.Discoverypublic org.apache.servicecomb.registry.api.registry.MicroserviceInstance getMicroserviceInstance(String serviceId, String instanceId)
getMicroserviceInstance in interface org.apache.servicecomb.registry.api.Discoverypublic org.apache.servicecomb.registry.api.registry.MicroserviceInstances findServiceInstances(String appId, String serviceName, String versionRule, String revision)
findServiceInstances in interface org.apache.servicecomb.registry.api.Discoverypublic String name()
name in interface org.apache.servicecomb.registry.api.Discoverypublic boolean enabled()
enabled in interface org.apache.servicecomb.foundation.common.utils.SPIEnabledpublic void init()
init in interface org.apache.servicecomb.registry.api.LifeCyclepublic void run()
run in interface org.apache.servicecomb.registry.api.LifeCyclepublic void destroy()
destroy in interface org.apache.servicecomb.registry.api.LifeCyclepublic int getOrder()
getOrder in interface org.apache.servicecomb.foundation.common.utils.SPIOrderCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.