KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > selfmanagement > event > ManagementRuleConstants


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
24
25 package com.sun.enterprise.admin.selfmanagement.event;
26
27
28 public class ManagementRuleConstants {
29     
30     //Event type
31
static public final String JavaDoc EVENT_LIFECYCLE = "lifecycle";
32     static public final String JavaDoc EVENT_CLUSTER = "cluster";
33     static public final String JavaDoc EVENT_LOG = "log";
34     static public final String JavaDoc EVENT_TIMER = "timer";
35     static public final String JavaDoc EVENT_TRACE = "trace";
36     static public final String JavaDoc EVENT_MONITOR = "monitor";
37     static public final String JavaDoc EVENT_NOTIFICATION = "notification";
38     
39     //property name for Life Cycle Event:
40
static public final String JavaDoc PROPERTY_LIFECYCLE_NAME="name";
41     
42     //property name for Monitor Event:
43
static public final String JavaDoc PROPERTY_MONITOR_COUNTER="countermonitor";
44     static public final String JavaDoc PROPERTY_MONITOR_GAUGE="gaugemonitor";
45     static public final String JavaDoc PROPERTY_MONITOR_STRING="stringmonitor";
46     static public final String JavaDoc PROPERTY_MONITOR_TYPE="monitortype";
47     static public final String JavaDoc PROPERTY_MONITOR_OBSERVED_OBJ="observedobject";
48     static public final String JavaDoc PROPERTY_MONITOR_OBSERVED_ATTRIBUTE="observedattribute";
49     static public final String JavaDoc PROPERTY_MONITOR_GRANULARITY_PERIOD="granularityperiod";
50     static public final String JavaDoc PROPERTY_MONITOR_NUMBERTYPE="numbertype";
51     static public final String JavaDoc PROPERTY_MONITOR_DIFFERENCEMODE="differencemode";
52     static public final String JavaDoc PROPERTY_MONITOR_INIT_THRESHOLD="initthreshold";
53     static public final String JavaDoc PROPERTY_MONITOR_OFFSET="offset";
54     static public final String JavaDoc PROPERTY_MONITOR_MODULUS="modulus";
55     static public final String JavaDoc PROPERTY_MONITOR_LOW_THRESHOLD="lowthreshold";
56     static public final String JavaDoc PROPERTY_MONITOR_HIGH_THRESHOLD="highthreshold";
57     static public final String JavaDoc PROPERTY_MONITOR_STRING_TO_COMPARE="stringtocompare";
58     static public final String JavaDoc PROPERTY_MONITOR_STRING_NOTIFY_MATCH="notifymatch";
59     static public final String JavaDoc PROPERTY_MONITOR_STRING_NOTIFY_DIFFER="notifydiffer";
60     static public final String JavaDoc PROPERTY_MONITOR_STRING_NOTIFY="stringnotify";
61     static public final String JavaDoc PROPERTY_MONITOR_OBSERVED_OBJ_MBEAN_NAME="observedmbean";
62     
63     //property name for Trace event:
64
static public final String JavaDoc PROPERTY_TRACE_NAME="name";
65     static public final String JavaDoc PROPERTY_TRACE_IPADDRESS="ipaddress";
66     static public final String JavaDoc PROPERTY_TRACE_CALLERPRINCIPAL="callerprincipal";
67     static public final String JavaDoc PROPERTY_TRACE_COMPONENTNAME="componentname";
68     
69     //property name for Log event:
70
static public final String JavaDoc PROPERTY_LOG_LOGGERNAME="loggernames";
71     static public final String JavaDoc PROPERTY_LOG_LEVEL="level";
72     
73     //property name for Timer event:
74
static public final String JavaDoc PROPERTY_TIMER_PATTERN="pattern";
75     static public final String JavaDoc PROPERTY_TIMER_DATESTRING="datestring";
76     static public final String JavaDoc PROPERTY_TIMER_PERIOD="period";
77     static public final String JavaDoc PROPERTY_TIMER_NUMBER_OF_OCCURRENCES="numberofoccurrences";
78     static public final String JavaDoc PROPERTY_TIMER_MESSAGE="message";
79     
80     //property name for Notification event:
81
static public final String JavaDoc PROPERTY_NOTIFICATION_SOURCEMBEAN="sourcembean";
82     static public final String JavaDoc PROPERTY_NOTIFICATION_SOURCE_OBJ_NAME="sourceobjectname";
83         
84     
85     //property name for Cluster event:
86
static public final String JavaDoc PROPERTY_CLUSTER_NAME="name";
87     static public final String JavaDoc PROPERTY_CLUSTER_SERVERNAME="servername";
88      
89 }
90
Popular Tags