public class ServiceInventory extends Object
| Constructor and Description |
|---|
ServiceInventory(ServiceInventoryConfig config,
NodeInfo nodeInfo,
JsonCodec<ServiceDescriptorsRepresentation> serviceDescriptorsCodec,
HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ServiceDescriptor> |
getServiceDescriptors() |
Iterable<ServiceDescriptor> |
getServiceDescriptors(String type) |
Iterable<ServiceDescriptor> |
getServiceDescriptors(String type,
String pool) |
void |
start() |
void |
stop() |
void |
updateServiceInventory() |
@Inject public ServiceInventory(ServiceInventoryConfig config, NodeInfo nodeInfo, JsonCodec<ServiceDescriptorsRepresentation> serviceDescriptorsCodec, HttpClient httpClient)
@PostConstruct public void start()
@PreDestroy public void stop()
public Iterable<ServiceDescriptor> getServiceDescriptors()
public Iterable<ServiceDescriptor> getServiceDescriptors(String type)
public Iterable<ServiceDescriptor> getServiceDescriptors(String type, String pool)
public final void updateServiceInventory()
Copyright © 2010–2021 Airlift. All rights reserved.