KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > JMSAvailabilityConfig


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.appserv.management.config;
24
25 import com.sun.appserv.management.base.XTypes;
26
27
28 /**
29     Represents the <jms-availability> element.
30     @since AppServer 9.0
31     @see AvailabilityServiceConfig
32 */

33
34 public interface JMSAvailabilityConfig extends ConfigElement, PropertiesAccess
35 {
36 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
37     public static final String JavaDoc J2EE_TYPE = XTypes.JMS_AVAILABILITY_CONFIG;
38     
39     /**
40         This boolean flag controls whether the MQ cluster associated
41         with the application server cluster is HA enabled or not. If
42         this attribute is "false", then the MQ cluster pointed to by
43         the jms-service element is considered non-HA. JMS Messages
44         are not persisted to a highly available store. If this
45         attribute is "true" the MQ cluster pointed to by the
46         jms-service element is a HA cluster and the MQ cluster uses
47         the database pointed to by mq-store-pool-name to save
48         persistent JMS messages and other broker cluster
49         configuration information. Individual applications will not
50         be able to control or override MQ cluster availability
51         levels. They inherit the availability attribute defined in
52         this element. If this attribute is missing, availability is
53         turned off by default [i.e. the MQ cluster associated with
54         the AS cluster would behave as a non-HA cluster]
55      */

56     public boolean getAvailabilityEnabled();
57     
58     /**
59         @see #getAvailabilityEnabled
60      */

61     public void setAvailabilityEnabled( boolean value );
62
63     /**
64         This is the jndi-name for the JDBC Connection Pool used by
65         the MQ broker cluster for use in saving persistent JMS
66         messages and other broker cluster configuration information.
67         It will default to value of store-pool-name under
68         availability-service (ultimately "jdbc/hastore").
69      */

70     public String JavaDoc getMQStorePoolName();
71     
72     /**
73         @see #getMQStorePoolName
74      */

75     public void setMQStorePoolName( String JavaDoc name );
76
77
78
79
80 }
81
Popular Tags