类 ServiceRepository
- java.lang.Object
-
- org.apache.dubbo.common.context.LifecycleAdapter
-
- org.apache.dubbo.rpc.model.ServiceRepository
-
- 所有已实现的接口:
FrameworkExt,Lifecycle
public class ServiceRepository extends LifecycleAdapter implements FrameworkExt
-
-
构造器概要
构造器 构造器 说明 ServiceRepository()
-
方法概要
-
从类继承的方法 org.apache.dubbo.common.context.LifecycleAdapter
initialize, start
-
从接口继承的方法 org.apache.dubbo.common.context.Lifecycle
initialize, start
-
-
-
-
方法详细资料
-
registerService
public ServiceDescriptor registerService(Class<?> interfaceClazz)
-
registerService
public ServiceDescriptor registerService(String path, Class<?> interfaceClass)
SeeregisterService(Class)we assume: 1. services with different interfaces are not allowed to have the same path. 2. services share the same interface but has different group/version can share the same path. 3. path's default value is the name of the interface.
- 参数:
path-interfaceClass-- 返回:
-
unregisterService
public void unregisterService(Class<?> interfaceClazz)
-
unregisterService
public void unregisterService(String path)
-
registerConsumer
public void registerConsumer(String serviceKey, ServiceDescriptor serviceDescriptor, ReferenceConfigBase<?> rc, Object proxy, ServiceMetadata serviceMetadata)
-
registerProvider
public void registerProvider(String serviceKey, Object serviceInstance, ServiceDescriptor serviceModel, ServiceConfigBase<?> serviceConfig, ServiceMetadata serviceMetadata)
-
getAllServices
public List<ServiceDescriptor> getAllServices()
-
lookupService
public ServiceDescriptor lookupService(String interfaceName)
-
lookupMethod
public MethodDescriptor lookupMethod(String interfaceName, String methodName)
-
getExportedServices
public List<ProviderModel> getExportedServices()
-
lookupExportedService
public ProviderModel lookupExportedService(String serviceKey)
-
lookupExportedServiceWithoutGroup
public ProviderModel lookupExportedServiceWithoutGroup(String key)
-
getReferredServices
public List<ConsumerModel> getReferredServices()
-
lookupReferredService
public ConsumerModel lookupReferredService(String serviceKey)
-
destroy
public void destroy() throws IllegalStateException从接口复制的说明:LifecycleDestroy the component- 指定者:
destroy在接口中Lifecycle- 覆盖:
destroy在类中LifecycleAdapter- 抛出:
IllegalStateException
-
-