@Override
public void update(ViewerCell cell) {
Object element = cell.getElement();
ContainerViewBean bean = ContainerViewBean.toContainerViewBean(element);
if (bean != null) {
Container container = bean.container();
boolean managed = container.isManaged();
String image = "yellow-dot.png";
String status = bean.getStatus();
Fabric8JMXPlugin.getLogger().debug(
"Container: " + container.getId() + " alive: "
+ container.isAlive() + " managed: "
+ container.isManaged() + " pending: "
+ container.isProvisioningPending() + " complete: "
+ container.isProvisioningComplete() + " status: "
+ container.getProvisionStatus());
if (!bean.isAlive()) {
image = "gray-dot.png";
}
if (container.isProvisioningPending()) {
// image = "pending.gif";
image = "yellow-dot.png";
managed = true;
} else if (status != null) {
String lowerStatus = status.toLowerCase();