< prev index next >

application/org.openjdk.jmc.rjmx/schema/triggerActions.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.


 670 import org.openjdk.jmc.rjmx.triggers.TriggerAction;
 671 import org.openjdk.jmc.rjmx.triggers.TriggerEvent;
 672 
 673 public class HelloAction extends TriggerAction 
 674 {
 675  public void handleNotificationEvent(TriggerEvent e) 
 676  {
 677   System.out.println(&quot;Hello &quot; + getSetting(&quot;com.example.triggers.actions.username&quot;).getString() +&quot;! Trigger value is &quot; + e.getTriggerValue());
 678  }
 679 }
 680       </documentation>
 681    </annotation>
 682 
 683 
 684 
 685    <annotation>
 686       <appinfo>
 687          <meta.section type="copyright"/>
 688       </appinfo>
 689       <documentation>
 690          Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
 691       </documentation>
 692    </annotation>
 693 
 694 </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.


 670 import org.openjdk.jmc.rjmx.triggers.TriggerAction;
 671 import org.openjdk.jmc.rjmx.triggers.TriggerEvent;
 672 
 673 public class HelloAction extends TriggerAction 
 674 {
 675  public void handleNotificationEvent(TriggerEvent e) 
 676  {
 677   System.out.println(&quot;Hello &quot; + getSetting(&quot;com.example.triggers.actions.username&quot;).getString() +&quot;! Trigger value is &quot; + e.getTriggerValue());
 678  }
 679 }
 680       </documentation>
 681    </annotation>
 682 
 683 
 684 
 685    <annotation>
 686       <appinfo>
 687          <meta.section type="copyright"/>
 688       </appinfo>
 689       <documentation>
 690          Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
 691       </documentation>
 692    </annotation>
 693 
 694 </schema>
< prev index next >