Example usage for javax.management.remote JMXConnectionNotification JMXConnectionNotification

List of usage examples for javax.management.remote JMXConnectionNotification JMXConnectionNotification

Introduction

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

Prototype

public JMXConnectionNotification(String type, Object source, String connectionId, long sequenceNumber,
        String message, Object userData) 

Source Link

Document

Constructs a new connection notification.

Usage

From source file:org.logicblaze.lingo.jmx.remote.jms.JmsJmxConnector.java

private void sendConnectionNotificationOpened() {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.OPENED,
            this, getConnectionId(), notificationNumber.incrementAndGet(), "Connection opened", null);
    connectionNotifier.sendNotification(notification);
}

From source file:org.logicblaze.lingo.jmx.remote.jms.JmsJmxConnector.java

private void sendConnectionNotificationClosed() {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.CLOSED,
            this, getConnectionId(), notificationNumber.incrementAndGet(), "Connection closed", null);
    connectionNotifier.sendNotification(notification);
}

From source file:org.logicblaze.lingo.jmx.remote.jms.JmsJmxConnector.java

private void sendConnectionNotificationFailed(String message) {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.FAILED,
            this, getConnectionId(), notificationNumber.incrementAndGet(), message, null);
    connectionNotifier.sendNotification(notification);
}