public interface ServiceInstanceSet
Modifier and Type | Method and Description |
---|---|
Map<String,ServiceInstance> |
getAll()
Get an instance mapping which map worker identity to each instance.
|
List<ServiceInstance> |
getAllInstancesOrdered()
Gets a list containing all the instances.
|
Set<ServiceInstance> |
getByHost(String host)
Get a list of service instances for a given host.
|
ServiceInstance |
getInstance(String name)
Get an instance by worker identity.
|
int |
size()
Get number of instances in the currently availabe.
|
Map<String,ServiceInstance> getAll()
List<ServiceInstance> getAllInstancesOrdered()
ServiceInstance getInstance(String name)
name
- Set<ServiceInstance> getByHost(String host)
host
- int size()
Copyright © 2016 The Apache Software Foundation. All rights reserved.