Commits

Asankha Perera  committed b0fadc4

expose start and stop methods for endpoints via JMX

  • Participants
  • Parent commits 548c2e4

Comments (0)

Files changed (2)

File modules/core/src/main/java/org/adroitlogic/ultraesb/core/mgt/EndpointManagement.java

             throw new IllegalArgumentException("Invalid endpoint id : " + view.getId());
         }
     }
+
+    public void start(String id) {
+        Endpoint endpoint = endpoints.get(id);
+        if (endpoint != null) {
+            endpoint.start();
+        }
+    }
+
+    public void stop(String id) {
+        Endpoint endpoint = endpoints.get(id);
+        if (endpoint != null) {
+            endpoint.stop();
+        }
+    }
+
+    public void enableDebug(String id) {
+        Endpoint endpoint = endpoints.get(id);
+        if (endpoint != null) {
+            // for later endpoint.enableDebug();
+        }
+    }
+
+    public void disableDebug(String id) {
+        Endpoint endpoint = endpoints.get(id);
+        if (endpoint != null) {
+            //for later endpoint.disableDebug();
+        }
+    }
 }

File modules/jmx/src/main/java/org/adroitlogic/ultraesb/jmx/core/EndpointManagementMXBean.java

     public int getEndpointCount();
 
     public void updateEndpoint(EndpointView view);
+
+    public void start(String id);
+
+    public void stop(String id);
+
+    public void enableDebug(String id);
+
+    public void disableDebug(String id);
 }