@Override /** * Since an Indirect never sends messages for real, it has no metrics.. but those of its * actual endpoint */ public EndpointView getMetricsMBean() { return realEndpoint.getMetricsMBean(); }
@Override /** * Since an Indirect never sends messages for real, it has no moetrics.. but those of its * actual endpoint */ public EndpointView getMetricsMBean() { return realEndpoint.getMetricsMBean(); }
public long getMaxSizeReceived() { if (endpoint.getChildren() != null) { long maxSizeReceived = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { if (maxSizeReceived == 0) { maxSizeReceived = e.getMetricsMBean().getMaxSizeReceived(); } else if (e.getMetricsMBean().getMaxSizeReceived() > maxSizeReceived) { maxSizeReceived = e.getMetricsMBean().getMaxSizeReceived(); } } } return maxSizeReceived; } else { return maxSizeReceived; } }
public long getMaxSizeReceived() { if (endpoint.getChildren() != null) { long maxSizeReceived = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { if (maxSizeReceived == 0) { maxSizeReceived = e.getMetricsMBean().getMaxSizeReceived(); } else if (e.getMetricsMBean().getMaxSizeReceived() > maxSizeReceived) { maxSizeReceived = e.getMetricsMBean().getMaxSizeReceived(); } } } return maxSizeReceived; } else { return maxSizeReceived; } }
public long getMinSizeSent() { if (endpoint.getChildren() != null) { long minSizeSent = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { if (minSizeSent == 0) { minSizeSent = e.getMetricsMBean().getMinSizeSent(); } else if (e.getMetricsMBean().getMinSizeSent() < minSizeSent) { minSizeSent = e.getMetricsMBean().getMinSizeSent(); } } } return minSizeSent; } else { return minSizeSent; } }
public long getMinSizeSent() { if (endpoint.getChildren() != null) { long minSizeSent = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { if (minSizeSent == 0) { minSizeSent = e.getMetricsMBean().getMinSizeSent(); } else if (e.getMetricsMBean().getMinSizeSent() < minSizeSent) { minSizeSent = e.getMetricsMBean().getMinSizeSent(); } } } return minSizeSent; } else { return minSizeSent; } }
/** * Number of timeouts, receiving replies * @return # of timeouts, receiving replies */ public long getTimeoutsReceiving() { if (endpoint.getChildren() != null) { long timeoutsReceiving = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { timeoutsReceiving += e.getMetricsMBean().getTimeoutsReceiving(); } } return timeoutsReceiving; } else { return timeoutsReceiving; } }
public double getAvgSizeSent() { if (endpoint.getChildren() != null) { double avgSizeSent = 0; for (Endpoint e : endpoint.getChildren()) { double epValue = e.getMetricsMBean() == null ? 0 : e.getMetricsMBean().getAvgSizeSent(); if (epValue > 0) { avgSizeSent = (avgSizeSent == 0 ? epValue : (avgSizeSent + epValue) / 2); } } return avgSizeSent; } else { return avgSizeSent; } }
/** * Number of timeouts, sending * @return # of timeouts, sending */ public long getTimeoutsSending() { if (endpoint.getChildren() != null) { long timeoutsSending = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { timeoutsSending += e.getMetricsMBean().getTimeoutsSending(); } } return timeoutsSending; } else { return timeoutsSending; } }
/** * Number of bytes sent * @return # of bytes sent */ public long getBytesSent() { if (endpoint.getChildren() != null) { long bytesSent = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { bytesSent += e.getMetricsMBean().getBytesSent(); } } return bytesSent; } else { return bytesSent; } }
public double getAvgSizeSent() { if (endpoint.getChildren() != null) { double avgSizeSent = 0; for (Endpoint e : endpoint.getChildren()) { double epValue = e.getMetricsMBean() == null ? 0 : e.getMetricsMBean().getAvgSizeSent(); if (epValue > 0) { avgSizeSent = (avgSizeSent == 0 ? epValue : (avgSizeSent + epValue) / 2); } } return avgSizeSent; } else { return avgSizeSent; } }
public double getAvgSizeReceived() { if (endpoint.getChildren() != null) { double avgSizeReceived = 0; for (Endpoint e : endpoint.getChildren()) { double epValue = e.getMetricsMBean() == null ? 0 : e.getMetricsMBean().getAvgSizeReceived(); if (epValue > 0) { avgSizeReceived = (avgSizeReceived == 0 ? epValue : (avgSizeReceived + epValue) / 2); } } return avgSizeReceived; } else { return avgSizeReceived; } }
/** * Number of bytes received, receiving replies * @return # of bytes received, receiving replies */ public long getBytesReceived() { if (endpoint.getChildren() != null) { long bytesReceived = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { bytesReceived += e.getMetricsMBean().getBytesReceived(); } } return bytesReceived; } else { return bytesReceived; } }
/** * Number of messages sent * @return # of messages sent */ public long getMessagesSent() { if (endpoint.getChildren() != null) { long messagesSent = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { messagesSent += e.getMetricsMBean().getMessagesSent(); } } return messagesSent; } else { return messagesSent; } }
/** * Number of faults sending * @return # of faults sending */ public long getFaultsSending() { if (endpoint.getChildren() != null) { long faultsSending = 0; for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { faultsSending += e.getMetricsMBean().getFaultsSending(); } } return faultsSending; } else { return faultsSending; } }
public double getAvgSizeReceived() { if (endpoint.getChildren() != null) { double avgSizeReceived = 0; for (Endpoint e : endpoint.getChildren()) { double epValue = e.getMetricsMBean() == null ? 0 : e.getMetricsMBean().getAvgSizeReceived(); if (epValue > 0) { avgSizeReceived = (avgSizeReceived == 0 ? epValue : (avgSizeReceived + epValue) / 2); } } return avgSizeReceived; } else { return avgSizeReceived; } }
/** * A Map of response codes and counts * @return a Map of response codes and counts */ public Map<Integer, Long> getResponseCodeTable() { if (endpoint.getChildren() != null) { Map<Integer, Long> responseCodeTable = new HashMap<Integer, Long>(); for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { addTableMaps(responseCodeTable, e.getMetricsMBean().getResponseCodeTable()); } } return responseCodeTable; } else { return responseCodeTable; } }
/** * Switch on a leaf endpoint, or all endpoints on a group - from maintenance * @throws Exception */ public void switchOn() throws Exception { if (endpoint.getChildren() != null) { for (Endpoint e : endpoint.getChildren()) { if (e.getMetricsMBean() != null) { e.getMetricsMBean().switchOn(); } } } else { if (endpoint.getContext() != null) { endpoint.getContext().switchOn(); } } }
/** * 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(); } } }