Search in sources :

Example 6 with MicroserviceVersion

use of org.apache.servicecomb.registry.consumer.MicroserviceVersion in project java-chassis by ServiceComb.

the class RestEngineSchemaListener method onCreateMicroserviceVersion.

@EnableExceptionPropagation
@Subscribe
public void onCreateMicroserviceVersion(CreateMicroserviceVersionEvent event) {
    MicroserviceVersion microserviceVersion = event.getMicroserviceVersion();
    MicroserviceMeta microserviceMeta = CoreMetaUtils.getMicroserviceMeta(microserviceVersion);
    createServicePathManager(microserviceMeta);
}
Also used : MicroserviceVersion(org.apache.servicecomb.registry.consumer.MicroserviceVersion) MicroserviceMeta(org.apache.servicecomb.core.definition.MicroserviceMeta) EnableExceptionPropagation(org.apache.servicecomb.foundation.common.event.EnableExceptionPropagation) Subscribe(com.google.common.eventbus.Subscribe)

Aggregations

MicroserviceVersion (org.apache.servicecomb.registry.consumer.MicroserviceVersion)6 MicroserviceMeta (org.apache.servicecomb.core.definition.MicroserviceMeta)4 MicroserviceVersions (org.apache.servicecomb.registry.consumer.MicroserviceVersions)3 Subscribe (com.google.common.eventbus.Subscribe)2 OperationMeta (org.apache.servicecomb.core.definition.OperationMeta)2 EnableExceptionPropagation (org.apache.servicecomb.foundation.common.event.EnableExceptionPropagation)2 MicroserviceInstance (org.apache.servicecomb.registry.api.registry.MicroserviceInstance)2 Swagger (io.swagger.models.Swagger)1 HashMap (java.util.HashMap)1 Invocation (org.apache.servicecomb.core.Invocation)1 SchemaMeta (org.apache.servicecomb.core.definition.SchemaMeta)1 ConcurrentHashMapEx (org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx)1 SubscriberOrder (org.apache.servicecomb.foundation.common.event.SubscriberOrder)1 Microservice (org.apache.servicecomb.registry.api.registry.Microservice)1 AppManager (org.apache.servicecomb.registry.consumer.AppManager)1 MicroserviceManager (org.apache.servicecomb.registry.consumer.MicroserviceManager)1 MicroserviceVersionRule (org.apache.servicecomb.registry.consumer.MicroserviceVersionRule)1 DiscoveryTreeNode (org.apache.servicecomb.registry.discovery.DiscoveryTreeNode)1 Test (org.junit.Test)1