Search in sources :

Example 11 with JMXConnectionNotification

use of javax.management.remote.JMXConnectionNotification in project felix by apache.

the class ConnectionNotificationEmitter method sendConnectionNotificationClosed.

public void sendConnectionNotificationClosed() {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.CLOSED, connector, getConnectionId(), getNextNotificationNumber(), "Connection closed", null);
    sendNotification(notification);
}
Also used : JMXConnectionNotification(javax.management.remote.JMXConnectionNotification)

Example 12 with JMXConnectionNotification

use of javax.management.remote.JMXConnectionNotification in project felix by apache.

the class ConnectionNotificationEmitter method sendConnectionNotificationFailed.

public void sendConnectionNotificationFailed() {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.FAILED, connector, getConnectionId(), getNextNotificationNumber(), "Connection failed", null);
    sendNotification(notification);
}
Also used : JMXConnectionNotification(javax.management.remote.JMXConnectionNotification)

Example 13 with JMXConnectionNotification

use of javax.management.remote.JMXConnectionNotification in project felix by apache.

the class ConnectionNotificationEmitter method sendConnectionNotificationLost.

public void sendConnectionNotificationLost(long howMany) {
    JMXConnectionNotification notification = new JMXConnectionNotification(JMXConnectionNotification.NOTIFS_LOST, connector, getConnectionId(), getNextNotificationNumber(), "Some notification (" + howMany + ") was lost", null);
    sendNotification(notification);
}
Also used : JMXConnectionNotification(javax.management.remote.JMXConnectionNotification)

Aggregations

JMXConnectionNotification (javax.management.remote.JMXConnectionNotification)13 MBeanServerNotification (javax.management.MBeanServerNotification)3 Notification (javax.management.Notification)3 IOException (java.io.IOException)2 StringWriter (java.io.StringWriter)1 MalformedURLException (java.net.MalformedURLException)1 MarshalledObject (java.rmi.MarshalledObject)1 NoSuchObjectException (java.rmi.NoSuchObjectException)1 RemoteObject (java.rmi.server.RemoteObject)1 Date (java.util.Date)1 GregorianCalendar (java.util.GregorianCalendar)1 HashMap (java.util.HashMap)1 WeakHashMap (java.util.WeakHashMap)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 AttributeChangeNotification (javax.management.AttributeChangeNotification)1 ListenerNotFoundException (javax.management.ListenerNotFoundException)1 MBeanServerConnection (javax.management.MBeanServerConnection)1 NotificationListener (javax.management.NotificationListener)1 ObjectName (javax.management.ObjectName)1