public interface ServiceInstanceSet<InstanceType extends ServiceInstance>
Modifier and Type | Method and Description |
---|---|
Collection<InstanceType> |
getAll()
Get an instance mapping which map worker identity to each instance.
|
Set<InstanceType> |
getByHost(String host)
Get a list of service instances for a given host.
|
InstanceType |
getInstance(String name)
Get an instance by worker identity.
|
int |
size()
Get number of instances in the currently available.
|
Collection<InstanceType> getAll()
InstanceType getInstance(String name)
name
- worker idSet<InstanceType> getByHost(String host)
host
- hostnameint size()
Copyright © 2022 The Apache Software Foundation. All rights reserved.