LogMessageID.java revision 73db2ddb960cafd7ffb6daf89eb697910d36c56d
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LogMessageID.java,v 1.6 2008/08/27 22:08:38 veiming Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
*/
/**
* Log Message ID is a unique identifier for each log message.
*/
public class LogMessageID {
private int id;
private String description;
private int dataInfoSize;
static {
}
/**
* Constructs a log message ID instance.
* @param logLevel Log level.
* @param prefix Prefix of this log.
* @param id Unique Identification number.
* @param name Unique name.
* @param description Description of this log.
* @param dataInfoColumns Information on the data logged.
*/
public LogMessageID(
int id,
) {
this.description = description;
this.dataInfoColumns = dataInfoColumns;
}
/**
* Returns log level.
*
* @return log level.
*/
public Level getLogLevel() {
return logLevel;
}
/**
* Returns prefix.
*
* @return prefix.
*/
return prefix;
}
/**
* Returns name.
*
* @return name.
*/
return name;
}
/**
* Returns id.
*
* @return name.
*/
public int getID() {
return id;
}
/**
* Returns description.
*
* @return description.
*/
public String getDescription() {
return description;
}
/**
* Returns number of entries in the data column.
*
* @return number of entries in the data column.
*/
public int getNumberOfEntriesInDataColumn() {
return dataInfoSize;
}
/**
* Get the names of the data columns for the log message.
* @return The column names.
*/
return dataInfoColumns;
}
try {
}
}
messageID = new LogMessageID(
} catch (NumberFormatException e) {
}
} else {
"unable to create log message ID because its name is missing");
}
}
}
return messageID;
}
int count = 0;
for (int i = 0; i < sz; i++) {
count++;
}
}
}
return count;
}
}
}
}
return target;
}
}