public class NotificationListenerHolder extends ObjectSE
NotificationListener
SE、NotificationFilter
SE、任意のハンドバックオブジェクト、リスナーが Notifications
SE の受信を希望する MBean の名前を集約するヘルパークラス。NotificationListenerBean
, NotificationListenerRegistrar
修飾子と型 | フィールドと説明 |
---|---|
protected SetSE<ObjectSE> | mappedObjectNames |
コンストラクターと説明 |
---|
NotificationListenerHolder() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public void setNotificationListener(@Nullable NotificationListenerSE notificationListener)
NotificationListener
SE を設定してください。@Nullable public NotificationListenerSE getNotificationListener()
NotificationListener
SE を取得します。public void setNotificationFilter(@Nullable NotificationFilterSE notificationFilter)
@Nullable public NotificationFilterSE getNotificationFilter()
public void setHandback(@Nullable ObjectSE handback)
NotificationListener
SE に通知するときに NotificationBroadcaster
SE によってそのまま「引き渡される」(任意の)オブジェクトを設定します。handback
- ハンドバックオブジェクト (null
にすることができます)NotificationListener.handleNotification(javax.management.Notification, Object)
SE@Nullable public ObjectSE getHandback()
NotificationListener
SE に通知するときに NotificationBroadcaster
SE によってそのまま「引き渡される」(任意の)オブジェクトを返します。null
の場合があります)NotificationListener.handleNotification(javax.management.Notification, Object)
SEpublic void setMappedObjectName(@Nullable ObjectSE mappedObjectName)
NotificationFilter
が Notifications
SE をリスンするために登録される単一の MBean の ObjectName
SE -style 名を設定します。ObjectName
インスタンスまたは String
として指定できます。public void setMappedObjectNames(ObjectSE... mappedObjectNames)
NotificationFilter
が Notifications
SE をリッスンするために登録される MBean の ObjectName
SE -style 名の配列を設定します。ObjectName
インスタンスまたは String
として指定できます。@Nullable public ObjectNameSE[] getResolvedObjectNames() throws MalformedObjectNameExceptionSE
MalformedObjectNameExceptionSE
- ObjectName
が不正な形式の場合 public int hashCode()
ObjectSE
の hashCodeSE