KickJava   Java API By Example, From Geeks To Geeks.

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


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  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/config/LogServiceConfig.java,v 1.6 2006/03/09 20:30:24 llc Exp $
26  * $Revision: 1.6 $
27  * $Date: 2006/03/09 20:30:24 $
28  */

29
30
31 package com.sun.appserv.management.config;
32
33 import com.sun.appserv.management.base.XTypes;
34
35
36
37 import java.util.Map JavaDoc;
38
39
40 import com.sun.appserv.management.base.Container;
41
42 /**
43     Configuration for the <log-service> element.
44      
45     @see ModuleLogLevelsConfigKeys
46  */

47 public interface LogServiceConfig
48     extends PropertiesAccess, Container, ConfigElement
49 {
50 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
51     public static final String JavaDoc J2EE_TYPE = XTypes.LOG_SERVICE_CONFIG;
52     
53
54     public boolean getAlarms();
55     public void setAlarms( boolean value );
56
57     public String JavaDoc getFile();
58     public void setFile( String JavaDoc value );
59
60     public String JavaDoc getLogFilter();
61     public void setLogFilter( String JavaDoc value );
62
63     public String JavaDoc getLogHandler();
64     public void setLogHandler( String JavaDoc value );
65
66     /**
67         @since AppServer 9.0
68      */

69     public String JavaDoc getLogRotationTimeLimitInMinutes();
70     public void setLogRotationTimeLimitInMinutes( String JavaDoc value );
71     
72     public String JavaDoc getLogRotationLimitInBytes();
73     public void setLogRotationLimitInBytes( String JavaDoc value );
74
75     public boolean getLogToConsole();
76     public void setLogToConsole( boolean value );
77
78     public boolean getUseSystemLogging();
79     public void setUseSystemLogging( boolean value );
80     
81     
82     public String JavaDoc getRetainErrorStatisticsForHours();
83     public void setRetainErrorStatisticsForHours( String JavaDoc hours );
84     
85 // -------------------- Operations --------------------
86
/**
87         Creates new module-log-levels element.
88
89         @param params Map of optional attributes whose keys are defined in
90         ModuleLogLevelsParams class.
91         @return A proxy to the ModuleLogLevelsConfig MBean.
92         @see ModuleLogLevelsConfigKeys
93      */

94     public ModuleLogLevelsConfig createModuleLogLevelsConfig( Map JavaDoc<String JavaDoc,String JavaDoc> params );
95
96     /**
97         Removes module-log-levels element.
98      */

99     public void removeModuleLogLevelsConfig();
100
101     /**
102         Get the ModuleLogLevelsConfig MBean.
103      */

104     public ModuleLogLevelsConfig getModuleLogLevelsConfig();
105 }
106
Popular Tags