1 23 24 package com.sun.enterprise.management.agent; 25 26 import java.util.Hashtable ; 27 import java.rmi.RemoteException ; 28 import javax.rmi.PortableRemoteObject ; 29 import javax.naming.Context ; 30 import javax.naming.InitialContext ; 31 32 import javax.management.j2ee.*; 33 import javax.management.*; 34 35 37 44 public class ListenerRegistry implements ListenerRegistration { 45 46 private Hashtable listenerConnectors = new Hashtable (); 47 private String OMG_ORB_INIT_PORT_PROPERTY = "org.omg.CORBA.ORBInitialPort"; 48 private String serverAddress; private boolean debug = false; 51 52 53 public ListenerRegistry(String ip) { 54 serverAddress = ip; 55 } 56 57 68 public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) 69 throws RemoteException { 70 82 } 83 84 85 95 public void removeNotificationListener(ObjectName name, NotificationListener listener) 96 throws RemoteException { 97 114 } 115 116 MBSUtility getMBSUtility(){ 117 return MBSUtility.getMBSUtility(); 119 } 121 145 } 146 | Popular Tags |