id int32 0 165k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
67,200 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.createReader | private Reader createReader(InputStream inputStream, String encoding,
Boolean isBigEndian)
throws IOException, JspCoreException {
// normalize encoding name
if (encoding == null) {
encoding = "UTF-8";
}
// try to use an optimized reader
String EN... | java | private Reader createReader(InputStream inputStream, String encoding,
Boolean isBigEndian)
throws IOException, JspCoreException {
// normalize encoding name
if (encoding == null) {
encoding = "UTF-8";
}
// try to use an optimized reader
String EN... | [
"private",
"Reader",
"createReader",
"(",
"InputStream",
"inputStream",
",",
"String",
"encoding",
",",
"Boolean",
"isBigEndian",
")",
"throws",
"IOException",
",",
"JspCoreException",
"{",
"// normalize encoding name",
"if",
"(",
"encoding",
"==",
"null",
")",
"{",... | Creates a reader capable of reading the given input stream in
the specified encoding.
@param inputStream The input stream.
@param encoding The encoding name that the input stream is
encoded using. If the user has specified that
Java encoding names are allowed, then the
encoding name may be a Java encoding name;
o... | [
"Creates",
"a",
"reader",
"capable",
"of",
"reading",
"the",
"given",
"input",
"stream",
"in",
"the",
"specified",
"encoding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L178-L255 |
67,201 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.getEncodingName | private Object[] getEncodingName(byte[] b4, int count) {
if (count < 2) {
return new Object[]{"UTF-8", null, Boolean.FALSE};
}
// UTF-16, with BOM
int b0 = b4[0] & 0xFF;
int b1 = b4[1] & 0xFF;
if (b0 == 0xFE && b1 == 0xFF) {
// UTF-16, big-endian... | java | private Object[] getEncodingName(byte[] b4, int count) {
if (count < 2) {
return new Object[]{"UTF-8", null, Boolean.FALSE};
}
// UTF-16, with BOM
int b0 = b4[0] & 0xFF;
int b1 = b4[1] & 0xFF;
if (b0 == 0xFE && b1 == 0xFF) {
// UTF-16, big-endian... | [
"private",
"Object",
"[",
"]",
"getEncodingName",
"(",
"byte",
"[",
"]",
"b4",
",",
"int",
"count",
")",
"{",
"if",
"(",
"count",
"<",
"2",
")",
"{",
"return",
"new",
"Object",
"[",
"]",
"{",
"\"UTF-8\"",
",",
"null",
",",
"Boolean",
".",
"FALSE",
... | Returns the IANA encoding name that is auto-detected from
the bytes specified, with the endian-ness of that encoding where
appropriate.
@param b4 The first four bytes of the input.
@param count The number of bytes actually read.
@return a 2-element array: the first element, an IANA-encoding string,
the second elem... | [
"Returns",
"the",
"IANA",
"encoding",
"name",
"that",
"is",
"auto",
"-",
"detected",
"from",
"the",
"bytes",
"specified",
"with",
"the",
"endian",
"-",
"ness",
"of",
"that",
"encoding",
"where",
"appropriate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L271-L347 |
67,202 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.load | final boolean load(int offset, boolean changeEntity)
throws IOException {
// read characters
int length = fCurrentEntity.mayReadChunks?
(fCurrentEntity.ch.length - offset):
(DEFAULT_XMLDECL_BUFFER_SIZE);
int count = fCurrentEntity.reader.read(fCurrentEntity.ch, offset,
length);
// reset cou... | java | final boolean load(int offset, boolean changeEntity)
throws IOException {
// read characters
int length = fCurrentEntity.mayReadChunks?
(fCurrentEntity.ch.length - offset):
(DEFAULT_XMLDECL_BUFFER_SIZE);
int count = fCurrentEntity.reader.read(fCurrentEntity.ch, offset,
length);
// reset cou... | [
"final",
"boolean",
"load",
"(",
"int",
"offset",
",",
"boolean",
"changeEntity",
")",
"throws",
"IOException",
"{",
"// read characters",
"int",
"length",
"=",
"fCurrentEntity",
".",
"mayReadChunks",
"?",
"(",
"fCurrentEntity",
".",
"ch",
".",
"length",
"-",
... | Loads a chunk of text.
@param offset The offset into the character buffer to
read the next batch of characters.
@param changeEntity True if the load should change entities
at the end of the entity, otherwise leave
the current entity in place and the entity
boundary will be signaled by the return
value.
@returns... | [
"Loads",
"a",
"chunk",
"of",
"text",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L986-L1024 |
67,203 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.scanPseudoAttribute | public String scanPseudoAttribute(boolean scanningTextDecl,
XMLString value)
throws IOException, JspCoreException {
String name = scanName();
if (name == null) {
throw new JspCoreException("jsp.error.xml.pseudoAttrNameExpected");
... | java | public String scanPseudoAttribute(boolean scanningTextDecl,
XMLString value)
throws IOException, JspCoreException {
String name = scanName();
if (name == null) {
throw new JspCoreException("jsp.error.xml.pseudoAttrNameExpected");
... | [
"public",
"String",
"scanPseudoAttribute",
"(",
"boolean",
"scanningTextDecl",
",",
"XMLString",
"value",
")",
"throws",
"IOException",
",",
"JspCoreException",
"{",
"String",
"name",
"=",
"scanName",
"(",
")",
";",
"if",
"(",
"name",
"==",
"null",
")",
"{",
... | Scans a pseudo attribute.
@param scanningTextDecl True if scanning this pseudo-attribute for a
TextDecl; false if scanning XMLDecl. This
flag is needed to report the correct type of
error.
@param value The string to fill in with the attribute
value.
@return The name of the attribute
<strong>Note:</strong>... | [
"Scans",
"a",
"pseudo",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L1460-L1520 |
67,204 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.reportFatalError | private void reportFatalError(String msgId, String arg)
throws JspCoreException {
throw new JspCoreException(msgId, new Object[] { arg });
//err.jspError(msgId, arg);
} | java | private void reportFatalError(String msgId, String arg)
throws JspCoreException {
throw new JspCoreException(msgId, new Object[] { arg });
//err.jspError(msgId, arg);
} | [
"private",
"void",
"reportFatalError",
"(",
"String",
"msgId",
",",
"String",
"arg",
")",
"throws",
"JspCoreException",
"{",
"throw",
"new",
"JspCoreException",
"(",
"msgId",
",",
"new",
"Object",
"[",
"]",
"{",
"arg",
"}",
")",
";",
"//err.jspError(msgId, arg... | Convenience function used in all XML scanners. | [
"Convenience",
"function",
"used",
"in",
"all",
"XML",
"scanners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L1629-L1633 |
67,205 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.coerceToType | @SuppressWarnings("unchecked")
public static <T> T coerceToType(FacesContext facesContext, Object value, Class<? extends T> desiredClass)
{
if (value == null)
{
return null;
}
try
{
ExpressionFactory expFactory = facesContext.getApplication().getE... | java | @SuppressWarnings("unchecked")
public static <T> T coerceToType(FacesContext facesContext, Object value, Class<? extends T> desiredClass)
{
if (value == null)
{
return null;
}
try
{
ExpressionFactory expFactory = facesContext.getApplication().getE... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
">",
"T",
"coerceToType",
"(",
"FacesContext",
"facesContext",
",",
"Object",
"value",
",",
"Class",
"<",
"?",
"extends",
"T",
">",
"desiredClass",
")",
"{",
"if",
"(",
"valu... | to unified EL in JSF 1.2 | [
"to",
"unified",
"EL",
"in",
"JSF",
"1",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L356-L378 |
67,206 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.getNarrowestScope | private String getNarrowestScope(FacesContext facesContext, String valueExpression)
{
List<String> expressions = extractExpressions(valueExpression);
// exclude NONE scope, if there are more than one ValueExpressions (see Spec for details)
String narrowestScope = expressions.size() == 1 ? NO... | java | private String getNarrowestScope(FacesContext facesContext, String valueExpression)
{
List<String> expressions = extractExpressions(valueExpression);
// exclude NONE scope, if there are more than one ValueExpressions (see Spec for details)
String narrowestScope = expressions.size() == 1 ? NO... | [
"private",
"String",
"getNarrowestScope",
"(",
"FacesContext",
"facesContext",
",",
"String",
"valueExpression",
")",
"{",
"List",
"<",
"String",
">",
"expressions",
"=",
"extractExpressions",
"(",
"valueExpression",
")",
";",
"// exclude NONE scope, if there are more tha... | Gets the narrowest scope to which the ValueExpression points.
@param facesContext
@param valueExpression
@return | [
"Gets",
"the",
"narrowest",
"scope",
"to",
"which",
"the",
"ValueExpression",
"points",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L457-L480 |
67,207 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.getFirstSegment | private String getFirstSegment(String expression)
{
int indexDot = expression.indexOf('.');
int indexBracket = expression.indexOf('[');
if (indexBracket < 0)
{
return indexDot < 0 ? expression : expression.substring(0, indexDot);
}
if (indexDot < 0)
... | java | private String getFirstSegment(String expression)
{
int indexDot = expression.indexOf('.');
int indexBracket = expression.indexOf('[');
if (indexBracket < 0)
{
return indexDot < 0 ? expression : expression.substring(0, indexDot);
}
if (indexDot < 0)
... | [
"private",
"String",
"getFirstSegment",
"(",
"String",
"expression",
")",
"{",
"int",
"indexDot",
"=",
"expression",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"int",
"indexBracket",
"=",
"expression",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
... | Extract the first expression segment, that is the substring up to the first '.' or '['
@param expression
@return first segment of the expression | [
"Extract",
"the",
"first",
"expression",
"segment",
"that",
"is",
"the",
"substring",
"up",
"to",
"the",
"first",
".",
"or",
"["
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L607-L626 |
67,208 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.get | @SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue();
}
return (T) map.get(key);
} | java | @SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue();
}
return (T) map.get(key);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"get",
"(",
"EventLocal",
"<",
"T",
">",
"key",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")",
... | Query the possible value for the provided EventLocal.
@param <T>
@param key
@return T | [
"Query",
"the",
"possible",
"value",
"for",
"the",
"provided",
"EventLocal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L322-L329 |
67,209 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.set | public <T> void set(EventLocal<T> key, Object value) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
// the call to getMap would have created the inheritable map
// if appropriate, thus always create a disconnected map here
map = new Event... | java | public <T> void set(EventLocal<T> key, Object value) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
// the call to getMap would have created the inheritable map
// if appropriate, thus always create a disconnected map here
map = new Event... | [
"public",
"<",
"T",
">",
"void",
"set",
"(",
"EventLocal",
"<",
"T",
">",
"key",
",",
"Object",
"value",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")",
";",
"if",
"(",
"null... | Set the value for the provided EventLocal on this event.
@param <T>
@param key
@param value | [
"Set",
"the",
"value",
"for",
"the",
"provided",
"EventLocal",
"on",
"this",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L338-L351 |
67,210 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.remove | @SuppressWarnings("unchecked")
public <T> T remove(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null != map) {
return (T) map.remove(key);
}
return null;
} | java | @SuppressWarnings("unchecked")
public <T> T remove(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null != map) {
return (T) map.remove(key);
}
return null;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"remove",
"(",
"EventLocal",
"<",
"T",
">",
"key",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")... | Remove any existing value for the provided EventLocal.
@param <T>
@param key
@return T, existing object being removed, null if none present | [
"Remove",
"any",
"existing",
"value",
"for",
"the",
"provided",
"EventLocal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L360-L367 |
67,211 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.getContextData | @SuppressWarnings("unchecked")
public <T> T getContextData(String name) {
T rc = null;
if (null != this.inheritableLocals) {
rc = (T) this.inheritableLocals.get(name);
}
if (null == rc && null != this.locals) {
rc = (T) this.locals.get(name);
}
... | java | @SuppressWarnings("unchecked")
public <T> T getContextData(String name) {
T rc = null;
if (null != this.inheritableLocals) {
rc = (T) this.inheritableLocals.get(name);
}
if (null == rc && null != this.locals) {
rc = (T) this.locals.get(name);
}
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"getContextData",
"(",
"String",
"name",
")",
"{",
"T",
"rc",
"=",
"null",
";",
"if",
"(",
"null",
"!=",
"this",
".",
"inheritableLocals",
")",
"{",
"rc",
"=",
"(",
"T"... | Look for the EventLocal of the given name in this particular Event
instance.
@param <T>
@param name
@return T | [
"Look",
"for",
"the",
"EventLocal",
"of",
"the",
"given",
"name",
"in",
"this",
"particular",
"Event",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L377-L387 |
67,212 | OpenLiberty/open-liberty | dev/wlp.lib.extract/src/wlp/lib/extract/agent/BootstrapAgent.java | BootstrapAgent.setSystemProperties | private static void setSystemProperties() {
// KernelBootstrap also sets these properties in case the bootstrap
// agent wasn't used for some reason.
String loggingManager = System.getProperty("java.util.logging.manager");
//if (loggingManager == null)
// System.setProperty("... | java | private static void setSystemProperties() {
// KernelBootstrap also sets these properties in case the bootstrap
// agent wasn't used for some reason.
String loggingManager = System.getProperty("java.util.logging.manager");
//if (loggingManager == null)
// System.setProperty("... | [
"private",
"static",
"void",
"setSystemProperties",
"(",
")",
"{",
"// KernelBootstrap also sets these properties in case the bootstrap",
"// agent wasn't used for some reason.",
"String",
"loggingManager",
"=",
"System",
".",
"getProperty",
"(",
"\"java.util.logging.manager\"",
")... | Set system properties for JVM singletons. | [
"Set",
"system",
"properties",
"for",
"JVM",
"singletons",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/agent/BootstrapAgent.java#L138-L149 |
67,213 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.setBodyType | final void setBodyType(JmsBodyType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setBodyType", value);
setSubtype(value.toByte());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "set... | java | final void setBodyType(JmsBodyType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setBodyType", value);
setSubtype(value.toByte());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "set... | [
"final",
"void",
"setBodyType",
"(",
"JmsBodyType",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setBodyType\"... | Set the type of the message body.
This method is only used by message constructors.
@param value The JmsBodyType instance indicating the type of the body
i.e. Null, Bytes, Map, etc. | [
"Set",
"the",
"type",
"of",
"the",
"message",
"body",
".",
"This",
"method",
"is",
"only",
"used",
"by",
"message",
"constructors",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L443-L449 |
67,214 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.getNonSmokeAndMirrorsPropertyNameSet | private final Set<String> getNonSmokeAndMirrorsPropertyNameSet() {
/* Get the names of all the properties in the JMS Property Maps */
/* We need a copy so that we can add extra items, and so can the caller */
Set<String> names = new HashSet<String>();
// Add the names for the two flavo... | java | private final Set<String> getNonSmokeAndMirrorsPropertyNameSet() {
/* Get the names of all the properties in the JMS Property Maps */
/* We need a copy so that we can add extra items, and so can the caller */
Set<String> names = new HashSet<String>();
// Add the names for the two flavo... | [
"private",
"final",
"Set",
"<",
"String",
">",
"getNonSmokeAndMirrorsPropertyNameSet",
"(",
")",
"{",
"/* Get the names of all the properties in the JMS Property Maps */",
"/* We need a copy so that we can add extra items, and so can the caller */",
"Set",
"<",
"String",
">",
"names"... | Return a Set of just the non-smoke-and-mirrors property names
@return A set containing the names of all the non-smoke-and-mirrors properties | [
"Return",
"a",
"Set",
"of",
"just",
"the",
"non",
"-",
"smoke",
"-",
"and",
"-",
"mirrors",
"property",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L872-L893 |
67,215 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.getJMSXGroupSeq | @Override
public Object getJMSXGroupSeq() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getJMSXGroupSeq");
Object result = null;
if (mayHaveMappedJmsSystemProperties()) {
result = getObjectProperty(SIProperties.JMSXGroupSeq... | java | @Override
public Object getJMSXGroupSeq() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getJMSXGroupSeq");
Object result = null;
if (mayHaveMappedJmsSystemProperties()) {
result = getObjectProperty(SIProperties.JMSXGroupSeq... | [
"@",
"Override",
"public",
"Object",
"getJMSXGroupSeq",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getJMSXGroupS... | getJMSXGroupSeq
Return the value of the JMSXGroupSeq property if it exists.
We can return it as object, as that is all JMS API wants. Actually it only
really cares whether it exists, but we'll return Object rather than
changing the callng code unnecessarily.
Javadoc description supplied by JsJmsMessage interface. | [
"getJMSXGroupSeq",
"Return",
"the",
"value",
"of",
"the",
"JMSXGroupSeq",
"property",
"if",
"it",
"exists",
".",
"We",
"can",
"return",
"it",
"as",
"object",
"as",
"that",
"is",
"all",
"JMS",
"API",
"wants",
".",
"Actually",
"it",
"only",
"really",
"cares"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L1162-L1175 |
67,216 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/SecurityRoleImpl.java | SecurityRoleImpl.processSpecialSubjects | private void processSpecialSubjects(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] specialSubjectPids = (String[]) roleProps.get(CFG_KEY_SPECIAL_SUBJECT);
... | java | private void processSpecialSubjects(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] specialSubjectPids = (String[]) roleProps.get(CFG_KEY_SPECIAL_SUBJECT);
... | [
"private",
"void",
"processSpecialSubjects",
"(",
"ConfigurationAdmin",
"configAdmin",
",",
"String",
"roleName",
",",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"roleProps",
",",
"Set",
"<",
"String",
">",
"pids",
")",
"{",
"String",
"[",
"]",
"specialS... | Read and process all the specialSubject elements
@param configAdmin
@param roleName
@param roleProps
@param pids TODO | [
"Read",
"and",
"process",
"all",
"the",
"specialSubject",
"elements"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/SecurityRoleImpl.java#L265-L321 |
67,217 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java | WebAppTransactionCollaboratorImpl.preInvoke | @Override
public TxCollaboratorConfig preInvoke(final HttpServletRequest request, final boolean isServlet23)
throws ServletException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Calling preInvoke. Request=" + request + " | isServlet23=" +... | java | @Override
public TxCollaboratorConfig preInvoke(final HttpServletRequest request, final boolean isServlet23)
throws ServletException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Calling preInvoke. Request=" + request + " | isServlet23=" +... | [
"@",
"Override",
"public",
"TxCollaboratorConfig",
"preInvoke",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"boolean",
"isServlet23",
")",
"throws",
"ServletException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"t... | Collaborator preInvoke.
Called before the webapp is invoked, to ensure that a LTC is started
in the absence of a global transaction. A global tran may be active
on entry if the webapp that caused this dispatch left a global tran
active. The WebAppRequestDispatcher ensures that any global tran started
during a dispatch... | [
"Collaborator",
"preInvoke",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java#L198-L280 |
67,218 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java | WebAppTransactionCollaboratorImpl.resumeSuspendedLTC | private void resumeSuspendedLTC(LocalTransactionCurrent ltCurrent, Object txConfig) throws ServletException {
//Check for any suspended LTC that needs to be resumed
if (txConfig instanceof TxCollaboratorConfig) {
Object suspended = ((TxCollaboratorConfig) txConfig).getSuspendTx();
... | java | private void resumeSuspendedLTC(LocalTransactionCurrent ltCurrent, Object txConfig) throws ServletException {
//Check for any suspended LTC that needs to be resumed
if (txConfig instanceof TxCollaboratorConfig) {
Object suspended = ((TxCollaboratorConfig) txConfig).getSuspendTx();
... | [
"private",
"void",
"resumeSuspendedLTC",
"(",
"LocalTransactionCurrent",
"ltCurrent",
",",
"Object",
"txConfig",
")",
"throws",
"ServletException",
"{",
"//Check for any suspended LTC that needs to be resumed",
"if",
"(",
"txConfig",
"instanceof",
"TxCollaboratorConfig",
")",
... | Resumes the LTC that was suspended during preInvoke, if one was suspended. | [
"Resumes",
"the",
"LTC",
"that",
"was",
"suspended",
"during",
"preInvoke",
"if",
"one",
"was",
"suspended",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java#L391-L429 |
67,219 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java | SerializationObjectPool.getSerializationObject | public SerializationObject getSerializationObject() {
SerializationObject object;
synchronized (ivListOfObjects) {
if (ivListOfObjects.isEmpty()) {
object = createNewObject();
} else {
object = ivListOfObjects.remove(ivListOfObjects.size() - 1);
}
}
return object;
} | java | public SerializationObject getSerializationObject() {
SerializationObject object;
synchronized (ivListOfObjects) {
if (ivListOfObjects.isEmpty()) {
object = createNewObject();
} else {
object = ivListOfObjects.remove(ivListOfObjects.size() - 1);
}
}
return object;
} | [
"public",
"SerializationObject",
"getSerializationObject",
"(",
")",
"{",
"SerializationObject",
"object",
";",
"synchronized",
"(",
"ivListOfObjects",
")",
"{",
"if",
"(",
"ivListOfObjects",
".",
"isEmpty",
"(",
")",
")",
"{",
"object",
"=",
"createNewObject",
"(... | Gets the next avaialable serialization object.
@return ISerializationObject instance to do the conversation with. | [
"Gets",
"the",
"next",
"avaialable",
"serialization",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java#L43-L53 |
67,220 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java | SerializationObjectPool.returnSerializationObject | public void returnSerializationObject(SerializationObject object) {
synchronized (ivListOfObjects) {
if (ivListOfObjects.size() < MAXIMUM_NUM_OF_OBJECTS) {
ivListOfObjects.add(object);
}
}
} | java | public void returnSerializationObject(SerializationObject object) {
synchronized (ivListOfObjects) {
if (ivListOfObjects.size() < MAXIMUM_NUM_OF_OBJECTS) {
ivListOfObjects.add(object);
}
}
} | [
"public",
"void",
"returnSerializationObject",
"(",
"SerializationObject",
"object",
")",
"{",
"synchronized",
"(",
"ivListOfObjects",
")",
"{",
"if",
"(",
"ivListOfObjects",
".",
"size",
"(",
")",
"<",
"MAXIMUM_NUM_OF_OBJECTS",
")",
"{",
"ivListOfObjects",
".",
"... | Returns a serialization object back into the pool.
@param object an instance previously allocated with {@link #getSerializationObject()}. | [
"Returns",
"a",
"serialization",
"object",
"back",
"into",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java#L60-L66 |
67,221 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java | DependencyTable.add | public void add(Object dependency, ValueSet valueSet) {
if (dependency == null) {
throw new IllegalArgumentException("dependency cannot be null");
}
if (valueSet != null) {
dependencyToEntryTable.put(dependency, valueSet);
}
} | java | public void add(Object dependency, ValueSet valueSet) {
if (dependency == null) {
throw new IllegalArgumentException("dependency cannot be null");
}
if (valueSet != null) {
dependencyToEntryTable.put(dependency, valueSet);
}
} | [
"public",
"void",
"add",
"(",
"Object",
"dependency",
",",
"ValueSet",
"valueSet",
")",
"{",
"if",
"(",
"dependency",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"dependency cannot be null\"",
")",
";",
"}",
"if",
"(",
"valueSet"... | This adds a valueSet for the specified dependency.
@param dependency The dependency.
@param valueSet The valueSet to add. | [
"This",
"adds",
"a",
"valueSet",
"for",
"the",
"specified",
"dependency",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java#L105-L112 |
67,222 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java | DependencyTable.removeEntry | public boolean removeEntry(Object dependency, Object entry) { //SKS-O
boolean found = false;
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return found;
}
found = valueSet.remove(entry);
if (valueSet.size()==0)
re... | java | public boolean removeEntry(Object dependency, Object entry) { //SKS-O
boolean found = false;
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return found;
}
found = valueSet.remove(entry);
if (valueSet.size()==0)
re... | [
"public",
"boolean",
"removeEntry",
"(",
"Object",
"dependency",
",",
"Object",
"entry",
")",
"{",
"//SKS-O",
"boolean",
"found",
"=",
"false",
";",
"ValueSet",
"valueSet",
"=",
"(",
"ValueSet",
")",
"dependencyToEntryTable",
".",
"get",
"(",
"dependency",
")"... | SKS-O | [
"SKS",
"-",
"O"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java#L136-L147 |
67,223 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/GenericSSLConfigService.java | GenericSSLConfigService.modified | protected void modified(String id, Map<String, Object> properties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "modified " + id, properties);
}
config = properties;
myProps = null;
} | java | protected void modified(String id, Map<String, Object> properties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "modified " + id, properties);
}
config = properties;
myProps = null;
} | [
"protected",
"void",
"modified",
"(",
"String",
"id",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
... | DS method to modify this component.
@param properties | [
"DS",
"method",
"to",
"modify",
"this",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/GenericSSLConfigService.java#L47-L54 |
67,224 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getReadableLogRecord | protected ReadableLogRecord getReadableLogRecord(long expectedSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getReadableLogRecord", new java.lang.Object[] { this, new Long(expectedSequenceNumber) });
if (tc.isDebugEnabled())
Tr.debug(tc, "Creating readable log reco... | java | protected ReadableLogRecord getReadableLogRecord(long expectedSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getReadableLogRecord", new java.lang.Object[] { this, new Long(expectedSequenceNumber) });
if (tc.isDebugEnabled())
Tr.debug(tc, "Creating readable log reco... | [
"protected",
"ReadableLogRecord",
"getReadableLogRecord",
"(",
"long",
"expectedSequenceNumber",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getReadableLogRecord\"",
",",
"new",
"java",
".",
"lang",
"... | Read a composite record from the disk. The caller supplies the expected sequence
number of the record and this method confirms that this matches the next record
recovered.
@param sequenceNumber The expected sequence number
@return ReadableLogRecord The composite record | [
"Read",
"a",
"composite",
"record",
"from",
"the",
"disk",
".",
"The",
"caller",
"supplies",
"the",
"expected",
"sequence",
"number",
"of",
"the",
"record",
"and",
"this",
"method",
"confirms",
"that",
"this",
"matches",
"the",
"next",
"record",
"recovered",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L232-L246 |
67,225 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileClose | void fileClose() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileClose", this);
if (_fileChannel != null)
{
try
{
// Don't close channel as it will free a lock - wait until file close
if (_outstand... | java | void fileClose() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileClose", this);
if (_fileChannel != null)
{
try
{
// Don't close channel as it will free a lock - wait until file close
if (_outstand... | [
"void",
"fileClose",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileClose\"",
",",
"this",
")",
";",
"if",
"(",
"_fileChannel",
"!=",
"null",
")",
"{",
... | Close the file managed by this LogFileHandle instance.
@exception InternalLogException An unexpected error has occured. | [
"Close",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L585-L623 |
67,226 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getWriteableLogRecord | public WriteableLogRecord getWriteableLogRecord(int recordLength, long sequenceNumber) throws InternalLogException
{
if (!_headerFlushedFollowingRestart)
{
// ensure header is updated now we start to write records for the first time
// synchronization is assured through lock... | java | public WriteableLogRecord getWriteableLogRecord(int recordLength, long sequenceNumber) throws InternalLogException
{
if (!_headerFlushedFollowingRestart)
{
// ensure header is updated now we start to write records for the first time
// synchronization is assured through lock... | [
"public",
"WriteableLogRecord",
"getWriteableLogRecord",
"(",
"int",
"recordLength",
",",
"long",
"sequenceNumber",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"!",
"_headerFlushedFollowingRestart",
")",
"{",
"// ensure header is updated now we start to write records... | Get a new WritableLogRecord for the log file managed by this LogFileHandleInstance.
The size of the record must be specified along with the record's sequence number.
It is the caller's responsbility to ensure that both the sequence number is correct
and that the record written using the returned WritableLogRecord is of... | [
"Get",
"a",
"new",
"WritableLogRecord",
"for",
"the",
"log",
"file",
"managed",
"by",
"this",
"LogFileHandleInstance",
".",
"The",
"size",
"of",
"the",
"record",
"must",
"be",
"specified",
"along",
"with",
"the",
"record",
"s",
"sequence",
"number",
".",
"It... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L639-L666 |
67,227 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.writeFileHeader | private void writeFileHeader(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileHeader", new java.lang.Object[] { this, new Boolean(maintainPosition) });
// Build the buffer that forms the major part of the file header and
// ... | java | private void writeFileHeader(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileHeader", new java.lang.Object[] { this, new Boolean(maintainPosition) });
// Build the buffer that forms the major part of the file header and
// ... | [
"private",
"void",
"writeFileHeader",
"(",
"boolean",
"maintainPosition",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"writeFileHeader\"",
",",
"new",
"java",
".",
"... | Writes the file header stored in '_logFileHeader' to the file managed by this
LogFileHandle instance.
@param maintainPosition Flag to indicate if file pointer before the header write
needs to be restored after the header write (ie retain
the file pointer position)
@exception InternalLogException An unexpected error h... | [
"Writes",
"the",
"file",
"header",
"stored",
"in",
"_logFileHeader",
"to",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L681-L710 |
67,228 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.writeFileStatus | private void writeFileStatus(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileStatus", new java.lang.Object[] { this, new Boolean(maintainPosition) });
if (_logFileHeader.status() == LogFileHeader.STATUS_INVALID)
{
... | java | private void writeFileStatus(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileStatus", new java.lang.Object[] { this, new Boolean(maintainPosition) });
if (_logFileHeader.status() == LogFileHeader.STATUS_INVALID)
{
... | [
"private",
"void",
"writeFileStatus",
"(",
"boolean",
"maintainPosition",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"writeFileStatus\"",
",",
"new",
"java",
".",
"... | Updates the status field of the file managed by this LogFileHandle instance.
The status field is stored in '_logFileHeader'.
@param maintainPosition Flag to indicate if file pointer before the header write
needs to be restored after the header write (ie retain
the file pointer position)
@exception InternalLogExceptio... | [
"Updates",
"the",
"status",
"field",
"of",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
".",
"The",
"status",
"field",
"is",
"stored",
"in",
"_logFileHeader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L725-L771 |
67,229 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.logFileHeader | protected LogFileHeader logFileHeader()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logFileHeader", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logFileHeader", _logFileHeader);
return _logFileHeader;
} | java | protected LogFileHeader logFileHeader()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logFileHeader", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logFileHeader", _logFileHeader);
return _logFileHeader;
} | [
"protected",
"LogFileHeader",
"logFileHeader",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"logFileHeader\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | Accessor for the log file header object assoicated with this LogFileHandle
instance.
@return LogFileHeader The log file header object associated with this LogFileHandle
instance. | [
"Accessor",
"for",
"the",
"log",
"file",
"header",
"object",
"assoicated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L879-L886 |
67,230 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getServiceData | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
byte[] serviceData = null;
if (_logFileHeader != null)
{
serviceData = _logFileHeader.getServiceData();
}
if (tc.isEntryEnabled())
Tr... | java | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
byte[] serviceData = null;
if (_logFileHeader != null)
{
serviceData = _logFileHeader.getServiceData();
}
if (tc.isEntryEnabled())
Tr... | [
"public",
"byte",
"[",
"]",
"getServiceData",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getServiceData\"",
",",
"this",
")",
";",
"byte",
"[",
"]",
"serviceData",
"=",
"null",
";",
... | Accessor for the service data assoicated with this LogFileHandle instance.
@return byte[] The service data associated with this LogFileHandle instance or
null if none exists. | [
"Accessor",
"for",
"the",
"service",
"data",
"assoicated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L897-L912 |
67,231 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.freeBytes | public int freeBytes()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "freeBytes", this);
int freeBytes = 0;
try
{
int currentCursorPosition = _fileBuffer.position();
int fileLength = _fileBuffer.capacity();
freeBytes = fileLength - current... | java | public int freeBytes()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "freeBytes", this);
int freeBytes = 0;
try
{
int currentCursorPosition = _fileBuffer.position();
int fileLength = _fileBuffer.capacity();
freeBytes = fileLength - current... | [
"public",
"int",
"freeBytes",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"freeBytes\"",
",",
"this",
")",
";",
"int",
"freeBytes",
"=",
"0",
";",
"try",
"{",
"int",
"currentCursorPositi... | Returns the number of free bytes remaining in the file associated with this
LogFileHandle instance.
@return long The number of free bytes remaining. | [
"Returns",
"the",
"number",
"of",
"free",
"bytes",
"remaining",
"in",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L923-L951 |
67,232 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileName | public String fileName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "fileName", _fileName);
return _fileName;
} | java | public String fileName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "fileName", _fileName);
return _fileName;
} | [
"public",
"String",
"fileName",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileName\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"ex... | Returns the name of the file associated with this LogFileHandle instance
@return String The name of the file associated with this LogFileHandle instance | [
"Returns",
"the",
"name",
"of",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L984-L991 |
67,233 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.keypointStarting | void keypointStarting(long nextRecordSequenceNumber) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { new Long(nextRecordSequenceNumber), this });
// Set the header to indicate a keypoint operation. This also marks the header
... | java | void keypointStarting(long nextRecordSequenceNumber) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { new Long(nextRecordSequenceNumber), this });
// Set the header to indicate a keypoint operation. This also marks the header
... | [
"void",
"keypointStarting",
"(",
"long",
"nextRecordSequenceNumber",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointStarting\"",
",",
"new",
"Object",
"[",
"]",
... | Informs the LogFileHandle instance that a keypoint operation is about
begin into the file associated with this LogFileHandle instance. The status of the
log file is updated to KEYPOINTING and written to disk.
@param nextRecordSequenceNumber The sequence number to be used for the first
record in the file.
@exception I... | [
"Informs",
"the",
"LogFileHandle",
"instance",
"that",
"a",
"keypoint",
"operation",
"is",
"about",
"begin",
"into",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance",
".",
"The",
"status",
"of",
"the",
"log",
"file",
"is",
"updated",
"t... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1006-L1033 |
67,234 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.keypointComplete | void keypointComplete() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_logFileHeader.keypointComplete();
try
{
writeFileStatus(true);
} catch (InternalLogException exc)
{
FFDCFilter.... | java | void keypointComplete() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_logFileHeader.keypointComplete();
try
{
writeFileStatus(true);
} catch (InternalLogException exc)
{
FFDCFilter.... | [
"void",
"keypointComplete",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointComplete\"",
",",
"this",
")",
";",
"_logFileHeader",
".",
"keypointComplete",
... | Informs the LogFileHandle instance that a keypoint operation into the file
has completed. The status of the log file is updated to ACTIVE and written
to disk.
@exception InternalLogException An unexpected error has occured. | [
"Informs",
"the",
"LogFileHandle",
"instance",
"that",
"a",
"keypoint",
"operation",
"into",
"the",
"file",
"has",
"completed",
".",
"The",
"status",
"of",
"the",
"log",
"file",
"is",
"updated",
"to",
"ACTIVE",
"and",
"written",
"to",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1045-L1070 |
67,235 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.becomeInactive | void becomeInactive() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "becomeInactive", this);
_logFileHeader.changeStatus(LogFileHeader.STATUS_INACTIVE);
try
{
writeFileStatus(false);
} catch (InternalLogException exc)
{
... | java | void becomeInactive() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "becomeInactive", this);
_logFileHeader.changeStatus(LogFileHeader.STATUS_INACTIVE);
try
{
writeFileStatus(false);
} catch (InternalLogException exc)
{
... | [
"void",
"becomeInactive",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"becomeInactive\"",
",",
"this",
")",
";",
"_logFileHeader",
".",
"changeStatus",
"(",
"... | This method is invoked to inform the LogFileHandle instance that the file
it manages is no longer required by the recovery log serivce. The status
field stored in the header is updated to INACTIVE.
@exception InternalLogException An unexpected error has occured. | [
"This",
"method",
"is",
"invoked",
"to",
"inform",
"the",
"LogFileHandle",
"instance",
"that",
"the",
"file",
"it",
"manages",
"is",
"no",
"longer",
"required",
"by",
"the",
"recovery",
"log",
"serivce",
".",
"The",
"status",
"field",
"stored",
"in",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1082-L1107 |
67,236 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileExtend | public void fileExtend(int newFileSize) throws LogAllocationException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileExtend", new Object[] { new Integer(newFileSize), this });
final int fileLength = _fileBuffer.capacity();
if (fileLength < newFileSize)
{
try
... | java | public void fileExtend(int newFileSize) throws LogAllocationException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileExtend", new Object[] { new Integer(newFileSize), this });
final int fileLength = _fileBuffer.capacity();
if (fileLength < newFileSize)
{
try
... | [
"public",
"void",
"fileExtend",
"(",
"int",
"newFileSize",
")",
"throws",
"LogAllocationException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileExtend\"",
",",
"new",
"Object",
"[",
"]",
"{",
"ne... | Extend the physical log file. If 'newFileSize' is larger than the current file
size, the log file will extended so that it is 'newFileSize' kilobytes long.
If 'newFileSize' is equal to or less than the current file size, the current
log file will be unchanged.
@param newFileSize The new file size for the physical log ... | [
"Extend",
"the",
"physical",
"log",
"file",
".",
"If",
"newFileSize",
"is",
"larger",
"than",
"the",
"current",
"file",
"size",
"the",
"log",
"file",
"will",
"extended",
"so",
"that",
"it",
"is",
"newFileSize",
"kilobytes",
"long",
".",
"If",
"newFileSize",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1143-L1199 |
67,237 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.force | protected void force() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "force", this);
try
{
if (_isMapped)
{
// Note: on Win2K we can get an IOException from this even though it is not declared
((Mapped... | java | protected void force() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "force", this);
try
{
if (_isMapped)
{
// Note: on Win2K we can get an IOException from this even though it is not declared
((Mapped... | [
"protected",
"void",
"force",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"force\"",
",",
"this",
")",
";",
"try",
"{",
"if",
"(",
"_isMapped",
")",
"{"... | Forces the contents of the memory-mapped view of the log file to disk.
Having invoked this method the caller can be certain that any data added
to the log as part of a prior log write is now stored persistently on disk. | [
"Forces",
"the",
"contents",
"of",
"the",
"memory",
"-",
"mapped",
"view",
"of",
"the",
"log",
"file",
"to",
"disk",
".",
"Having",
"invoked",
"this",
"method",
"the",
"caller",
"can",
"be",
"certain",
"that",
"any",
"data",
"added",
"to",
"the",
"log",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1209-L1261 |
67,238 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java | VirtualHostMapper.normalize | private String normalize(String alias) {
// replace all the '.'s to '\.'s
String regExp = alias.replaceAll("[\\.]", "\\\\\\.");
// replace all the '*'s to '.*'s
regExp = regExp.replaceAll("[*]", "\\.\\*");
// System.out.println("Normalized "+alias+" to "+regExp);
retur... | java | private String normalize(String alias) {
// replace all the '.'s to '\.'s
String regExp = alias.replaceAll("[\\.]", "\\\\\\.");
// replace all the '*'s to '.*'s
regExp = regExp.replaceAll("[*]", "\\.\\*");
// System.out.println("Normalized "+alias+" to "+regExp);
retur... | [
"private",
"String",
"normalize",
"(",
"String",
"alias",
")",
"{",
"// replace all the '.'s to '\\.'s",
"String",
"regExp",
"=",
"alias",
".",
"replaceAll",
"(",
"\"[\\\\.]\"",
",",
"\"\\\\\\\\\\\\.\"",
")",
";",
"// replace all the '*'s to '.*'s",
"regExp",
"=",
"re... | This method normalizes the alias into a valid regular expression | [
"This",
"method",
"normalizes",
"the",
"alias",
"into",
"a",
"valid",
"regular",
"expression"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java#L56-L66 |
67,239 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java | VirtualHostMapper.targetMappings | public Iterator targetMappings() {
// System.out.println("TargetMappings called");
// return vHostTable.values().iterator(); 316624
Collection vHosts = vHostTable.values(); // 316624
List l = new ArrayList(); // 316624
l.addAll(vHosts); // 316624
return l.listIterator(); ... | java | public Iterator targetMappings() {
// System.out.println("TargetMappings called");
// return vHostTable.values().iterator(); 316624
Collection vHosts = vHostTable.values(); // 316624
List l = new ArrayList(); // 316624
l.addAll(vHosts); // 316624
return l.listIterator(); ... | [
"public",
"Iterator",
"targetMappings",
"(",
")",
"{",
"// System.out.println(\"TargetMappings called\");",
"// return vHostTable.values().iterator(); 316624",
"Collection",
"vHosts",
"=",
"vHostTable",
".",
"values",
"(",
")",
";",
"// 316624",
"List",
"l",
"=",
"new",
"... | Returns an enumeration of all the target mappings added
to this mapper | [
"Returns",
"an",
"enumeration",
"of",
"all",
"the",
"target",
"mappings",
"added",
"to",
"this",
"mapper"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java#L79-L86 |
67,240 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java | BehindRefList.insert | public final BehindRef insert(final AbstractItemLink insertAil)
{
final long insertPosition = insertAil.getPosition();
boolean inserted = false;
BehindRef addref = null;
// Loop backwards through the list in order of decreasing sequence number
// (addition usually near the e... | java | public final BehindRef insert(final AbstractItemLink insertAil)
{
final long insertPosition = insertAil.getPosition();
boolean inserted = false;
BehindRef addref = null;
// Loop backwards through the list in order of decreasing sequence number
// (addition usually near the e... | [
"public",
"final",
"BehindRef",
"insert",
"(",
"final",
"AbstractItemLink",
"insertAil",
")",
"{",
"final",
"long",
"insertPosition",
"=",
"insertAil",
".",
"getPosition",
"(",
")",
";",
"boolean",
"inserted",
"=",
"false",
";",
"BehindRef",
"addref",
"=",
"nu... | Inserts a reference to an AIL in the list of AILs behind the curent position of the
cursor. The insertion is performed in position order. The list is composed
of weak references and any which are discovered to refer to objects no longer on the
heap are removed as we go.
@param insertAil | [
"Inserts",
"a",
"reference",
"to",
"an",
"AIL",
"in",
"the",
"list",
"of",
"AILs",
"behind",
"the",
"curent",
"position",
"of",
"the",
"cursor",
".",
"The",
"insertion",
"is",
"performed",
"in",
"position",
"order",
".",
"The",
"list",
"is",
"composed",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java#L85-L157 |
67,241 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java | BehindRefList._remove | private final void _remove(final BehindRef removeref)
{
if (_firstLinkBehind != null)
{
if (removeref == _firstLinkBehind)
{
// It's the first in the list ...
if (removeref == _lastLinkBehind)
{
// ... and th... | java | private final void _remove(final BehindRef removeref)
{
if (_firstLinkBehind != null)
{
if (removeref == _firstLinkBehind)
{
// It's the first in the list ...
if (removeref == _lastLinkBehind)
{
// ... and th... | [
"private",
"final",
"void",
"_remove",
"(",
"final",
"BehindRef",
"removeref",
")",
"{",
"if",
"(",
"_firstLinkBehind",
"!=",
"null",
")",
"{",
"if",
"(",
"removeref",
"==",
"_firstLinkBehind",
")",
"{",
"// It's the first in the list ...",
"if",
"(",
"removeref... | Removes the first AIL in the list of AILs behind the current position of the cursor.
The list may empty completely as a result. | [
"Removes",
"the",
"first",
"AIL",
"in",
"the",
"list",
"of",
"AILs",
"behind",
"the",
"current",
"position",
"of",
"the",
"cursor",
".",
"The",
"list",
"may",
"empty",
"completely",
"as",
"a",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java#L165-L206 |
67,242 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.invokeTraceRouters | protected boolean invokeTraceRouters(RoutedMessage routedTrace) {
boolean retMe = true;
LogRecord logRecord = routedTrace.getLogRecord();
/*
* Avoid any feedback traces that are emitted after this point.
* The first time the counter increments is the first pass-through.
... | java | protected boolean invokeTraceRouters(RoutedMessage routedTrace) {
boolean retMe = true;
LogRecord logRecord = routedTrace.getLogRecord();
/*
* Avoid any feedback traces that are emitted after this point.
* The first time the counter increments is the first pass-through.
... | [
"protected",
"boolean",
"invokeTraceRouters",
"(",
"RoutedMessage",
"routedTrace",
")",
"{",
"boolean",
"retMe",
"=",
"true",
";",
"LogRecord",
"logRecord",
"=",
"routedTrace",
".",
"getLogRecord",
"(",
")",
";",
"/*\n * Avoid any feedback traces that are emitted ... | Route only trace log records.Messages including Systemout,err will not be routed to trace source to avoid duplicate entries | [
"Route",
"only",
"trace",
"log",
"records",
".",
"Messages",
"including",
"Systemout",
"err",
"will",
"not",
"be",
"routed",
"to",
"trace",
"source",
"to",
"avoid",
"duplicate",
"entries"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L730-L766 |
67,243 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.publishTraceLogRecord | protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
//check if tracefilename is stdout
if (formattedVerboseMsg == null) {
formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, f... | java | protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
//check if tracefilename is stdout
if (formattedVerboseMsg == null) {
formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, f... | [
"protected",
"void",
"publishTraceLogRecord",
"(",
"TraceWriter",
"detailLog",
",",
"LogRecord",
"logRecord",
",",
"Object",
"id",
",",
"String",
"formattedMsg",
",",
"String",
"formattedVerboseMsg",
")",
"{",
"//check if tracefilename is stdout",
"if",
"(",
"formattedV... | Publish a trace log record.
@param detailLog the trace writer
@param logRecord
@param id the trace object id
@param formattedMsg the result of {@link BaseTraceFormatter#formatMessage}
@param formattedVerboseMsg the result of {@link BaseTraceFormatter#formatVerboseMessage} | [
"Publish",
"a",
"trace",
"log",
"record",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L856-L901 |
67,244 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.setMessageRouter | @Override
public void setMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.set(msgRouter);
if (msgRouter instanceof WsMessageRouter) {
setWsMessageRouter((WsMessageRouter) msgRouter);
}
} | java | @Override
public void setMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.set(msgRouter);
if (msgRouter instanceof WsMessageRouter) {
setWsMessageRouter((WsMessageRouter) msgRouter);
}
} | [
"@",
"Override",
"public",
"void",
"setMessageRouter",
"(",
"MessageRouter",
"msgRouter",
")",
"{",
"externalMessageRouter",
".",
"set",
"(",
"msgRouter",
")",
";",
"if",
"(",
"msgRouter",
"instanceof",
"WsMessageRouter",
")",
"{",
"setWsMessageRouter",
"(",
"(",
... | Inject the SPI MessageRouter.
This is injected by TrConfigurator, which is also SPI. So it's possible for
third-party code to implement and inject their own MessageRouter. | [
"Inject",
"the",
"SPI",
"MessageRouter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L909-L917 |
67,245 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.unsetMessageRouter | @Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter);
}
} | java | @Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter);
}
} | [
"@",
"Override",
"public",
"void",
"unsetMessageRouter",
"(",
"MessageRouter",
"msgRouter",
")",
"{",
"externalMessageRouter",
".",
"compareAndSet",
"(",
"msgRouter",
",",
"null",
")",
";",
"if",
"(",
"msgRouter",
"instanceof",
"WsMessageRouter",
")",
"{",
"unsetW... | Un-inject. | [
"Un",
"-",
"inject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L922-L929 |
67,246 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.initializeWriters | protected void initializeWriters(LogProviderConfigImpl config) {
// createFileLog may or may not return the original log holder..
messagesLog = FileLogHolder.createFileLogHolder(messagesLog,
newFileLogHeader(false, config),
... | java | protected void initializeWriters(LogProviderConfigImpl config) {
// createFileLog may or may not return the original log holder..
messagesLog = FileLogHolder.createFileLogHolder(messagesLog,
newFileLogHeader(false, config),
... | [
"protected",
"void",
"initializeWriters",
"(",
"LogProviderConfigImpl",
"config",
")",
"{",
"// createFileLog may or may not return the original log holder..",
"messagesLog",
"=",
"FileLogHolder",
".",
"createFileLogHolder",
"(",
"messagesLog",
",",
"newFileLogHeader",
"(",
"fa... | Initialize the log holders for messages and trace. If the TrService is configured
at bootstrap time to use JSR-47 logging, the traceLog will not be created here,
as the LogRecord should be routed to logger rather than being formatted for
the trace file.
@param config a {@link LogProviderConfigImpl} containing TrServic... | [
"Initialize",
"the",
"log",
"holders",
"for",
"messages",
"and",
"trace",
".",
"If",
"the",
"TrService",
"is",
"configured",
"at",
"bootstrap",
"time",
"to",
"use",
"JSR",
"-",
"47",
"logging",
"the",
"traceLog",
"will",
"not",
"be",
"created",
"here",
"as... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L1002-L1032 |
67,247 | OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.load | @Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
+ ", ar... | java | @Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
+ ", ar... | [
"@",
"Override",
"public",
"Object",
"load",
"(",
"String",
"batchId",
")",
"{",
"Object",
"loadedArtifact",
";",
"loadedArtifact",
"=",
"getArtifactById",
"(",
"batchId",
")",
";",
"if",
"(",
"loadedArtifact",
"!=",
"null",
")",
"{",
"if",
"(",
"logger",
... | Use CDI to load the artifact with the given ID.
@return the loaded artifact; or null if CDI is not enabled for the app. | [
"Use",
"CDI",
"to",
"load",
"the",
"artifact",
"with",
"the",
"given",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L59-L75 |
67,248 | OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanByBeanName | protected Bean<?> getUniqueBeanByBeanName(BeanManager bm, String batchId) {
Bean<?> match = null;
// Get all beans with the given EL name (id). EL names are applied via @Named.
// If the bean is not annotated with @Named, then it does not have an EL name
// and therefore can't be looke... | java | protected Bean<?> getUniqueBeanByBeanName(BeanManager bm, String batchId) {
Bean<?> match = null;
// Get all beans with the given EL name (id). EL names are applied via @Named.
// If the bean is not annotated with @Named, then it does not have an EL name
// and therefore can't be looke... | [
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanByBeanName",
"(",
"BeanManager",
"bm",
",",
"String",
"batchId",
")",
"{",
"Bean",
"<",
"?",
">",
"match",
"=",
"null",
";",
"// Get all beans with the given EL name (id). EL names are applied via @Named.",
"// If the b... | Use the given BeanManager to lookup a unique CDI-registered bean
with bean name equal to 'batchId', using EL matching rules.
@return the bean with the given bean name, or 'null' if there is an ambiguous resolution | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"a",
"unique",
"CDI",
"-",
"registered",
"bean",
"with",
"bean",
"name",
"equal",
"to",
"batchId",
"using",
"EL",
"matching",
"rules",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L132-L146 |
67,249 | OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanForBatchXMLEntry | @FFDCIgnore(BatchCDIAmbiguousResolutionCheckedException.class)
protected Bean<?> getUniqueBeanForBatchXMLEntry(BeanManager bm, String batchId) {
ClassLoader loader = getContextClassLoader();
BatchXMLMapper batchXMLMapper = new BatchXMLMapper(loader);
Class<?> clazz = batchXMLMapper.getArtifa... | java | @FFDCIgnore(BatchCDIAmbiguousResolutionCheckedException.class)
protected Bean<?> getUniqueBeanForBatchXMLEntry(BeanManager bm, String batchId) {
ClassLoader loader = getContextClassLoader();
BatchXMLMapper batchXMLMapper = new BatchXMLMapper(loader);
Class<?> clazz = batchXMLMapper.getArtifa... | [
"@",
"FFDCIgnore",
"(",
"BatchCDIAmbiguousResolutionCheckedException",
".",
"class",
")",
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanForBatchXMLEntry",
"(",
"BeanManager",
"bm",
",",
"String",
"batchId",
")",
"{",
"ClassLoader",
"loader",
"=",
"getContextClassL... | Use the given BeanManager to lookup a unique CDI-registered bean
with bean class equal to the batch.xml entry mapped to be the batchId parameter
@return the bean with the given className. It returns null if there are zero matches or if there is no umabiguous resolution (i.e. more than 1 match) | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"a",
"unique",
"CDI",
"-",
"registered",
"bean",
"with",
"bean",
"class",
"equal",
"to",
"the",
"batch",
".",
"xml",
"entry",
"mapped",
"to",
"be",
"the",
"batchId",
"parameter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L154-L171 |
67,250 | OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanForClassName | @FFDCIgnore({ ClassNotFoundException.class, BatchCDIAmbiguousResolutionCheckedException.class })
protected Bean<?> getUniqueBeanForClassName(BeanManager bm, String className) {
// Ignore exceptions since will just failover to another loading mechanism
try {
Class<?> clazz = getContextCla... | java | @FFDCIgnore({ ClassNotFoundException.class, BatchCDIAmbiguousResolutionCheckedException.class })
protected Bean<?> getUniqueBeanForClassName(BeanManager bm, String className) {
// Ignore exceptions since will just failover to another loading mechanism
try {
Class<?> clazz = getContextCla... | [
"@",
"FFDCIgnore",
"(",
"{",
"ClassNotFoundException",
".",
"class",
",",
"BatchCDIAmbiguousResolutionCheckedException",
".",
"class",
"}",
")",
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanForClassName",
"(",
"BeanManager",
"bm",
",",
"String",
"className",
")... | Use the given BeanManager to lookup the set of CDI-registered beans with
the given class name.
@return the bean with the given className. It returns null if there are zero matches or if there is no umabiguous resolution (i.e. more than 1 match) | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"the",
"set",
"of",
"CDI",
"-",
"registered",
"beans",
"with",
"the",
"given",
"class",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L179-L196 |
67,251 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java | ExecutorServiceImpl.createExecutor | private synchronized void createExecutor() {
if (componentConfig == null) {
// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to
// component activation... the proper thing to do is to do nothing and wait for activation
return;
... | java | private synchronized void createExecutor() {
if (componentConfig == null) {
// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to
// component activation... the proper thing to do is to do nothing and wait for activation
return;
... | [
"private",
"synchronized",
"void",
"createExecutor",
"(",
")",
"{",
"if",
"(",
"componentConfig",
"==",
"null",
")",
"{",
"// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to",
"// component activation... the proper thing to do is to do nothin... | Create a thread pool executor with the configured attributes from this
component config. | [
"Create",
"a",
"thread",
"pool",
"executor",
"with",
"the",
"configured",
"attributes",
"from",
"this",
"component",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java#L177-L219 |
67,252 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java | ExecutorServiceImpl.wrap | private <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks) {
List<Callable<T>> wrappedTasks = new ArrayList<Callable<T>>();
Iterator<? extends Callable<T>> i = tasks.iterator();
while (i.hasNext()) {
Callable<T> c = wrap(i.next());
if (ser... | java | private <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks) {
List<Callable<T>> wrappedTasks = new ArrayList<Callable<T>>();
Iterator<? extends Callable<T>> i = tasks.iterator();
while (i.hasNext()) {
Callable<T> c = wrap(i.next());
if (ser... | [
"private",
"<",
"T",
">",
"Collection",
"<",
"?",
"extends",
"Callable",
"<",
"T",
">",
">",
"wrap",
"(",
"Collection",
"<",
"?",
"extends",
"Callable",
"<",
"T",
">",
">",
"tasks",
")",
"{",
"List",
"<",
"Callable",
"<",
"T",
">>",
"wrappedTasks",
... | This is private, so handling both interceptors and wrapping in this method for simplicity | [
"This",
"is",
"private",
"so",
"handling",
"both",
"interceptors",
"and",
"wrapping",
"in",
"this",
"method",
"for",
"simplicity"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java#L489-L500 |
67,253 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.next | public JsMessage next()
throws MessageDecodeFailedException,
SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException,
... | java | public JsMessage next()
throws MessageDecodeFailedException,
SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException,
... | [
"public",
"JsMessage",
"next",
"(",
")",
"throws",
"MessageDecodeFailedException",
",",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionL... | Returns the next message for a browse.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#next() | [
"Returns",
"the",
"next",
"message",
"for",
"a",
"browse",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L126-L150 |
67,254 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.close | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
if (!closed)
{
// begin D249096
convHelper.clo... | java | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
if (!closed)
{
// begin D249096
convHelper.clo... | [
"public",
"void",
"close",
"(",
")",
"throws",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIErrorException",
",",
"SIConnectionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabl... | Closes the proxy queue.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#close() | [
"Closes",
"the",
"proxy",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L157-L174 |
67,255 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.put | public void put(CommsByteBuffer msgBuffer, short msgBatch, boolean lastInBatch, boolean chunk)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{msgBuffer, msgBatch, lastInBatch, chunk});
QueueData queueData = null;
// If this data r... | java | public void put(CommsByteBuffer msgBuffer, short msgBatch, boolean lastInBatch, boolean chunk)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{msgBuffer, msgBatch, lastInBatch, chunk});
QueueData queueData = null;
// If this data r... | [
"public",
"void",
"put",
"(",
"CommsByteBuffer",
"msgBuffer",
",",
"short",
"msgBatch",
",",
"boolean",
"lastInBatch",
",",
"boolean",
"chunk",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",... | Places a browse message on the queue.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueue#put(com.ibm.ws.sib.comms.common.CommsByteBuffer, short, boolean, boolean) | [
"Places",
"a",
"browse",
"message",
"on",
"the",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L189-L241 |
67,256 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.setBrowserSession | public void setBrowserSession(BrowserSessionProxy browserSession)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBrowserSession", browserSession);
if (this.browserSession != null)
{
// We are flagging this here as we should never call setBrows... | java | public void setBrowserSession(BrowserSessionProxy browserSession)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBrowserSession", browserSession);
if (this.browserSession != null)
{
// We are flagging this here as we should never call setBrows... | [
"public",
"void",
"setBrowserSession",
"(",
"BrowserSessionProxy",
"browserSession",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setBro... | Sets the browser session this proxy queue is being used in
conjunction with.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#setBrowserSession(BrowserSessionProxy) | [
"Sets",
"the",
"browser",
"session",
"this",
"proxy",
"queue",
"is",
"being",
"used",
"in",
"conjunction",
"with",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L248-L284 |
67,257 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java | DefaultJsonWebTokenImpl.readObject | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
principal = (String) fields.get(PRINCIPAL, null);
jwt = (String) fields.get(JWT, null);
type = (String) fields.get(TYPE, null);
handleClaims(jwt);
} | java | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
principal = (String) fields.get(PRINCIPAL, null);
jwt = (String) fields.get(JWT, null);
type = (String) fields.get(TYPE, null);
handleClaims(jwt);
} | [
"private",
"void",
"readObject",
"(",
"ObjectInputStream",
"in",
")",
"throws",
"IOException",
",",
"ClassNotFoundException",
"{",
"GetField",
"fields",
"=",
"in",
".",
"readFields",
"(",
")",
";",
"principal",
"=",
"(",
"String",
")",
"fields",
".",
"get",
... | Deserialize json web token.
@param in
The stream from which this object is read.
@throws IOException
@throws ClassNotFoundException | [
"Deserialize",
"json",
"web",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java#L216-L222 |
67,258 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java | DefaultJsonWebTokenImpl.writeObject | private void writeObject(ObjectOutputStream out) throws IOException {
PutField fields = out.putFields();
fields.put(PRINCIPAL, principal);
fields.put(JWT, jwt);
fields.put(TYPE, type);
out.writeFields();
} | java | private void writeObject(ObjectOutputStream out) throws IOException {
PutField fields = out.putFields();
fields.put(PRINCIPAL, principal);
fields.put(JWT, jwt);
fields.put(TYPE, type);
out.writeFields();
} | [
"private",
"void",
"writeObject",
"(",
"ObjectOutputStream",
"out",
")",
"throws",
"IOException",
"{",
"PutField",
"fields",
"=",
"out",
".",
"putFields",
"(",
")",
";",
"fields",
".",
"put",
"(",
"PRINCIPAL",
",",
"principal",
")",
";",
"fields",
".",
"pu... | Serialize json web token.
@param out
The stream to which this object is serialized.
@throws IOException | [
"Serialize",
"json",
"web",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java#L232-L238 |
67,259 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/DefaultAnnotationProvider.java | DefaultAnnotationProvider._getAlternativeJarFile | private static JarFile _getAlternativeJarFile(URL url) throws IOException
{
String urlFile = url.getFile();
// Trim off any suffix - which is prefixed by "!/" on Weblogic
int separatorIndex = urlFile.indexOf("!/");
// OK, didn't find that. Try the less safe "!", used on OC4J
... | java | private static JarFile _getAlternativeJarFile(URL url) throws IOException
{
String urlFile = url.getFile();
// Trim off any suffix - which is prefixed by "!/" on Weblogic
int separatorIndex = urlFile.indexOf("!/");
// OK, didn't find that. Try the less safe "!", used on OC4J
... | [
"private",
"static",
"JarFile",
"_getAlternativeJarFile",
"(",
"URL",
"url",
")",
"throws",
"IOException",
"{",
"String",
"urlFile",
"=",
"url",
".",
"getFile",
"(",
")",
";",
"// Trim off any suffix - which is prefixed by \"!/\" on Weblogic",
"int",
"separatorIndex",
"... | taken from org.apache.myfaces.view.facelets.util.Classpath
For URLs to JARs that do not use JarURLConnection - allowed by the servlet spec - attempt to produce a JarFile
object all the same. Known servlet engines that function like this include Weblogic and OC4J. This is not a full
solution, since an unpacked WAR or E... | [
"taken",
"from",
"org",
".",
"apache",
".",
"myfaces",
".",
"view",
".",
"facelets",
".",
"util",
".",
"Classpath"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/DefaultAnnotationProvider.java#L698-L724 |
67,260 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/LifecycleImpl.java | LifecycleImpl.requestProcessed | private void requestProcessed(FacesContext facesContext)
{
if(!_firstRequestProcessed)
{
// The order here is important. First it is necessary to put
// the value on application map before change the value here.
// If multiple threads reach this point concurrently... | java | private void requestProcessed(FacesContext facesContext)
{
if(!_firstRequestProcessed)
{
// The order here is important. First it is necessary to put
// the value on application map before change the value here.
// If multiple threads reach this point concurrently... | [
"private",
"void",
"requestProcessed",
"(",
"FacesContext",
"facesContext",
")",
"{",
"if",
"(",
"!",
"_firstRequestProcessed",
")",
"{",
"// The order here is important. First it is necessary to put",
"// the value on application map before change the value here.",
"// If multiple t... | This method places an attribute on the application map to
indicate that the first request has been processed. This
attribute is used by several methods in ApplicationImpl
to determine whether or not to throw an IllegalStateException
@param facesContext | [
"This",
"method",
"places",
"an",
"attribute",
"on",
"the",
"application",
"map",
"to",
"indicate",
"that",
"the",
"first",
"request",
"has",
"been",
"processed",
".",
"This",
"attribute",
"is",
"used",
"by",
"several",
"methods",
"in",
"ApplicationImpl",
"to"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/LifecycleImpl.java#L396-L410 |
67,261 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/JSLProperties.java | JSLProperties.getPropertyList | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<Property> getPropertyList() {
if (propertyList == null) {
propertyList = new ArrayList<Property>();
}
return this.prop... | java | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<Property> getPropertyList() {
if (propertyList == null) {
propertyList = new ArrayList<Property>();
}
return this.prop... | [
"@",
"Generated",
"(",
"value",
"=",
"\"com.ibm.jtc.jax.tools.xjc.Driver\"",
",",
"date",
"=",
"\"2014-06-11T05:49:00-04:00\"",
",",
"comments",
"=",
"\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"",
")",
"public",
"List",
"<",
"Property",
">",
"getPropertyList",
"(",
"... | Gets the value of the propertyList property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the propertyList property.
<p>
For example... | [
"Gets",
"the",
"value",
"of",
"the",
"propertyList",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/JSLProperties.java#L77-L83 |
67,262 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.current | protected Token current()
{
final String methodName = "current";
Token currentToken;
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, methodName
+ toString()
);
... | java | protected Token current()
{
final String methodName = "current";
Token currentToken;
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, methodName
+ toString()
);
... | [
"protected",
"Token",
"current",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"current\"",
";",
"Token",
"currentToken",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
... | Give back the current token if there is already one known to the
Object Store for the same ManagedObject.
@return Token already known to the ObjectStore. | [
"Give",
"back",
"the",
"current",
"token",
"if",
"there",
"is",
"already",
"one",
"known",
"to",
"the",
"Object",
"Store",
"for",
"the",
"same",
"ManagedObject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L113-L130 |
67,263 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.getManagedObject | public final ManagedObject getManagedObject()
throws ObjectManagerException {
// final String methodName = "getManagedObject";
// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
// trace.entry(this,
// cclass,
// methodName);
// Get ... | java | public final ManagedObject getManagedObject()
throws ObjectManagerException {
// final String methodName = "getManagedObject";
// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
// trace.entry(this,
// cclass,
// methodName);
// Get ... | [
"public",
"final",
"ManagedObject",
"getManagedObject",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"// final String methodName = \"getManagedObject\";",
"// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())",
"// trace.entry(this,",
"// cclass,"... | Find the ManagedObject handled by this token.
@return ManagedObject the underlying ManagedObject represented by the token.
@throws ObjectManagerException | [
"Find",
"the",
"ManagedObject",
"handled",
"by",
"this",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L138-L171 |
67,264 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.setManagedObject | protected synchronized ManagedObject setManagedObject(ManagedObject managedObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "setManagedObject"
+ "m... | java | protected synchronized ManagedObject setManagedObject(ManagedObject managedObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "setManagedObject"
+ "m... | [
"protected",
"synchronized",
"ManagedObject",
"setManagedObject",
"(",
"ManagedObject",
"managedObject",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"t... | Associate a new ManagedObject with this token. If there is already
a managedObject associated with the Token it is replaced by making it a clone of the
new ManagedObject so that existing references to the old ManagedObject becone
refrences to the new one.
@param ManagedObject to be associated with this Token.
@return ... | [
"Associate",
"a",
"new",
"ManagedObject",
"with",
"this",
"token",
".",
"If",
"there",
"is",
"already",
"a",
"managedObject",
"associated",
"with",
"the",
"Token",
"it",
"is",
"replaced",
"by",
"making",
"it",
"a",
"clone",
"of",
"the",
"new",
"ManagedObject... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L183-L220 |
67,265 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.invalidate | void invalidate()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "invalidate"
);
// Prevent any attempt to load the object.
objectStore = null;
// If the ManagedObject is alre... | java | void invalidate()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "invalidate"
);
// Prevent any attempt to load the object.
objectStore = null;
// If the ManagedObject is alre... | [
"void",
"invalidate",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"invalidate\"",
")",
";",
"// Prevent any attemp... | Make the token and any ManagedObject it refers to invalid.
Used at shutdown to prevent accidental use of a ManagedObject in the ObjectManager that
instantiated it or any other Object Manager. | [
"Make",
"the",
"token",
"and",
"any",
"ManagedObject",
"it",
"refers",
"to",
"invalid",
".",
"Used",
"at",
"shutdown",
"to",
"prevent",
"accidental",
"use",
"of",
"a",
"ManagedObject",
"in",
"the",
"ObjectManager",
"that",
"instantiated",
"it",
"or",
"any",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L227-L249 |
67,266 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.restore | public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass
... | java | public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass
... | [
"public",
"static",
"final",
"Token",
"restore",
"(",
"java",
".",
"io",
".",
"DataInputStream",
"dataInputStream",
",",
"ObjectManagerState",
"objectManagerState",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
... | Recover the token described by a dataInputStream and resolve it ot the definitive token.
@param dataInputStream containing the serialized Token.
@param objectManagerState of the objectManager reconstructing the Token.
@return Token matching the next bytes in the dataInputStream.
@throws ObjectManagerException | [
"Recover",
"the",
"token",
"described",
"by",
"a",
"dataInputStream",
"and",
"resolve",
"it",
"ot",
"the",
"definitive",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L377-L424 |
67,267 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointList.java | HttpEndpointList.findEndpoint | public static HttpEndpointImpl findEndpoint(String endpointId) {
for (HttpEndpointImpl i : instance.get()) {
if (i.getName().equals(endpointId))
return i;
}
return null;
} | java | public static HttpEndpointImpl findEndpoint(String endpointId) {
for (HttpEndpointImpl i : instance.get()) {
if (i.getName().equals(endpointId))
return i;
}
return null;
} | [
"public",
"static",
"HttpEndpointImpl",
"findEndpoint",
"(",
"String",
"endpointId",
")",
"{",
"for",
"(",
"HttpEndpointImpl",
"i",
":",
"instance",
".",
"get",
"(",
")",
")",
"{",
"if",
"(",
"i",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"endpointId... | Return the endpoint for the given id.
@param endpointId
@return The endpoint associated with the id, or null. | [
"Return",
"the",
"endpoint",
"for",
"the",
"given",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointList.java#L55-L61 |
67,268 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ControllableStream.java | ControllableStream.getTicksOnStream | public synchronized List<Long> getTicksOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTicksOnStream");
List<Long> msgs = new ArrayList<Long>();
StateStream stateStream = getStateStream();
// Initial range in stream is always comp... | java | public synchronized List<Long> getTicksOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTicksOnStream");
List<Long> msgs = new ArrayList<Long>();
StateStream stateStream = getStateStream();
// Initial range in stream is always comp... | [
"public",
"synchronized",
"List",
"<",
"Long",
">",
"getTicksOnStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getTicksOn... | Gets a list of all tick values on the state stream
@param stream
@return | [
"Gets",
"a",
"list",
"of",
"all",
"tick",
"values",
"on",
"the",
"state",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ControllableStream.java#L38-L68 |
67,269 | OpenLiberty/open-liberty | dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Server.java | POP3Server.quit | public void quit() {
try {
this.keepOn = false;
if (this.serverSocket != null && !this.serverSocket.isClosed()) {
this.serverSocket.close();
this.serverSocket = null;
}
} catch (final IOException e) {
throw new RuntimeExcept... | java | public void quit() {
try {
this.keepOn = false;
if (this.serverSocket != null && !this.serverSocket.isClosed()) {
this.serverSocket.close();
this.serverSocket = null;
}
} catch (final IOException e) {
throw new RuntimeExcept... | [
"public",
"void",
"quit",
"(",
")",
"{",
"try",
"{",
"this",
".",
"keepOn",
"=",
"false",
";",
"if",
"(",
"this",
".",
"serverSocket",
"!=",
"null",
"&&",
"!",
"this",
".",
"serverSocket",
".",
"isClosed",
"(",
")",
")",
"{",
"this",
".",
"serverSo... | Exit POP3 server. | [
"Exit",
"POP3",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Server.java#L52-L62 |
67,270 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/SymbolicRootResource.java | SymbolicRootResource.contains | boolean contains(String normalizedPath) {
if (normalizedPath == null)
return false;
if (normalizedPath.length() < normalizedRoot.length())
return false;
return normalizedPath.regionMatches(0, normalizedRoot, 0, normalizedRoot.length());
} | java | boolean contains(String normalizedPath) {
if (normalizedPath == null)
return false;
if (normalizedPath.length() < normalizedRoot.length())
return false;
return normalizedPath.regionMatches(0, normalizedRoot, 0, normalizedRoot.length());
} | [
"boolean",
"contains",
"(",
"String",
"normalizedPath",
")",
"{",
"if",
"(",
"normalizedPath",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"normalizedPath",
".",
"length",
"(",
")",
"<",
"normalizedRoot",
".",
"length",
"(",
")",
")",
"return",
... | Check if the provided path is contained within this root's hierarchy.
@param normalizedPath
normalized path for a potential descendant ('..' and '.' segments
removed)
@return
true if this root contains the resource indicated by the
normalized path, false otherwise (or if the path is null). | [
"Check",
"if",
"the",
"provided",
"path",
"is",
"contained",
"within",
"this",
"root",
"s",
"hierarchy",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/SymbolicRootResource.java#L195-L203 |
67,271 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/SIBUuidLength.java | SIBUuidLength.getIPAddress | private static String getIPAddress () {
String rc;
try {
rc = InetAddress.getLocalHost().getHostAddress();
} catch (Exception e) {
// No FFDC code needed
rc = Long.valueOf(new Random().nextLong()).toString();
}
return rc;
} | java | private static String getIPAddress () {
String rc;
try {
rc = InetAddress.getLocalHost().getHostAddress();
} catch (Exception e) {
// No FFDC code needed
rc = Long.valueOf(new Random().nextLong()).toString();
}
return rc;
} | [
"private",
"static",
"String",
"getIPAddress",
"(",
")",
"{",
"String",
"rc",
";",
"try",
"{",
"rc",
"=",
"InetAddress",
".",
"getLocalHost",
"(",
")",
".",
"getHostAddress",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"// No FFDC code ... | InetAddress is compatible with both IPv4 & IPv6 | [
"InetAddress",
"is",
"compatible",
"with",
"both",
"IPv4",
"&",
"IPv6"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/SIBUuidLength.java#L157-L168 |
67,272 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java | WebSecurityPropagatorImpl.getSecurityMetadata | private SecurityMetadata getSecurityMetadata(WebAppConfig webAppConfig) {
WebModuleMetaData wmmd = ((WebAppConfigExtended) webAppConfig).getMetaData();
return (SecurityMetadata) wmmd.getSecurityMetaData();
} | java | private SecurityMetadata getSecurityMetadata(WebAppConfig webAppConfig) {
WebModuleMetaData wmmd = ((WebAppConfigExtended) webAppConfig).getMetaData();
return (SecurityMetadata) wmmd.getSecurityMetaData();
} | [
"private",
"SecurityMetadata",
"getSecurityMetadata",
"(",
"WebAppConfig",
"webAppConfig",
")",
"{",
"WebModuleMetaData",
"wmmd",
"=",
"(",
"(",
"WebAppConfigExtended",
")",
"webAppConfig",
")",
".",
"getMetaData",
"(",
")",
";",
"return",
"(",
"SecurityMetadata",
"... | Gets the security metadata from the web app config
@param webAppConfig the webAppConfig representing the deployed module
@return the security metadata | [
"Gets",
"the",
"security",
"metadata",
"from",
"the",
"web",
"app",
"config"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java#L560-L563 |
67,273 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java | WebSecurityPropagatorImpl.isDenyUncoveredHttpMethods | private boolean isDenyUncoveredHttpMethods(List<SecurityConstraint> scList) {
for (SecurityConstraint sc : scList) {
List<WebResourceCollection> wrcList = sc.getWebResourceCollections();
for (WebResourceCollection wrc : wrcList) {
if (wrc.getDenyUncoveredHttpMethods()) {
... | java | private boolean isDenyUncoveredHttpMethods(List<SecurityConstraint> scList) {
for (SecurityConstraint sc : scList) {
List<WebResourceCollection> wrcList = sc.getWebResourceCollections();
for (WebResourceCollection wrc : wrcList) {
if (wrc.getDenyUncoveredHttpMethods()) {
... | [
"private",
"boolean",
"isDenyUncoveredHttpMethods",
"(",
"List",
"<",
"SecurityConstraint",
">",
"scList",
")",
"{",
"for",
"(",
"SecurityConstraint",
"sc",
":",
"scList",
")",
"{",
"List",
"<",
"WebResourceCollection",
">",
"wrcList",
"=",
"sc",
".",
"getWebRes... | Returns whether deny-uncovered-http-methods attribute is set.
In order to check this value, entire WebResourceCollection objects need to be examined,
since it only set properly when web.xml is processed.
@param scList the List of SecurityConstraint objects.
@return true if deny-uncovered-http-methods attribute is set,... | [
"Returns",
"whether",
"deny",
"-",
"uncovered",
"-",
"http",
"-",
"methods",
"attribute",
"is",
"set",
".",
"In",
"order",
"to",
"check",
"this",
"value",
"entire",
"WebResourceCollection",
"objects",
"need",
"to",
"be",
"examined",
"since",
"it",
"only",
"s... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java#L573-L583 |
67,274 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.createConnectionFactory | @Override
public final DataSource createConnectionFactory(ConnectionManager connMgr) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "createConnectionFactory", connMgr);
DataSource connFactory = jdbcR... | java | @Override
public final DataSource createConnectionFactory(ConnectionManager connMgr) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "createConnectionFactory", connMgr);
DataSource connFactory = jdbcR... | [
"@",
"Override",
"public",
"final",
"DataSource",
"createConnectionFactory",
"(",
"ConnectionManager",
"connMgr",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
... | Creates a javax.sql.DataSource that uses the application server provided
connection manager to manage its connections.
@param ConnectionManager connMgr - An application server provided ConnectionManager.
@return a new instance of WSJdbcDataSource or a subclass of it pertaining to a particular JDBC spec level. | [
"Creates",
"a",
"javax",
".",
"sql",
".",
"DataSource",
"that",
"uses",
"the",
"application",
"server",
"provided",
"connection",
"manager",
"to",
"manage",
"its",
"connections",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L352-L364 |
67,275 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getConnection | private Connection getConnection(PooledConnection pconn, WSConnectionRequestInfoImpl cri, String userName) throws ResourceException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getConnection", AdapterUtil.toSt... | java | private Connection getConnection(PooledConnection pconn, WSConnectionRequestInfoImpl cri, String userName) throws ResourceException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getConnection", AdapterUtil.toSt... | [
"private",
"Connection",
"getConnection",
"(",
"PooledConnection",
"pconn",
",",
"WSConnectionRequestInfoImpl",
"cri",
",",
"String",
"userName",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Gets a java.sql.Connection from a PooledConnection, use the cri to extract certain information
if needed, if trused context is supported, ...
@param PooledConnection pconn - the PooledConnection
@param WSConnectionRequestInfoImpl -- the cri
@param userName the user name for the connection, or NULL if unspecified.
@ret... | [
"Gets",
"a",
"java",
".",
"sql",
".",
"Connection",
"from",
"a",
"PooledConnection",
"use",
"the",
"cri",
"to",
"extract",
"certain",
"information",
"if",
"needed",
"if",
"trused",
"context",
"is",
"supported",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L705-L742 |
67,276 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getInvalidConnections | @Override
public Set<ManagedConnection> getInvalidConnections(@SuppressWarnings("rawtypes") Set connectionSet) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getInvalidConnections", co... | java | @Override
public Set<ManagedConnection> getInvalidConnections(@SuppressWarnings("rawtypes") Set connectionSet) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getInvalidConnections", co... | [
"@",
"Override",
"public",
"Set",
"<",
"ManagedConnection",
">",
"getInvalidConnections",
"(",
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"Set",
"connectionSet",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
... | The spec interface is defined with raw types, so we have no choice but to declare it that way, too | [
"The",
"spec",
"interface",
"is",
"defined",
"with",
"raw",
"types",
"so",
"we",
"have",
"no",
"choice",
"but",
"to",
"declare",
"it",
"that",
"way",
"too"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1047-L1071 |
67,277 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getTraceable | private Object getTraceable(Object d) throws ResourceException {
WSJdbcTracer tracer = new WSJdbcTracer(helper.getTracer(), helper.getPrintWriter(), d, type, null, true);
Set<Class<?>> classes = new HashSet<Class<?>>();
for (Class<?> cl = d.getClass(); cl != null; cl = cl.getSuperclass())
... | java | private Object getTraceable(Object d) throws ResourceException {
WSJdbcTracer tracer = new WSJdbcTracer(helper.getTracer(), helper.getPrintWriter(), d, type, null, true);
Set<Class<?>> classes = new HashSet<Class<?>>();
for (Class<?> cl = d.getClass(); cl != null; cl = cl.getSuperclass())
... | [
"private",
"Object",
"getTraceable",
"(",
"Object",
"d",
")",
"throws",
"ResourceException",
"{",
"WSJdbcTracer",
"tracer",
"=",
"new",
"WSJdbcTracer",
"(",
"helper",
".",
"getTracer",
"(",
")",
",",
"helper",
".",
"getPrintWriter",
"(",
")",
",",
"d",
",",
... | Enable supplemental tracing for the underlying data source or java.sql.Driver.
@param d the underlying data source or driver.
@return a data source or driver enabled for supplemental trace.
@throws ResourceException if an error occurs obtaining the print writer. | [
"Enable",
"supplemental",
"tracing",
"for",
"the",
"underlying",
"data",
"source",
"or",
"java",
".",
"sql",
".",
"Driver",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1081-L1091 |
67,278 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.onConnect | private void onConnect(Connection con, String[] sqlCommands) throws SQLException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
TransactionManager tm = connectorSvc.getTransactionManager();
Transaction suspendedTx = null;
String currentSQL = null;
Throwable failur... | java | private void onConnect(Connection con, String[] sqlCommands) throws SQLException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
TransactionManager tm = connectorSvc.getTransactionManager();
Transaction suspendedTx = null;
String currentSQL = null;
Throwable failur... | [
"private",
"void",
"onConnect",
"(",
"Connection",
"con",
",",
"String",
"[",
"]",
"sqlCommands",
")",
"throws",
"SQLException",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"TransactionManager",
"tm",
"=",
... | Execute the onConnect SQL commands. The connection won't be enlisted in a WAS transaction yet,
but it's necessary to suspend and WAS global transaction in order to avoid confusing the
DB2 type 2 JDBC driver.
@param con the connection
@param sqlCommands ordered list of SQL commands to run on the connection.
@throws SQL... | [
"Execute",
"the",
"onConnect",
"SQL",
"commands",
".",
"The",
"connection",
"won",
"t",
"be",
"enlisted",
"in",
"a",
"WAS",
"transaction",
"yet",
"but",
"it",
"s",
"necessary",
"to",
"suspend",
"and",
"WAS",
"global",
"transaction",
"in",
"order",
"to",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1241-L1278 |
67,279 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.postGetConnectionHandling | private void postGetConnectionHandling(Connection conn) throws SQLException {
helper.doConnectionSetup(conn);
String[] sqlCommands = dsConfig.get().onConnect;
if (sqlCommands != null && sqlCommands.length > 0)
onConnect(conn, sqlCommands);
// Log the database and driver ver... | java | private void postGetConnectionHandling(Connection conn) throws SQLException {
helper.doConnectionSetup(conn);
String[] sqlCommands = dsConfig.get().onConnect;
if (sqlCommands != null && sqlCommands.length > 0)
onConnect(conn, sqlCommands);
// Log the database and driver ver... | [
"private",
"void",
"postGetConnectionHandling",
"(",
"Connection",
"conn",
")",
"throws",
"SQLException",
"{",
"helper",
".",
"doConnectionSetup",
"(",
"conn",
")",
";",
"String",
"[",
"]",
"sqlCommands",
"=",
"dsConfig",
".",
"get",
"(",
")",
".",
"onConnect"... | utility used to gather metadata info and issue doConnectionSetup. | [
"utility",
"used",
"to",
"gather",
"metadata",
"info",
"and",
"issue",
"doConnectionSetup",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1283-L1298 |
67,280 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.reallySetLogWriter | final void reallySetLogWriter(final PrintWriter out) throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setting the logWriter to:", out);
if (dataSourceOrDriver != null) {
try {
AccessController.doPrivi... | java | final void reallySetLogWriter(final PrintWriter out) throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setting the logWriter to:", out);
if (dataSourceOrDriver != null) {
try {
AccessController.doPrivi... | [
"final",
"void",
"reallySetLogWriter",
"(",
"final",
"PrintWriter",
"out",
")",
"throws",
"ResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
... | This method is to be used by RRA code to set logwriter when needed | [
"This",
"method",
"is",
"to",
"be",
"used",
"by",
"RRA",
"code",
"to",
"set",
"logwriter",
"when",
"needed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1337-L1362 |
67,281 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getLoginTimeout | public final int getLoginTimeout() throws SQLException {
try {
if(!Driver.class.equals(type)) {
return ((CommonDataSource) dataSourceOrDriver).getLoginTimeout();
}
//Return that the default value is being used when using the Driver type
return 0;
... | java | public final int getLoginTimeout() throws SQLException {
try {
if(!Driver.class.equals(type)) {
return ((CommonDataSource) dataSourceOrDriver).getLoginTimeout();
}
//Return that the default value is being used when using the Driver type
return 0;
... | [
"public",
"final",
"int",
"getLoginTimeout",
"(",
")",
"throws",
"SQLException",
"{",
"try",
"{",
"if",
"(",
"!",
"Driver",
".",
"class",
".",
"equals",
"(",
"type",
")",
")",
"{",
"return",
"(",
"(",
"CommonDataSource",
")",
"dataSourceOrDriver",
")",
"... | Retrieves the login timeout for the DataSource.
@return the login timeout for the DataSource. | [
"Retrieves",
"the",
"login",
"timeout",
"for",
"the",
"DataSource",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1422-L1433 |
67,282 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelBasicFormatter.java | HpelBasicFormatter.formatRecord | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
StringBuilder sb = new StringBuilder(300);
String lineSeparatorPlusPadding = "";
// Use basic format
createEventHeader(record, sb);
l... | java | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
StringBuilder sb = new StringBuilder(300);
String lineSeparatorPlusPadding = "";
// Use basic format
createEventHeader(record, sb);
l... | [
"@",
"Override",
"public",
"String",
"formatRecord",
"(",
"RepositoryLogRecord",
"record",
",",
"Locale",
"locale",
")",
"{",
"if",
"(",
"null",
"==",
"record",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Record cannot be null\"",
")",
";",
"}"... | Formats a RepositoryLogRecord into a localized basic format output String.
@param record the RepositoryLogRecord to be formatted
@param locale the Locale to use for localization when formatting this record.
@return the formated string output. | [
"Formats",
"a",
"RepositoryLogRecord",
"into",
"a",
"localized",
"basic",
"format",
"output",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelBasicFormatter.java#L36-L58 |
67,283 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java | GlobalTagLibraryCache.loadTldFromClassloader | private void loadTldFromClassloader(GlobalTagLibConfig globalTagLibConfig, TldParser tldParser) {
for (Iterator itr = globalTagLibConfig.getTldPathList().iterator(); itr.hasNext();) {
TldPathConfig tldPathConfig = (TldPathConfig) itr.next();
InputStream is = globalTagLibConfig.getClasslo... | java | private void loadTldFromClassloader(GlobalTagLibConfig globalTagLibConfig, TldParser tldParser) {
for (Iterator itr = globalTagLibConfig.getTldPathList().iterator(); itr.hasNext();) {
TldPathConfig tldPathConfig = (TldPathConfig) itr.next();
InputStream is = globalTagLibConfig.getClasslo... | [
"private",
"void",
"loadTldFromClassloader",
"(",
"GlobalTagLibConfig",
"globalTagLibConfig",
",",
"TldParser",
"tldParser",
")",
"{",
"for",
"(",
"Iterator",
"itr",
"=",
"globalTagLibConfig",
".",
"getTldPathList",
"(",
")",
".",
"iterator",
"(",
")",
";",
"itr",... | Added by DJV for Liberty - we don't want to depend on the taglib coming from a jar on our
class path if we can avoid it, so this version uses the classloader specified by the povided
taglib config to find and read the TLDs from that taglib config.
@param globalTagLibConfig The global taglib config from which to parse ... | [
"Added",
"by",
"DJV",
"for",
"Liberty",
"-",
"we",
"don",
"t",
"want",
"to",
"depend",
"on",
"the",
"taglib",
"coming",
"from",
"a",
"jar",
"on",
"our",
"class",
"path",
"if",
"we",
"can",
"avoid",
"it",
"so",
"this",
"version",
"uses",
"the",
"class... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java#L550-L586 |
67,284 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java | GlobalTagLibraryCache.addGlobalTagLibConfig | public void addGlobalTagLibConfig(GlobalTagLibConfig globalTagLibConfig) {
try {
TldParser tldParser = new TldParser(this, configManager, false, globalTagLibConfig.getClassloader());
if (globalTagLibConfig.getClassloader() == null)
loadTldFromJarInputStream(globalTagLibC... | java | public void addGlobalTagLibConfig(GlobalTagLibConfig globalTagLibConfig) {
try {
TldParser tldParser = new TldParser(this, configManager, false, globalTagLibConfig.getClassloader());
if (globalTagLibConfig.getClassloader() == null)
loadTldFromJarInputStream(globalTagLibC... | [
"public",
"void",
"addGlobalTagLibConfig",
"(",
"GlobalTagLibConfig",
"globalTagLibConfig",
")",
"{",
"try",
"{",
"TldParser",
"tldParser",
"=",
"new",
"TldParser",
"(",
"this",
",",
"configManager",
",",
"false",
",",
"globalTagLibConfig",
".",
"getClassloader",
"(... | add some GlobalTabLibConfig to the global tag libs we know about. If the provided
config provides a classloader, we will load the TLDs via that class loaders, otherwise the
JAR URL will be used to find the TLDs.
@param globalTagLibConfig The global tag lib config | [
"add",
"some",
"GlobalTabLibConfig",
"to",
"the",
"global",
"tag",
"libs",
"we",
"know",
"about",
".",
"If",
"the",
"provided",
"config",
"provides",
"a",
"classloader",
"we",
"will",
"load",
"the",
"TLDs",
"via",
"that",
"class",
"loaders",
"otherwise",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java#L596-L612 |
67,285 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/ClientConnectionManager.java | ClientConnectionManager.getRef | public static synchronized ClientConnectionManager getRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRef");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRef", instance);
return instan... | java | public static synchronized ClientConnectionManager getRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRef");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRef", instance);
return instan... | [
"public",
"static",
"synchronized",
"ClientConnectionManager",
"getRef",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getRef\"",
... | Returns a reference to the single instance of this class in existence.
The class must have been previously initilised by a call to the
"initialise" method - otherwise invoking this method will generate a
runtime exception.
This class implements the singleton design pattern.
@return ChannelFramework A reference to the ... | [
"Returns",
"a",
"reference",
"to",
"the",
"single",
"instance",
"of",
"this",
"class",
"in",
"existence",
".",
"The",
"class",
"must",
"have",
"been",
"previously",
"initilised",
"by",
"a",
"call",
"to",
"the",
"initialise",
"method",
"-",
"otherwise",
"invo... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/ClientConnectionManager.java#L131-L138 |
67,286 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java | StatsImpl.getStatistic | @Override
public WSStatistic getStatistic(int dataId) {
ArrayList members = copyStatistics();
if (members == null || members.size() <= 0)
return null;
int sz = members.size();
for (int i = 0; i < sz; i++) {
StatisticImpl data = (StatisticImpl) members.get(i);... | java | @Override
public WSStatistic getStatistic(int dataId) {
ArrayList members = copyStatistics();
if (members == null || members.size() <= 0)
return null;
int sz = members.size();
for (int i = 0; i < sz; i++) {
StatisticImpl data = (StatisticImpl) members.get(i);... | [
"@",
"Override",
"public",
"WSStatistic",
"getStatistic",
"(",
"int",
"dataId",
")",
"{",
"ArrayList",
"members",
"=",
"copyStatistics",
"(",
")",
";",
"if",
"(",
"members",
"==",
"null",
"||",
"members",
".",
"size",
"(",
")",
"<=",
"0",
")",
"return",
... | get Statistic by data id | [
"get",
"Statistic",
"by",
"data",
"id"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java#L194-L208 |
67,287 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java | StatsImpl.myupdate | private synchronized void myupdate(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
if (newStats == null)
return;
StatsImpl newStats1 = (StatsImpl) newStats;
// update the level and description of this collection
this.instrumentationLevel = newStats1.getLevel();... | java | private synchronized void myupdate(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
if (newStats == null)
return;
StatsImpl newStats1 = (StatsImpl) newStats;
// update the level and description of this collection
this.instrumentationLevel = newStats1.getLevel();... | [
"private",
"synchronized",
"void",
"myupdate",
"(",
"WSStats",
"newStats",
",",
"boolean",
"keepOld",
",",
"boolean",
"recursiveUpdate",
")",
"{",
"if",
"(",
"newStats",
"==",
"null",
")",
"return",
";",
"StatsImpl",
"newStats1",
"=",
"(",
"StatsImpl",
")",
... | Assume we have verified newStats is the same PMI module as this Stats | [
"Assume",
"we",
"have",
"verified",
"newStats",
"is",
"the",
"same",
"PMI",
"module",
"as",
"this",
"Stats"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java#L639-L653 |
67,288 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.insert | public void insert(SimpleTest test, Object target) {
if (size == ranges.length) {
RangeEntry[] tmp = new RangeEntry[2*size];
System.arraycopy(ranges,0,tmp,0,size);
ranges = tmp;
}
ranges[size] = new RangeEntry(test, target);
size++;
} | java | public void insert(SimpleTest test, Object target) {
if (size == ranges.length) {
RangeEntry[] tmp = new RangeEntry[2*size];
System.arraycopy(ranges,0,tmp,0,size);
ranges = tmp;
}
ranges[size] = new RangeEntry(test, target);
size++;
} | [
"public",
"void",
"insert",
"(",
"SimpleTest",
"test",
",",
"Object",
"target",
")",
"{",
"if",
"(",
"size",
"==",
"ranges",
".",
"length",
")",
"{",
"RangeEntry",
"[",
"]",
"tmp",
"=",
"new",
"RangeEntry",
"[",
"2",
"*",
"size",
"]",
";",
"System",
... | Insert a range and an associated target into the table.
@param test a SimpleTest of kind==NUMERIC containing the range
@param target The target associated with the range. | [
"Insert",
"a",
"range",
"and",
"an",
"associated",
"target",
"into",
"the",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L47-L56 |
67,289 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.getExact | public Object getExact(SimpleTest test) {
for (int i = 0; i < size; i++) {
if (ranges[i].correspondsTo(test))
return ranges[i].target;
}
return null;
} | java | public Object getExact(SimpleTest test) {
for (int i = 0; i < size; i++) {
if (ranges[i].correspondsTo(test))
return ranges[i].target;
}
return null;
} | [
"public",
"Object",
"getExact",
"(",
"SimpleTest",
"test",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"if",
"(",
"ranges",
"[",
"i",
"]",
".",
"correspondsTo",
"(",
"test",
")",
")",
"return",
"... | Retrieve the Object associated with an exactly defined range | [
"Retrieve",
"the",
"Object",
"associated",
"with",
"an",
"exactly",
"defined",
"range"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L60-L66 |
67,290 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.replace | public void replace(SimpleTest test, Object target) {
for (int i = 0; i < size; i++)
if (ranges[i].correspondsTo(test)) {
ranges[i].target = target;
return;
}
throw new IllegalStateException();
} | java | public void replace(SimpleTest test, Object target) {
for (int i = 0; i < size; i++)
if (ranges[i].correspondsTo(test)) {
ranges[i].target = target;
return;
}
throw new IllegalStateException();
} | [
"public",
"void",
"replace",
"(",
"SimpleTest",
"test",
",",
"Object",
"target",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"if",
"(",
"ranges",
"[",
"i",
"]",
".",
"correspondsTo",
"(",
"test",
")",
... | Replace the Object in a range that is known to exist | [
"Replace",
"the",
"Object",
"in",
"a",
"range",
"that",
"is",
"known",
"to",
"exist"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L70-L77 |
67,291 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.find | public List find(Number value) { // was NumericValue
List targets = new ArrayList(1);
for (int i = 0; i < size; i++) {
if (ranges[i].contains(value))
targets.add(ranges[i].target);
}
return targets;
} | java | public List find(Number value) { // was NumericValue
List targets = new ArrayList(1);
for (int i = 0; i < size; i++) {
if (ranges[i].contains(value))
targets.add(ranges[i].target);
}
return targets;
} | [
"public",
"List",
"find",
"(",
"Number",
"value",
")",
"{",
"// was NumericValue",
"List",
"targets",
"=",
"new",
"ArrayList",
"(",
"1",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"if",
"(",
"rang... | Find targets associated with all ranges including this value.
@param value Value to search for.
@return List of all targets found. | [
"Find",
"targets",
"associated",
"with",
"all",
"ranges",
"including",
"this",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L85-L94 |
67,292 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/XMLConfigParser.java | XMLConfigParser.parseServerConfiguration | @FFDCIgnore(XMLStreamException.class)
public boolean parseServerConfiguration(InputStream in, String docLocation, BaseConfiguration config,
MergeBehavior mergeBehavior) throws ConfigParserException, ConfigValidationException {
XMLStreamReader parser = null;
... | java | @FFDCIgnore(XMLStreamException.class)
public boolean parseServerConfiguration(InputStream in, String docLocation, BaseConfiguration config,
MergeBehavior mergeBehavior) throws ConfigParserException, ConfigValidationException {
XMLStreamReader parser = null;
... | [
"@",
"FFDCIgnore",
"(",
"XMLStreamException",
".",
"class",
")",
"public",
"boolean",
"parseServerConfiguration",
"(",
"InputStream",
"in",
",",
"String",
"docLocation",
",",
"BaseConfiguration",
"config",
",",
"MergeBehavior",
"mergeBehavior",
")",
"throws",
"ConfigP... | private if not for tests | [
"private",
"if",
"not",
"for",
"tests"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/XMLConfigParser.java#L175-L193 |
67,293 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | public void start(QueuedFuture<?> queuedFuture) {
Runnable timeoutTask = () -> {
queuedFuture.abort(new TimeoutException());
};
start(timeoutTask);
} | java | public void start(QueuedFuture<?> queuedFuture) {
Runnable timeoutTask = () -> {
queuedFuture.abort(new TimeoutException());
};
start(timeoutTask);
} | [
"public",
"void",
"start",
"(",
"QueuedFuture",
"<",
"?",
">",
"queuedFuture",
")",
"{",
"Runnable",
"timeoutTask",
"=",
"(",
")",
"->",
"{",
"queuedFuture",
".",
"abort",
"(",
"new",
"TimeoutException",
"(",
")",
")",
";",
"}",
";",
"start",
"(",
"tim... | start timer and cancel given future | [
"start",
"timer",
"and",
"cancel",
"given",
"future"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L72-L78 |
67,294 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.timeout | private void timeout() {
lock.writeLock().lock();
try {
//if already stopped, do nothing, otherwise check times and run the timeout task
if (!this.stopped) {
long now = System.nanoTime();
long remaining = this.targetEnd - now;
this.... | java | private void timeout() {
lock.writeLock().lock();
try {
//if already stopped, do nothing, otherwise check times and run the timeout task
if (!this.stopped) {
long now = System.nanoTime();
long remaining = this.targetEnd - now;
this.... | [
"private",
"void",
"timeout",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"//if already stopped, do nothing, otherwise check times and run the timeout task",
"if",
"(",
"!",
"this",
".",
"stopped",
")",
"{",
"long",... | This method is run when the timer pops | [
"This",
"method",
"is",
"run",
"when",
"the",
"timer",
"pops"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L83-L112 |
67,295 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | private void start(Runnable timeoutTask) {
long timeout = timeoutPolicy.getTimeout().toNanos();
start(timeoutTask, timeout);
} | java | private void start(Runnable timeoutTask) {
long timeout = timeoutPolicy.getTimeout().toNanos();
start(timeoutTask, timeout);
} | [
"private",
"void",
"start",
"(",
"Runnable",
"timeoutTask",
")",
"{",
"long",
"timeout",
"=",
"timeoutPolicy",
".",
"getTimeout",
"(",
")",
".",
"toNanos",
"(",
")",
";",
"start",
"(",
"timeoutTask",
",",
"timeout",
")",
";",
"}"
] | Get the timeout from the policy and start the timer
@param timeoutTask | [
"Get",
"the",
"timeout",
"from",
"the",
"policy",
"and",
"start",
"the",
"timer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L119-L122 |
67,296 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | private void start(Runnable timeoutTask, long remainingNanos) {
lock.writeLock().lock();
try {
this.timeoutTask = timeoutTask;
this.start = System.nanoTime();
this.targetEnd = start + remainingNanos;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | java | private void start(Runnable timeoutTask, long remainingNanos) {
lock.writeLock().lock();
try {
this.timeoutTask = timeoutTask;
this.start = System.nanoTime();
this.targetEnd = start + remainingNanos;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | [
"private",
"void",
"start",
"(",
"Runnable",
"timeoutTask",
",",
"long",
"remainingNanos",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"this",
".",
"timeoutTask",
"=",
"timeoutTask",
";",
"this",
".",
"start",
... | This is the method which actually starts the timer
WARNING: This method uses System.nanoTime(). nanoTime is a point in time relative to an arbitrary point (fixed at runtime).
As a result, it could be positive or negative and will not bare any relation to the actual time ... it's just a relative measure.
Also, since it... | [
"This",
"is",
"the",
"method",
"which",
"actually",
"starts",
"the",
"timer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L136-L163 |
67,297 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.stop | public void stop() {
lock.writeLock().lock();
try {
debugRelativeTime("Stop!");
this.stopped = true;
if (this.future != null && !this.future.isDone()) {
debugRelativeTime("Cancelling");
this.future.cancel(true);
}
... | java | public void stop() {
lock.writeLock().lock();
try {
debugRelativeTime("Stop!");
this.stopped = true;
if (this.future != null && !this.future.isDone()) {
debugRelativeTime("Cancelling");
this.future.cancel(true);
}
... | [
"public",
"void",
"stop",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"debugRelativeTime",
"(",
"\"Stop!\"",
")",
";",
"this",
".",
"stopped",
"=",
"true",
";",
"if",
"(",
"this",
".",
"future",
"!=",
... | Stop the timeout ... mark it as stopped and cancel the scheduled future task if required | [
"Stop",
"the",
"timeout",
"...",
"mark",
"it",
"as",
"stopped",
"and",
"cancel",
"the",
"scheduled",
"future",
"task",
"if",
"required"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L168-L182 |
67,298 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.restart | public void restart() {
lock.writeLock().lock();
try {
if (this.timeoutTask == null) {
throw new IllegalStateException(Tr.formatMessage(tc, "internal.error.CWMFT4999E"));
}
stop();
this.stopped = false;
start(this.timeoutTask);
... | java | public void restart() {
lock.writeLock().lock();
try {
if (this.timeoutTask == null) {
throw new IllegalStateException(Tr.formatMessage(tc, "internal.error.CWMFT4999E"));
}
stop();
this.stopped = false;
start(this.timeoutTask);
... | [
"public",
"void",
"restart",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"this",
".",
"timeoutTask",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"Tr",
".",
"formatMes... | Restart the timer ... stop the timer, reset the stopped flag and then start again with the same timeout policy | [
"Restart",
"the",
"timer",
"...",
"stop",
"the",
"timer",
"reset",
"the",
"stopped",
"flag",
"and",
"then",
"start",
"again",
"with",
"the",
"same",
"timeout",
"policy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L197-L209 |
67,299 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.check | public long check() {
long remaining = 0;
lock.readLock().lock();
try {
if (this.timedout) {
// Note: this clears the interrupted flag if it was set
// Assumption is that the interruption was caused by the Timeout
boolean wasInterrupted... | java | public long check() {
long remaining = 0;
lock.readLock().lock();
try {
if (this.timedout) {
// Note: this clears the interrupted flag if it was set
// Assumption is that the interruption was caused by the Timeout
boolean wasInterrupted... | [
"public",
"long",
"check",
"(",
")",
"{",
"long",
"remaining",
"=",
"0",
";",
"lock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"this",
".",
"timedout",
")",
"{",
"// Note: this clears the interrupted flag if it was set"... | Check if the timedout flag was previously set and throw an exception if it was.
Otherwise, return the remaining timeout time, in nanoseconds.
@return the time remaining, in nanoseconds | [
"Check",
"if",
"the",
"timedout",
"flag",
"was",
"previously",
"set",
"and",
"throw",
"an",
"exception",
"if",
"it",
"was",
".",
"Otherwise",
"return",
"the",
"remaining",
"timeout",
"time",
"in",
"nanoseconds",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L244-L276 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.