01: /*
02: * HA-JDBC: High-Availability JDBC
03: * Copyright (c) 2004-2007 Paul Ferraro
04: *
05: * This library is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU Lesser General Public License as published by the
07: * Free Software Foundation; either version 2.1 of the License, or (at your
08: * option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful, but WITHOUT
11: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13: * for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public License
16: * along with this library; if not, write to the Free Software Foundation,
17: * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * Contact: ferraro@users.sourceforge.net
20: */
21: package net.sf.hajdbc;
22:
23: /**
24: * @author Paul Ferraro
25: * @since 1.1
26: */
27: public interface InactiveDatabaseMBean extends ActiveDatabaseMBean {
28: /**
29: * Set the weight for this database
30: * @param weight a weight
31: * @exception IllegalArgumentException if weight is less than 0
32: */
33: public void setWeight(int weight);
34:
35: /**
36: * Set the user for this database.
37: * @param user a user
38: */
39: public void setUser(String user);
40:
41: /**
42: * Set the password for this database
43: * @param password a password
44: */
45: public void setPassword(String password);
46:
47: /**
48: * Set the value of the specified property.
49: * @param name a property name
50: * @param value a property value
51: */
52: public void setProperty(String name, String value);
53:
54: /**
55: * Removes the specified property.
56: * @param name a property name
57: */
58: public void removeProperty(String name);
59:
60: /**
61: * Sets whether or not this database is local to the machine on which the JVM resides.
62: * @param local true if local, false if remote
63: */
64: public void setLocal(boolean local);
65: }
|