Esempio n. 1
0
 @Override
 protected void loadChildren() {
   try {
     List<CamelContextMBean> camelContexts = facade.getCamelContexts();
     if (camelContexts != null) {
       for (CamelContextMBean camelContextMBean : camelContexts) {
         CamelContextNode child = new CamelContextNode(this, facade, camelContextMBean);
         addChild(child);
       }
     }
   } catch (Exception e) {
     CamelJMXPlugin.getLogger().warning("Failed to connect to JMX: " + e, e);
   }
 }
Esempio n. 2
0
 @Override
 public Image getImage() {
   return CamelJMXPlugin.getDefault().getImage("camel.png");
 }