|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSServerRuntimeMBean
This class is used for monitoring a WebLogic JMS server.
Method Summary | |
---|---|
abstract Void |
forceCommit(String xid) Causes the work associated with the specified transaction branch to be committed. |
abstract Void |
forceRollback(String xid) Causes the work associated with the specified transaction branch to be rolled back. |
abstract long |
getBytesCurrentCount() The current number of bytes stored on this JMS server. |
abstract long |
getBytesHighCount() The peak number of bytes stored in the JMS server since the last reset. |
abstract long |
getBytesPageableCurrentCount() Return the total number of bytes in all the messages that are currently available to be paged out, but which have not yet been paged out. |
abstract long |
getBytesPagedInTotalCount() Return the total number of bytes that were read from the paging directory since the JMS server was started. |
abstract long |
getBytesPagedOutTotalCount() Return the total number of bytes that were written to the paging directory since the JMS server was started. |
abstract long |
getBytesPendingCount() The current number of bytes pending (unacknowledged or uncommitted) stored on this JMS server. |
abstract long |
getBytesReceivedCount() The number of bytes received on this JMS server since the last reset. |
abstract long |
getBytesThresholdTime() The amount of time in the threshold condition since the last reset. |
abstract String |
getConsumptionPausedState() Returns the current consumption paused state of the JMSServer as string value. |
abstract JMSDestinationRuntimeMBean[] |
getDestinations() An array of destinations on this JMS server. |
abstract long |
getDestinationsCurrentCount() The current number of destinations for this JMS server. |
abstract long |
getDestinationsHighCount() The peak number of destinations on this JMS server since the last reset. |
abstract long |
getDestinationsTotalCount() The number of destinations instantiated on this JMS server since the last reset. |
abstract HealthState |
getHealthState() The health state of this JMS server. |
abstract String |
getInsertionPausedState() Returns the current insertion paused state of the JMSServer as string value. |
abstract String |
getMessages(String xid, Integer timeoutSeconds) Returns a set of messages that are associated with a JMS transaction branch. |
abstract long |
getMessagesCurrentCount() The current number of messages stored on this JMS server. |
abstract long |
getMessagesHighCount() The peak number of messages stored in the JMS server since the last reset. |
abstract int |
getMessagesPageableCurrentCount() Return the number of messages that are currently available for paging in this JMS server but have not yet been paged out. |
abstract int |
getMessagesPagedInTotalCount() Return the total number of messages that were read from the paging directory since the JMS server was started. |
abstract int |
getMessagesPagedOutTotalCount() Return the total number of messages that were written to the paging directory since the JMS server was started. |
abstract long |
getMessagesPendingCount() The current number of messages pending (unacknowledged or uncommitted) stored on this JMS server. |
abstract long |
getMessagesReceivedCount() The number of messages received on this destination since the last reset. |
abstract long |
getMessagesThresholdTime() The amount of time in the threshold condition since the last reset. |
abstract long |
getPagingAllocatedIoBufferBytes() See PersistentStoreRuntimeMBean.AllocatedIoBufferBytes |
abstract long |
getPagingAllocatedWindowBufferBytes() See PersistentStoreRuntimeMBean.AllocatedWindowBufferBytes |
abstract long |
getPagingPhysicalWriteCount() See PersistentStoreRuntimeMBean.PhysicalWriteCount |
abstract String[] |
getPendingTransactions() Returns an array of Xids representing transaction branches that exist onthis JMS server in the pending state, i.e. |
abstract String |
getProductionPausedState() Returns the current production paused state of the JMSServer as string value. |
abstract JMSSessionPoolRuntimeMBean[] |
getSessionPoolRuntimes() The session pools running on this JMS server. |
abstract long |
getSessionPoolsCurrentCount() The current number of session pools instantiated on this JMS server. |
abstract long |
getSessionPoolsHighCount() The peak number of session pools instantiated on this JMS server since the last reset. |
abstract long |
getSessionPoolsTotalCount() The number of session pools instantiated on this JMS server since the last reset. |
abstract String[] |
getTransactions() Returns an array of Xids representing transaction branches that exist on this JMS server in any state. |
abstract Integer |
getTransactionStatus(String xid) Given an Xid this method returns the JTA status of the associated JMS transaction branch. |
abstract boolean |
isConsumptionPaused() Returns the current consumption paused state of the JMSServer as boolean value. |
abstract boolean |
isInsertionPaused() Returns the current insertion paused state of the JMSServer as boolean value. |
abstract boolean |
isProductionPaused() Returns the current production paused state of the JMSServer as boolean value. |
abstract void |
pauseConsumption() Pauses the consumption operation on all the destinations hosted by the JMSServer. |
abstract void |
pauseInsertion() Pauses the appearance of any messages on all the destinations of the JMSServer, that are result of the in-flight work completion on all the destinations hosted by this JMSServer. |
abstract void |
pauseProduction() Pauses the new message production on all the destinations hosted by the JMSServer. |
abstract void |
resumeConsumption() Resumes the consumption operation on all the destinations hosted by the JMSSever. |
abstract void |
resumeInsertion() Resumes the in-flight message production operation on all the destinations hosted by the JMSServer. |
abstract void |
resumeProduction() Resumes the new message production operation on all the destinations hosted by the JMSServer. |
Methods inherited from interface weblogic.management.runtime.JMSMessageCursorRuntimeMBean |
---|
sort |
Methods inherited from interface weblogic.management.runtime.MessageCursorRuntimeMBean |
---|
getMessage, getMessage |
Methods inherited from interface weblogic.management.runtime.CursorRuntimeMBean |
---|
closeCursor, getCursorEndPosition, getCursorSize, getCursorStartPosition, getItems, getNext, getPrevious |
Methods inherited from interface weblogic.management.runtime.RuntimeMBean |
---|
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface weblogic.management.WebLogicMBean |
---|
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent |
Methods inherited from interface javax.management.DynamicMBean |
---|
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
---|
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
---|
HealthState getHealthState()
The health state of this JMS server.
getHealthState
in interface HealthFeedback
JMSSessionPoolRuntimeMBean[] getSessionPoolRuntimes()
The session pools running on this JMS server.
long getSessionPoolsCurrentCount()
The current number of session pools instantiated on this JMS server.
long getSessionPoolsHighCount()
The peak number of session pools instantiated on this JMS server since the last reset.
long getSessionPoolsTotalCount()
The number of session pools instantiated on this JMS server since the last reset.
JMSDestinationRuntimeMBean[] getDestinations()
An array of destinations on this JMS server.
long getDestinationsCurrentCount()
The current number of destinations for this JMS server.
long getDestinationsHighCount()
The peak number of destinations on this JMS server since the last reset.
long getDestinationsTotalCount()
The number of destinations instantiated on this JMS server since the last reset.
long getMessagesCurrentCount()
The current number of messages stored on this JMS server. This number does not include the pending messages.
long getMessagesPendingCount()
The current number of messages pending (unacknowledged or uncommitted) stored on this JMS server.
Pending messages are over and above the current number of messages.
long getMessagesHighCount()
The peak number of messages stored in the JMS server since the last reset.
long getMessagesReceivedCount()
The number of messages received on this destination since the last reset.
long getMessagesThresholdTime()
The amount of time in the threshold condition since the last reset.
long getBytesCurrentCount()
The current number of bytes stored on this JMS server.
This number does not include the pending bytes.
long getBytesPendingCount()
The current number of bytes pending (unacknowledged or uncommitted) stored on this JMS server.
Pending bytes are over and above the current number of bytes.
long getBytesHighCount()
The peak number of bytes stored in the JMS server since the last reset.
long getBytesReceivedCount()
The number of bytes received on this JMS server since the last reset.
long getBytesThresholdTime()
The amount of time in the threshold condition since the last reset.
void pauseProduction() throws JMSException
Pauses the new message production on all the destinations hosted by the JMSServer.
When the production paused, it would prevent any new produce operations from both new and existing producers attached to the destinations. When the destination is "resumed from production pause", all the new message production is allowed from both new and existing producers attached to that destination.
JMSException
- Thrown when an internal JMS error occurs while pausing the production.JMSServerRuntimeMBean.resumeProduction()
, JMSServerRuntimeMBean.pauseInsertion()
, JMSServerRuntimeMBean.pauseConsumption()
boolean isProductionPaused()
Returns the current production paused state of the JMSServer as boolean value.
String getProductionPausedState()
Returns the current production paused state of the JMSServer as string value.
void resumeProduction() throws JMSException
Resumes the new message production operation on all the destinations hosted by the JMSServer. The state of the JMSServer shall be marked as "production enabled" thus allowing all the new "producing" activity to continue normally. Invoking this API on a JMSServer that is currently not in "production paused" state has no effect.
JMSException
- Thrown when an internal JMS error occurs while resuming the production.void pauseInsertion() throws JMSException
Pauses the appearance of any messages on all the destinations of the JMSServer, that are result of the in-flight work completion on all the destinations hosted by this JMSServer.
Definition of In-Flight work
The definitions below are based on the current implementation of WebLogic JMS subsystem.
In-flight messages associated with Producers
Messages that are produced by the producer, with "birth time" (TimeToDeliver) set in future are called un-born messages and are counted as "pending" messages in the destination statistics and are not available for consumers yet.
These are the messages that are produced by the producer as part of the transaction (using either user transaction or transacted session) and the transaction is still not committed or rolled back. These messages are also counted as "pending" messages in the destination statistics and are not available for consumption.
These are the messages that are produced by the producers but are not able reach the destination because of (either message or byte or both) quota limit on the destination and the producers are willing to block for a specific period of time for the quota to be available. These messages are invisible to the system and are not counted against any of the destination statistics.
In-flight messages associated with Consumers
These are the messages that are successfully consumed by the clients using a "client acknowledge" session, and are awaiting acknowledgements from the clients. These are "pending messages" which will be removed from the destination/system when the acknowledgement is received.
These are the messages that are consumed (received) by the clients within a transaction (using either user transaction or transacted session) and the transaction is still not committed or rolled back. When the clients successfully commit the transaction the messages get removed from the system.
These are the messages that are put back on the destination because of a successful rollback of transactional receive by the consumers. These messages might or might not be ready for consumption (re-delivered) to the clients immediately, depending on the redelivery parameters, RedeliveryDelay and/or RedeliveryDelayOverride and RedeliveryLimit configured on the associated JMSConnectionFactory and JMSDestination respectively.
If there is a redelivery delay configured, then for that "delay" duration, the messages are not available for consumption and are counted as "pending" in the destination statistics and after the "delay" period, if the redelivery limit is not exceeded, then they are delivered (made available for consumption) on that destination and are counted as "current" messages in the destination statistics. If the redelivery limit exceeds, then those messages will be moved to the ErrorDestination, if one configured.
Another parameter that controls the availability of the rolled back messages is RedeliveryLimit.
These messages are similar to ROLLED BACK MESSAGES except that these messages appear on the queue because of an explicit call to session "recover" by the client.
These are again similar to ROLLED BACK MESSAGES except that these messages may re-appear on the destination because of an un-successful delivery attempt to the client (consumer crash, close etc.).
JMSException
- Thrown when an internal JMS error occurs while pausing the insertion.JMSServerRuntimeMBean.resumeInsertion()
, JMSServerRuntimeMBean.pauseProduction()
, JMSServerRuntimeMBean.pauseConsumption()
boolean isInsertionPaused()
Returns the current insertion paused state of the JMSServer as boolean value.
String getInsertionPausedState()
Returns the current insertion paused state of the JMSServer as string value.
void resumeInsertion() throws JMSException
Resumes the in-flight message production operation on all the destinations hosted by the JMSServer. The state of the JMSServer shall be marked as "insertion enabled" thus allowing all the messages from in-flight work completion are alloed to appear on the destinations.
Invoking this API on a JMSServer that is currently not in "insertion paused" state has no effect.
JMSException
- Thrown when an internal JMS error occurs while resuming the insertion.void pauseConsumption() throws JMSException
Pauses the consumption operation on all the destinations hosted by the JMSServer.
When the JMSServer is paused for consumption, all of its destination's state is marked as "consumption paused" and all the new synchronous receive operations will block until the destination is resumed and there are messages available for consumption. All the synchronous receive with blocking timeout will block until the timeout happens during the consumption paused state.
All the asynchronous consumers attached to that destination will not get any messages delivered to them while the destination in "consumption paused" state.
After a successful consumption "pause" operation, the user has to explicitly "resume" the destination to allow for any further consume operations on that destination
JMSException
boolean isConsumptionPaused()
Returns the current consumption paused state of the JMSServer as boolean value.
JMSException
- Thrown when an internal JMS error occurs while pausing the consumption.String getConsumptionPausedState()
Returns the current consumption paused state of the JMSServer as string value.
void resumeConsumption() throws JMSException
Resumes the consumption operation on all the destinations hosted by the JMSSever.
The state of the destinations shall be marked as "consumption enabled" thus allowing all the "consuming" activity to continue normally.
Invoking this API on a JMSServer that is currently not in "consumption paused" state has no effect.
JMSException
- Thrown when an internal JMS error occurs while resuming the consumption.String[] getTransactions()
Returns an array of Xids representing transaction branches that exist on this JMS server in any state.
Xid
String[] getPendingTransactions()
Xid
Integer getTransactionStatus(String xid)
Given an Xid this method returns the JTA status of the associated JMS transaction branch.
xid
- An Xid in string representation for a JMS transaction branch.Xid
, Status
String getMessages(String xid, Integer timeoutSeconds) throws ManagementException
Returns a set of messages that are associated with a JMS transaction branch. Note that the result set is returned to the caller in the form of a message cursor that may contain messages from several destinations on this JMS server.
The timeout parameter specifies the amount of time in seconds for which the cursor is valid. Upon timeout expiration the cursor is invalidated and the associated resources released.
xid
- An Xid in string representation for a JMS transaction branch.timeoutSeconds
- The last access timeout for the cursor. The cursor resources will be reclaimed if it is not accessed within the specified time interval. A value of 0 indicates no timeout.JMSException
- thrown when an error occurs while processing the request.ManagementException
Xid
, JMSMessageCursorRuntimeMBean
Void forceCommit(String xid) throws ManagementException
Causes the work associated with the specified transaction branch to be committed.
xid
- An xid in string representation for a JMS transaction branch.JMSException
- thrown when an error occurs while processing the request.ManagementException
Void forceRollback(String xid) throws ManagementException
Causes the work associated with the specified transaction branch to be rolled back.
xid
- An xid in string representation for a JMS transaction branch.JMSException
- thrown when an error occurs while processing the request.ManagementException
int getMessagesPageableCurrentCount()
Return the number of messages that are currently available for paging in this JMS server but have not yet been paged out. Note that due to internal implementation details, this count may be zero even if "PageableByteCurrentCount" is zero.
long getBytesPageableCurrentCount()
Return the total number of bytes in all the messages that are currently available to be paged out, but which have not yet been paged out. The JMS server attempts to keep this number smaller than the "MessageBufferSize" parameter.
int getMessagesPagedOutTotalCount()
Return the total number of messages that were written to the paging directory since the JMS server was started.
int getMessagesPagedInTotalCount()
Return the total number of messages that were read from the paging directory since the JMS server was started.
long getBytesPagedOutTotalCount()
Return the total number of bytes that were written to the paging directory since the JMS server was started.
long getBytesPagedInTotalCount()
long getPagingAllocatedWindowBufferBytes()
long getPagingAllocatedIoBufferBytes()
long getPagingPhysicalWriteCount()
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |