public class NotificationListenerRegistrar extends NotificationListenerHolder implements InitializingBean, DisposableBean
NotificationListener
SE を MBeanServer
SE の 1 つ以上の MBean に関連付けるレジストラーオブジェクト(通常は MBeanServerConnection
SE を介して)。修飾子と型 | フィールドと説明 |
---|---|
protected Log | logger サブクラスで利用可能なロガー。 |
mappedObjectNames
コンストラクターと説明 |
---|
NotificationListenerRegistrar() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
void | destroy() 指定された NotificationListener の登録を解除します。 |
MapSE<StringSE,?> | getEnvironment() 特定のエントリを追加または上書きするオプションを使用して、コネクターへの環境へのマップアクセスを設定できます。 |
void | prepare() 指定された NotificationListener を登録します。 |
void | setAgentId(StringSE agentId) 検索する MBeanServer のエージェント ID を設定します。 |
void | setEnvironment(MapSE<StringSE,?> environment) JMX コネクターの環境を指定します。 |
void | setServer(MBeanServerConnectionSE server) すべての呼び出しがルーティングされる MBean への接続に使用される MBeanServerConnection を設定します。 |
void | setServiceUrl(StringSE url) リモート MBeanServer のサービス URL を設定します。 |
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected final Log logger
public void setServer(MBeanServerConnectionSE server)
MBeanServerConnection
を設定します。public void setEnvironment(@Nullable MapSE<StringSE,?> environment)
@Nullable public MapSE<StringSE,?> getEnvironment()
たとえば、"environment [myKey]" を使用して、エントリを直接指定するのに便利です。これは、子 Bean 定義のエントリを追加または上書きする場合に特に便利です。
public void setServiceUrl(StringSE url) throws MalformedURLExceptionSE
MBeanServer
のサービス URL を設定します。public void setAgentId(StringSE agentId)
MBeanServer
のエージェント ID を設定します。 デフォルトはなしです。指定した場合、"serviceUrl"
プロパティが設定されていない限り、これによりアテンダント MBeanServer の検索が試行されます。
public void afterPropertiesSet()
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet
public void prepare()
NotificationListener
を登録します。MBeanServerConnection
が構成されていることを確認し、ローカル接続が提供されていない場合、ローカル接続の検出を試みます。
public void destroy()
NotificationListener
の登録を解除します。DisposableBean
の destroy