< prev index next >

application/org.openjdk.jmc.rjmx/schema/triggerConstraints.exsd

Print this page


   1 <?xml version='1.0' encoding='UTF-8'?>
   2 <!--   
   3    Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   4    
   5    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6    
   7    The contents of this file are subject to the terms of either the Universal Permissive License 
   8    v 1.0 as shown at http://oss.oracle.com/licenses/upl
   9    
  10    or the following license:
  11    
  12    Redistribution and use in source and binary forms, with or without modification, are permitted
  13    provided that the following conditions are met:
  14    
  15    1. Redistributions of source code must retain the above copyright notice, this list of conditions
  16    and the following disclaimer.
  17    
  18    2. Redistributions in binary form must reproduce the above copyright notice, this list of
  19    conditions and the following disclaimer in the documentation and/or other materials provided with
  20    the distribution.
  21    
  22    3. Neither the name of the copyright holder nor the names of its contributors may be used to
  23    endorse or promote products derived from this software without specific prior written permission.


 569 
 570 import org.openjdk.jmc.rjmx.triggers.TriggerConstraint;
 571 import org.openjdk.jmc.rjmx.triggers.internal.NotificationEvent;
 572 
 573 public class DisablingConstraint extends TriggerConstraint {
 574  public boolean isValid(NotificationEvent e) {
 575   return !getSetting(&quot;com.example.triggers.constraint.disable.rule&quot;).getBoolean();
 576  }
 577 }
 578 &lt;/pre&gt;
 579       </documentation>
 580    </annotation>
 581 
 582 
 583 
 584    <annotation>
 585       <appinfo>
 586          <meta.section type="copyright"/>
 587       </appinfo>
 588       <documentation>
 589          Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
 590       </documentation>
 591    </annotation>
 592 
 593 </schema>
   1 <?xml version='1.0' encoding='UTF-8'?>
   2 <!--   
   3    Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
   4    
   5    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6    
   7    The contents of this file are subject to the terms of either the Universal Permissive License 
   8    v 1.0 as shown at http://oss.oracle.com/licenses/upl
   9    
  10    or the following license:
  11    
  12    Redistribution and use in source and binary forms, with or without modification, are permitted
  13    provided that the following conditions are met:
  14    
  15    1. Redistributions of source code must retain the above copyright notice, this list of conditions
  16    and the following disclaimer.
  17    
  18    2. Redistributions in binary form must reproduce the above copyright notice, this list of
  19    conditions and the following disclaimer in the documentation and/or other materials provided with
  20    the distribution.
  21    
  22    3. Neither the name of the copyright holder nor the names of its contributors may be used to
  23    endorse or promote products derived from this software without specific prior written permission.


 569 
 570 import org.openjdk.jmc.rjmx.triggers.TriggerConstraint;
 571 import org.openjdk.jmc.rjmx.triggers.internal.NotificationEvent;
 572 
 573 public class DisablingConstraint extends TriggerConstraint {
 574  public boolean isValid(NotificationEvent e) {
 575   return !getSetting(&quot;com.example.triggers.constraint.disable.rule&quot;).getBoolean();
 576  }
 577 }
 578 &lt;/pre&gt;
 579       </documentation>
 580    </annotation>
 581 
 582 
 583 
 584    <annotation>
 585       <appinfo>
 586          <meta.section type="copyright"/>
 587       </appinfo>
 588       <documentation>
 589          Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
 590       </documentation>
 591    </annotation>
 592 
 593 </schema>
< prev index next >