org.norther.tammi.spray.filter
Class FilterMBeanHandle

java.lang.Object
  extended by org.norther.tammi.core.base.MBeanHandle
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.norther.tammi.core.base.MBeanHandle
MBeanHandle.ClassQueryExp, MBeanHandle.RegistrationFilter
 
Constructor Summary
FilterMBeanHandle(MBeanServer server, ObjectName name)
          Constructs a new handle with an initial value.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.base.MBeanReference
get, getClassName, getMBeanServer, getObjectName, isRegistered
 

Constructor Detail

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.
Method Detail

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.