com.jrockit.mc.rjmx.notification
Interface INotificationConstraint

All Superinterfaces:
com.jrockit.mc.common.xml.XmlEnabled

public interface INotificationConstraint
extends com.jrockit.mc.common.xml.XmlEnabled

Interface for general constraints that should be checked before a notification event is fired, for example a constraint could exist that ensures that a certain NotificationRule only triggers during working hours.

Author:
Marcus Hirt

Method Summary
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getName()
          Returns the name.
 boolean isValid(NotificationEvent event)
          Returns true if the constraint is valid for the notification event.
 
Methods inherited from interface com.jrockit.mc.common.xml.XmlEnabled
exportToXml, getComponentTag, initializeFromXml
 

Method Detail

getName

java.lang.String getName()
Returns the name.

Returns:
the name.

getDescription

java.lang.String getDescription()
Returns the description.

Returns:
the description.

isValid

boolean isValid(NotificationEvent event)
Returns true if the constraint is valid for the notification event.

Parameters:
event - the NotificationEvent to check.
Returns:
true if the constraint is valid.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.