|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.fedorchuck.developers_notification.DevelopersNotification
public class DevelopersNotification
Class contain methods-endpoints for this library. Needed environment configuration.
See Also:
Author: Volodymyr Fedorchuk
Constructor Summary | |
---|---|
DevelopersNotification()
|
Method Summary | |
---|---|
static boolean |
configurationExist()
Check is configuration for Developers Notification library exist. |
static Config |
getConfiguration()
Return configuration for Developers Notification library. |
static boolean |
isMonitoringStateAlive()
Check if the monitoring thread is alive. |
static boolean |
monitoringStart()
Launches monitoring process for current application. |
static boolean |
monitoringStop()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
static void |
printConfiguration()
Printing environment configuration to log which needed for this library. |
static void |
send(boolean protectionFromSpam,
java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
Sending message to chosen destination. |
static void |
send(DevelopersNotificationMessenger messengerDestination,
java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
Sending message to chosen destination. |
static void |
send(java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
Sending message to chosen destination. |
static void |
send(java.lang.String description,
java.lang.Throwable throwable)
Sending message to chosen destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DevelopersNotification()
Method Detail |
---|
public static void printConfiguration()
show_whole_log_details
is false
-
will be printed result of method Config.getPublicToString()
public static void send(java.lang.String description, java.lang.Throwable throwable)
description
- about situationthrowable
- which happened. Can be null
public static void send(java.lang.String projectName, java.lang.String description, java.lang.Throwable throwable)
projectName
- where was method calleddescription
- about situationthrowable
- which happened. Can be null
public static void send(DevelopersNotificationMessenger messengerDestination, java.lang.String projectName, java.lang.String description, java.lang.Throwable throwable)
messengerDestination
- where the message will be sent.projectName
- where was method calleddescription
- about situationthrowable
- which happened. Can be null
public static void send(boolean protectionFromSpam, java.lang.String projectName, java.lang.String description, java.lang.Throwable throwable)
protectionFromSpam
- is the message will be sent with protection from spamprojectName
- where was method calleddescription
- about situationthrowable
- which happened. Can be null
public static boolean monitoringStart()
true
if process successfully started;
false
otherwise.public static boolean monitoringStop()
true
if process successfully stopped;
false
otherwise.public static boolean isMonitoringStateAlive()
true
if monitoring thread is alive;
false
otherwise.public static Config getConfiguration()
Note:
If configuration is missed - configuration will be loaded from environment variable DN
.
If configuration was loaded before - new configuration will not be uploaded.
public static boolean configurationExist()
Note:
If configuration is missed - configuration will be loaded from environment variable DN
.
If configuration was loaded before - new configuration will not be uploaded.
true
if configuration exist
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |