KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > management > support > oldconfig > OldManagementRules


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.management.support.oldconfig;
24
25 import javax.management.ObjectName JavaDoc;
26 import javax.management.AttributeList JavaDoc;
27
28 import java.util.Set JavaDoc;
29 import java.util.List JavaDoc;
30 import java.util.Properties JavaDoc;
31
32 public interface OldManagementRules
33 {
34     /**
35         Taken from com.sun.enterprise.admin.mbeans.ManagementRulesMBean
36      
37         Create new self management rule with contained event and action(optional)
38         @param ruleName name of the management rule. Required.
39         @param bRuleEnabled enabled/disabled rule state.
40         @param ruleDescription textual decription of the rule.
41         @param eventType one of the predefined event types. Required.
42         @param eventLevel events severety level (default "INFO")
43         @param eventDescription textual decription of the evant
44         @param eventRecordEvent whether the event is to be logged or not ("true")
45         @param eventProperties event's properties
46         @param actionMbeanName actionMbeanNames associated with rule
47
48         @returns ObjectName of created management-rule
49         @throws Exception
50      */

51 public ObjectName JavaDoc createManagementRule(
52             String JavaDoc ruleName, //required
53
Boolean JavaDoc bRuleEnabled,
54             String JavaDoc ruleDescription,
55             String JavaDoc eventType, //required
56
String JavaDoc eventLevel,
57             Boolean JavaDoc eventRecordEvent,
58             String JavaDoc eventDescription,
59             Properties JavaDoc eventProperties,
60             String JavaDoc actionMbeanName
61         );
62
63
64     ObjectName JavaDoc createManagementRule(AttributeList JavaDoc a);
65     void addActionToManagementRule(String JavaDoc ruleName,String JavaDoc actionMBeanName);
66     List JavaDoc getAllActionMBeans(boolean p);
67     List JavaDoc getDottedNames(String JavaDoc p);
68     List JavaDoc getEventProperties(String JavaDoc p);
69     List JavaDoc getEventPropertyValues(String JavaDoc p1,String JavaDoc p2);
70     List JavaDoc getEventTypes(boolean p);
71     List JavaDoc getMBeanAttributes(String JavaDoc p);
72     ObjectName JavaDoc[] getManagementRule();
73     ObjectName JavaDoc getManagementRuleByName(String JavaDoc p);
74     String JavaDoc[] getManagementRuleNamesList();
75     List JavaDoc getNotificationTypes(String JavaDoc p);
76     List JavaDoc getNotificationTypes(ObjectName JavaDoc p);
77     Set JavaDoc getRegisteredMBeans(String JavaDoc p);
78     void removeManagementRuleByName(String JavaDoc p);
79     
80 };
81
82
83
84
85
Popular Tags