public interface InstanceDiscovery
Instance info. Note that Turbine currently uses a
poll mechanism to fetch Instance info at periodic intervals using the InstanceObservable
The InstanceObservable introspects the Instance.isUp() state to understand whether to
notify observers of hosts that are up and down.
It also keeps state from the previous poll and it uses this to determine whether some older hosts have disappeared.
If the InstanceDiscovery object throws an exception, this is caught and logged by the InstanceObservable
and the data update is ignored, but this does not stop the InstanceObservable thread.
Note that you can provide your own InstanceDiscovery using the PluginsFactory. Turbine also provides
a default static file based FileBasedInstanceDiscovery implementation as a default to help get started.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TURBINE_AGGREGATOR_CLUSTER_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Instance> |
getInstanceList()
Fetch the collection of Instances.
|
static final java.lang.String TURBINE_AGGREGATOR_CLUSTER_CONFIG
java.util.Collection<Instance> getInstanceList() throws java.lang.Exception
java.lang.Exception