Methods Summary |
---|
public static com.sun.enterprise.management.RegistrationListener | createInstance(java.lang.String name, javax.management.MBeanServerConnection conn)
final RegistrationListener listener = new RegistrationListener(name, conn);
JMXUtil.listenToMBeanServerDelegate( conn, listener, null, null );
return listener;
|
public synchronized java.util.Set | getCurrentlyRegistered()
final Set<ObjectName> all = new HashSet<ObjectName>( mCurrentlyRegistered );
return all;
|
public java.util.Set | getRegistered()
return Collections.unmodifiableSet( mRegistered );
|
public java.util.Set | getUnregistered()
return Collections.unmodifiableSet( mUnregistered );
|
private boolean | isAMX(javax.management.ObjectName objectName)
return objectName.getDomain().equals( AMX.JMX_DOMAIN );
|
protected synchronized void | mbeanRegistered(javax.management.ObjectName objectName)
if ( isAMX( objectName ) )
{
mRegistered.add( objectName );
mCurrentlyRegistered.add( objectName );
}
|
protected synchronized void | mbeanUnregistered(javax.management.ObjectName objectName)
if ( isAMX( objectName ) )
{
mUnregistered.add( objectName );
mCurrentlyRegistered.remove( objectName );
}
|
public void | notifsLost()
queryAllAMX();
|
private void | queryAllAMX()
try
{
final ObjectName pat = Util.newObjectNamePattern( AMX.JMX_DOMAIN, "*" );
final Set<ObjectName> all = JMXUtil.queryNames( mConn, pat, null );
mCurrentlyRegistered.addAll( all );
}
catch( IOException e )
{
}
|