/** * Switch off a leaf endpoint, or all endpoints of a group - for maintenance * * @throws Exception */ public void switchOff() throws Exception { if (endpoint.getChildren() != null) { for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { e.getMetricsMBean().switchOff(); } } } else { if (endpoint.getContext() != null) { endpoint.getContext().switchOff(); } } }
/** * Switch off a leaf endpoint, or all endpoints of a group - for maintenance * * @throws Exception */ public void switchOff() throws Exception { if (endpoint.getChildren() != null) { for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { e.getMetricsMBean().switchOff(); } } } else { if (endpoint.getContext() != null) { endpoint.getContext().switchOff(); } } }