public interface ServiceInstanceSet
Modifier and Type | Method and Description |
---|---|
Collection<ServiceInstance> |
getAll()
Get an instance mapping which map worker identity to each instance.
|
Collection<ServiceInstance> |
getAllInstancesOrdered(boolean consistentIndexes)
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.
|
Collection<ServiceInstance> getAll()
Collection<ServiceInstance> getAllInstancesOrdered(boolean consistentIndexes)
consistentIndexes
- if true, also try to maintain the same exact index for each node
across calls, by inserting inactive instances to replace the
removed ones.ServiceInstance getInstance(String name)
name
- Set<ServiceInstance> getByHost(String host)
host
- int size()
Copyright © 2021 The Apache Software Foundation. All rights reserved.