FileDocCategorySizeDatePackage
ListenerInfo.javaAPI DocJava SE 5 API2349Fri Aug 26 14:55:00 BST 2005com.sun.jmx.remote.internal

ListenerInfo

public class ListenerInfo extends Object

An identified listener. A listener has an Integer id that is unique per connector server. It selects notifications based on the ObjectName of the originator and an optional NotificationFilter.

Two ListenerInfo objects are considered equal if and only if they have the same listenerId. This means that ListenerInfo objects can be stored in a Set or Map and retrieved using another ListenerInfo with the same listenerId but arbitrary ObjectNme and NotificationFilter values.

Fields Summary
private ObjectName
name
private Integer
listenerID
private NotificationFilter
filter
private NotificationListener
listener
private Object
handback
private Subject
delegationSubject
Constructors Summary
public ListenerInfo(Integer listenerID, ObjectName name, NotificationFilter filter)

	this.listenerID = listenerID;
	this.name = name;
	this.filter = filter;
    
public ListenerInfo(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, Subject delegationSubject)

	this.listenerID = listenerID;
	this.name = name;
	this.listener = listener;
	this.filter = filter;
	this.handback = handback;
	this.delegationSubject = delegationSubject;
    
Methods Summary
public booleanequals(java.lang.Object o)

	if (!(o instanceof ListenerInfo)) {
	    return false;
	}

	return listenerID.equals(((ListenerInfo)o).listenerID);
    
public javax.security.auth.SubjectgetDelegationSubject()

	return delegationSubject;
    
public java.lang.ObjectgetHandback()

	return handback;
    
public javax.management.NotificationListenergetListener()

	return listener;
    
public java.lang.IntegergetListenerID()

	return listenerID;
    
public javax.management.NotificationFiltergetNotificationFilter()

	return filter;
    
public javax.management.ObjectNamegetObjectName()

	return name;
    
public inthashCode()

	return listenerID.intValue();