KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > DiagnosticServiceConfig


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.appserv.management.config;
24
25 import java.util.Map JavaDoc;
26 import com.sun.appserv.management.base.Container;
27 import com.sun.appserv.management.base.XTypes;
28
29 /**
30  * Configuration for the <diagnostic-service> for a <config> in
31  * a domain. This element controls the output of the diagnostic information
32  * collected when requested by the management clients. The actual information
33  * collected is documented in product documentation.
34  * @since Appserver 9.0
35 */

36 public interface DiagnosticServiceConfig
37     extends PropertiesAccess, ConfigElement
38 {
39     /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
40     public static final String JavaDoc J2EE_TYPE = XTypes.DIAGNOSTIC_SERVICE_CONFIG;
41     
42     /**
43         @return true if the diagnostic service is computing the checksum for the data
44      */

45     public boolean getComputeChecksum();
46     
47     /**
48         See {@link #getComputeChecksum}.
49      */

50     public void setComputeChecksum(final boolean value);
51     
52     /**
53      @return true if installation log is collected for diagnosis, false otherwise
54      */

55     public boolean getCaptureInstallLog();
56     
57     /**
58         See {@link #getCaptureInstallLog}.
59      */

60     public void setCaptureInstallLog(final boolean value);
61     
62     /**
63      @return true if operating system information is being collected, false otherwise
64      */

65     public boolean getCaptureSystemInfo();
66     
67     /** Set capturing system information to specified value.
68      */

69     public void setCaptureSystemInfo(final boolean value);
70     
71     /**
72         @return true if HA data-base information is being collected, false otherwise
73      */

74     public boolean getCaptureHADBInfo();
75     
76     /**
77         See {@link #getCaptureHADBInfo}.
78      */

79     public void setCaptureHADBInfo(final boolean value);
80
81     /**
82         @return true if app deployment descriptor data is being collected, false otherwise
83      */

84     public boolean getCaptureAppDD();
85     
86     /**
87         See {@link #getCaptureAppDD}.
88      */

89     public void setCaptureAppDD(final boolean value);
90     
91     /**
92         The level at which the messages for diagnostic services will
93         be retrieved. All the messages at a level equal to or more than this
94         level will be captured.
95         @return the log level of the messages for diagnostic service
96         @see java.util.logging.Level
97      */

98     public String JavaDoc getMinLogLevel();
99     
100     /**
101         See {@link #getMinLogLevel}.
102         The specified value must be a valid {@link java.util.logging.Level}.
103      */

104     public void setMinLogLevel(final String JavaDoc level);
105     
106     /**
107         @return number of log entries to be read from the log
108         file. Defaults to 500.
109      */

110     public String JavaDoc getMaxLogEntries();
111     
112     /**
113         See {@link #getMaxLogEntries}.
114      */

115     public void setMaxLogEntries(final String JavaDoc entries);
116     
117     /**
118         Indicates whether output of verify-config asadmin command is
119         included in the diagnostic report.
120      */

121     public boolean getVerifyConfig();
122     
123     /**
124         See {@link #getVerifyConfig}
125      */

126     public void setVerifyConfig( boolean verify );
127 }
128
129
130
131
132
133
134
135
136
137
138
139
140
Popular Tags