Package | Description |
---|---|
org.apache.twill.api |
Classes in this package provides core functionality of the Twill library.
|
org.apache.twill.discovery |
Classes in this package provides service discovery implementations.
|
Modifier and Type | Method and Description |
---|---|
ServiceDiscovered |
TwillContext.discover(String name)
Discover service with the given name that is announced within the same
TwillApplication . |
ServiceDiscovered |
TwillController.discoverService(String serviceName)
Discovers the set of
Discoverable endpoints that provides service for the given service name. |
Modifier and Type | Method and Description |
---|---|
ServiceDiscovered |
InMemoryDiscoveryService.discover(String name) |
ServiceDiscovered |
ZKDiscoveryService.discover(String service) |
ServiceDiscovered |
DiscoveryServiceClient.discover(String name)
Discover service with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceDiscovered.ChangeListener.onChange(ServiceDiscovered serviceDiscovered)
This method will be invoked when the discovery list changed.
|
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.