repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/extras/XSLTLayout.java
XSLTLayout.setTransform
public void setTransform(final Document xsltdoc) throws TransformerConfigurationException { // // scan transform source for xsl:output elements // and extract encoding, media (mime) type and output method // String encodingName = null; mediaType = null; ...
java
public void setTransform(final Document xsltdoc) throws TransformerConfigurationException { // // scan transform source for xsl:output elements // and extract encoding, media (mime) type and output method // String encodingName = null; mediaType = null; ...
[ "public", "void", "setTransform", "(", "final", "Document", "xsltdoc", ")", "throws", "TransformerConfigurationException", "{", "//", "// scan transform source for xsl:output elements", "// and extract encoding, media (mime) type and output method", "//", "String", "encodingName"...
Sets XSLT transform. @param xsltdoc DOM document containing XSLT transform source, may be modified. @throws TransformerConfigurationException if transformer can not be created.
[ "Sets", "XSLT", "transform", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/extras/XSLTLayout.java#L407-L461
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/LowLevelLogUtil.java
LowLevelLogUtil.setOutputStream
public static void setOutputStream(final OutputStream out) { LowLevelLogUtil.writer = new PrintWriter(Objects.requireNonNull(out), true); }
java
public static void setOutputStream(final OutputStream out) { LowLevelLogUtil.writer = new PrintWriter(Objects.requireNonNull(out), true); }
[ "public", "static", "void", "setOutputStream", "(", "final", "OutputStream", "out", ")", "{", "LowLevelLogUtil", ".", "writer", "=", "new", "PrintWriter", "(", "Objects", ".", "requireNonNull", "(", "out", ")", ",", "true", ")", ";", "}" ]
Sets the underlying OutputStream where exceptions are printed to. @param out the OutputStream to log to
[ "Sets", "the", "underlying", "OutputStream", "where", "exceptions", "are", "printed", "to", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/LowLevelLogUtil.java#L52-L54
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/LowLevelLogUtil.java
LowLevelLogUtil.setWriter
public static void setWriter(final Writer writer) { LowLevelLogUtil.writer = new PrintWriter(Objects.requireNonNull(writer), true); }
java
public static void setWriter(final Writer writer) { LowLevelLogUtil.writer = new PrintWriter(Objects.requireNonNull(writer), true); }
[ "public", "static", "void", "setWriter", "(", "final", "Writer", "writer", ")", "{", "LowLevelLogUtil", ".", "writer", "=", "new", "PrintWriter", "(", "Objects", ".", "requireNonNull", "(", "writer", ")", ",", "true", ")", ";", "}" ]
Sets the underlying Writer where exceptions are printed to. @param writer the Writer to log to
[ "Sets", "the", "underlying", "Writer", "where", "exceptions", "are", "printed", "to", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/LowLevelLogUtil.java#L61-L63
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/filter/TimeFilter.java
TimeFilter.setTimeZone
public void setTimeZone(final String s) { if (s == null) { calendar = Calendar.getInstance(); } else { calendar = Calendar.getInstance(TimeZone.getTimeZone(s)); } }
java
public void setTimeZone(final String s) { if (s == null) { calendar = Calendar.getInstance(); } else { calendar = Calendar.getInstance(TimeZone.getTimeZone(s)); } }
[ "public", "void", "setTimeZone", "(", "final", "String", "s", ")", "{", "if", "(", "s", "==", "null", ")", "{", "calendar", "=", "Calendar", ".", "getInstance", "(", ")", ";", "}", "else", "{", "calendar", "=", "Calendar", ".", "getInstance", "(", "T...
Set timezone. @param s time zone.
[ "Set", "timezone", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/filter/TimeFilter.java#L108-L114
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/AndRule.java
AndRule.getRule
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid AND rule - expected two rules but received " + stack.size()); } Object o2 = stack.pop(); Object o1 = stack.pop(); if ((o2 instanceof Ru...
java
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid AND rule - expected two rules but received " + stack.size()); } Object o2 = stack.pop(); Object o1 = stack.pop(); if ((o2 instanceof Ru...
[ "public", "static", "Rule", "getRule", "(", "final", "Stack", "stack", ")", "{", "if", "(", "stack", ".", "size", "(", ")", "<", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid AND rule - expected two rules but received \"", "+", "stac...
Create rule from top two elements of stack. @param stack stack of rules. @return Rule that evaluates true only if both rules are true.
[ "Create", "rule", "from", "top", "two", "elements", "of", "stack", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/AndRule.java#L65-L79
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java
Level.isInRange
public boolean isInRange(final Level minLevel, final Level maxLevel) { return this.intLevel >= minLevel.intLevel && this.intLevel <= maxLevel.intLevel; }
java
public boolean isInRange(final Level minLevel, final Level maxLevel) { return this.intLevel >= minLevel.intLevel && this.intLevel <= maxLevel.intLevel; }
[ "public", "boolean", "isInRange", "(", "final", "Level", "minLevel", ",", "final", "Level", "maxLevel", ")", "{", "return", "this", ".", "intLevel", ">=", "minLevel", ".", "intLevel", "&&", "this", ".", "intLevel", "<=", "maxLevel", ".", "intLevel", ";", "...
Compares this level against the levels passed as arguments and returns true if this level is in between the given levels. @param minLevel The minimum level to test. @param maxLevel The maximum level to test. @return True true if this level is in between the given levels @since 2.4
[ "Compares", "this", "level", "against", "the", "levels", "passed", "as", "arguments", "and", "returns", "true", "if", "this", "level", "is", "in", "between", "the", "given", "levels", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java#L154-L156
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java
Level.forName
public static Level forName(final String name, final int intValue) { final Level level = LEVELS.get(name); if (level != null) { return level; } try { return new Level(name, intValue); } catch (final IllegalStateException ex) { // The level was ...
java
public static Level forName(final String name, final int intValue) { final Level level = LEVELS.get(name); if (level != null) { return level; } try { return new Level(name, intValue); } catch (final IllegalStateException ex) { // The level was ...
[ "public", "static", "Level", "forName", "(", "final", "String", "name", ",", "final", "int", "intValue", ")", "{", "final", "Level", "level", "=", "LEVELS", ".", "get", "(", "name", ")", ";", "if", "(", "level", "!=", "null", ")", "{", "return", "lev...
Retrieves an existing Level or creates on if it didn't previously exist. @param name The name of the level. @param intValue The integer value for the Level. If the level was previously created this value is ignored. @return The Level. @throws java.lang.IllegalArgumentException if the name is null or intValue is less t...
[ "Retrieves", "an", "existing", "Level", "or", "creates", "on", "if", "it", "didn", "t", "previously", "exist", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java#L241-L252
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java
Level.values
public static Level[] values() { final Collection<Level> values = Level.LEVELS.values(); return values.toArray(new Level[values.size()]); }
java
public static Level[] values() { final Collection<Level> values = Level.LEVELS.values(); return values.toArray(new Level[values.size()]); }
[ "public", "static", "Level", "[", "]", "values", "(", ")", "{", "final", "Collection", "<", "Level", ">", "values", "=", "Level", ".", "LEVELS", ".", "values", "(", ")", ";", "return", "values", ".", "toArray", "(", "new", "Level", "[", "values", "."...
Return an array of all the Levels that have been registered. @return An array of Levels.
[ "Return", "an", "array", "of", "all", "the", "Levels", "that", "have", "been", "registered", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java#L300-L303
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java
Level.valueOf
public static Level valueOf(final String name) { Objects.requireNonNull(name, "No level name given."); final String levelName = toUpperCase(name); final Level level = LEVELS.get(levelName); if (level != null) { return level; } throw new IllegalArgumentExceptio...
java
public static Level valueOf(final String name) { Objects.requireNonNull(name, "No level name given."); final String levelName = toUpperCase(name); final Level level = LEVELS.get(levelName); if (level != null) { return level; } throw new IllegalArgumentExceptio...
[ "public", "static", "Level", "valueOf", "(", "final", "String", "name", ")", "{", "Objects", ".", "requireNonNull", "(", "name", ",", "\"No level name given.\"", ")", ";", "final", "String", "levelName", "=", "toUpperCase", "(", "name", ")", ";", "final", "L...
Return the Level associated with the name. @param name The name of the Level to return. @return The Level. @throws java.lang.NullPointerException if the Level name is {@code null}. @throws java.lang.IllegalArgumentException if the Level name is not registered.
[ "Return", "the", "Level", "associated", "with", "the", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/Level.java#L313-L321
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.getParameters
@Override public Object[] getParameters() { final Object[] result = new Object[data.size()]; for (int i = 0; i < data.size(); i++) { result[i] = data.getValueAt(i); } return result; }
java
@Override public Object[] getParameters() { final Object[] result = new Object[data.size()]; for (int i = 0; i < data.size(); i++) { result[i] = data.getValueAt(i); } return result; }
[ "@", "Override", "public", "Object", "[", "]", "getParameters", "(", ")", "{", "final", "Object", "[", "]", "result", "=", "new", "Object", "[", "data", ".", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", "...
Returns the data elements as if they were parameters on the logging event. @return the data elements.
[ "Returns", "the", "data", "elements", "as", "if", "they", "were", "parameters", "on", "the", "logging", "event", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L127-L134
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.getData
@SuppressWarnings("unchecked") public Map<String, V> getData() { final TreeMap<String, V> result = new TreeMap<>(); // returned map must be sorted for (int i = 0; i < data.size(); i++) { // The Eclipse compiler does not need the typecast to V, but the Oracle compiler sure does. ...
java
@SuppressWarnings("unchecked") public Map<String, V> getData() { final TreeMap<String, V> result = new TreeMap<>(); // returned map must be sorted for (int i = 0; i < data.size(); i++) { // The Eclipse compiler does not need the typecast to V, but the Oracle compiler sure does. ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "Map", "<", "String", ",", "V", ">", "getData", "(", ")", "{", "final", "TreeMap", "<", "String", ",", "V", ">", "result", "=", "new", "TreeMap", "<>", "(", ")", ";", "// returned map must be ...
Returns the message data as an unmodifiable Map. @return the message data as an unmodifiable map.
[ "Returns", "the", "message", "data", "as", "an", "unmodifiable", "Map", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L149-L157
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.putAll
public void putAll(final Map<String, String> map) { for (final Map.Entry<String, ?> entry : map.entrySet()) { data.putValue(entry.getKey(), entry.getValue()); } }
java
public void putAll(final Map<String, String> map) { for (final Map.Entry<String, ?> entry : map.entrySet()) { data.putValue(entry.getKey(), entry.getValue()); } }
[ "public", "void", "putAll", "(", "final", "Map", "<", "String", ",", "String", ">", "map", ")", "{", "for", "(", "final", "Map", ".", "Entry", "<", "String", ",", "?", ">", "entry", ":", "map", ".", "entrySet", "(", ")", ")", "{", "data", ".", ...
Adds all the elements from the specified Map. @param map The Map to add.
[ "Adds", "all", "the", "elements", "from", "the", "specified", "Map", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L202-L206
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.remove
public String remove(final String key) { final String result = data.getValue(key); data.remove(key); return result; }
java
public String remove(final String key) { final String result = data.getValue(key); data.remove(key); return result; }
[ "public", "String", "remove", "(", "final", "String", "key", ")", "{", "final", "String", "result", "=", "data", ".", "getValue", "(", "key", ")", ";", "data", ".", "remove", "(", "key", ")", ";", "return", "result", ";", "}" ]
Removes the element with the specified name. @param key The name of the element. @return The previous value of the element.
[ "Removes", "the", "element", "with", "the", "specified", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L222-L226
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.asXml
public void asXml(final StringBuilder sb) { sb.append("<Map>\n"); for (int i = 0; i < data.size(); i++) { sb.append(" <Entry key=\"").append(data.getKeyAt(i)).append("\">").append((String)data.getValueAt(i)) .append("</Entry>\n"); } sb.append("</Map>"); ...
java
public void asXml(final StringBuilder sb) { sb.append("<Map>\n"); for (int i = 0; i < data.size(); i++) { sb.append(" <Entry key=\"").append(data.getKeyAt(i)).append("\">").append((String)data.getValueAt(i)) .append("</Entry>\n"); } sb.append("</Map>"); ...
[ "public", "void", "asXml", "(", "final", "StringBuilder", "sb", ")", "{", "sb", ".", "append", "(", "\"<Map>\\n\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", ".", "size", "(", ")", ";", "i", "++", ")", "{", "sb", ".", ...
Formats this message as an XML fragment String into the given builder. @param sb format into this builder.
[ "Formats", "this", "message", "as", "an", "XML", "fragment", "String", "into", "the", "given", "builder", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L338-L345
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.newInstance
@SuppressWarnings("unchecked") public M newInstance(final Map<String, V> map) { return (M) new MapMessage<>(map); }
java
@SuppressWarnings("unchecked") public M newInstance(final Map<String, V> map) { return (M) new MapMessage<>(map); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "M", "newInstance", "(", "final", "Map", "<", "String", ",", "V", ">", "map", ")", "{", "return", "(", "M", ")", "new", "MapMessage", "<>", "(", "map", ")", ";", "}" ]
Constructs a new instance based on an existing Map. @param map The Map. @return A new MapMessage
[ "Constructs", "a", "new", "instance", "based", "on", "an", "existing", "Map", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L419-L422
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java
MapMessage.with
@SuppressWarnings("unchecked") public M with(final String key, final String value) { put(key, value); return (M) this; }
java
@SuppressWarnings("unchecked") public M with(final String key, final String value) { put(key, value); return (M) this; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "M", "with", "(", "final", "String", "key", ",", "final", "String", "value", ")", "{", "put", "(", "key", ",", "value", ")", ";", "return", "(", "M", ")", "this", ";", "}" ]
Adds an item to the data Map in fluent style. @param key The name of the data item. @param value The value of the data item. @return {@code this}
[ "Adds", "an", "item", "to", "the", "data", "Map", "in", "fluent", "style", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/MapMessage.java#L665-L669
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLoggerWrapper.java
ExtendedLoggerWrapper.logMessage
@Override public void logMessage(final String fqcn, final Level level, final Marker marker, final Message message, final Throwable t) { logger.logMessage(fqcn, level, marker, message, t); }
java
@Override public void logMessage(final String fqcn, final Level level, final Marker marker, final Message message, final Throwable t) { logger.logMessage(fqcn, level, marker, message, t); }
[ "@", "Override", "public", "void", "logMessage", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Marker", "marker", ",", "final", "Message", "message", ",", "final", "Throwable", "t", ")", "{", "logger", ".", "logMessage", "(...
Always log an event. This tends to be already guarded by an enabled check, so this method should not check for the logger level again @param fqcn The fully qualified class name of the <b>caller</b> @param level The logging level @param marker The Marker @param message The Message. @param t A Throwable or null.
[ "Always", "log", "an", "event", ".", "This", "tends", "to", "be", "already", "guarded", "by", "an", "enabled", "check", "so", "this", "method", "should", "not", "check", "for", "the", "logger", "level", "again" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLoggerWrapper.java#L214-L218
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/MDC.java
MDC.put
public static Object put(String key, Object val) { return LoggerProviders.PROVIDER.putMdc(key, val); }
java
public static Object put(String key, Object val) { return LoggerProviders.PROVIDER.putMdc(key, val); }
[ "public", "static", "Object", "put", "(", "String", "key", ",", "Object", "val", ")", "{", "return", "LoggerProviders", ".", "PROVIDER", ".", "putMdc", "(", "key", ",", "val", ")", ";", "}" ]
Puts the value onto the context. @param key the key for the value @param val the value @return the previous value set or {@code null} if no value was set
[ "Puts", "the", "value", "onto", "the", "context", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/MDC.java#L40-L42
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/ExpressionRule.java
ExpressionRule.getRule
public static Rule getRule(final String expression, final boolean isPostFix) { String postFix = expression; if (!isPostFix) { postFix = CONVERTER.convert(expression); } return new ExpressionRule(COMPILER.compileExpression(postFix)); }
java
public static Rule getRule(final String expression, final boolean isPostFix) { String postFix = expression; if (!isPostFix) { postFix = CONVERTER.convert(expression); } return new ExpressionRule(COMPILER.compileExpression(postFix)); }
[ "public", "static", "Rule", "getRule", "(", "final", "String", "expression", ",", "final", "boolean", "isPostFix", ")", "{", "String", "postFix", "=", "expression", ";", "if", "(", "!", "isPostFix", ")", "{", "postFix", "=", "CONVERTER", ".", "convert", "(...
Get rule. @param expression expression. @param isPostFix If post-fix. @return rule
[ "Get", "rule", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/ExpressionRule.java#L93-L101
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java
UtilLoggingLevel.toLevel
public static UtilLoggingLevel toLevel(final int val, final UtilLoggingLevel defaultLevel) { switch (val) { case SEVERE_INT: return SEVERE; case WARNING_INT: return WARNING; case INFO_INT: return...
java
public static UtilLoggingLevel toLevel(final int val, final UtilLoggingLevel defaultLevel) { switch (val) { case SEVERE_INT: return SEVERE; case WARNING_INT: return WARNING; case INFO_INT: return...
[ "public", "static", "UtilLoggingLevel", "toLevel", "(", "final", "int", "val", ",", "final", "UtilLoggingLevel", "defaultLevel", ")", "{", "switch", "(", "val", ")", "{", "case", "SEVERE_INT", ":", "return", "SEVERE", ";", "case", "WARNING_INT", ":", "return",...
Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default. @param val numeric value. @param defaultLevel level to be returned if no level matches numeric value. @return matching level or default level.
[ "Convert", "an", "integer", "passed", "as", "argument", "to", "a", "level", ".", "If", "the", "conversion", "fails", "then", "this", "method", "returns", "the", "specified", "default", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java#L129-L156
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java
UtilLoggingLevel.getAllPossibleLevels
public static List getAllPossibleLevels() { ArrayList list = new ArrayList(); list.add(FINE); list.add(FINER); list.add(FINEST); list.add(INFO); list.add(CONFIG); list.add(WARNING); list.add(SEVERE); return list; }
java
public static List getAllPossibleLevels() { ArrayList list = new ArrayList(); list.add(FINE); list.add(FINER); list.add(FINEST); list.add(INFO); list.add(CONFIG); list.add(WARNING); list.add(SEVERE); return list; }
[ "public", "static", "List", "getAllPossibleLevels", "(", ")", "{", "ArrayList", "list", "=", "new", "ArrayList", "(", ")", ";", "list", ".", "add", "(", "FINE", ")", ";", "list", ".", "add", "(", "FINER", ")", ";", "list", ".", "add", "(", "FINEST", ...
Gets list of supported levels. @return list of supported levels.
[ "Gets", "list", "of", "supported", "levels", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java#L171-L181
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java
UtilLoggingLevel.toLevel
public static Level toLevel(final String sArg, final Level defaultLevel) { if (sArg == null) { return defaultLevel; } String s = sArg.toUpperCase(); if (s.equals("SEVERE")) { return SEVERE; } //if(s.equals("FINE")...
java
public static Level toLevel(final String sArg, final Level defaultLevel) { if (sArg == null) { return defaultLevel; } String s = sArg.toUpperCase(); if (s.equals("SEVERE")) { return SEVERE; } //if(s.equals("FINE")...
[ "public", "static", "Level", "toLevel", "(", "final", "String", "sArg", ",", "final", "Level", "defaultLevel", ")", "{", "if", "(", "sArg", "==", "null", ")", "{", "return", "defaultLevel", ";", "}", "String", "s", "=", "sArg", ".", "toUpperCase", "(", ...
Get level with specified symbolic name. @param sArg symbolic name. @param defaultLevel level to return if no match. @return matching level or defaultLevel if no match.
[ "Get", "level", "with", "specified", "symbolic", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/helpers/UtilLoggingLevel.java#L199-L236
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/ops4j/pax/logging/log4j2/appender/PaxOsgiAppender.java
PaxOsgiAppender.createAppender
@PluginFactory public static PaxOsgiAppender createAppender( // @formatter:off @PluginAttribute("name") final String name, @PluginAttribute("filter") final String filter, @PluginConfiguration final Configuration config) { // @formatter:on if (name...
java
@PluginFactory public static PaxOsgiAppender createAppender( // @formatter:off @PluginAttribute("name") final String name, @PluginAttribute("filter") final String filter, @PluginConfiguration final Configuration config) { // @formatter:on if (name...
[ "@", "PluginFactory", "public", "static", "PaxOsgiAppender", "createAppender", "(", "// @formatter:off", "@", "PluginAttribute", "(", "\"name\"", ")", "final", "String", "name", ",", "@", "PluginAttribute", "(", "\"filter\"", ")", "final", "String", "filter", ",", ...
Create a Pax Osgi Appender. @param name The name of the Appender. @param filter defaults to "*", can be any string that works as a value in {@link org.osgi.framework.Filter} @param config The Configuration @return The FileAppender.
[ "Create", "a", "Pax", "Osgi", "Appender", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/ops4j/pax/logging/log4j2/appender/PaxOsgiAppender.java#L93-L106
train
ops4j/org.ops4j.pax.logging
pax-logging-samples/config/src/main/java/org/ops4j/pax/logging/samples/config/internal/Activator.java
Activator.updateConfiguration
private void updateConfiguration( BundleContext bundleContext, final String pattern ) throws IOException { final ConfigurationAdmin configAdmin = getConfigurationAdmin( bundleContext ); final Configuration configuration = configAdmin.getConfiguration( "o...
java
private void updateConfiguration( BundleContext bundleContext, final String pattern ) throws IOException { final ConfigurationAdmin configAdmin = getConfigurationAdmin( bundleContext ); final Configuration configuration = configAdmin.getConfiguration( "o...
[ "private", "void", "updateConfiguration", "(", "BundleContext", "bundleContext", ",", "final", "String", "pattern", ")", "throws", "IOException", "{", "final", "ConfigurationAdmin", "configAdmin", "=", "getConfigurationAdmin", "(", "bundleContext", ")", ";", "final", ...
Updates Pax Logging configuration to a specifid conversion pattern. @param bundleContext bundle context @param pattern layout conversion pattern @throws IOException - Re-thrown
[ "Updates", "Pax", "Logging", "configuration", "to", "a", "specifid", "conversion", "pattern", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-samples/config/src/main/java/org/ops4j/pax/logging/samples/config/internal/Activator.java#L69-L83
train
ops4j/org.ops4j.pax.logging
pax-logging-samples/config/src/main/java/org/ops4j/pax/logging/samples/config/internal/Activator.java
Activator.getConfigurationAdmin
private ConfigurationAdmin getConfigurationAdmin( final BundleContext bundleContext ) { final ServiceReference ref = bundleContext.getServiceReference( ConfigurationAdmin.class.getName() ); if( ref == null ) { throw new IllegalStateException( "Cannot find a configuration admin se...
java
private ConfigurationAdmin getConfigurationAdmin( final BundleContext bundleContext ) { final ServiceReference ref = bundleContext.getServiceReference( ConfigurationAdmin.class.getName() ); if( ref == null ) { throw new IllegalStateException( "Cannot find a configuration admin se...
[ "private", "ConfigurationAdmin", "getConfigurationAdmin", "(", "final", "BundleContext", "bundleContext", ")", "{", "final", "ServiceReference", "ref", "=", "bundleContext", ".", "getServiceReference", "(", "ConfigurationAdmin", ".", "class", ".", "getName", "(", ")", ...
Gets Configuration Admin service from service registry. @param bundleContext bundle context @return configuration admin service @throws IllegalStateException - If no Configuration Admin service is available
[ "Gets", "Configuration", "Admin", "service", "from", "service", "registry", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-samples/config/src/main/java/org/ops4j/pax/logging/samples/config/internal/Activator.java#L94-L102
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
StatusLogger.removeListener
public void removeListener(final StatusListener listener) { closeSilently(listener); listenersLock.writeLock().lock(); try { listeners.remove(listener); int lowest = Level.toLevel(DEFAULT_STATUS_LEVEL, Level.WARN).intLevel(); for (final StatusListener statusLi...
java
public void removeListener(final StatusListener listener) { closeSilently(listener); listenersLock.writeLock().lock(); try { listeners.remove(listener); int lowest = Level.toLevel(DEFAULT_STATUS_LEVEL, Level.WARN).intLevel(); for (final StatusListener statusLi...
[ "public", "void", "removeListener", "(", "final", "StatusListener", "listener", ")", "{", "closeSilently", "(", "listener", ")", ";", "listenersLock", ".", "writeLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "listeners", ".", "remove", "(", "lis...
Removes a StatusListener. @param listener The StatusListener to remove.
[ "Removes", "a", "StatusListener", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java#L150-L166
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
StatusLogger.reset
public void reset() { listenersLock.writeLock().lock(); try { for (final StatusListener listener : listeners) { closeSilently(listener); } } finally { listeners.clear(); listenersLock.writeLock().unlock(); // note this s...
java
public void reset() { listenersLock.writeLock().lock(); try { for (final StatusListener listener : listeners) { closeSilently(listener); } } finally { listeners.clear(); listenersLock.writeLock().unlock(); // note this s...
[ "public", "void", "reset", "(", ")", "{", "listenersLock", ".", "writeLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "for", "(", "final", "StatusListener", "listener", ":", "listeners", ")", "{", "closeSilently", "(", "listener", ")", ";", "}...
Clears the list of status events and listeners.
[ "Clears", "the", "list", "of", "status", "events", "and", "listeners", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java#L186-L198
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
StatusLogger.logMessage
@Override public void logMessage(final String fqcn, final Level level, final Marker marker, final Message msg, final Throwable t) { StackTraceElement element = null; if (fqcn != null) { element = getStackTraceElement(fqcn, Thread.currentThread().getStackTrace()); } ...
java
@Override public void logMessage(final String fqcn, final Level level, final Marker marker, final Message msg, final Throwable t) { StackTraceElement element = null; if (fqcn != null) { element = getStackTraceElement(fqcn, Thread.currentThread().getStackTrace()); } ...
[ "@", "Override", "public", "void", "logMessage", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Marker", "marker", ",", "final", "Message", "msg", ",", "final", "Throwable", "t", ")", "{", "StackTraceElement", "element", "=", ...
Adds an event. @param marker The Marker @param fqcn The fully qualified class name of the <b>caller</b> @param level The logging level @param msg The message associated with the event. @param t A Throwable or null.
[ "Adds", "an", "event", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java#L248-L276
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasFormattingInfo.java
ExtrasFormattingInfo.format
public void format(final int fieldStart, final StringBuffer buffer) { final int rawLength = buffer.length() - fieldStart; if (rawLength > maxLength) { if(rightTruncate) { buffer.setLength(fieldStart + maxLength); } else { buffer.delete(fieldStart, buffer.length() - maxLength); ...
java
public void format(final int fieldStart, final StringBuffer buffer) { final int rawLength = buffer.length() - fieldStart; if (rawLength > maxLength) { if(rightTruncate) { buffer.setLength(fieldStart + maxLength); } else { buffer.delete(fieldStart, buffer.length() - maxLength); ...
[ "public", "void", "format", "(", "final", "int", "fieldStart", ",", "final", "StringBuffer", "buffer", ")", "{", "final", "int", "rawLength", "=", "buffer", ".", "length", "(", ")", "-", "fieldStart", ";", "if", "(", "rawLength", ">", "maxLength", ")", "...
Adjust the content of the buffer based on the specified lengths and alignment. @param fieldStart start of field in buffer. @param buffer buffer to be modified.
[ "Adjust", "the", "content", "of", "the", "buffer", "based", "on", "the", "specified", "lengths", "and", "alignment", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasFormattingInfo.java#L148-L175
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
LoaderUtil.newCheckedInstanceOf
public static <T> T newCheckedInstanceOf(final String className, final Class<T> clazz) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { return clazz.cast(newInstanceOf(className)); }
java
public static <T> T newCheckedInstanceOf(final String className, final Class<T> clazz) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { return clazz.cast(newInstanceOf(className)); }
[ "public", "static", "<", "T", ">", "T", "newCheckedInstanceOf", "(", "final", "String", "className", ",", "final", "Class", "<", "T", ">", "clazz", ")", "throws", "ClassNotFoundException", ",", "NoSuchMethodException", ",", "InvocationTargetException", ",", "Insta...
Loads and instantiates a derived class using its default constructor. @param className The class name. @param clazz The class to cast it to. @param <T> The type of the class to check. @return new instance of the class cast to {@code T} @throws ClassNotFoundException if the class isn't available to the usual ClassLoade...
[ "Loads", "and", "instantiates", "a", "derived", "class", "using", "its", "default", "constructor", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java#L198-L202
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
LoaderUtil.newCheckedInstanceOfProperty
public static <T> T newCheckedInstanceOfProperty(final String propertyName, final Class<T> clazz) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { final String className = PropertiesUtil.getProperties().getStringPro...
java
public static <T> T newCheckedInstanceOfProperty(final String propertyName, final Class<T> clazz) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { final String className = PropertiesUtil.getProperties().getStringPro...
[ "public", "static", "<", "T", ">", "T", "newCheckedInstanceOfProperty", "(", "final", "String", "propertyName", ",", "final", "Class", "<", "T", ">", "clazz", ")", "throws", "ClassNotFoundException", ",", "NoSuchMethodException", ",", "InvocationTargetException", ",...
Loads and instantiates a class given by a property name. @param propertyName The property name to look up a class name for. @param clazz The class to cast it to. @param <T> The type to cast it to. @return new instance of the class given in the property or {@code null} if the property was unset. @throws...
[ "Loads", "and", "instantiates", "a", "class", "given", "by", "a", "property", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java#L219-L227
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.addPlugin
public void addPlugin(final Plugin plugin) { // put plugin into the repository's reciever map synchronized (pluginMap) { String name = plugin.getName(); // make sure the plugin has reference to repository plugin.setLoggerRepository(getLoggerRepository()); ...
java
public void addPlugin(final Plugin plugin) { // put plugin into the repository's reciever map synchronized (pluginMap) { String name = plugin.getName(); // make sure the plugin has reference to repository plugin.setLoggerRepository(getLoggerRepository()); ...
[ "public", "void", "addPlugin", "(", "final", "Plugin", "plugin", ")", "{", "// put plugin into the repository's reciever map", "synchronized", "(", "pluginMap", ")", "{", "String", "name", "=", "plugin", ".", "getName", "(", ")", ";", "// make sure the plugin has refe...
Adds a plugin to the plugin registry. If a plugin with the same name exists already, it is shutdown and removed. @param plugin the plugin to add.
[ "Adds", "a", "plugin", "to", "the", "plugin", "registry", ".", "If", "a", "plugin", "with", "the", "same", "name", "exists", "already", "it", "is", "shutdown", "and", "removed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L98-L115
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.firePluginStarted
private void firePluginStarted(final Plugin plugin) { PluginEvent e = null; synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { PluginListener l = (PluginListener) iter.next(); if (e == null) { e =...
java
private void firePluginStarted(final Plugin plugin) { PluginEvent e = null; synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { PluginListener l = (PluginListener) iter.next(); if (e == null) { e =...
[ "private", "void", "firePluginStarted", "(", "final", "Plugin", "plugin", ")", "{", "PluginEvent", "e", "=", "null", ";", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "i...
Calls the pluginStarted method on every registered PluginListener. @param plugin The plugin that has been started.
[ "Calls", "the", "pluginStarted", "method", "on", "every", "registered", "PluginListener", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L123-L134
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.firePluginStopped
private void firePluginStopped(final Plugin plugin) { PluginEvent e = null; synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { PluginListener l = (PluginListener) iter.next(); if (e == null) { e =...
java
private void firePluginStopped(final Plugin plugin) { PluginEvent e = null; synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { PluginListener l = (PluginListener) iter.next(); if (e == null) { e =...
[ "private", "void", "firePluginStopped", "(", "final", "Plugin", "plugin", ")", "{", "PluginEvent", "e", "=", "null", ";", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "i...
Calls the pluginStopped method for every registered PluginListner. @param plugin The plugin that has been stopped.
[ "Calls", "the", "pluginStopped", "method", "for", "every", "registered", "PluginListner", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L142-L153
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.getPlugins
public List getPlugins() { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { pluginList.add(iter.next()); } return pluginList; ...
java
public List getPlugins() { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { pluginList.add(iter.next()); } return pluginList; ...
[ "public", "List", "getPlugins", "(", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "List", "pluginList", "=", "new", "ArrayList", "(", "pluginMap", ".", "size", "(", ")", ")", ";", "Iterator", "iter", "=", "pluginMap", ".", "values", "(", ")", ...
Returns all the plugins for a given repository. @return List list of plugins from the repository.
[ "Returns", "all", "the", "plugins", "for", "a", "given", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L161-L171
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.getPlugins
public List getPlugins(final Class pluginClass) { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Object plugin = iter.next(); if (pluginCla...
java
public List getPlugins(final Class pluginClass) { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Object plugin = iter.next(); if (pluginCla...
[ "public", "List", "getPlugins", "(", "final", "Class", "pluginClass", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "List", "pluginList", "=", "new", "ArrayList", "(", "pluginMap", ".", "size", "(", ")", ")", ";", "Iterator", "iter", "=", "pluginMa...
Returns all the plugins for a given repository that are instances of a certain class. @param pluginClass the class the plugin must implement to be selected. @return List list of plugins from the repository.
[ "Returns", "all", "the", "plugins", "for", "a", "given", "repository", "that", "are", "instances", "of", "a", "certain", "class", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L181-L195
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.stopPlugin
public Plugin stopPlugin(final String pluginName) { synchronized (pluginMap) { Plugin plugin = (Plugin) pluginMap.get(pluginName); if (plugin == null) { return null; } // shutdown the plugin plugin.shutdown(); // remove i...
java
public Plugin stopPlugin(final String pluginName) { synchronized (pluginMap) { Plugin plugin = (Plugin) pluginMap.get(pluginName); if (plugin == null) { return null; } // shutdown the plugin plugin.shutdown(); // remove i...
[ "public", "Plugin", "stopPlugin", "(", "final", "String", "pluginName", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "Plugin", "plugin", "=", "(", "Plugin", ")", "pluginMap", ".", "get", "(", "pluginName", ")", ";", "if", "(", "plugin", "==", "n...
Stops a plugin by plugin name and repository. @param pluginName the name of the plugin to stop. @return Plugin the plugin, if stopped, or null if the the plugin was not found in the registry.
[ "Stops", "a", "plugin", "by", "plugin", "name", "and", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L205-L223
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.stopAllPlugins
public void stopAllPlugins() { synchronized (pluginMap) { // remove the listener for this repository loggerRepository.removeLoggerRepositoryEventListener(listener); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Plugin pl...
java
public void stopAllPlugins() { synchronized (pluginMap) { // remove the listener for this repository loggerRepository.removeLoggerRepositoryEventListener(listener); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Plugin pl...
[ "public", "void", "stopAllPlugins", "(", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "// remove the listener for this repository", "loggerRepository", ".", "removeLoggerRepositoryEventListener", "(", "listener", ")", ";", "Iterator", "iter", "=", "pluginMap", ...
Stops all plugins in the given logger repository.
[ "Stops", "all", "plugins", "in", "the", "given", "logger", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L228-L241
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/helpers/AppenderAttachableImpl.java
AppenderAttachableImpl.removeAppender
public void removeAppender(String name) { if(name == null) return; for (Iterator<Appender> it = appenderList.iterator(); it.hasNext();) { if (name.equals(it.next().getName())) { it.remove(); break; } } }
java
public void removeAppender(String name) { if(name == null) return; for (Iterator<Appender> it = appenderList.iterator(); it.hasNext();) { if (name.equals(it.next().getName())) { it.remove(); break; } } }
[ "public", "void", "removeAppender", "(", "String", "name", ")", "{", "if", "(", "name", "==", "null", ")", "return", ";", "for", "(", "Iterator", "<", "Appender", ">", "it", "=", "appenderList", ".", "iterator", "(", ")", ";", "it", ".", "hasNext", "...
Remove the appender with the name passed as parameter form the list of appenders.
[ "Remove", "the", "appender", "with", "the", "name", "passed", "as", "parameter", "form", "the", "list", "of", "appenders", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/helpers/AppenderAttachableImpl.java#L165-L174
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.catching
protected void catching(final String fqcn, final Level level, final Throwable t) { if (isEnabled(level, CATCHING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, CATCHING_MARKER, catchingMsg(t), t); } }
java
protected void catching(final String fqcn, final Level level, final Throwable t) { if (isEnabled(level, CATCHING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, CATCHING_MARKER, catchingMsg(t), t); } }
[ "protected", "void", "catching", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Throwable", "t", ")", "{", "if", "(", "isEnabled", "(", "level", ",", "CATCHING_MARKER", ",", "(", "Object", ")", "null", ",", "null", ")", ...
Logs a Throwable that has been caught with location information. @param fqcn The fully qualified class name of the <b>caller</b>. @param level The logging level. @param t The Throwable.
[ "Logs", "a", "Throwable", "that", "has", "been", "caught", "with", "location", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L176-L180
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.exit
protected <R> R exit(final String fqcn, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); return result; }
java
protected <R> R exit(final String fqcn, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); return result; }
[ "protected", "<", "R", ">", "R", "exit", "(", "final", "String", "fqcn", ",", "final", "R", "result", ")", "{", "logIfEnabled", "(", "fqcn", ",", "Level", ".", "TRACE", ",", "EXIT_MARKER", ",", "exitMsg", "(", "null", ",", "result", ")", ",", "null",...
Logs exiting from a method with the result and location information. @param fqcn The fully qualified class name of the <b>caller</b>. @param <R> The type of the parameter and object being returned. @param result The result being returned from the method call. @return the return value passed to this method.
[ "Logs", "exiting", "from", "a", "method", "with", "the", "result", "and", "location", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L927-L930
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.throwing
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) { if (isEnabled(level, THROWING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t); } return t; }
java
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) { if (isEnabled(level, THROWING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t); } return t; }
[ "protected", "<", "T", "extends", "Throwable", ">", "T", "throwing", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "T", "t", ")", "{", "if", "(", "isEnabled", "(", "level", ",", "THROWING_MARKER", ",", "(", "Object", ")"...
Logs a Throwable to be thrown. @param <T> the type of the Throwable. @param fqcn the fully qualified class name of this Logger implementation. @param level The logging Level. @param t The Throwable. @return the Throwable.
[ "Logs", "a", "Throwable", "to", "be", "thrown", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L2160-L2165
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ReusableLogEventFactory.java
ReusableLogEventFactory.createEvent
@Override public LogEvent createEvent(final String loggerName, final Marker marker, final String fqcn, final Level level, final Message message, final List<Property> properties, final Throwable t) { WeakReference<MutableLogEvent> refResult = mu...
java
@Override public LogEvent createEvent(final String loggerName, final Marker marker, final String fqcn, final Level level, final Message message, final List<Property> properties, final Throwable t) { WeakReference<MutableLogEvent> refResult = mu...
[ "@", "Override", "public", "LogEvent", "createEvent", "(", "final", "String", "loggerName", ",", "final", "Marker", "marker", ",", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Message", "message", ",", "final", "List", "<", "Prop...
Creates a log event. @param loggerName The name of the Logger. @param marker An optional Marker. @param fqcn The fully qualified class name of the caller. @param level The event Level. @param message The Message. @param properties Properties to be added to the log event. @param t An optional Throwable. @return The Log...
[ "Creates", "a", "log", "event", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ReusableLogEventFactory.java#L58-L98
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/helper/CompositeAction.java
CompositeAction.execute
public boolean execute() throws IOException { if (stopOnError) { for (int i = 0; i < actions.length; i++) { if (!actions[i].execute()) { return false; } } return true; } else { boolean status = true; IOException exception = null; for (int i = 0; i ...
java
public boolean execute() throws IOException { if (stopOnError) { for (int i = 0; i < actions.length; i++) { if (!actions[i].execute()) { return false; } } return true; } else { boolean status = true; IOException exception = null; for (int i = 0; i ...
[ "public", "boolean", "execute", "(", ")", "throws", "IOException", "{", "if", "(", "stopOnError", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "actions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "!", "actions", "[", "i", ...
Execute sequence of actions. @return true if all actions were successful. @throws IOException on IO error.
[ "Execute", "sequence", "of", "actions", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/helper/CompositeAction.java#L71-L102
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.run
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listenerEx...
java
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listenerEx...
[ "public", "void", "run", "(", ")", "{", "LoggingEvent", "event", ";", "Logger", "remoteLogger", ";", "Exception", "listenerException", "=", "null", ";", "ObjectInputStream", "ois", "=", "null", ";", "try", "{", "ois", "=", "new", "ObjectInputStream", "(", "n...
Deserialize events from socket until interrupted.
[ "Deserialize", "events", "from", "socket", "until", "interrupted", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L144-L232
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.fireSocketClosedEvent
private void fireSocketClosedEvent(final Exception listenerException) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { ...
java
private void fireSocketClosedEvent(final Exception listenerException) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { ...
[ "private", "void", "fireSocketClosedEvent", "(", "final", "Exception", "listenerException", ")", "{", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(...
Notifies all registered listeners regarding the closing of the Socket. @param listenerException listener exception
[ "Notifies", "all", "registered", "listeners", "regarding", "the", "closing", "of", "the", "Socket", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L238-L248
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.fireSocketOpened
private void fireSocketOpened(final String remoteInfo) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { snel.s...
java
private void fireSocketOpened(final String remoteInfo) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { snel.s...
[ "private", "void", "fireSocketOpened", "(", "final", "String", "remoteInfo", ")", "{", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";"...
Notifies all registered listeners regarding the opening of a Socket. @param remoteInfo remote info
[ "Notifies", "all", "registered", "listeners", "regarding", "the", "opening", "of", "a", "Socket", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L254-L264
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.close
public void close() throws IOException { getLogger().debug("closing socket"); this.closed = true; socket.close(); fireSocketClosedEvent(null); }
java
public void close() throws IOException { getLogger().debug("closing socket"); this.closed = true; socket.close(); fireSocketClosedEvent(null); }
[ "public", "void", "close", "(", ")", "throws", "IOException", "{", "getLogger", "(", ")", ".", "debug", "(", "\"closing socket\"", ")", ";", "this", ".", "closed", "=", "true", ";", "socket", ".", "close", "(", ")", ";", "fireSocketClosedEvent", "(", "nu...
Close the node and underlying socket
[ "Close", "the", "node", "and", "underlying", "socket" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L285-L290
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.setName
public void setName(final String newName) { String oldName = this.name; this.name = newName; propertySupport.firePropertyChange("name", oldName, this.name); }
java
public void setName(final String newName) { String oldName = this.name; this.name = newName; propertySupport.firePropertyChange("name", oldName, this.name); }
[ "public", "void", "setName", "(", "final", "String", "newName", ")", "{", "String", "oldName", "=", "this", ".", "name", ";", "this", ".", "name", "=", "newName", ";", "propertySupport", ".", "firePropertyChange", "(", "\"name\"", ",", "oldName", ",", "thi...
Sets the name of the plugin and notifies PropertyChangeListeners of the change. @param newName the name of the plugin to set.
[ "Sets", "the", "name", "of", "the", "plugin", "and", "notifies", "PropertyChangeListeners", "of", "the", "change", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L84-L88
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.setLoggerRepository
public void setLoggerRepository(final LoggerRepository repository) { Object oldValue = this.repository; this.repository = repository; firePropertyChange("loggerRepository", oldValue, this.repository); }
java
public void setLoggerRepository(final LoggerRepository repository) { Object oldValue = this.repository; this.repository = repository; firePropertyChange("loggerRepository", oldValue, this.repository); }
[ "public", "void", "setLoggerRepository", "(", "final", "LoggerRepository", "repository", ")", "{", "Object", "oldValue", "=", "this", ".", "repository", ";", "this", ".", "repository", "=", "repository", ";", "firePropertyChange", "(", "\"loggerRepository\"", ",", ...
Sets the logger repository used by this plugin and notifies a relevant PropertyChangeListeners registered. This repository will be used by the plugin functionality. @param repository the logger repository that this plugin should affect.
[ "Sets", "the", "logger", "repository", "used", "by", "this", "plugin", "and", "notifies", "a", "relevant", "PropertyChangeListeners", "registered", ".", "This", "repository", "will", "be", "used", "by", "the", "plugin", "functionality", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L106-L110
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.isEquivalent
public boolean isEquivalent(final Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.g...
java
public boolean isEquivalent(final Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.g...
[ "public", "boolean", "isEquivalent", "(", "final", "Plugin", "testPlugin", ")", "{", "return", "(", "repository", "==", "testPlugin", ".", "getLoggerRepository", "(", ")", ")", "&&", "(", "(", "this", ".", "name", "==", "null", "&&", "testPlugin", ".", "ge...
Returns true if the plugin has the same name and logger repository as the testPlugin passed in. @param testPlugin The plugin to test equivalency against. @return Returns true if testPlugin is considered to be equivalent.
[ "Returns", "true", "if", "the", "plugin", "has", "the", "same", "name", "and", "logger", "repository", "as", "the", "testPlugin", "passed", "in", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L128-L134
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.firePropertyChange
protected final void firePropertyChange( final String propertyName, final Object oldValue, final Object newValue) { propertySupport.firePropertyChange(propertyName, oldValue, newValue); }
java
protected final void firePropertyChange( final String propertyName, final Object oldValue, final Object newValue) { propertySupport.firePropertyChange(propertyName, oldValue, newValue); }
[ "protected", "final", "void", "firePropertyChange", "(", "final", "String", "propertyName", ",", "final", "Object", "oldValue", ",", "final", "Object", "newValue", ")", "{", "propertySupport", ".", "firePropertyChange", "(", "propertyName", ",", "oldValue", ",", "...
Fire property change event to appropriate listeners. @param propertyName property name. @param oldValue old value. @param newValue new value.
[ "Fire", "property", "change", "event", "to", "appropriate", "listeners", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L216-L221
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketReceiver.java
SocketReceiver.closeAllAcceptedSockets
private synchronized void closeAllAcceptedSockets() { for (int x = 0; x < socketList.size(); x++) { try { ((Socket) socketList.get(x)).close(); } catch (Exception e) { // ignore for now } } // clear member variables socketMap.clear(); socketList.clear(); }
java
private synchronized void closeAllAcceptedSockets() { for (int x = 0; x < socketList.size(); x++) { try { ((Socket) socketList.get(x)).close(); } catch (Exception e) { // ignore for now } } // clear member variables socketMap.clear(); socketList.clear(); }
[ "private", "synchronized", "void", "closeAllAcceptedSockets", "(", ")", "{", "for", "(", "int", "x", "=", "0", ";", "x", "<", "socketList", ".", "size", "(", ")", ";", "x", "++", ")", "{", "try", "{", "(", "(", "Socket", ")", "socketList", ".", "ge...
Closes all the connected sockets in the List.
[ "Closes", "all", "the", "connected", "sockets", "in", "the", "List", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketReceiver.java#L218-L230
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/slf4j/helpers/BasicMarker.java
BasicMarker.contains
public boolean contains(String name) { if (name == null) { throw new IllegalArgumentException("Other cannot be null"); } if (this.name.equals(name)) { return true; } if (hasReferences()) { for (Marker ref : referenceList) { ...
java
public boolean contains(String name) { if (name == null) { throw new IllegalArgumentException("Other cannot be null"); } if (this.name.equals(name)) { return true; } if (hasReferences()) { for (Marker ref : referenceList) { ...
[ "public", "boolean", "contains", "(", "String", "name", ")", "{", "if", "(", "name", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Other cannot be null\"", ")", ";", "}", "if", "(", "this", ".", "name", ".", "equals", "(", "...
This method is mainly used with Expression Evaluators.
[ "This", "method", "is", "mainly", "used", "with", "Expression", "Evaluators", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/slf4j/helpers/BasicMarker.java#L111-L128
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java
CloseableThreadContext.push
public static CloseableThreadContext.Instance push(final String message, final Object... args) { return new CloseableThreadContext.Instance().push(message, args); }
java
public static CloseableThreadContext.Instance push(final String message, final Object... args) { return new CloseableThreadContext.Instance().push(message, args); }
[ "public", "static", "CloseableThreadContext", ".", "Instance", "push", "(", "final", "String", "message", ",", "final", "Object", "...", "args", ")", "{", "return", "new", "CloseableThreadContext", ".", "Instance", "(", ")", ".", "push", "(", "message", ",", ...
Pushes new diagnostic context information on to the Thread Context Stack. The information will be popped off when the instance is closed. @param message The new diagnostic context information. @param args Parameters for the message. @return a new instance that will back out the changes when closed.
[ "Pushes", "new", "diagnostic", "context", "information", "on", "to", "the", "Thread", "Context", "Stack", ".", "The", "information", "will", "be", "popped", "off", "when", "the", "instance", "is", "closed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java#L61-L63
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java
CloseableThreadContext.pushAll
public static CloseableThreadContext.Instance pushAll(final List<String> messages) { return new CloseableThreadContext.Instance().pushAll(messages); }
java
public static CloseableThreadContext.Instance pushAll(final List<String> messages) { return new CloseableThreadContext.Instance().pushAll(messages); }
[ "public", "static", "CloseableThreadContext", ".", "Instance", "pushAll", "(", "final", "List", "<", "String", ">", "messages", ")", "{", "return", "new", "CloseableThreadContext", ".", "Instance", "(", ")", ".", "pushAll", "(", "messages", ")", ";", "}" ]
Populates the Thread Context Stack with the supplied stack. The information will be popped off when the instance is closed. @param messages The list of messages to be added @return a new instance that will back out the changes when closed. @since 2.8
[ "Populates", "the", "Thread", "Context", "Stack", "with", "the", "supplied", "stack", ".", "The", "information", "will", "be", "popped", "off", "when", "the", "instance", "is", "closed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java#L86-L88
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/EventLogger.java
EventLogger.logEvent
public static void logEvent(final StructuredDataMessage msg) { LOGGER.logIfEnabled(FQCN, Level.OFF, EVENT_MARKER, msg, null); }
java
public static void logEvent(final StructuredDataMessage msg) { LOGGER.logIfEnabled(FQCN, Level.OFF, EVENT_MARKER, msg, null); }
[ "public", "static", "void", "logEvent", "(", "final", "StructuredDataMessage", "msg", ")", "{", "LOGGER", ".", "logIfEnabled", "(", "FQCN", ",", "Level", ".", "OFF", ",", "EVENT_MARKER", ",", "msg", ",", "null", ")", ";", "}" ]
Logs events with a level of ALL. @param msg The event StructuredDataMessage.
[ "Logs", "events", "with", "a", "level", "of", "ALL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/EventLogger.java#L46-L48
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
public void trace(Object message) { doLog(Level.TRACE, FQCN, message, null, null); }
java
public void trace(Object message) { doLog(Level.TRACE, FQCN, message, null, null); }
[ "public", "void", "trace", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of TRACE. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L106-L108
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
public void trace(Object message, Throwable t) { doLog(Level.TRACE, FQCN, message, null, t); }
java
public void trace(Object message, Throwable t) { doLog(Level.TRACE, FQCN, message, null, t); }
[ "public", "void", "trace", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of TRACE. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L116-L118
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
@Deprecated public void trace(Object message, Object[] params) { doLog(Level.TRACE, FQCN, message, params, null); }
java
@Deprecated public void trace(Object message, Object[] params) { doLog(Level.TRACE, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "trace", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of TRACE. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #tracev(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L138-L141
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(Object message) { doLog(Level.DEBUG, FQCN, message, null, null); }
java
public void debug(Object message) { doLog(Level.DEBUG, FQCN, message, null, null); }
[ "public", "void", "debug", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of DEBUG. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L530-L532
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(Object message, Throwable t) { doLog(Level.DEBUG, FQCN, message, null, t); }
java
public void debug(Object message, Throwable t) { doLog(Level.DEBUG, FQCN, message, null, t); }
[ "public", "void", "debug", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of DEBUG. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L540-L542
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(String loggerFqcn, Object message, Throwable t) { doLog(Level.DEBUG, loggerFqcn, message, null, t); }
java
public void debug(String loggerFqcn, Object message, Throwable t) { doLog(Level.DEBUG, loggerFqcn, message, null, t); }
[ "public", "void", "debug", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of DEBUG and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "DEBUG", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L551-L553
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
@Deprecated public void debug(Object message, Object[] params) { doLog(Level.DEBUG, FQCN, message, params, null); }
java
@Deprecated public void debug(Object message, Object[] params) { doLog(Level.DEBUG, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "debug", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of DEBUG. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #debugv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L562-L565
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
@Deprecated public void debug(Object message, Object[] params, Throwable t) { doLog(Level.DEBUG, FQCN, message, params, t); }
java
@Deprecated public void debug(Object message, Object[] params, Throwable t) { doLog(Level.DEBUG, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "debug", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of DEBUG. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #debugv(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L575-L578
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(Object message) { doLog(Level.INFO, FQCN, message, null, null); }
java
public void info(Object message) { doLog(Level.INFO, FQCN, message, null, null); }
[ "public", "void", "info", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of INFO. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L954-L956
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(Object message, Throwable t) { doLog(Level.INFO, FQCN, message, null, t); }
java
public void info(Object message, Throwable t) { doLog(Level.INFO, FQCN, message, null, t); }
[ "public", "void", "info", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of INFO. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L964-L966
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(String loggerFqcn, Object message, Throwable t) { doLog(Level.INFO, loggerFqcn, message, null, t); }
java
public void info(String loggerFqcn, Object message, Throwable t) { doLog(Level.INFO, loggerFqcn, message, null, t); }
[ "public", "void", "info", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of INFO and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "INFO", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L975-L977
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
@Deprecated public void info(Object message, Object[] params) { doLog(Level.INFO, FQCN, message, params, null); }
java
@Deprecated public void info(Object message, Object[] params) { doLog(Level.INFO, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "info", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of INFO. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #infov(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L986-L989
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
@Deprecated public void info(Object message, Object[] params, Throwable t) { doLog(Level.INFO, FQCN, message, params, t); }
java
@Deprecated public void info(Object message, Object[] params, Throwable t) { doLog(Level.INFO, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "info", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of INFO. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #infov(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L999-L1002
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(Object message) { doLog(Level.WARN, FQCN, message, null, null); }
java
public void warn(Object message) { doLog(Level.WARN, FQCN, message, null, null); }
[ "public", "void", "warn", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of WARN. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1225-L1227
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(Object message, Throwable t) { doLog(Level.WARN, FQCN, message, null, t); }
java
public void warn(Object message, Throwable t) { doLog(Level.WARN, FQCN, message, null, t); }
[ "public", "void", "warn", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of WARN. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1235-L1237
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(String loggerFqcn, Object message, Throwable t) { doLog(Level.WARN, loggerFqcn, message, null, t); }
java
public void warn(String loggerFqcn, Object message, Throwable t) { doLog(Level.WARN, loggerFqcn, message, null, t); }
[ "public", "void", "warn", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of WARN and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "WARN", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1246-L1248
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
@Deprecated public void warn(Object message, Object[] params) { doLog(Level.WARN, FQCN, message, params, null); }
java
@Deprecated public void warn(Object message, Object[] params) { doLog(Level.WARN, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "warn", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of WARN. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #warnv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1257-L1260
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
@Deprecated public void warn(Object message, Object[] params, Throwable t) { doLog(Level.WARN, FQCN, message, params, t); }
java
@Deprecated public void warn(Object message, Object[] params, Throwable t) { doLog(Level.WARN, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "warn", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of WARN. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #warnv(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1270-L1273
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
public void error(Object message) { doLog(Level.ERROR, FQCN, message, null, null); }
java
public void error(Object message) { doLog(Level.ERROR, FQCN, message, null, null); }
[ "public", "void", "error", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of ERROR. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1496-L1498
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
public void error(Object message, Throwable t) { doLog(Level.ERROR, FQCN, message, null, t); }
java
public void error(Object message, Throwable t) { doLog(Level.ERROR, FQCN, message, null, t); }
[ "public", "void", "error", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of ERROR. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1506-L1508
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
@Deprecated public void error(Object message, Object[] params) { doLog(Level.ERROR, FQCN, message, params, null); }
java
@Deprecated public void error(Object message, Object[] params) { doLog(Level.ERROR, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "error", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of ERROR. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #errorv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1528-L1531
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
public void fatal(Object message) { doLog(Level.FATAL, FQCN, message, null, null); }
java
public void fatal(Object message) { doLog(Level.FATAL, FQCN, message, null, null); }
[ "public", "void", "fatal", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of FATAL. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1767-L1769
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
public void fatal(Object message, Throwable t) { doLog(Level.FATAL, FQCN, message, null, t); }
java
public void fatal(Object message, Throwable t) { doLog(Level.FATAL, FQCN, message, null, t); }
[ "public", "void", "fatal", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of FATAL. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1777-L1779
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
@Deprecated public void fatal(Object message, Object[] params) { doLog(Level.FATAL, FQCN, message, params, null); }
java
@Deprecated public void fatal(Object message, Object[] params) { doLog(Level.FATAL, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "fatal", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of FATAL. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #fatalv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1799-L1802
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
public void log(Level level, String loggerFqcn, Object message, Throwable t) { doLog(level, loggerFqcn, message, null, t); }
java
public void log(Level level, String loggerFqcn, Object message, Throwable t) { doLog(level, loggerFqcn, message, null, t); }
[ "public", "void", "log", "(", "Level", "level", ",", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "level", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable at the given log level and a specific logger class name. @param level the level @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "at", "the", "given", "log", "level", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2062-L2064
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
@Deprecated public void log(Level level, Object message, Object[] params) { doLog(level, FQCN, message, params, null); }
java
@Deprecated public void log(Level level, Object message, Object[] params) { doLog(level, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "log", "(", "Level", "level", ",", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "level", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters at the given log level. @param level the level @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #logv(Level, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "at", "the", "given", "log", "level", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2074-L2077
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
@Deprecated public void log(Level level, Object message, Object[] params, Throwable t) { doLog(level, FQCN, message, params, t); }
java
@Deprecated public void log(Level level, Object message, Object[] params, Throwable t) { doLog(level, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "log", "(", "Level", "level", ",", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "level", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", ...
Issue a log message with parameters and a throwable at the given log level. @param level the level @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #logv(Level, Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "at", "the", "given", "log", "level", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2088-L2091
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.getMessageLogger
public static <T> T getMessageLogger(Class<T> type, String category) { return getMessageLogger(type, category, Locale.getDefault()); }
java
public static <T> T getMessageLogger(Class<T> type, String category) { return getMessageLogger(type, category, Locale.getDefault()); }
[ "public", "static", "<", "T", ">", "T", "getMessageLogger", "(", "Class", "<", "T", ">", "type", ",", "String", "category", ")", "{", "return", "getMessageLogger", "(", "type", ",", "category", ",", "Locale", ".", "getDefault", "(", ")", ")", ";", "}" ...
Get a typed logger which implements the given interface. The current default locale will be used for the new logger. @param type the interface to implement @param category the logger category @param <T> the logger type @return the typed logger
[ "Get", "a", "typed", "logger", "which", "implements", "the", "given", "interface", ".", "The", "current", "default", "locale", "will", "be", "used", "for", "the", "new", "logger", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2506-L2508
train
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.getMessageLogger
public static <T> T getMessageLogger(final Class<T> type, final String category, final Locale locale) { return doPrivileged(new PrivilegedAction<T>() { public T run() { String language = locale.getLanguage(); String country = locale.getCountry(); Strin...
java
public static <T> T getMessageLogger(final Class<T> type, final String category, final Locale locale) { return doPrivileged(new PrivilegedAction<T>() { public T run() { String language = locale.getLanguage(); String country = locale.getCountry(); Strin...
[ "public", "static", "<", "T", ">", "T", "getMessageLogger", "(", "final", "Class", "<", "T", ">", "type", ",", "final", "String", "category", ",", "final", "Locale", "locale", ")", "{", "return", "doPrivileged", "(", "new", "PrivilegedAction", "<", "T", ...
Get a typed logger which implements the given interface. The given locale will be used for the new logger. @param type the interface to implement @param category the logger category @param locale the locale for the new logger @param <T> the logger type @return the typed logger
[ "Get", "a", "typed", "logger", "which", "implements", "the", "given", "interface", ".", "The", "given", "locale", "will", "be", "used", "for", "the", "new", "logger", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2519-L2566
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java
NotEqualsRule.getRule
public static Rule getRule(final String field, final String value) { if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return new NotEqualsRule(field, value); } }
java
public static Rule getRule(final String field, final String value) { if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return new NotEqualsRule(field, value); } }
[ "public", "static", "Rule", "getRule", "(", "final", "String", "field", ",", "final", "String", "value", ")", "{", "if", "(", "field", ".", "equalsIgnoreCase", "(", "LoggingEventFieldResolver", ".", "LEVEL_FIELD", ")", ")", "{", "return", "NotLevelEqualsRule", ...
Get new instance. @param field field @param value value @return new instance.
[ "Get", "new", "instance", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java#L75-L81
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java
NotEqualsRule.getRule
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid NOT EQUALS rule - expected two parameters but received " + stack.size()); } String p2 = stack.pop().toString(); String p1 = stack.pop().toString(); if (p1.equa...
java
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid NOT EQUALS rule - expected two parameters but received " + stack.size()); } String p2 = stack.pop().toString(); String p1 = stack.pop().toString(); if (p1.equa...
[ "public", "static", "Rule", "getRule", "(", "final", "Stack", "stack", ")", "{", "if", "(", "stack", ".", "size", "(", ")", "<", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid NOT EQUALS rule - expected two parameters but received \"", ...
Get new instance from top two elements of stack. @param stack stack. @return new instance.
[ "Get", "new", "instance", "from", "top", "two", "elements", "of", "stack", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java#L88-L103
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/db/ConnectionSourceSkeleton.java
ConnectionSourceSkeleton.discoverConnnectionProperties
public void discoverConnnectionProperties() { Connection connection = null; try { connection = getConnection(); if (connection == null) { getLogger().warn("Could not get a conneciton"); return; } DatabaseMetaData meta = connection.getMetaData(); Util util = new Util...
java
public void discoverConnnectionProperties() { Connection connection = null; try { connection = getConnection(); if (connection == null) { getLogger().warn("Could not get a conneciton"); return; } DatabaseMetaData meta = connection.getMetaData(); Util util = new Util...
[ "public", "void", "discoverConnnectionProperties", "(", ")", "{", "Connection", "connection", "=", "null", ";", "try", "{", "connection", "=", "getConnection", "(", ")", ";", "if", "(", "connection", "==", "null", ")", "{", "getLogger", "(", ")", ".", "war...
Learn relevant information about this connection source.
[ "Learn", "relevant", "information", "about", "this", "connection", "source", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/db/ConnectionSourceSkeleton.java#L49-L73
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.getSuppressedStackTrace
public String getSuppressedStackTrace(final String suffix) { final ThrowableProxy[] suppressed = this.getSuppressedProxies(); if (suppressed == null || suppressed.length == 0) { return Strings.EMPTY; } final StringBuilder sb = new StringBuilder("Suppressed Stack Trace Element...
java
public String getSuppressedStackTrace(final String suffix) { final ThrowableProxy[] suppressed = this.getSuppressedProxies(); if (suppressed == null || suppressed.length == 0) { return Strings.EMPTY; } final StringBuilder sb = new StringBuilder("Suppressed Stack Trace Element...
[ "public", "String", "getSuppressedStackTrace", "(", "final", "String", "suffix", ")", "{", "final", "ThrowableProxy", "[", "]", "suppressed", "=", "this", ".", "getSuppressedProxies", "(", ")", ";", "if", "(", "suppressed", "==", "null", "||", "suppressed", "....
Format the suppressed Throwables. @return The formatted suppressed Throwables. @param suffix
[ "Format", "the", "suppressed", "Throwables", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L535-L545
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.loadClass
private Class<?> loadClass(final ClassLoader lastLoader, final String className) { // XXX: this is overly complicated Class<?> clazz; if (lastLoader != null) { try { clazz = lastLoader.loadClass(className); if (clazz != null) { retu...
java
private Class<?> loadClass(final ClassLoader lastLoader, final String className) { // XXX: this is overly complicated Class<?> clazz; if (lastLoader != null) { try { clazz = lastLoader.loadClass(className); if (clazz != null) { retu...
[ "private", "Class", "<", "?", ">", "loadClass", "(", "final", "ClassLoader", "lastLoader", ",", "final", "String", "className", ")", "{", "// XXX: this is overly complicated", "Class", "<", "?", ">", "clazz", ";", "if", "(", "lastLoader", "!=", "null", ")", ...
Loads classes not located via Reflection.getCallerClass. @param lastLoader The ClassLoader that loaded the Class that called this Class. @param className The name of the Class. @return The Class object for the Class or null if it could not be located.
[ "Loads", "classes", "not", "located", "via", "Reflection", ".", "getCallerClass", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L587-L608
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.toCacheEntry
private CacheEntry toCacheEntry(final StackTraceElement stackTraceElement, final Class<?> callerClass, final boolean exact) { String location = "?"; String version = "?"; ClassLoader lastLoader = null; if (callerClass != null) { try { ...
java
private CacheEntry toCacheEntry(final StackTraceElement stackTraceElement, final Class<?> callerClass, final boolean exact) { String location = "?"; String version = "?"; ClassLoader lastLoader = null; if (callerClass != null) { try { ...
[ "private", "CacheEntry", "toCacheEntry", "(", "final", "StackTraceElement", "stackTraceElement", ",", "final", "Class", "<", "?", ">", "callerClass", ",", "final", "boolean", "exact", ")", "{", "String", "location", "=", "\"?\"", ";", "String", "version", "=", ...
Construct the CacheEntry from the Class's information. @param stackTraceElement The stack trace element @param callerClass The Class. @param exact True if the class was obtained via Reflection.getCallerClass. @return The CacheEntry.
[ "Construct", "the", "CacheEntry", "from", "the", "Class", "s", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L626-L644
train
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.toExtendedStackTrace
ExtendedStackTraceElement[] toExtendedStackTrace(final Stack<Class<?>> stack, final Map<String, CacheEntry> map, final StackTraceElement[] rootTrace, final StackTraceElement[] stackTrace) { int stackLength;...
java
ExtendedStackTraceElement[] toExtendedStackTrace(final Stack<Class<?>> stack, final Map<String, CacheEntry> map, final StackTraceElement[] rootTrace, final StackTraceElement[] stackTrace) { int stackLength;...
[ "ExtendedStackTraceElement", "[", "]", "toExtendedStackTrace", "(", "final", "Stack", "<", "Class", "<", "?", ">", ">", "stack", ",", "final", "Map", "<", "String", ",", "CacheEntry", ">", "map", ",", "final", "StackTraceElement", "[", "]", "rootTrace", ",",...
Resolve all the stack entries in this stack trace that are not common with the parent. @param stack The callers Class stack. @param map The cache of CacheEntry objects. @param rootTrace The first stack trace resolve or null. @param stackTrace The stack trace being resolved. @return The StackTracePackageEl...
[ "Resolve", "all", "the", "stack", "entries", "in", "this", "stack", "trace", "that", "are", "not", "common", "with", "the", "parent", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L655-L709
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/FixedWindowRollingPolicy.java
FixedWindowRollingPolicy.purge
private boolean purge(final int lowIndex, final int highIndex) { int suffixLength = 0; List renames = new ArrayList(); StringBuffer buf = new StringBuffer(); formatFileName(new Integer(lowIndex), buf); String lowFilename = buf.toString(); if (lowFilename.endsWith(".gz")) { suffixLength ...
java
private boolean purge(final int lowIndex, final int highIndex) { int suffixLength = 0; List renames = new ArrayList(); StringBuffer buf = new StringBuffer(); formatFileName(new Integer(lowIndex), buf); String lowFilename = buf.toString(); if (lowFilename.endsWith(".gz")) { suffixLength ...
[ "private", "boolean", "purge", "(", "final", "int", "lowIndex", ",", "final", "int", "highIndex", ")", "{", "int", "suffixLength", "=", "0", ";", "List", "renames", "=", "new", "ArrayList", "(", ")", ";", "StringBuffer", "buf", "=", "new", "StringBuffer", ...
Purge and rename old log files in preparation for rollover @param lowIndex low index @param highIndex high index. Log file associated with high index will be deleted if needed. @return true if purge was successful and rollover should be attempted.
[ "Purge", "and", "rename", "old", "log", "files", "in", "preparation", "for", "rollover" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/FixedWindowRollingPolicy.java#L236-L322
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.isOperand
public static boolean isOperand(final String s) { String symbol = s.toLowerCase(Locale.ENGLISH); return (!operators.contains(symbol)); }
java
public static boolean isOperand(final String s) { String symbol = s.toLowerCase(Locale.ENGLISH); return (!operators.contains(symbol)); }
[ "public", "static", "boolean", "isOperand", "(", "final", "String", "s", ")", "{", "String", "symbol", "=", "s", ".", "toLowerCase", "(", "Locale", ".", "ENGLISH", ")", ";", "return", "(", "!", "operators", ".", "contains", "(", "symbol", ")", ")", ";"...
Evaluates whether symbol is operand. @param s symbol. @return true if operand.
[ "Evaluates", "whether", "symbol", "is", "operand", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L111-L114
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.precedes
boolean precedes(final String s1, final String s2) { String symbol1 = s1.toLowerCase(Locale.ENGLISH); String symbol2 = s2.toLowerCase(Locale.ENGLISH); if (!precedenceMap.keySet().contains(symbol1)) { return false; } if (!precedenceMap.keySet().contains(symbol2)) { return false; } ...
java
boolean precedes(final String s1, final String s2) { String symbol1 = s1.toLowerCase(Locale.ENGLISH); String symbol2 = s2.toLowerCase(Locale.ENGLISH); if (!precedenceMap.keySet().contains(symbol1)) { return false; } if (!precedenceMap.keySet().contains(symbol2)) { return false; } ...
[ "boolean", "precedes", "(", "final", "String", "s1", ",", "final", "String", "s2", ")", "{", "String", "symbol1", "=", "s1", ".", "toLowerCase", "(", "Locale", ".", "ENGLISH", ")", ";", "String", "symbol2", "=", "s2", ".", "toLowerCase", "(", "Locale", ...
Determines whether one symbol precedes another. @param s1 symbol 1 @param s2 symbol 2 @return true if symbol 1 precedes symbol 2
[ "Determines", "whether", "one", "symbol", "precedes", "another", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L122-L140
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.infixToPostFix
String infixToPostFix(final CustomTokenizer tokenizer) { final String space = " "; StringBuffer postfix = new StringBuffer(); Stack stack = new Stack(); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); boolean inText = (token.startsWith("'") && (!token.endsWith("'...
java
String infixToPostFix(final CustomTokenizer tokenizer) { final String space = " "; StringBuffer postfix = new StringBuffer(); Stack stack = new Stack(); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); boolean inText = (token.startsWith("'") && (!token.endsWith("'...
[ "String", "infixToPostFix", "(", "final", "CustomTokenizer", "tokenizer", ")", "{", "final", "String", "space", "=", "\" \"", ";", "StringBuffer", "postfix", "=", "new", "StringBuffer", "(", ")", ";", "Stack", "stack", "=", "new", "Stack", "(", ")", ";", "...
convert in-fix expression to post-fix. @param tokenizer tokenizer. @return post-fix expression.
[ "convert", "in", "-", "fix", "expression", "to", "post", "-", "fix", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L147-L221
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/FilterBasedTriggeringPolicy.java
FilterBasedTriggeringPolicy.addFilter
public void addFilter(final Filter newFilter) { if (headFilter == null) { headFilter = newFilter; tailFilter = newFilter; } else { tailFilter.next = newFilter; tailFilter = newFilter; } }
java
public void addFilter(final Filter newFilter) { if (headFilter == null) { headFilter = newFilter; tailFilter = newFilter; } else { tailFilter.next = newFilter; tailFilter = newFilter; } }
[ "public", "void", "addFilter", "(", "final", "Filter", "newFilter", ")", "{", "if", "(", "headFilter", "==", "null", ")", "{", "headFilter", "=", "newFilter", ";", "tailFilter", "=", "newFilter", ";", "}", "else", "{", "tailFilter", ".", "next", "=", "ne...
Add a filter to end of the filter list. @param newFilter filter to add to end of list.
[ "Add", "a", "filter", "to", "end", "of", "the", "filter", "list", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/FilterBasedTriggeringPolicy.java#L100-L108
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.extractConverter
private static int extractConverter( char lastChar, final String pattern, int i, final StringBuffer convBuf, final StringBuffer currentLiteral) { convBuf.setLength(0); // When this method is called, lastChar points to the first character of the // conversion word. For example: // For "%hello" ...
java
private static int extractConverter( char lastChar, final String pattern, int i, final StringBuffer convBuf, final StringBuffer currentLiteral) { convBuf.setLength(0); // When this method is called, lastChar points to the first character of the // conversion word. For example: // For "%hello" ...
[ "private", "static", "int", "extractConverter", "(", "char", "lastChar", ",", "final", "String", "pattern", ",", "int", "i", ",", "final", "StringBuffer", "convBuf", ",", "final", "StringBuffer", "currentLiteral", ")", "{", "convBuf", ".", "setLength", "(", "0...
Extract the converter identifier found at position i. After this function returns, the variable i will point to the first char after the end of the converter identifier. If i points to a char which is not a character acceptable at the start of a unicode identifier, the value null is returned. @param lastChar last pr...
[ "Extract", "the", "converter", "identifier", "found", "at", "position", "i", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L184-L211
train
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.extractOptions
private static int extractOptions(String pattern, int i, List options) { while ((i < pattern.length()) && (pattern.charAt(i) == '{')) { int end = pattern.indexOf('}', i); if (end == -1) { break; } String r = pattern.substring(i + 1, end); options.add(r); i = end + 1; ...
java
private static int extractOptions(String pattern, int i, List options) { while ((i < pattern.length()) && (pattern.charAt(i) == '{')) { int end = pattern.indexOf('}', i); if (end == -1) { break; } String r = pattern.substring(i + 1, end); options.add(r); i = end + 1; ...
[ "private", "static", "int", "extractOptions", "(", "String", "pattern", ",", "int", "i", ",", "List", "options", ")", "{", "while", "(", "(", "i", "<", "pattern", ".", "length", "(", ")", ")", "&&", "(", "pattern", ".", "charAt", "(", "i", ")", "==...
Extract options. @param pattern conversion pattern. @param i start of options. @param options array to receive extracted options @return position in pattern after options.
[ "Extract", "options", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L220-L234
train