org.norther.tammi.spray.filter
Class FilterMBeanHandle
java.lang.Object
org.norther.tammi.core.base.MBeanHandle
org.norther.tammi.spray.filter.FilterMBeanHandle
- All Implemented Interfaces:
- Serializable, EventListener, NotificationBroadcaster, NotificationEmitter, NotificationListener, MBeanReference, FilterMBeanReference
public class FilterMBeanHandle
- extends MBeanHandle
- implements FilterMBeanReference
An extension to MBeanHandle supporting the open/close state of Filters.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
|
Method Summary |
Filter |
getFilter()
Gets the referent of the filter MBean. |
boolean |
isOpen()
Checks the open state. |
void |
setOpen(boolean state)
Sets the open state. |
| Methods inherited from class org.norther.tammi.core.base.MBeanHandle |
addNotificationListener, finalize, get, getClassName, getInterface, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getQueryPattern, handleNotification, invalidate, isRegistered, isValid, queryObjectNames, release, removeNotificationListener, removeNotificationListener, renew, setInterface, setInterface, setMBeanServer, setQueryPattern |
FilterMBeanHandle
public FilterMBeanHandle(MBeanServer server,
ObjectName name)
- Constructs a new handle with an initial value.
- Parameters:
server - the MBean server.name - the object name of a query or MBean.
isOpen
public boolean isOpen()
- Description copied from interface:
FilterMBeanReference
- Checks the open state.
- Specified by:
isOpen in interface FilterMBeanReference
- Returns:
- true if open, false if closed.
setOpen
public void setOpen(boolean state)
- Description copied from interface:
FilterMBeanReference
- Sets the open state.
- Specified by:
setOpen in interface FilterMBeanReference
- Parameters:
state - true if open, false if closed.
getFilter
public Filter getFilter()
- Description copied from interface:
FilterMBeanReference
- Gets the referent of the filter MBean.
- Specified by:
getFilter in interface FilterMBeanReference
- Returns:
- the referent of the filter MBean or null if not available.
Copyright © 2004 The Norther Organization. All rights reserved.