001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)LoggerMBean.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.management.common;
030:
031: /**
032: * LoggerMBean defines standard controls for setting the properties of a
033: * single JBI Framework service or JBI Installable Component logger.
034: *
035: * @author Sun Microsystems, Inc.
036: */
037: public interface LoggerMBean {
038: /**
039: * Get the localized display name of this logger.
040: * @return String representing the localized display name.
041: */
042: String getDisplayName();
043:
044: /**
045: * Get the log level of this logger.
046: * @return String representing log level.
047: */
048: String getLogLevel();
049:
050: /**
051: * Get the name of this logger.
052: * @return String representing the logger name.
053: */
054: String getLoggerName();
055:
056: /**
057: * Set the log level of this logger to ALL.
058: * @return 0 if operation is successful, otherwise non-zero.
059: */
060: int setAll();
061:
062: /**
063: * Set the log level of this logger to CONFIG.
064: * @return 0 if operation is successful, otherwise non-zero.
065: */
066: int setConfig();
067:
068: /**
069: * Set the log level of this logger to null to inherit from its parent.
070: * @return 0 if operation is successful, otherwise non-zero.
071: */
072: int setDefault();
073:
074: /**
075: * Set the log level of this logger to FINE.
076: * @return 0 if operation is successful, otherwise non-zero.
077: */
078: int setFine();
079:
080: /**
081: * Set the log level of this logger to FINER.
082: * @return 0 if operation is successful, otherwise non-zero.
083: */
084: int setFiner();
085:
086: /**
087: * Set the log level of this logger to FINEST.
088: * @return 0 if operation is successful, otherwise non-zero.
089: */
090: int setFinest();
091:
092: /**
093: * Set the log level of this logger to INFO.
094: * @return 0 if operation is successful, otherwise non-zero.
095: */
096: int setInfo();
097:
098: /**
099: * Set the log level of this logger to OFF.
100: * @return 0 if operation is successful, otherwise non-zero.
101: */
102: int setOff();
103:
104: /**
105: * Set the log level of this logger to SEVERE.
106: * @return 0 if operation is successful, otherwise non-zero.
107: */
108: int setSevere();
109:
110: /**
111: * Set the log level of this logger to WARNING.
112: * @return 0 if operation is successful, otherwise non-zero.
113: */
114: int setWarning();
115: }
|