KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > connectionmanager > CachedConnectionManagerMBean


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jboss.resource.connectionmanager;
23
24 import java.util.Map JavaDoc;
25
26 import javax.management.ObjectName JavaDoc;
27
28 import org.jboss.mx.util.ObjectNameFactory;
29 import org.jboss.system.ServiceMBean;
30
31 /**
32  * MBean interface.
33  *
34  * @author <a HREF="mailto:adrian@jboss.com">Adrian Brock</a>
35  * @version $Revision: 38338 $
36  */

37 public interface CachedConnectionManagerMBean extends ServiceMBean
38 {
39    public static final ObjectName JavaDoc OBJECT_NAME = ObjectNameFactory.create("jboss.jca:service=CachedConnectionManager");
40
41    /**
42     * Get the SpecCompliant value.
43     *
44     * @return the SpecCompliant value.
45     */

46    boolean isSpecCompliant();
47
48    /**
49     * Set the SpecCompliant value.
50     *
51     * @param specCompliant The new SpecCompliant value.
52     */

53    void setSpecCompliant(boolean specCompliant);
54
55    /**
56     * Get the debug value.
57     *
58     * @return the debug value.
59     */

60    boolean isDebug();
61
62    /**
63     * Set the Debug value.
64     *
65     * @param value The new debug value.
66     */

67    void setDebug(boolean value);
68
69    /**
70     * Get the error value.
71     *
72     * @return the error value.
73     */

74    boolean isError();
75
76    /**
77     * Set the error value.
78     *
79     * @param value The new error value.
80     */

81    void setError(boolean value);
82
83    /**
84     * Get the TransactionManagerServiceName value.
85     *
86     * @return the TransactionManagerServiceName value.
87     */

88    ObjectName JavaDoc getTransactionManagerServiceName();
89
90    /**
91     * Set the TransactionManagerServiceName value.
92     *
93     * @param transactionManagerServiceName The new TransactionManagerServiceName value.
94     */

95    void setTransactionManagerServiceName(ObjectName JavaDoc transactionManagerServiceName);
96
97    /**
98     * The Instance attribute simply holds the current instance, which is normally the only instance of CachedConnectionManager.
99     *
100     * @return a <code>CachedConnectionManager</code> value
101     */

102    CachedConnectionManager getInstance();
103
104    /**
105     * Get the inuse connections
106     *
107     * @return the number of inuse connections
108     */

109    int getInUseConnections();
110
111    /**
112     * List the inuse connections
113     *
114     * @return a map of connections to allocation stack traces
115     */

116    Map JavaDoc listInUseConnections();
117 }
118
Popular Tags