"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/server/Server.java" between
hsqldb-2.7.1.zip and hsqldb-2.7.2.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

Server.java  (hsqldb-2.7.1):Server.java  (hsqldb-2.7.2)
/* Copyright (c) 2001-2021, The HSQL Development Group /* Copyright (c) 2001-2023, The HSQL Development Group
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* *
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
skipping to change at line 236 skipping to change at line 236
* method. * method.
* </ol> <p> * </ol> <p>
* *
* These values are natural to their context because the first case allows * These values are natural to their context because the first case allows
* the JVM to exit by default on Server shutdown when a Server instance is * the JVM to exit by default on Server shutdown when a Server instance is
* started from a command line environment, whereas the second case prevents * started from a command line environment, whereas the second case prevents
* a typically unwanted JVM exit on Server shutdown when a Server instance * a typically unwanted JVM exit on Server shutdown when a Server instance
* is started as part of a larger framework. <p> * is started as part of a larger framework. <p>
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 2.6.0 * @version 2.7.2
* @since 1.7.2 * @since 1.7.2
*/ */
public class Server implements HsqlSocketRequestHandler, Notified { public class Server implements HsqlSocketRequestHandler, Notified {
// //
protected static final int serverBundleHandle = protected static final int serverBundleHandle =
ResourceBundleHandler.getBundleHandle( ResourceBundleHandler.getBundleHandle(
"org_hsqldb_server_Server_messages", null); "org_hsqldb_server_Server_messages", null);
// //
skipping to change at line 527 skipping to change at line 527
/** /**
* Retrieves the PrintWriter to which server messages are printed. * Retrieves the PrintWriter to which server messages are printed.
* *
* @return the PrintWriter to which server messages are printed. * @return the PrintWriter to which server messages are printed.
*/ */
public PrintWriter getLogWriter() { public PrintWriter getLogWriter() {
return logWriter; return logWriter;
} }
/** /**
* Retrieves this server's host port. * Retrieves this server's host port as configured.
* *
* @return this server's host port * @return this server's host port as configured
*/ */
public int getPort() { public int getPort() {
return serverProperties.getIntegerProperty( return serverProperties.getIntegerProperty(
ServerProperties.sc_key_port, ServerProperties.sc_key_port,
ServerConfiguration.getDefaultPort(serverProtocol, isTls())); ServerConfiguration.getDefaultPort(serverProtocol, isTls()));
} }
/** /**
* Retrieves this server socket's actual host port.
*
* @return this server socket's actual host port
*/
public int getLocalPort() {
return socket == null ? -1 : socket.getLocalPort();
}
/**
* Retrieves this server's product name. <p> * Retrieves this server's product name. <p>
* *
* Typically, this will be something like: "HSQLDB xxx server". * Typically, this will be something like: "HSQLDB xxx server".
* *
* @return the product name of this server * @return the product name of this server
*/ */
public String getProductName() { public String getProductName() {
return "HSQLDB server"; return "HSQLDB server";
} }
 End of changes. 5 change blocks. 
4 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)