com.sun.jmx.remote.opt.internal
Class ClientNotifForwarder

java.lang.Object
  extended by com.sun.jmx.remote.opt.internal.ClientNotifForwarder

public abstract class ClientNotifForwarder
extends Object


Constructor Summary
ClientNotifForwarder(ClassLoader defaultClassLoader, Map env)
           
ClientNotifForwarder(Map env)
           
 
Method Summary
protected abstract  Integer addListenerForMBeanRemovedNotif()
           
 void addNotificationListener(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, Subject delegationSubject)
           
protected abstract  NotificationResult fetchNotifs(long clientSequenceNumber, int maxNotifications, long timeout)
          Called to to fetch notifications from a server.
 ListenerInfo[] getListenerInfo()
           
protected abstract  void lostNotifs(String message, long number)
          Used to send out a notification about lost notifs
 void postReconnection(ClientListenerInfo[] listenerInfos)
          Called after reconnection is finished.
 ClientListenerInfo[] preReconnection()
           
protected abstract  void removeListenerForMBeanRemovedNotif(Integer id)
           
 Integer[] removeNotificationListener(ObjectName name)
           
 Integer[] removeNotificationListener(ObjectName name, NotificationListener listener)
           
 Integer removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientNotifForwarder

public ClientNotifForwarder(Map env)

ClientNotifForwarder

public ClientNotifForwarder(ClassLoader defaultClassLoader,
                            Map env)
Method Detail

fetchNotifs

protected abstract NotificationResult fetchNotifs(long clientSequenceNumber,
                                                  int maxNotifications,
                                                  long timeout)
                                           throws IOException,
                                                  ClassNotFoundException
Called to to fetch notifications from a server.

Throws:
IOException
ClassNotFoundException

addListenerForMBeanRemovedNotif

protected abstract Integer addListenerForMBeanRemovedNotif()
                                                    throws IOException,
                                                           InstanceNotFoundException
Throws:
IOException
InstanceNotFoundException

removeListenerForMBeanRemovedNotif

protected abstract void removeListenerForMBeanRemovedNotif(Integer id)
                                                    throws IOException,
                                                           InstanceNotFoundException,
                                                           ListenerNotFoundException
Throws:
IOException
InstanceNotFoundException
ListenerNotFoundException

lostNotifs

protected abstract void lostNotifs(String message,
                                   long number)
Used to send out a notification about lost notifs


addNotificationListener

public void addNotificationListener(Integer listenerID,
                                    ObjectName name,
                                    NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback,
                                    Subject delegationSubject)
                             throws IOException,
                                    InstanceNotFoundException
Throws:
IOException
InstanceNotFoundException

removeNotificationListener

public Integer[] removeNotificationListener(ObjectName name,
                                            NotificationListener listener)
                                     throws ListenerNotFoundException,
                                            IOException
Throws:
ListenerNotFoundException
IOException

removeNotificationListener

public Integer removeNotificationListener(ObjectName name,
                                          NotificationListener listener,
                                          NotificationFilter filter,
                                          Object handback)
                                   throws ListenerNotFoundException,
                                          IOException
Throws:
ListenerNotFoundException
IOException

removeNotificationListener

public Integer[] removeNotificationListener(ObjectName name)

getListenerInfo

public ListenerInfo[] getListenerInfo()

preReconnection

public ClientListenerInfo[] preReconnection()
                                     throws IOException
Throws:
IOException

postReconnection

public void postReconnection(ClientListenerInfo[] listenerInfos)
                      throws IOException
Called after reconnection is finished. This method is intended to be called only by a client connetor: RMIConnector and ClientIntermediary.

Throws:
IOException

terminate

public void terminate()


Copyright © 2014 Terracotta, Inc.. All rights reserved.