KickJava   Java API By Example, From Geeks To Geeks.

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


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  
24 /*
25  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/config/EJBContainerConfig.java,v 1.4 2006/03/09 20:30:23 llc Exp $
26  * $Revision: 1.4 $
27  * $Date: 2006/03/09 20:30:23 $
28  */

29
30
31 package com.sun.appserv.management.config;
32
33 import java.util.Map JavaDoc;
34
35
36
37 import com.sun.appserv.management.base.XTypes;
38 import com.sun.appserv.management.base.Container;
39
40
41
42 /**
43      Configuration for the <ejb-container> element.
44  */

45 public interface EJBContainerConfig extends
46     AMXConfig, Container, PropertiesAccess
47 {
48 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
49     public static final String JavaDoc J2EE_TYPE = XTypes.EJB_CONTAINER_CONFIG;
50
51     String JavaDoc getCacheIdleTimeoutInSeconds();
52     void setCacheIdleTimeoutInSeconds( final String JavaDoc value );
53
54     String JavaDoc getCacheResizeQuantity();
55     void setCacheResizeQuantity( final String JavaDoc value );
56
57     String JavaDoc getCommitOption();
58     void setCommitOption( final String JavaDoc value );
59
60     String JavaDoc getMaxCacheSize();
61     void setMaxCacheSize( final String JavaDoc value );
62
63     String JavaDoc getMaxPoolSize();
64     void setMaxPoolSize( final String JavaDoc value );
65
66     String JavaDoc getPoolIdleTimeoutInSeconds();
67     void setPoolIdleTimeoutInSeconds( final String JavaDoc value );
68
69     String JavaDoc getPoolResizeQuantity();
70     void setPoolResizeQuantity( final String JavaDoc value );
71
72     String JavaDoc getRemovalTimeoutInSeconds();
73     void setRemovalTimeoutInSeconds( final String JavaDoc value );
74
75     String JavaDoc getSessionStore();
76     void setSessionStore( final String JavaDoc value );
77
78     String JavaDoc getSteadyPoolSize();
79     void setSteadyPoolSize( final String JavaDoc value );
80
81     String JavaDoc getVictimSelectionPolicy();
82     void setVictimSelectionPolicy( final String JavaDoc value );
83
84     /**
85         Creates ejb-timer-service element. Legal options include:
86         <ul>
87         <li>{@link EJBTimerServiceConfigKeys#MINIMUM_DELIVERY_INTERVAL_IN_MILLIS_KEY}</li>
88         <li>{@link EJBTimerServiceConfigKeys#MAX_REDELIVERIES_KEY}</li>
89         <li>{@link EJBTimerServiceConfigKeys#TIMER_DATASOURCE_KEY}</li>
90         <li>{@link EJBTimerServiceConfigKeys#REDELIVERY_INTERVAL__INTERNAL_IN_MILLIS_KEY}</li>
91         </ul>
92
93         @param params
94         @return A proxy to the EJBTimerServiceConfig MBean.
95         @see EJBTimerServiceConfigKeys#REDELIVERY_INTERVAL__INTERNAL_IN_MILLIS_KEY
96      */

97     EJBTimerServiceConfig createEJBTimerServiceConfig( Map JavaDoc<String JavaDoc,String JavaDoc> params );
98
99     /**
100         Removes ejb-timer-service element from config
101      */

102     void removeEJBTimerServiceConfig();
103
104
105     /**
106         @return Get the EJBTimerServiceConfig MBean.
107      */

108     EJBTimerServiceConfig getEJBTimerServiceConfig();
109 }
110
Popular Tags