| Constructor and Description |
|---|
ClusterListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
commoditiesUpdated(Collection<Commodity> commodities)
Invoked when at least one commodity was updated by a message.
|
void |
commodityAdded(Commodity commodity)
Invoked when a commodity was added to the cluster by a message.
|
void |
commodityRemoved(Commodity commodity)
Invoked when a commodity was removed from the cluster by a message.
|
void |
commodityUpdated(Commodity commodity)
Invoked when a commodity in this cluster was updated by a message.
|
void |
routed(List<Route> routes)
Invoked when the cluster receives a routed message.
|
void |
subclusterAdded(Cluster cluster)
Invoked when a subcluster was added to this cluster by a message.
|
void |
subclusterRemoved(Cluster cluster)
Invoked when a subcluster was removed from this cluster by a message.
|
void |
subclustersUpdated(Collection<Cluster> clusters)
Invoked when a sublcuster was updated from this cluster by a message.
|
void |
subclusterUpdated(Cluster cluster)
Invoked when a subcluster was updated from this cluster by a message.
|
void |
transportAdded(Transport transport)
Invoked when a transport was added to this cluster by a message.
|
void |
transportRemoved(Transport transport)
Invoked when a transport was removed from this cluster by a message.
|
void |
transportsUpdated(Collection<Transport> transports)
Invoked when a transport was updated in this cluster by a message.
|
void |
transportUpdated(Transport transport)
Invoked when a transport was updated in this cluster by a message.
|
connected, created, deleted, error, routeSubscribed, routeUnsubscribed, subscribed, unsubscribed, updatedpublic void routed(List<Route> routes)
routes - the cluster's routes as a list.public void commodityAdded(Commodity commodity)
commodity - added to the cluster.public void commodityRemoved(Commodity commodity)
commodity - removed from the cluster.public void commodityUpdated(Commodity commodity)
commodity - the commodity updated.public void commoditiesUpdated(Collection<Commodity> commodities)
commodities - that belong to this cluster.public void subclusterAdded(Cluster cluster)
cluster - the subcluster added to this cluster.public void subclusterRemoved(Cluster cluster)
cluster - the subcluster removed from this cluster.public void subclusterUpdated(Cluster cluster)
cluster - the cluster updated.public void subclustersUpdated(Collection<Cluster> clusters)
clusters - the subclusters that belong to this cluster.public void transportAdded(Transport transport)
transport - added by the message.public void transportRemoved(Transport transport)
transport - removed by the message.public void transportUpdated(Transport transport)
transport - updated by the message.public void transportsUpdated(Collection<Transport> transports)
transports - that belong to this cluster.