MessageTrackingRuntimeMBean Interface

com.bea.wli.management.runtime
MessageTrackingRuntimeMBean Interface

public interface MessageTrackingRuntimeMBean

    extends RuntimeMBean

All Superinterfaces
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

Field Summary

public static final long
CACHING_STUB_SVUID
The magic number that is used to generate the serialVersionUID of the generated MBean Stub (xxxMBean_Stub).
 

Method Summary

public int
getConversationCount(Date startTime, Date endTime)
Gets conversation count.
public int
getConversationCountByPartner(String partnerId, Date startTime, Date endTime)
Gets conversation count by partner.
public int
getConversationCountByPartners(String fromPartnerId, String toPartnerId, Date startTime, Date endTime)
Gets conversation count by partners.
public int
getMessageCountByConversationAndDirection(String conversationId, String direction, Date startTime, Date endTime)
Gets message count by conversation and direction.
public int
getMessageCountByDirection(String direction, Date startTime, Date endTime)
Gets message count by direction.
public int
getMessageCountByPartnerAndDirection(String partnerId, String direction, Date startTime, Date endTime)
Gets message count by partner and direction.
public int
getMessageCountByPartnersAndDirection(String fromPartnerId, String toPartnerId, String direction, Date startTime, Date endTime)
Gets message count by partners and direction.
 
Methods from interface javax.management.DynamicMBean
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes
 
Methods from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods from interface weblogic.management.runtime.RuntimeMBean
preDeregister
 
Methods from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
   

Field Detail

CACHING_STUB_SVUID

public static final long CACHING_STUB_SVUID
The magic number that is used to generate the serialVersionUID of the generated MBean Stub (xxxMBean_Stub). You must change this value whenever you make one of the changes to this interface:

- remove an existing method.
- change the signature of an existing "getter" or "setter" method.
- change the signature of an existing "boolean getter", i.e, "boolean isEnabled()"

Otherwise you don't need to change this value. For instance you can add new methods, or you can change the signature of methods that don't start with "get", "set" or "is". If you are in doubt then change the SVUID. It is a good idea to increment this value when changing.

 

Method Detail

getConversationCount(Date, Date) Method

public int getConversationCount(Date startTime, 
                                Date endTime)
throws MessageTrackingRuntimeException
Gets conversation count.

Parameters

startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total conversations that occurred within the passed time period

Exceptions

MessageTrackingRuntimeException

getConversationCountByPartner(String, Date, Date) Method

public int getConversationCountByPartner(String partnerId, 
                                         Date startTime, 
                                         Date endTime)
throws MessageTrackingRuntimeException
Gets conversation count by partner.

Parameters

partnerId
the Id of the partner interested in
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total conversations that occurred with the the specified partner

Exceptions

MessageTrackingRuntimeException

getConversationCountByPartners(String, String, Date, Date) Method

public int getConversationCountByPartners(String fromPartnerId, 
                                          String toPartnerId, 
                                          Date startTime, 
                                          Date endTime)
throws MessageTrackingRuntimeException
Gets conversation count by partners.

Parameters

fromPartnerId
the Id of the from partner
toPartnerId
the Id ot the to partner
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total conversations that occurred between the specified partners

Exceptions

MessageTrackingRuntimeException

getMessageCountByConversationAndDirection(String, String, Date, Date) Method

public int getMessageCountByConversationAndDirection(String conversationId, 
                                                     String direction, 
                                                     Date startTime, 
                                                     Date endTime)
throws MessageTrackingRuntimeException
Gets message count by conversation and direction.

Parameters

conversationId
the Id of the conversation interested in
direction
"sent" or "received"
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total messages exchanged in a specified conversation and in the specified direction

Exceptions

MessageTrackingRuntimeException

getMessageCountByDirection(String, Date, Date) Method

public int getMessageCountByDirection(String direction, 
                                      Date startTime, 
                                      Date endTime)
throws MessageTrackingRuntimeException
Gets message count by direction.

Parameters

direction
"sent" or "received"
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total messages exchanged in the specified direction

Exceptions

MessageTrackingRuntimeException

getMessageCountByPartnerAndDirection(String, String, Date, Date) Method

public int getMessageCountByPartnerAndDirection(String partnerId, 
                                                String direction, 
                                                Date startTime, 
                                                Date endTime)
throws MessageTrackingRuntimeException
Gets message count by partner and direction.

Parameters

partnerId
the Id of the partner interested in
direction
"sent" or "received"
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total messages exchanged by the specified partner in the specified direction

Exceptions

MessageTrackingRuntimeException

getMessageCountByPartnersAndDirection(String, String, String, Date, Date) Method

public int getMessageCountByPartnersAndDirection(String fromPartnerId, 
                                                 String toPartnerId, 
                                                 String direction, 
                                                 Date startTime, 
                                                 Date endTime)
throws MessageTrackingRuntimeException
Gets message count by partners and direction.

Parameters

fromPartnerId
the Id of the from partner
toPartnerId
the Id ot the to partner
direction
"sent" or "received"
startTime
the start timestamp of the time period interested in
endTime
the end timestamp of the time period interested in

Returns

total messages exchanged between the specified partners in the specified direction

Exceptions

MessageTrackingRuntimeException