NotificationListenerPoller(Server server, ObjectName on, NotificationListener listener) throws Exception
{
id = generateID();
this.server = server;
server.addNotificationListener(on, new NotificationListenerID(id));
this.listener = listener;
this.running = true;
}