Skip navigation links

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


weblogic.management.runtime
Interface JMSServerRuntimeMBean

All Superinterfaces:
CursorRuntimeMBean, DynamicMBean, HealthFeedback, JMSMessageCursorRuntimeMBean, MBeanRegistration, MessageCursorRuntimeMBean, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface JMSServerRuntimeMBean
extends JMSMessageCursorRuntimeMBean, HealthFeedback

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

getHealthState

HealthState getHealthState()

The health state of this JMS server.

Specified by:
getHealthState in interface HealthFeedback
Returns:
The healthState value

getSessionPoolRuntimes

JMSSessionPoolRuntimeMBean[] getSessionPoolRuntimes()

The session pools running on this JMS server.

Returns:
The sessionPoolRuntimes value

getSessionPoolsCurrentCount

long getSessionPoolsCurrentCount()

The current number of session pools instantiated on this JMS server.

Returns:
The sessionPoolsCurrentCount value

getSessionPoolsHighCount

long getSessionPoolsHighCount()

The peak number of session pools instantiated on this JMS server since the last reset.

Returns:
The sessionPoolsHighCount value

getSessionPoolsTotalCount

long getSessionPoolsTotalCount()

The number of session pools instantiated on this JMS server since the last reset.

Returns:
The sessionPoolsTotalCount value

getDestinations

JMSDestinationRuntimeMBean[] getDestinations()

An array of destinations on this JMS server.

Returns:
The destinations value

getDestinationsCurrentCount

long getDestinationsCurrentCount()

The current number of destinations for this JMS server.

Returns:
The destinationsCurrentCount value

getDestinationsHighCount

long getDestinationsHighCount()

The peak number of destinations on this JMS server since the last reset.

Returns:
The destinationsHighCount value

getDestinationsTotalCount

long getDestinationsTotalCount()

The number of destinations instantiated on this JMS server since the last reset.

Returns:
The destinationsTotalCount value

getMessagesCurrentCount

long getMessagesCurrentCount()

The current number of messages stored on this JMS server. This number does not include the pending messages.

Returns:
The messagesCurrentCount value

getMessagesPendingCount

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.

Returns:
The messagesPendingCount value

getMessagesHighCount

long getMessagesHighCount()

The peak number of messages stored in the JMS server since the last reset.

Returns:
The messagesHighCount value

getMessagesReceivedCount

long getMessagesReceivedCount()

The number of messages received on this destination since the last reset.

Returns:
The messagesReceivedCount value

getMessagesThresholdTime

long getMessagesThresholdTime()

The amount of time in the threshold condition since the last reset.

Returns:
The messagesThresholdTime value

getBytesCurrentCount

long getBytesCurrentCount()

The current number of bytes stored on this JMS server.

This number does not include the pending bytes.

Returns:
The bytesCurrentCount value

getBytesPendingCount

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.

Returns:
The bytesPendingCount value

getBytesHighCount

long getBytesHighCount()

The peak number of bytes stored in the JMS server since the last reset.

Returns:
The bytesHighCount value

getBytesReceivedCount

long getBytesReceivedCount()

The number of bytes received on this JMS server since the last reset.

Returns:
The bytesReceivedCount value

getBytesThresholdTime

long getBytesThresholdTime()

The amount of time in the threshold condition since the last reset.

Returns:
The bytesThresholdTime value

pauseProduction

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.

Throws:
JMSException - Thrown when an internal JMS error occurs while pausing the production.
See Also:
JMSServerRuntimeMBean.resumeProduction(), JMSServerRuntimeMBean.pauseInsertion(), JMSServerRuntimeMBean.pauseConsumption()

isProductionPaused

boolean isProductionPaused()

Returns the current production paused state of the JMSServer as boolean value.

Returns:
returns true if the JMSServer is currently paused for new message production, false otherwise.

getProductionPausedState

String getProductionPausedState()

Returns the current production paused state of the JMSServer as string value.

Returns:
The possible values are:
  • Production-Paused - indicates that the JMSServer and all of its destinations are currently paused for new message production.
  • Production-Pausing - indicates that the JMSServer is in the process of pausing all the destinations for new message production.
  • Production-Enabled - indicates that the JMSServer is not currently paused for new message prdoduction.

resumeProduction

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.

Throws:
JMSException - Thrown when an internal JMS error occurs while resuming the production.

pauseInsertion

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.

Throws:
JMSException - Thrown when an internal JMS error occurs while pausing the insertion.
See Also:
JMSServerRuntimeMBean.resumeInsertion(), JMSServerRuntimeMBean.pauseProduction(), JMSServerRuntimeMBean.pauseConsumption()

