com.github.fedorchuck.developers_notification.antispam
Class SpamProtection

java.lang.Object
  extended by com.github.fedorchuck.developers_notification.antispam.SpamProtection

public class SpamProtection
extends java.lang.Object

Class contains connection between mechanism witch avoiding spam and mechanism sending messages.

Author: Volodymyr Fedorchuk

Since:
0.2.0

Constructor Summary
SpamProtection()
           
 
Method Summary
static void sendIntoMessenger(boolean protectionFromSpam, MessageTypes types, Task task)
          It provide sending messages to chosen destination.
 void sendLogEventIntoMessenger(boolean protectionFromSpam, org.apache.log4j.spi.LoggingEvent event)
          It provide sending messages into messengers.
static void sendMonitoringResultsIntoMessenger(boolean protectionFromSpam, MessageTypes types, java.lang.String description)
          It provide sending messages into messengers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpamProtection

public SpamProtection()
Method Detail

sendMonitoringResultsIntoMessenger

public static void sendMonitoringResultsIntoMessenger(boolean protectionFromSpam,
                                                      MessageTypes types,
                                                      java.lang.String description)
It provide sending messages into messengers.

Note: all needed data will be getting from JSON configuration

Parameters:
protectionFromSpam - is needed protection from spam
description - what happened
Since:
0.2.0

sendLogEventIntoMessenger

public void sendLogEventIntoMessenger(boolean protectionFromSpam,
                                      org.apache.log4j.spi.LoggingEvent event)
It provide sending messages into messengers.

Note: all needed data will be getting from JSON configuration

Parameters:
protectionFromSpam - is needed protection from spam
event - what happened
Since:
0.3.0

sendIntoMessenger

public static void sendIntoMessenger(boolean protectionFromSpam,
                                     MessageTypes types,
                                     Task task)
It provide sending messages to chosen destination.

Parameters:
protectionFromSpam - is needed protection from spam
types - of message
task - to compete
Since:
0.3.0