BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.management.configuration
Class JMSLegalHelper

java.lang.Object
  |
  +--weblogic.management.configuration.JMSLegalHelper

public class JMSLegalHelper
extends java.lang.Object

A Helper class to verify that configured JMS values are legal.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
JMSLegalHelper()
           
 
Method Summary
static boolean isBytesThresholdSet(JMSDestinationMBean currentDest, java.lang.Object value)
          A Helper method to verify that the BytesThresholsHigh and MessageThresholdLow is set when setting a destiantion's MessagePagingEnabled to true.
static boolean isBytesThresholdSet(JMSServerMBean currentJMSServer, java.lang.Object value)
          A Helper method to verify that the BytesThresholsHigh and MessageThresholdLow is set when setting JMSServer's MessagePagingEnabled to true.
static boolean isMessagesThresholdSet(JMSDestinationMBean currentDest, java.lang.Object value)
          A Helper method to verify that the MessagesThresholsHigh and MessageThresholdLow is set when setting a destiantion's MessagePagingEnabled to true.
static boolean isMessagesThresholdSet(JMSServerMBean currentJMSServer, java.lang.Object value)
          A Helper method to verify that the MessagesThresholsHigh and MessageThresholdLow is set when setting JMSServer's MessagePagingEnabled to true.
static boolean isUnowned(JMSServerMBean currentServer, WebLogicObjectName newStoreObjectName)
          A Helper method to verify that the new JMS store for a JMS server is not in use by another JMS server.
static boolean legalErrorDestination(JMSDestCommonMBean currentDest, WebLogicObjectName errorDestObjectName)
          A Helper method to verify that a proposed error destination exists on the same JMS server as the destination it is targeted on.
static boolean legalOrder(java.lang.Object o, WebLogicObjectName newKey)
          A Helper method to verify the legal order of destination keys configured for a destination.
static boolean legalOrder(java.lang.Object o, WebLogicObjectName[] newKeys)
          A Helper method to verify the legal order of destination keys configured for a destination.
static boolean legalTimeToDeliverOverride(java.lang.Object value)
          A Helper method to verify that a particular time-to-deliver override is legal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSLegalHelper

public JMSLegalHelper()
Method Detail

legalOrder

public static boolean legalOrder(java.lang.Object o,
                                 WebLogicObjectName[] newKeys)
                          throws javax.management.InvalidAttributeValueException
A Helper method to verify the legal order of destination keys configured for a destination. If JMSMessageID is one of the keys, it has to be the last one. This method is called when the keys are originally set.

legalOrder

public static boolean legalOrder(java.lang.Object o,
                                 WebLogicObjectName newKey)
                          throws javax.management.InvalidAttributeValueException
A Helper method to verify the legal order of destination keys configured for a destination. If JMSMessageID is one of the keys, it has to be the last one. This method is called when a new key is added to the end.

isUnowned

public static boolean isUnowned(JMSServerMBean currentServer,
                                WebLogicObjectName newStoreObjectName)
                         throws javax.management.InvalidAttributeValueException
A Helper method to verify that the new JMS store for a JMS server is not in use by another JMS server. It must be public to allow the BeanShell interpreter to call it.

legalTimeToDeliverOverride

public static boolean legalTimeToDeliverOverride(java.lang.Object value)
                                          throws javax.management.InvalidAttributeValueException
A Helper method to verify that a particular time-to-deliver override is legal. It may either by a long > -1 or a string that represents a schedule.

legalErrorDestination

public static boolean legalErrorDestination(JMSDestCommonMBean currentDest,
                                            WebLogicObjectName errorDestObjectName)
                                     throws javax.management.InvalidAttributeValueException
A Helper method to verify that a proposed error destination exists on the same JMS server as the destination it is targeted on.

isMessagesThresholdSet

public static boolean isMessagesThresholdSet(JMSServerMBean currentJMSServer,
                                             java.lang.Object value)
                                      throws javax.management.InvalidAttributeValueException
A Helper method to verify that the MessagesThresholsHigh and MessageThresholdLow is set when setting JMSServer's MessagePagingEnabled to true.

isBytesThresholdSet

public static boolean isBytesThresholdSet(JMSServerMBean currentJMSServer,
                                          java.lang.Object value)
                                   throws javax.management.InvalidAttributeValueException
A Helper method to verify that the BytesThresholsHigh and MessageThresholdLow is set when setting JMSServer's MessagePagingEnabled to true.

isMessagesThresholdSet

public static boolean isMessagesThresholdSet(JMSDestinationMBean currentDest,
                                             java.lang.Object value)
                                      throws javax.management.InvalidAttributeValueException
A Helper method to verify that the MessagesThresholsHigh and MessageThresholdLow is set when setting a destiantion's MessagePagingEnabled to true.

isBytesThresholdSet

public static boolean isBytesThresholdSet(JMSDestinationMBean currentDest,
                                          java.lang.Object value)
                                   throws javax.management.InvalidAttributeValueException
A Helper method to verify that the BytesThresholsHigh and MessageThresholdLow is set when setting a destiantion's MessagePagingEnabled to true.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.