isInsertionPaused

boolean isInsertionPaused()

Returns the current insertion paused state of the JMSServer as boolean value.

Returns:
returns true if the JMSServer is currently paused for insertion of the in-flight messages, false otherwise.

getInsertionPausedState

String getInsertionPausedState()

Returns the current insertion paused state of the JMSServer as string value.

Returns:
The possible values are:
  • Insertion-Paused - indicates that the JMSServer and all of its destinations are currently paused for new message as in-flight message production.
  • Insertion-Pausing - indicates that the JMSServer in the process of pausing all the destinations for new message as well as in-flight message production.
  • Insertion-Enabled - indicates that the JMSServer is not currently paused for in-flight message production.

resumeInsertion

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.

Throws:
JMSException - Thrown when an internal JMS error occurs while resuming the insertion.

pauseConsumption

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

Throws:
JMSException

isConsumptionPaused

boolean isConsumptionPaused()

Returns the current consumption paused state of the JMSServer as boolean value.

Returns:
returns true if the JMSServer is currently paused for consumption of messages, false otherwise.
Throws:
JMSException - Thrown when an internal JMS error occurs while pausing the consumption.

getConsumptionPausedState

String getConsumptionPausedState()

Returns the current consumption paused state of the JMSServer as string value.

Returns:
The possible values are:
  • Consumption-Paused - indicates that the JMSServer and all of its destinations are currently paused for message consumption by the consumers. operation.
  • Consumption-Pausing - indicates that the JMSServer in the process of pausing all the destinations for message consumption by the consumers.
  • Consumption-Enabled - indicates that the JMSServer is not currently paused for message consumption by the consumers.

resumeConsumption

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.

Throws:
JMSException - Thrown when an internal JMS error occurs while resuming the consumption.

getTransactions

String[] getTransactions()

Returns an array of Xids representing transaction branches that exist on this JMS server in any state.

Returns:
An array of Xids in string representation.
See Also:
Xid

getPendingTransactions

String[] getPendingTransactions()
Returns an array of Xids representing transaction branches that exist onthis JMS server in the pending state, i.e. branches that have been prepared by the transaction manager but not yet committed or rolled back.
Returns:
An array of Xids in string representation.
See Also:
Xid

getTransactionStatus

Integer getTransactionStatus(String xid)

Given an Xid this method returns the JTA status of the associated JMS transaction branch.

Parameters:
xid - An Xid in string representation for a JMS transaction branch.
Returns:
An integer value representing a JTA transaction state.
See Also:
Xid, Status

getMessages

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.

Parameters:
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.
Returns:
A message cursor containing messages associated with the transaction branch, possibly from multiple destinations.
Throws:
JMSException - thrown when an error occurs while processing the request.
ManagementException
See Also:
Xid, JMSMessageCursorRuntimeMBean

forceCommit

Void forceCommit(String xid)
                 throws ManagementException

Causes the work associated with the specified transaction branch to be committed.

Parameters:
xid - An xid in string representation for a JMS transaction branch.
Throws:
JMSException - thrown when an error occurs while processing the request.
ManagementException

forceRollback

Void forceRollback(String xid)
                   throws ManagementException

Causes the work associated with the specified transaction branch to be rolled back.

Parameters:
xid - An xid in string representation for a JMS transaction branch.
Throws:
JMSException - thrown when an error occurs while processing the request.
ManagementException

getMessagesPageableCurrentCount

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.


getBytesPageableCurrentCount

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.


getMessagesPagedOutTotalCount

int getMessagesPagedOutTotalCount()

Return the total number of messages that were written to the paging directory since the JMS server was started.


getMessagesPagedInTotalCount

int getMessagesPagedInTotalCount()

Return the total number of messages that were read from the paging directory since the JMS server was started.


getBytesPagedOutTotalCount

long getBytesPagedOutTotalCount()

Return the total number of bytes that were written to the paging directory since the JMS server was started.


getBytesPagedInTotalCount

long getBytesPagedInTotalCount()
Return the total number of bytes that were read from the paging directory since the JMS server was started.

getPagingAllocatedWindowBufferBytes

long getPagingAllocatedWindowBufferBytes()
See PersistentStoreRuntimeMBean.AllocatedWindowBufferBytes

getPagingAllocatedIoBufferBytes

long getPagingAllocatedIoBufferBytes()
See PersistentStoreRuntimeMBean.AllocatedIoBufferBytes

getPagingPhysicalWriteCount

long getPagingPhysicalWriteCount()
See PersistentStoreRuntimeMBean.PhysicalWriteCount

Skip navigation links

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