ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/server/Service.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/server/Service.java
Status
scanned
Type
file
Name
Service.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
2017 (2.0 KB)
MD5
2be31ebedeaa2d1839684cde69c4563f
SHA1
3f07fb8cf69885e9a76d60f5f5908a2cbb9d6d0e
SHA256
f9861c2187ae2d9a94701a5d72398425ec706d8d6ddda428e9107a38973d1c5e
SHA512

      
    
SHA1_git
ef86eee04b487823ea0cef815c76d2488a565724
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Service.java | 2.0 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.server; import java.sql.SQLException; /** * Classes implementing this interface usually provide a * TCP/IP listener such as an FTP server. * The can be started and stopped, and may or may not * allow remote connections. */ public interface Service { /** * Initialize the service from command line options. * * @param args the command line options * @throws Exception on failure */ void init(String... args) throws Exception; /** * Get the URL of this service in a human readable form * * @return the url */ String getURL(); /** * Start the service. This usually means create the server socket. * This method must not block. * @throws SQLException on failure */ void start() throws SQLException; /** * Listen for incoming connections. * This method blocks. */ void listen(); /** * Stop the service. */ void stop(); /** * Check if the service is running. * * @param traceError if errors should be written * @return if the server is running */ boolean isRunning(boolean traceError); /** * Check if remote connections are allowed. * * @return true if remote connections are allowed */ boolean getAllowOthers(); /** * Get the human readable name of the service. * * @return the name */ String getName(); /** * Get the human readable short name of the service. * * @return the type */ String getType(); /** * Gets the port this service is listening on. * * @return the port */ int getPort(); /** * Check if a daemon thread should be used. * * @return true if a daemon thread should be used */ boolean isDaemon(); }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
3.86
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220