daemon

Class that implements a reload hook via SIGHUP

Лицензия

Лицензия

Группа

Группа

com.spotify
Идентификатор

Идентификатор

daemon
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

daemon
Class that implements a reload hook via SIGHUP
Ссылка на сайт

Ссылка на сайт

https://github.com/spotify/daemon-java
Система контроля версий

Система контроля версий

https://github.com/spotify/daemon-java

Скачать daemon

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.spotify/daemon/ -->
<dependency>
    <groupId>com.spotify</groupId>
    <artifactId>daemon</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.spotify/daemon/
implementation 'com.spotify:daemon:1.2.0'
// https://jarcasting.com/artifacts/com.spotify/daemon/
implementation ("com.spotify:daemon:1.2.0")
'com.spotify:daemon:jar:1.2.0'
<dependency org="com.spotify" name="daemon" rev="1.2.0">
  <artifact name="daemon" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.spotify', module='daemon', version='1.2.0')
)
libraryDependencies += "com.spotify" % "daemon" % "1.2.0"
[com.spotify/daemon "1.2.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

Java classes that implements reload on SIGHUP

This minimal library is essentially a way to encapsulate the somewhat non-portable way in which a handler for the SIGHUP Unix signal can be installed. The following code

MainLoop ml = MainLoop.newInstance();
ml.installReloadHandler(onReload);
ml.run();

will install the onReload handler and then wait around until the process is told to exit by sending SIGTERM.

This library uses non-standard functionality, i.e. sun.misc.Signal, that might not be available in Java everywhere. Additionally the unit test assumes that there is a kill command that can be executed on the host system to signal the current process.

License

This software is released under the Apache License 2.0. More information in the file LICENSE distributed with this project.

com.spotify

Spotify

Версии библиотеки

Версия
1.2.0