Example usage for javax.management Notification Notification

List of usage examples for javax.management Notification Notification

Introduction

In this page you can find the example usage for javax.management Notification Notification.

Prototype

public Notification(String type, Object source, long sequenceNumber, long timeStamp) 

Source Link

Document

Creates a Notification object.

Usage

From source file:com.cyberway.issue.crawler.admin.CrawlJob.java

public void crawlPaused(String statusMessage) {
    setStatus(statusMessage);//from   w w w.  j a va2s .  c  o  m
    if (this.mbeanName != null) {
        // Can be null around job startup.
        sendNotification(new Notification("crawlPaused", this.mbeanName, getNotificationsSequenceNumber(),
                statusMessage));
    }
}

From source file:com.cyberway.issue.crawler.admin.CrawlJob.java

public void crawlResuming(String statusMessage) {
    setStatus(statusMessage);//  ww w.  j a  v a  2  s . com
    if (this.mbeanName != null) {
        // Can be null around job startup.
        sendNotification(new Notification("crawlResuming", this.mbeanName, getNotificationsSequenceNumber(),
                statusMessage));
    }
}