KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > uk > org > primrose > pool > jmx > PoolControllerMBean


1 /**
2 * Library name : Primrose - A Java Database Connection Pool.
3 * Published by Ben Keeping, http://primrose.org.uk .
4 * Copyright (C) 2004 Ben Keeping, primrose.org.uk
5 * Email: Use "Contact Us Form" on website
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library 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 library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */

21 package uk.org.primrose.pool.jmx;
22
23 public interface PoolControllerMBean {
24     public void reset();
25     public String JavaDoc createNewPoolQueue(String JavaDoc poolName, Integer JavaDoc base, Integer JavaDoc overflow, String JavaDoc log, Integer JavaDoc idleTime, Boolean JavaDoc messageLogging, Boolean JavaDoc sizeLogging, String JavaDoc driverClass, String JavaDoc driverURL, String JavaDoc user, String JavaDoc password, String JavaDoc killActiveConnectionsOverAge, String JavaDoc cycleConnections, Boolean JavaDoc queueConnectionRequests, Boolean JavaDoc runPooledMode, Boolean JavaDoc connectionAutoCommit, String JavaDoc connectionTransactionIsolation, String JavaDoc checkSQL);
26     public void stopAllPoolQueues();
27     public void startAllPoolQueues();
28     public Boolean JavaDoc refreshPoolConfigFile();
29     public void setPoolConfigFile(String JavaDoc poolConfigFile);
30     public String JavaDoc getPoolConfigFile();
31     public void setPoolControllerLogFile(String JavaDoc poolControllerLogFile);
32     public String JavaDoc getPoolControllerLogFile();
33     public String JavaDoc[] getEmail();
34     public void setEmail(String JavaDoc[] email);
35     public String JavaDoc getAdminWebManagementPort();
36     public boolean getEmailNotifications();
37     public void setEmailNotifications(boolean emailNotifications);
38     public String JavaDoc getAdminUser();
39     //public void setAdminUser(String adminUser);
40
public String JavaDoc getAdminPassword();
41     //public void setAdminPassword(String adminPassword);
42
public long getEmailNotificationPeriod();
43     public void setEmailNotificationPeriod(long emailNotificationPeriod);
44     public int getEmailMaxWarningNumber();
45     public void setEmailMaxWarningNumber(int emailMaxWarningNumber);
46     public String JavaDoc getEmailSMTPServer();
47     public void setEmailSMTPServer(String JavaDoc emailSMTPServer);
48     public String JavaDoc getEmailCrisisAddress();
49     public void setEmailCrisisAddress(String JavaDoc adminEmailCrisisAddress);
50 }
51
Popular Tags