|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.remoting.tracker.MBeanTracker
public class MBeanTracker
MBeanTracker is a utility class that will track MBeans on behalf of a user object.
Constructor Summary | |
---|---|
MBeanTracker(MBeanServer myserver,
Class[] cl,
boolean localOnly,
MBeanTrackerAction action)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
boolean localOnly,
MBeanTrackerAction[] actions)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
QueryExp query,
boolean localOnly,
MBeanTrackerAction action)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
QueryExp query,
boolean localOnly,
MBeanTrackerAction[] actions)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
QueryExp query,
boolean localOnly,
NotificationFilter filter,
boolean wantNotifications)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
QueryExp query,
boolean localOnly,
NotificationFilter filter,
boolean wantNotifications,
MBeanTrackerAction action)
|
|
MBeanTracker(MBeanServer myserver,
Class[] cl,
QueryExp query,
boolean localOnly,
NotificationFilter filter,
boolean wantNotifications,
MBeanTrackerAction[] actions)
create a tracker |
Method Summary | |
---|---|
void |
addActionListener(MBeanTrackerAction action)
add a action listener. |
void |
addActionListener(MBeanTrackerAction action,
boolean autoinitialregister)
add a action listener. |
int |
count()
return the number of mbeans being tracked |
void |
destroy()
called to stop tracking and clean up internally held resources |
protected void |
finalize()
|
protected void |
fireNotification(MBeanLocator locator,
Notification n,
Object o)
fire a notification to actions |
protected void |
fireRegister(MBeanLocator locator)
fire register event to listeners |
protected void |
fireStateChange(MBeanLocator locator,
int ov,
int nv)
fire a state changed event to actions |
protected void |
fireUnregister(MBeanLocator locator)
fire unregister event to listeners |
void |
foundMBeanServer(MBeanServerLocator theserver)
fired when an MBeanServer is found |
Set |
getMBeans()
return a copy of the internal mbeans being tracked |
void |
handleNotification(Notification notification,
Object o)
called for each notification |
boolean |
isEmpty()
returns true if no mbeans are found that are being tracked |
Iterator |
iterator()
return an iterator to a copy of the internal mbeans being tracked |
void |
lostMBeanServer(MBeanServerLocator server)
fired when we lose an MBeanServer |
void |
removeActionListener(MBeanTrackerAction action)
remove a action listener |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBeanTracker(MBeanServer myserver, Class[] cl, QueryExp query, boolean localOnly, MBeanTrackerAction action) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, QueryExp query, boolean localOnly, MBeanTrackerAction[] actions) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, boolean localOnly, MBeanTrackerAction action) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, boolean localOnly, MBeanTrackerAction[] actions) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, QueryExp query, boolean localOnly, NotificationFilter filter, boolean wantNotifications, MBeanTrackerAction action) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, QueryExp query, boolean localOnly, NotificationFilter filter, boolean wantNotifications) throws Exception
Exception
public MBeanTracker(MBeanServer myserver, Class[] cl, QueryExp query, boolean localOnly, NotificationFilter filter, boolean wantNotifications, MBeanTrackerAction[] actions) throws Exception
myserver
- local mbean servercl
- array of classes that mbeans implement that you want to track, or null to not look at class interfacesquery
- query expression to apply when selecting mbeans or null to not use a query expressionlocalOnly
- true to only search the local mbeanserver, false to search the entire network of mbeans serversfilter
- filter to apply for receiving notifications or null to apply no filterwantNotifications
- if true, will also track notifications by the mbeans being trackedactions
- array of actions to automatically register as listeners, or null if none
Exception
- raised on exceptionMethod Detail |
---|
public void addActionListener(MBeanTrackerAction action)
action
- public void addActionListener(MBeanTrackerAction action, boolean autoinitialregister)
action
- public void removeActionListener(MBeanTrackerAction action)
action
- protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void destroy()
public final boolean isEmpty()
public final int count()
public final Set getMBeans()
public final Iterator iterator()
public void handleNotification(Notification notification, Object o)
handleNotification
in interface NotificationListener
notification
- o
- protected void fireNotification(MBeanLocator locator, Notification n, Object o)
locator
- n
- o
- protected void fireStateChange(MBeanLocator locator, int ov, int nv)
locator
- ov
- nv
- protected void fireUnregister(MBeanLocator locator)
locator
- protected void fireRegister(MBeanLocator locator)
locator
- public void foundMBeanServer(MBeanServerLocator theserver)
theserver
- public void lostMBeanServer(MBeanServerLocator server)
server
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |