Class LocalDiscovery
java.lang.Object
org.apache.servicecomb.localregistry.LocalDiscovery
- All Implemented Interfaces:
SPIEnabled,SPIOrder,Discovery<LocalDiscoveryInstance>,LifeCycle,org.springframework.core.Ordered
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.servicecomb.registry.api.Discovery
Discovery.InstanceChangedListener<D extends DiscoveryInstance> -
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()booleanenabled()booleanfindServiceInstances(String application, String serviceName) findServices(String application) intgetOrder()voidinit()name()voidrun()voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetInstanceChangedListener(Discovery.InstanceChangedListener<LocalDiscoveryInstance> instanceChangedListener) voidsetLocalRegistryStore(LocalRegistryStore localRegistryStore)
-
Field Details
-
LOCAL_DISCOVERY_ENABLED
- See Also:
-
-
Constructor Details
-
LocalDiscovery
public LocalDiscovery()
-
-
Method Details
-
setLocalRegistryStore
-
setEnvironment
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment) -
getOrder
public int getOrder() -
name
- Specified by:
namein interfaceDiscovery<LocalDiscoveryInstance>
-
enabled
- Specified by:
enabledin interfaceDiscovery<LocalDiscoveryInstance>
-
findServiceInstances
- Specified by:
findServiceInstancesin interfaceDiscovery<LocalDiscoveryInstance>
-
findServices
- Specified by:
findServicesin interfaceDiscovery<LocalDiscoveryInstance>
-
setInstanceChangedListener
public void setInstanceChangedListener(Discovery.InstanceChangedListener<LocalDiscoveryInstance> instanceChangedListener) - Specified by:
setInstanceChangedListenerin interfaceDiscovery<LocalDiscoveryInstance>
-
init
public void init() -
run
public void run() -
destroy
public void destroy() -
enabled
public boolean enabled()- Specified by:
enabledin interfaceSPIEnabled
-