org.firebirdsql.management.FBManagerMBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaybird-jdk18 Show documentation
Show all versions of jaybird-jdk18 Show documentation
JDBC Driver for the Firebird RDBMS
/*
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* LGPL License for more details.
*
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.management;
/**
* Describe interface FBManagerMBean
here.
*
* @author David Jencks
* @version 1.0
*/
public interface FBManagerMBean {
void start() throws Exception;
void stop() throws Exception;
String getName();
String getState();
void setServer(String host);
String getServer();
void setPort(int port);
int getPort();
/**
* mbean get-set pair for field fileName
* Get the value of fileName
*
* @return value of fileName
*/
String getFileName();
/**
* Set the value of fileName
*
* @param fileName
* Value to assign to fileName
*/
void setFileName(final String fileName);
/**
* mbean get-set pair for field userName
* Get the value of userName
*
* @return value of userName
*/
String getUserName();
/**
* Set the value of userName
*
* @param userName
* Value to assign to userName
*/
void setUserName(final String userName);
/**
* mbean get-set pair for field password
* Get the value of password
*
* @return value of password
*/
String getPassword();
/**
* Set the value of password
*
* @param password
* Value to assign to password
*/
void setPassword(final String password);
/**
* Set the page size that will be used for the database. The value for {@code pageSize} must be one
* of {@link PageSizeConstants}. The default value depends on the Firebird version.
*
* Some values are not valid on all Firebird versions.
*
*
* @param pageSize
* The page size to be used in the created database, see {@link PageSizeConstants}
* @see PageSizeConstants
*/
void setPageSize(int pageSize);
/**
* @return The page size to be used when creating a database, or {@code -1} if the database default is used.
*/
int getPageSize();
/**
* Set the default database character set.
*
* @param firebirdCharsetName
* Character set name, use Firebird names only; {@code null} will use Firebird default ({@code NONE}).
* Specifying an invalid name will result in an exception during database creation.
*/
void setDefaultCharacterSet(String firebirdCharsetName);
/**
* @return The default character set name, {@code null} means not set.
*/
String getDefaultCharacterSet();
/**
* mbean get-set pair for field createOnStart
* Get the value of createOnStart
*
* @return value of createOnStart
*/
boolean isCreateOnStart();
/**
* Set the value of createOnStart
*
* @param createOnStart
* Value to assign to createOnStart
*/
void setCreateOnStart(final boolean createOnStart);
/**
* mbean get-set pair for field dropOnStop
* Get the value of dropOnStop
*
* @return value of dropOnStop
*/
boolean isDropOnStop();
/**
* Set the value of dropOnStop
*
* @param dropOnStop
* Value to assign to dropOnStop
*/
void setDropOnStop(final boolean dropOnStop);
/**
* Get the ForceCreate value.
*
* @return the ForceCreate value.
*/
boolean isForceCreate();
/**
* Set the ForceCreate value.
*
* @param forceCreate
* The new ForceCreate value.
*/
void setForceCreate(boolean forceCreate);
void createDatabase(String filename, String user, String password) throws Exception;
void dropDatabase(String fileName, String user, String password) throws Exception;
boolean isDatabaseExists(String fileName, String user, String password) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy