001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)ProxyBindingStatisticsBaseMBean.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.monitoring;
030:
031: import java.util.Date;
032:
033: /**
034: * This interface defines the MBean for collection of global statistics for
035: * the Proxy Binding in a single JBI instance.
036: * All statistics are since the last JBI startup; they are all reset
037: * when JBI is restarted.
038: *
039: * @author Sun Microsystems, Inc.
040: */
041: public interface ProxyBindingStatisticsBaseMBean {
042: /**
043: * Get the number of ME's sent by the PB for all JBI components
044: * as consumers.
045: * @return The current number of sent exchanges.
046: */
047: long getSentExchanges();
048:
049: /**
050: * Get the number of ME's received by the PB for all JBI components
051: * as providers.
052: * @return The current number of received exchanges.
053: */
054: long getReceivedExchanges();
055:
056: /**
057: * Get the total bytes sent by the PB for all JBI components
058: * as consumers.
059: * @return The current bytes sent by the PB.
060: */
061: long getSentBytes();
062:
063: /**
064: * Get the total bytes received by the PB for all JBI components
065: * as providers.
066: * @return The current bytes received by the PB.
067: */
068: long getReceivedBytes();
069:
070: /**
071: * Get the total messages sent by the PB for all JBI components
072: * as consumers.
073: * @return The current messages sent by the PB.
074: */
075: long getSentMessages();
076:
077: /**
078: * Get the total messages received by the PB for all JBI components
079: * as providers.
080: * @return The current messages received by the PB.
081: */
082: long getReceivedMessages();
083:
084: /**
085: * Get the total number of Message Faults created since the
086: * last NMR startup.
087: * @return The number of message faults.
088: */
089: long getMessageFaults();
090:
091: /**
092: * Get the total number of Message Errors created since the
093: * last NMR startup.
094: * @return The number of message errors.
095: */
096: long getMessageErrors();
097:
098: /**
099: * Get the total number of completed Message Exchanges created since the
100: * last NMR startup.
101: * @return The number of completed MEs.
102: */
103: long getCompletedExchanges();
104: }
|