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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
65,800 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java | HTODDependencyTable.replace | public int replace(Object dependency, ValueSet valueSet) {
int returnCode = HTODDynacache.NO_EXCEPTION;
dependencyNotUpdatedTable.remove(dependency);
if (valueSet != null && valueSet.size() > this.delayOffloadEntriesLimit) {
dependencyToEntryTable.remove(dependency);
if (... | java | public int replace(Object dependency, ValueSet valueSet) {
int returnCode = HTODDynacache.NO_EXCEPTION;
dependencyNotUpdatedTable.remove(dependency);
if (valueSet != null && valueSet.size() > this.delayOffloadEntriesLimit) {
dependencyToEntryTable.remove(dependency);
if (... | [
"public",
"int",
"replace",
"(",
"Object",
"dependency",
",",
"ValueSet",
"valueSet",
")",
"{",
"int",
"returnCode",
"=",
"HTODDynacache",
".",
"NO_EXCEPTION",
";",
"dependencyNotUpdatedTable",
".",
"remove",
"(",
"dependency",
")",
";",
"if",
"(",
"valueSet",
... | This replaces the existing dependency with new valueSet in DependencyToEntryTable.
@param dependency The dependency.
@param valueSet containing new entries for this dependency. | [
"This",
"replaces",
"the",
"existing",
"dependency",
"with",
"new",
"valueSet",
"in",
"DependencyToEntryTable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L132-L160 |
65,801 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java | HTODDependencyTable.removeEntry | public Result removeEntry(Object dependency, Object entry) {
Result result = this.htod.getFromResultPool();
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return result;
}
result.bExist = HTODDynacache.EXIST;
va... | java | public Result removeEntry(Object dependency, Object entry) {
Result result = this.htod.getFromResultPool();
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return result;
}
result.bExist = HTODDynacache.EXIST;
va... | [
"public",
"Result",
"removeEntry",
"(",
"Object",
"dependency",
",",
"Object",
"entry",
")",
"{",
"Result",
"result",
"=",
"this",
".",
"htod",
".",
"getFromResultPool",
"(",
")",
";",
"ValueSet",
"valueSet",
"=",
"(",
"ValueSet",
")",
"dependencyToEntryTable"... | This removes the specified entry from the specified dependency.
@param dependency The dependency.
@param result | [
"This",
"removes",
"the",
"specified",
"entry",
"from",
"the",
"specified",
"dependency",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L179-L199 |
65,802 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java | HTODDependencyTable.getEntries | public ValueSet getEntries(Object dependency) {
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
return valueSet;
} | java | public ValueSet getEntries(Object dependency) {
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
return valueSet;
} | [
"public",
"ValueSet",
"getEntries",
"(",
"Object",
"dependency",
")",
"{",
"ValueSet",
"valueSet",
"=",
"(",
"ValueSet",
")",
"dependencyToEntryTable",
".",
"get",
"(",
"dependency",
")",
";",
"return",
"valueSet",
";",
"}"
] | This returns the ValueSet for the specified dependency from the DependencyToEntryTable.
@param dependency The dependency to get the entries for.
@return The ValueSet containing all entries for this dependency. | [
"This",
"returns",
"the",
"ValueSet",
"for",
"the",
"specified",
"dependency",
"from",
"the",
"DependencyToEntryTable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L233-L237 |
65,803 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java | HTODDependencyTable.reduceTableSize | private int reduceTableSize() {
int returnCode = HTODDynacache.NO_EXCEPTION;
int count = this.entryRemove;
if (count > 0) {
int removeSize = 5;
while (count > 0) {
int minSize = Integer.MAX_VALUE;
Iterator<Map.Entry<Object,Set<Object>>> e = dep... | java | private int reduceTableSize() {
int returnCode = HTODDynacache.NO_EXCEPTION;
int count = this.entryRemove;
if (count > 0) {
int removeSize = 5;
while (count > 0) {
int minSize = Integer.MAX_VALUE;
Iterator<Map.Entry<Object,Set<Object>>> e = dep... | [
"private",
"int",
"reduceTableSize",
"(",
")",
"{",
"int",
"returnCode",
"=",
"HTODDynacache",
".",
"NO_EXCEPTION",
";",
"int",
"count",
"=",
"this",
".",
"entryRemove",
";",
"if",
"(",
"count",
">",
"0",
")",
"{",
"int",
"removeSize",
"=",
"5",
";",
"... | This reduces the DependencyToEntryTable size by offloading some dependencies to the disk. | [
"This",
"reduces",
"the",
"DependencyToEntryTable",
"size",
"by",
"offloading",
"some",
"dependencies",
"to",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L265-L316 |
65,804 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/generator/ComponentImplGenerator.java | ComponentImplGenerator.getClassName | private static String getClassName(String implClassName) {
implClassName = implClassName.substring(0, implClassName.length() - 4);
return implClassName + "ComponentImpl";
} | java | private static String getClassName(String implClassName) {
implClassName = implClassName.substring(0, implClassName.length() - 4);
return implClassName + "ComponentImpl";
} | [
"private",
"static",
"String",
"getClassName",
"(",
"String",
"implClassName",
")",
"{",
"implClassName",
"=",
"implClassName",
".",
"substring",
"(",
"0",
",",
"implClassName",
".",
"length",
"(",
")",
"-",
"4",
")",
";",
"return",
"implClassName",
"+",
"\"... | The model interface type has a name ending in 'Type'. For the moment, modify it here. | [
"The",
"model",
"interface",
"type",
"has",
"a",
"name",
"ending",
"in",
"Type",
".",
"For",
"the",
"moment",
"modify",
"it",
"here",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/generator/ComponentImplGenerator.java#L45-L48 |
65,805 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java | StoppableThreadCache.registerThread | public void registerThread(StoppableThread thread)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "registerThread", thread);
synchronized (this)
{
_threadCache.add(thread);
}
if (tc.isEntryEnabled())
SibTr.exit(tc, "registerThread");
} | java | public void registerThread(StoppableThread thread)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "registerThread", thread);
synchronized (this)
{
_threadCache.add(thread);
}
if (tc.isEntryEnabled())
SibTr.exit(tc, "registerThread");
} | [
"public",
"void",
"registerThread",
"(",
"StoppableThread",
"thread",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"registerThread\"",
",",
"thread",
")",
";",
"synchronized",
"(",
"this",
")",
... | Registers a new thread for stopping | [
"Registers",
"a",
"new",
"thread",
"for",
"stopping"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java#L56-L68 |
65,806 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java | StoppableThreadCache.deregisterThread | public void deregisterThread(StoppableThread thread)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "deregisterThread", thread);
synchronized (this)
{
_threadCache.remove(thread);
}
if (tc.isEntryEnabled())
SibTr.exit(tc, "deregisterThread");
} | java | public void deregisterThread(StoppableThread thread)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "deregisterThread", thread);
synchronized (this)
{
_threadCache.remove(thread);
}
if (tc.isEntryEnabled())
SibTr.exit(tc, "deregisterThread");
} | [
"public",
"void",
"deregisterThread",
"(",
"StoppableThread",
"thread",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"deregisterThread\"",
",",
"thread",
")",
";",
"synchronized",
"(",
"this",
")... | Deregisters a thread for stopping | [
"Deregisters",
"a",
"thread",
"for",
"stopping"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java#L73-L85 |
65,807 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java | StoppableThreadCache.stopAllThreads | public void stopAllThreads()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "stopAllThreads");
synchronized (this)
{
Iterator iterator = ((ArrayList)_threadCache.clone()).iterator();
while (iterator.hasNext())
{
StoppableThread thread = (StoppableThread)iterator.... | java | public void stopAllThreads()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "stopAllThreads");
synchronized (this)
{
Iterator iterator = ((ArrayList)_threadCache.clone()).iterator();
while (iterator.hasNext())
{
StoppableThread thread = (StoppableThread)iterator.... | [
"public",
"void",
"stopAllThreads",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"stopAllThreads\"",
")",
";",
"synchronized",
"(",
"this",
")",
"{",
"Iterator",
"iterator",
"=",
"(",
"(... | Stops all the stoppable threads that haven't already been stopped | [
"Stops",
"all",
"the",
"stoppable",
"threads",
"that",
"haven",
"t",
"already",
"been",
"stopped"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java#L90-L117 |
65,808 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java | StoppableThreadCache.getThreads | public ArrayList getThreads()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "getThreads");
SibTr.exit(tc, "getThreads", _threadCache);
}
return _threadCache;
} | java | public ArrayList getThreads()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "getThreads");
SibTr.exit(tc, "getThreads", _threadCache);
}
return _threadCache;
} | [
"public",
"ArrayList",
"getThreads",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getThreads\"",
")",
";",
"SibTr",
".",
"exit",
"(",
"tc",
",",
"\"getThreads\"",
",",
"_threadCach... | Unit test hook to check on connected threads | [
"Unit",
"test",
"hook",
"to",
"check",
"on",
"connected",
"threads"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/StoppableThreadCache.java#L122-L130 |
65,809 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/SimpleRotatingSoftQueue.java | SimpleRotatingSoftQueue.getAndUpdateTail | private int getAndUpdateTail() {
int retMe;
do {
retMe = tailIndex.get();
} while (tailIndex.compareAndSet(retMe, getNext(retMe)) == false);
return retMe;
} | java | private int getAndUpdateTail() {
int retMe;
do {
retMe = tailIndex.get();
} while (tailIndex.compareAndSet(retMe, getNext(retMe)) == false);
return retMe;
} | [
"private",
"int",
"getAndUpdateTail",
"(",
")",
"{",
"int",
"retMe",
";",
"do",
"{",
"retMe",
"=",
"tailIndex",
".",
"get",
"(",
")",
";",
"}",
"while",
"(",
"tailIndex",
".",
"compareAndSet",
"(",
"retMe",
",",
"getNext",
"(",
"retMe",
")",
")",
"==... | Atomically update and return the tailIndex.
Guarantees that two threads won't simultaneously update the same slot
in the array. | [
"Atomically",
"update",
"and",
"return",
"the",
"tailIndex",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/SimpleRotatingSoftQueue.java#L60-L68 |
65,810 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/ExpiryIndex.java | ExpiryIndex.put | public boolean put(ExpirableReference expirable)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", "ObjId=" + expirable.getID() + " ET=" + expirable.getExpiryTime());
boolean reply = tree.insert(expirable);
if (reply)
{
size+... | java | public boolean put(ExpirableReference expirable)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", "ObjId=" + expirable.getID() + " ET=" + expirable.getExpiryTime());
boolean reply = tree.insert(expirable);
if (reply)
{
size+... | [
"public",
"boolean",
"put",
"(",
"ExpirableReference",
"expirable",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"put\""... | Add an ExpirableReference to the expiry index.
@param expirable an ExpirableReference.
@return true if the object was added to the index successfully. | [
"Add",
"an",
"ExpirableReference",
"to",
"the",
"expiry",
"index",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/ExpiryIndex.java#L55-L67 |
65,811 | OpenLiberty/open-liberty | dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/VersionUtils.java | VersionUtils.getAllProductInfo | protected static Map<String, ProductInfo> getAllProductInfo(File wlpInstallationDirectory) throws VersionParsingException {
File versionPropertyDirectory = new File(wlpInstallationDirectory, ProductInfo.VERSION_PROPERTY_DIRECTORY);
if (!versionPropertyDirectory.exists()) {
throw new VersionP... | java | protected static Map<String, ProductInfo> getAllProductInfo(File wlpInstallationDirectory) throws VersionParsingException {
File versionPropertyDirectory = new File(wlpInstallationDirectory, ProductInfo.VERSION_PROPERTY_DIRECTORY);
if (!versionPropertyDirectory.exists()) {
throw new VersionP... | [
"protected",
"static",
"Map",
"<",
"String",
",",
"ProductInfo",
">",
"getAllProductInfo",
"(",
"File",
"wlpInstallationDirectory",
")",
"throws",
"VersionParsingException",
"{",
"File",
"versionPropertyDirectory",
"=",
"new",
"File",
"(",
"wlpInstallationDirectory",
",... | This method will create a map of product ID to the VersionProperties for that product.
@param ex The execution context that this is being run in
@return A map of product IDs to VersionProperties.
@throws VersionParsingException If something goes wrong parsing the version files | [
"This",
"method",
"will",
"create",
"a",
"map",
"of",
"product",
"ID",
"to",
"the",
"VersionProperties",
"for",
"that",
"product",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/VersionUtils.java#L33-L74 |
65,812 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java | CanonicalStore.remove | public boolean remove(V value) {
// peek at what is in the map
K key = value.getKey();
Ref<V> ref = map.get(key);
// only try to remove the mapping if it matches the provided class loader
return (ref != null && ref.get() == value) ? map.remove(key, ref) : false;
} | java | public boolean remove(V value) {
// peek at what is in the map
K key = value.getKey();
Ref<V> ref = map.get(key);
// only try to remove the mapping if it matches the provided class loader
return (ref != null && ref.get() == value) ? map.remove(key, ref) : false;
} | [
"public",
"boolean",
"remove",
"(",
"V",
"value",
")",
"{",
"// peek at what is in the map",
"K",
"key",
"=",
"value",
".",
"getKey",
"(",
")",
";",
"Ref",
"<",
"V",
">",
"ref",
"=",
"map",
".",
"get",
"(",
"key",
")",
";",
"// only try to remove the map... | Remove any mapping for the provided id
@param id | [
"Remove",
"any",
"mapping",
"for",
"the",
"provided",
"id"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java#L55-L61 |
65,813 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java | CanonicalStore.retrieveOrCreate | public V retrieveOrCreate(K key, Factory<V> factory) {
// Clean up stale entries on every put.
// This should avoid a slow memory leak of reference objects.
this.cleanUpStaleEntries();
return retrieveOrCreate(key, factory, new FutureRef<V>());
} | java | public V retrieveOrCreate(K key, Factory<V> factory) {
// Clean up stale entries on every put.
// This should avoid a slow memory leak of reference objects.
this.cleanUpStaleEntries();
return retrieveOrCreate(key, factory, new FutureRef<V>());
} | [
"public",
"V",
"retrieveOrCreate",
"(",
"K",
"key",
",",
"Factory",
"<",
"V",
">",
"factory",
")",
"{",
"// Clean up stale entries on every put.",
"// This should avoid a slow memory leak of reference objects.",
"this",
".",
"cleanUpStaleEntries",
"(",
")",
";",
"return",... | Create a value for the given key iff one has not already been stored.
This method is safe to be called concurrently from multiple threads.
It will ensure that only one thread succeeds to create the value for the given key.
@return the created/retrieved {@link AppClassLoader} | [
"Create",
"a",
"value",
"for",
"the",
"given",
"key",
"iff",
"one",
"has",
"not",
"already",
"been",
"stored",
".",
"This",
"method",
"is",
"safe",
"to",
"be",
"called",
"concurrently",
"from",
"multiple",
"threads",
".",
"It",
"will",
"ensure",
"that",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java#L70-L75 |
65,814 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java | CanonicalStore.cleanUpStaleEntries | void cleanUpStaleEntries() {
for (KeyedRef<K, V> ref = q.poll(); ref != null; ref = q.poll()) {
map.remove(ref.getKey(), ref); // CONCURRENT remove() operation
}
} | java | void cleanUpStaleEntries() {
for (KeyedRef<K, V> ref = q.poll(); ref != null; ref = q.poll()) {
map.remove(ref.getKey(), ref); // CONCURRENT remove() operation
}
} | [
"void",
"cleanUpStaleEntries",
"(",
")",
"{",
"for",
"(",
"KeyedRef",
"<",
"K",
",",
"V",
">",
"ref",
"=",
"q",
".",
"poll",
"(",
")",
";",
"ref",
"!=",
"null",
";",
"ref",
"=",
"q",
".",
"poll",
"(",
")",
")",
"{",
"map",
".",
"remove",
"(",... | clean up stale entries | [
"clean",
"up",
"stale",
"entries"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/CanonicalStore.java#L106-L110 |
65,815 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/ArrayEnumeration.java | ArrayEnumeration.nextElement | public Object nextElement()
{
if (_array == null)
{
return null;
}
else
{
synchronized(this){
if (_index < _array.length)
{
Object obj = _array[_index];
_index++;
... | java | public Object nextElement()
{
if (_array == null)
{
return null;
}
else
{
synchronized(this){
if (_index < _array.length)
{
Object obj = _array[_index];
_index++;
... | [
"public",
"Object",
"nextElement",
"(",
")",
"{",
"if",
"(",
"_array",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"_index",
"<",
"_array",
".",
"length",
")",
"{",
"Object",
"o... | nextElement method comment. | [
"nextElement",
"method",
"comment",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/ArrayEnumeration.java#L48-L69 |
65,816 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.execute | public int execute(String[] args) {
Map<String, LevelDetails> levels = readLevels(System.getProperty("logviewer.custom.levels"));
String[] header = readHeader(System.getProperty("logviewer.custom.header"));
return execute(args, levels, header);
} | java | public int execute(String[] args) {
Map<String, LevelDetails> levels = readLevels(System.getProperty("logviewer.custom.levels"));
String[] header = readHeader(System.getProperty("logviewer.custom.header"));
return execute(args, levels, header);
} | [
"public",
"int",
"execute",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"Map",
"<",
"String",
",",
"LevelDetails",
">",
"levels",
"=",
"readLevels",
"(",
"System",
".",
"getProperty",
"(",
"\"logviewer.custom.levels\"",
")",
")",
";",
"String",
"[",
"]",
... | Runs LogViewer using values in System Properties to find custom levels and header.
@param args
- command line arguments to LogViewer
@return code indicating status of the execution: 0 on success, 1 otherwise. | [
"Runs",
"LogViewer",
"using",
"values",
"in",
"System",
"Properties",
"to",
"find",
"custom",
"levels",
"and",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L271-L276 |
65,817 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.execute | public int execute(String[] args, Map<String, LevelDetails> levels, String[] header) {
levelString = getLevelsString(levels);
RepositoryReaderImpl logRepository;
try {
// Parse the command line arguments and validate arguments
if (parseCmdLineArgs(args) || validateSetti... | java | public int execute(String[] args, Map<String, LevelDetails> levels, String[] header) {
levelString = getLevelsString(levels);
RepositoryReaderImpl logRepository;
try {
// Parse the command line arguments and validate arguments
if (parseCmdLineArgs(args) || validateSetti... | [
"public",
"int",
"execute",
"(",
"String",
"[",
"]",
"args",
",",
"Map",
"<",
"String",
",",
"LevelDetails",
">",
"levels",
",",
"String",
"[",
"]",
"header",
")",
"{",
"levelString",
"=",
"getLevelsString",
"(",
"levels",
")",
";",
"RepositoryReaderImpl",... | Runs LogViewer.
@param args command line arguments to LogViewer
@param levels map of custom level names to their attributes
@param header custom header template as an array of strings
@return code indicating status of the execution: 0 on success, 1 otherwise. | [
"Runs",
"LogViewer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L286-L349 |
65,818 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.collectAllKids | private long collectAllKids(ArrayList<DisplayInstance> result, ServerInstanceLogRecordList list) {
long timestamp = -1;
RepositoryLogRecord first = list.iterator().next();
if (first != null) {
timestamp = first.getMillis();
}
for (Entry<String, ServerInstanceLogReco... | java | private long collectAllKids(ArrayList<DisplayInstance> result, ServerInstanceLogRecordList list) {
long timestamp = -1;
RepositoryLogRecord first = list.iterator().next();
if (first != null) {
timestamp = first.getMillis();
}
for (Entry<String, ServerInstanceLogReco... | [
"private",
"long",
"collectAllKids",
"(",
"ArrayList",
"<",
"DisplayInstance",
">",
"result",
",",
"ServerInstanceLogRecordList",
"list",
")",
"{",
"long",
"timestamp",
"=",
"-",
"1",
";",
"RepositoryLogRecord",
"first",
"=",
"list",
".",
"iterator",
"(",
")",
... | collects all descendant instances into an array and calculates largest timestamp
of their first records.
@param result array to add all descendant instances to.
@param list the root instance result.
@return largest timestamp among first record timestamps. | [
"collects",
"all",
"descendant",
"instances",
"into",
"an",
"array",
"and",
"calculates",
"largest",
"timestamp",
"of",
"their",
"first",
"records",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L1022-L1043 |
65,819 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.createLevelByString | private Level createLevelByString(String levelString) throws IllegalArgumentException {
try {
return Level.parse(levelString.toUpperCase());
//return WsLevel.parse(levelString.toUpperCase());
} catch (Exception npe) {
throw new IllegalArgumentException(getLocalizedPar... | java | private Level createLevelByString(String levelString) throws IllegalArgumentException {
try {
return Level.parse(levelString.toUpperCase());
//return WsLevel.parse(levelString.toUpperCase());
} catch (Exception npe) {
throw new IllegalArgumentException(getLocalizedPar... | [
"private",
"Level",
"createLevelByString",
"(",
"String",
"levelString",
")",
"throws",
"IllegalArgumentException",
"{",
"try",
"{",
"return",
"Level",
".",
"parse",
"(",
"levelString",
".",
"toUpperCase",
"(",
")",
")",
";",
"//return WsLevel.parse(levelString.toUppe... | This method creates a java.util.Level object from a string with the level name.
@param levelString
- a String representing the name of the Level.
@return a Level object | [
"This",
"method",
"creates",
"a",
"java",
".",
"util",
".",
"Level",
"object",
"from",
"a",
"string",
"with",
"the",
"level",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L1409-L1417 |
65,820 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.setInstanceId | void setInstanceId(String instanceId) throws IllegalArgumentException {
if (instanceId != null && !"".equals(instanceId)) {
subInstanceId = getSubProcessInstanceId(instanceId);
try {
long id = getProcessInstanceId(instanceId);
mainInstanceId = id < 0 ? n... | java | void setInstanceId(String instanceId) throws IllegalArgumentException {
if (instanceId != null && !"".equals(instanceId)) {
subInstanceId = getSubProcessInstanceId(instanceId);
try {
long id = getProcessInstanceId(instanceId);
mainInstanceId = id < 0 ? n... | [
"void",
"setInstanceId",
"(",
"String",
"instanceId",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"instanceId",
"!=",
"null",
"&&",
"!",
"\"\"",
".",
"equals",
"(",
"instanceId",
")",
")",
"{",
"subInstanceId",
"=",
"getSubProcessInstanceId",
"(",... | Parses the instanceId into the requested main process instanceId and the subprocess instanceid. The main
process instanceId must be a long value as the main instance Id is a timestamp.
@param instanceId - the instanceId requested by the user | [
"Parses",
"the",
"instanceId",
"into",
"the",
"requested",
"main",
"process",
"instanceId",
"and",
"the",
"subprocess",
"instanceid",
".",
"The",
"main",
"process",
"instanceId",
"must",
"be",
"a",
"long",
"value",
"as",
"the",
"main",
"instance",
"Id",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L1425-L1437 |
65,821 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java | LogViewer.listRepositoryChoices | protected File[] listRepositoryChoices() {
// check current location
String currentDir = System.getProperty("log.repository.root");
if (currentDir == null)
currentDir = System.getProperty("user.dir");
File logDir = new File(currentDir);
if (logDir.isDirectory()) {
... | java | protected File[] listRepositoryChoices() {
// check current location
String currentDir = System.getProperty("log.repository.root");
if (currentDir == null)
currentDir = System.getProperty("user.dir");
File logDir = new File(currentDir);
if (logDir.isDirectory()) {
... | [
"protected",
"File",
"[",
"]",
"listRepositoryChoices",
"(",
")",
"{",
"// check current location",
"String",
"currentDir",
"=",
"System",
".",
"getProperty",
"(",
"\"log.repository.root\"",
")",
";",
"if",
"(",
"currentDir",
"==",
"null",
")",
"currentDir",
"=",
... | Lists directories containing HPEL repositories. It is called
when repository is not specified explicitly in the arguments
@return List of files which can be used as repositories | [
"Lists",
"directories",
"containing",
"HPEL",
"repositories",
".",
"It",
"is",
"called",
"when",
"repository",
"is",
"not",
"specified",
"explicitly",
"in",
"the",
"arguments"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/viewer/LogViewer.java#L1764-L1780 |
65,822 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipInputHandler.java | GzipInputHandler.skipPast | private int skipPast(byte[] data, int pos, byte target) {
int index = pos;
while (index < data.length) {
if (target == data[index++]) {
return index;
}
}
return index;
} | java | private int skipPast(byte[] data, int pos, byte target) {
int index = pos;
while (index < data.length) {
if (target == data[index++]) {
return index;
}
}
return index;
} | [
"private",
"int",
"skipPast",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"pos",
",",
"byte",
"target",
")",
"{",
"int",
"index",
"=",
"pos",
";",
"while",
"(",
"index",
"<",
"data",
".",
"length",
")",
"{",
"if",
"(",
"target",
"==",
"data",
"[",... | Skip until it runs out of input data or finds the target byte.
@param data
@param pos
@param target
@return pos | [
"Skip",
"until",
"it",
"runs",
"out",
"of",
"input",
"data",
"or",
"finds",
"the",
"target",
"byte",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipInputHandler.java#L166-L174 |
65,823 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipInputHandler.java | GzipInputHandler.parseTrailer | private int parseTrailer(byte[] input, int inOffset, List<WsByteBuffer> list) throws DataFormatException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Parsing trailer, offset=" + this.parseOffset + " val=" + this.parseInt);
}
int offset = inOffset... | java | private int parseTrailer(byte[] input, int inOffset, List<WsByteBuffer> list) throws DataFormatException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Parsing trailer, offset=" + this.parseOffset + " val=" + this.parseInt);
}
int offset = inOffset... | [
"private",
"int",
"parseTrailer",
"(",
"byte",
"[",
"]",
"input",
",",
"int",
"inOffset",
",",
"List",
"<",
"WsByteBuffer",
">",
"list",
")",
"throws",
"DataFormatException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",... | Parse past the GZIP trailer information. This is the two ints for the CRC32
checksum validation.
@param input
@param inOffset
@param list
@return new offset
@throws DataFormatException
- if the trailer data is wrong | [
"Parse",
"past",
"the",
"GZIP",
"trailer",
"information",
".",
"This",
"is",
"the",
"two",
"ints",
"for",
"the",
"CRC32",
"checksum",
"validation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipInputHandler.java#L327-L386 |
65,824 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/base/OutboundConnectorLink.java | OutboundConnectorLink.logClosedException | public void logClosedException(Exception e) {
// Note: this may be a normal occurance so don't log error, just debug.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Connection closed with exception: " + e.getMessage());
}
} | java | public void logClosedException(Exception e) {
// Note: this may be a normal occurance so don't log error, just debug.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Connection closed with exception: " + e.getMessage());
}
} | [
"public",
"void",
"logClosedException",
"(",
"Exception",
"e",
")",
"{",
"// Note: this may be a normal occurance so don't log error, just debug.",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
... | This logs the error if the connection was closed by a higher level channel
with an error.
@param e | [
"This",
"logs",
"the",
"error",
"if",
"the",
"connection",
"was",
"closed",
"by",
"a",
"higher",
"level",
"channel",
"with",
"an",
"error",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/base/OutboundConnectorLink.java#L129-L134 |
65,825 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaAbstractConsumerSession.java | SibRaAbstractConsumerSession.outOfScope | void outOfScope() {
final String methodName = "outOfScope";
if (TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
_outOfScope = true;
try {
// Close cloned connection so that it, and any resource created
// from it, also thr... | java | void outOfScope() {
final String methodName = "outOfScope";
if (TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
_outOfScope = true;
try {
// Close cloned connection so that it, and any resource created
// from it, also thr... | [
"void",
"outOfScope",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"outOfScope\"",
";",
"if",
"(",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"methodName",
")",
";",
"}",
"_outOf... | Called to indicate that this session is now out of scope. | [
"Called",
"to",
"indicate",
"that",
"this",
"session",
"is",
"now",
"out",
"of",
"scope",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaAbstractConsumerSession.java#L192-L237 |
65,826 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java | DefaultDelegationProvider.createAppToSecurityRolesMapping | public void createAppToSecurityRolesMapping(String appName, Collection<SecurityRole> securityRoles) {
//only add it if we don't have a cached copy
appToSecurityRolesMap.putIfAbsent(appName, securityRoles);
} | java | public void createAppToSecurityRolesMapping(String appName, Collection<SecurityRole> securityRoles) {
//only add it if we don't have a cached copy
appToSecurityRolesMap.putIfAbsent(appName, securityRoles);
} | [
"public",
"void",
"createAppToSecurityRolesMapping",
"(",
"String",
"appName",
",",
"Collection",
"<",
"SecurityRole",
">",
"securityRoles",
")",
"{",
"//only add it if we don't have a cached copy",
"appToSecurityRolesMap",
".",
"putIfAbsent",
"(",
"appName",
",",
"security... | Creates the application to security roles mapping for a given application.
@param appName the name of the application for which the mappings belong to.
@param securityRoles the security roles of the application. | [
"Creates",
"the",
"application",
"to",
"security",
"roles",
"mapping",
"for",
"a",
"given",
"application",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java#L196-L199 |
65,827 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java | DefaultDelegationProvider.removeRoleToRunAsMapping | public void removeRoleToRunAsMapping(String appName) {
Map<String, RunAs> roleToRunAsMap = roleToRunAsMappingPerApp.get(appName);
if (roleToRunAsMap != null) {
roleToRunAsMap.clear();
}
appToSecurityRolesMap.remove(appName);
if (TraceComponent.isAnyTracingEnabled() &... | java | public void removeRoleToRunAsMapping(String appName) {
Map<String, RunAs> roleToRunAsMap = roleToRunAsMappingPerApp.get(appName);
if (roleToRunAsMap != null) {
roleToRunAsMap.clear();
}
appToSecurityRolesMap.remove(appName);
if (TraceComponent.isAnyTracingEnabled() &... | [
"public",
"void",
"removeRoleToRunAsMapping",
"(",
"String",
"appName",
")",
"{",
"Map",
"<",
"String",
",",
"RunAs",
">",
"roleToRunAsMap",
"=",
"roleToRunAsMappingPerApp",
".",
"get",
"(",
"appName",
")",
";",
"if",
"(",
"roleToRunAsMap",
"!=",
"null",
")",
... | Removes the role to RunAs mappings for a given application.
@param appName the name of the application for which the mappings belong to. | [
"Removes",
"the",
"role",
"to",
"RunAs",
"mappings",
"for",
"a",
"given",
"application",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java#L206-L218 |
65,828 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java | DefaultDelegationProvider.removeRoleToWarningMapping | public void removeRoleToWarningMapping(String appName) {
Map<String, Boolean> roleToWarningMap = roleToWarningMappingPerApp.get(appName);
if (roleToWarningMap != null) {
roleToWarningMap.clear();
}
roleToWarningMappingPerApp.remove(appName);
} | java | public void removeRoleToWarningMapping(String appName) {
Map<String, Boolean> roleToWarningMap = roleToWarningMappingPerApp.get(appName);
if (roleToWarningMap != null) {
roleToWarningMap.clear();
}
roleToWarningMappingPerApp.remove(appName);
} | [
"public",
"void",
"removeRoleToWarningMapping",
"(",
"String",
"appName",
")",
"{",
"Map",
"<",
"String",
",",
"Boolean",
">",
"roleToWarningMap",
"=",
"roleToWarningMappingPerApp",
".",
"get",
"(",
"appName",
")",
";",
"if",
"(",
"roleToWarningMap",
"!=",
"null... | Removes the role to warning mappings for a given application.
@param appName the name of the application for which the mappings belong to. | [
"Removes",
"the",
"role",
"to",
"warning",
"mappings",
"for",
"a",
"given",
"application",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.appbnd/src/com/ibm/ws/security/appbnd/internal/delegation/DefaultDelegationProvider.java#L225-L231 |
65,829 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelSystemStream.java | HpelSystemStream.determineHandlers | private static void determineHandlers() {
/*
* find the handlers that we are dispatching to
*/
if (textHandler != null && !logRepositoryConfiguration.isTextEnabled())
textHandler = null ;
// Don't do this work if only text and text is not enabled (if so, it will always be nul... | java | private static void determineHandlers() {
/*
* find the handlers that we are dispatching to
*/
if (textHandler != null && !logRepositoryConfiguration.isTextEnabled())
textHandler = null ;
// Don't do this work if only text and text is not enabled (if so, it will always be nul... | [
"private",
"static",
"void",
"determineHandlers",
"(",
")",
"{",
"/*\n * find the handlers that we are dispatching to\n */",
"if",
"(",
"textHandler",
"!=",
"null",
"&&",
"!",
"logRepositoryConfiguration",
".",
"isTextEnabled",
"(",
")",
")",
"textHandler",
... | determine two handlers needed by the repository | [
"determine",
"two",
"handlers",
"needed",
"by",
"the",
"repository"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelSystemStream.java#L1040-L1058 |
65,830 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.close | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
Enumeration streams = null;
synchronized (this)
{
synchronized (streamTable)
{
closed = true;
closeBrowserSessionsInternal();
streams = streamTable.elem... | java | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
Enumeration streams = null;
synchronized (this)
{
synchronized (streamTable)
{
closed = true;
closeBrowserSessionsInternal();
streams = streamTable.elem... | [
"public",
"void",
"close",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"close\"",
")",
";",
"Enumeration",
"streams",
"=",
... | Cleans up the non-persistent state. No methods on the ControlHandler interface should be called after this is called. | [
"Cleans",
"up",
"the",
"non",
"-",
"persistent",
"state",
".",
"No",
"methods",
"on",
"the",
"ControlHandler",
"interface",
"should",
"be",
"called",
"after",
"this",
"is",
"called",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L912-L944 |
65,831 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.cleanup | public boolean cleanup(boolean flushStreams, boolean redriveDeletionThread)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanup",
new Object[]{Boolean.valueOf(flushStreams), Boolean.valueOf(redriveDeletionThread)});
boolean retvalue = false;
// first che... | java | public boolean cleanup(boolean flushStreams, boolean redriveDeletionThread)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanup",
new Object[]{Boolean.valueOf(flushStreams), Boolean.valueOf(redriveDeletionThread)});
boolean retvalue = false;
// first che... | [
"public",
"boolean",
"cleanup",
"(",
"boolean",
"flushStreams",
",",
"boolean",
"redriveDeletionThread",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Cleanup the state in this AnycastOutputHandler. Called when this localisation is being
deleted.
@param flushStreams If true, need to flush the streams, else do not need to flush all streams. The cleanup
may be asynchronous in the former case.
@param redriveDeletionThread If the cleanup is asynchronous, this class needs... | [
"Cleanup",
"the",
"state",
"in",
"this",
"AnycastOutputHandler",
".",
"Called",
"when",
"this",
"localisation",
"is",
"being",
"deleted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L998-L1034 |
65,832 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.getAOStream | public final AOStream getAOStream(String streamKey, SIBUuid12 streamId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAOStream", new Object[]{streamKey, streamId});
StreamInfo streamInfo = getStreamInfo(streamKey, streamId);
if (streamInfo != null)
{
... | java | public final AOStream getAOStream(String streamKey, SIBUuid12 streamId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAOStream", new Object[]{streamKey, streamId});
StreamInfo streamInfo = getStreamInfo(streamKey, streamId);
if (streamInfo != null)
{
... | [
"public",
"final",
"AOStream",
"getAOStream",
"(",
"String",
"streamKey",
",",
"SIBUuid12",
"streamId",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",... | for unit testing | [
"for",
"unit",
"testing"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L1108-L1122 |
65,833 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.handleControlBrowseStatus | private final void handleControlBrowseStatus(SIBUuid8 remoteME, SIBUuid12 gatheringTargetDestUuid, long browseId, int status)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleControlBrowseStatus",
new Object[] {remoteME, gatheringTargetDestUuid, Long.valueOf(br... | java | private final void handleControlBrowseStatus(SIBUuid8 remoteME, SIBUuid12 gatheringTargetDestUuid, long browseId, int status)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleControlBrowseStatus",
new Object[] {remoteME, gatheringTargetDestUuid, Long.valueOf(br... | [
"private",
"final",
"void",
"handleControlBrowseStatus",
"(",
"SIBUuid8",
"remoteME",
",",
"SIBUuid12",
"gatheringTargetDestUuid",
",",
"long",
"browseId",
",",
"int",
"status",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc... | Method to handle a ControlBrowseStatus message from an RME
@param remoteME The UUID of the RME
@param browseId The unique browseId, relative to this RME
@param status The status | [
"Method",
"to",
"handle",
"a",
"ControlBrowseStatus",
"message",
"from",
"an",
"RME"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L1447-L1475 |
65,834 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.removeBrowserSession | public final void removeBrowserSession(AOBrowserSessionKey key)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeBrowserSession", key);
browserSessionTable.remove(key);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "r... | java | public final void removeBrowserSession(AOBrowserSessionKey key)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeBrowserSession", key);
browserSessionTable.remove(key);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "r... | [
"public",
"final",
"void",
"removeBrowserSession",
"(",
"AOBrowserSessionKey",
"key",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"rem... | Remove an AOBrowserSession that is already closed
@param key The key of the session | [
"Remove",
"an",
"AOBrowserSession",
"that",
"is",
"already",
"closed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L1481-L1491 |
65,835 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.getStreamInfo | private final StreamInfo getStreamInfo(String streamKey, SIBUuid12 streamId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getStreamInfo", new Object[]{streamKey, streamId});
StreamInfo sinfo = streamTable.get(streamKey);
if ((sinfo != null) && sinfo.streamId.eq... | java | private final StreamInfo getStreamInfo(String streamKey, SIBUuid12 streamId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getStreamInfo", new Object[]{streamKey, streamId});
StreamInfo sinfo = streamTable.get(streamKey);
if ((sinfo != null) && sinfo.streamId.eq... | [
"private",
"final",
"StreamInfo",
"getStreamInfo",
"(",
"String",
"streamKey",
",",
"SIBUuid12",
"streamId",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Helper method used to dispatch a message received for a particular stream.
Handles its own synchronization
@param remoteMEId
@param streamId
@return the StreamInfo, if there is one that matches the parameters, else null | [
"Helper",
"method",
"used",
"to",
"dispatch",
"a",
"message",
"received",
"for",
"a",
"particular",
"stream",
".",
"Handles",
"its",
"own",
"synchronization"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L1944-L1957 |
65,836 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.streamIsFlushed | public final void streamIsFlushed(AOStream stream)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "streamIsFlushed", stream);
// we schedule an asynchronous removal of the persistent data
synchronized (streamTable)
{
String key = SIMPUtils.getRemoteGetK... | java | public final void streamIsFlushed(AOStream stream)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "streamIsFlushed", stream);
// we schedule an asynchronous removal of the persistent data
synchronized (streamTable)
{
String key = SIMPUtils.getRemoteGetK... | [
"public",
"final",
"void",
"streamIsFlushed",
"(",
"AOStream",
"stream",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"streamIsFlushed\... | Callback from a stream, that it has been flushed
@param stream | [
"Callback",
"from",
"a",
"stream",
"that",
"it",
"has",
"been",
"flushed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L1963-L1986 |
65,837 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.persistLockAndTick | public final AOValue persistLockAndTick(TransactionCommon t, AOStream stream, long tick,
SIMPMessage msg, int storagePolicy, long waitTime, long prevTick) throws Exception
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "persistLockAndTick",
new Object[] {... | java | public final AOValue persistLockAndTick(TransactionCommon t, AOStream stream, long tick,
SIMPMessage msg, int storagePolicy, long waitTime, long prevTick) throws Exception
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "persistLockAndTick",
new Object[] {... | [
"public",
"final",
"AOValue",
"persistLockAndTick",
"(",
"TransactionCommon",
"t",
",",
"AOStream",
"stream",
",",
"long",
"tick",
",",
"SIMPMessage",
"msg",
",",
"int",
"storagePolicy",
",",
"long",
"waitTime",
",",
"long",
"prevTick",
")",
"throws",
"Exception... | Helper method called by the AOStream when to persistently lock a message and create a persistent
tick in the protocol stream
@param t the transaction
@param stream the stream making this call
@param tick the tick in the stream
@param msg the message to be persistently locked (it is already non-persitently locked)
@para... | [
"Helper",
"method",
"called",
"by",
"the",
"AOStream",
"when",
"to",
"persistently",
"lock",
"a",
"message",
"and",
"create",
"a",
"persistent",
"tick",
"in",
"the",
"protocol",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2626-L2662 |
65,838 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.cleanupTicks | public final void cleanupTicks(StreamInfo sinfo, TransactionCommon t, ArrayList valueTicks) throws MessageStoreException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanupTicks", new Object[]{sinfo, t, valueTicks});
try {
int length =... | java | public final void cleanupTicks(StreamInfo sinfo, TransactionCommon t, ArrayList valueTicks) throws MessageStoreException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanupTicks", new Object[]{sinfo, t, valueTicks});
try {
int length =... | [
"public",
"final",
"void",
"cleanupTicks",
"(",
"StreamInfo",
"sinfo",
",",
"TransactionCommon",
"t",
",",
"ArrayList",
"valueTicks",
")",
"throws",
"MessageStoreException",
",",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",... | Helper method called by the AOStream when a persistent tick representing a persistently locked
message should be removed since we are flushing or cleaning up state.
@param t the transaction
@param sinfo the stream this msgs is on
@param storedTick the persistent tick
@throws SIResourceException
@throws Exception | [
"Helper",
"method",
"called",
"by",
"the",
"AOStream",
"when",
"a",
"persistent",
"tick",
"representing",
"a",
"persistently",
"locked",
"message",
"should",
"be",
"removed",
"since",
"we",
"are",
"flushing",
"or",
"cleaning",
"up",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2673-L2731 |
65,839 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.writeStartedFlush | public final Item writeStartedFlush(TransactionCommon t, AOStream stream) throws Exception
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writeStartedFlush");
String key =
SIMPUtils.getRemoteGetKey(stream.getRemoteMEUuid(), stream.getGatheringTargetDestUuid()... | java | public final Item writeStartedFlush(TransactionCommon t, AOStream stream) throws Exception
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writeStartedFlush");
String key =
SIMPUtils.getRemoteGetKey(stream.getRemoteMEUuid(), stream.getGatheringTargetDestUuid()... | [
"public",
"final",
"Item",
"writeStartedFlush",
"(",
"TransactionCommon",
"t",
",",
"AOStream",
"stream",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Sib... | Helper method used by AOStream to persistently record that flush has been started
@param t the transaction
@param stream the stream making this call
@return the Item written
@throws Exception | [
"Helper",
"method",
"used",
"by",
"AOStream",
"to",
"persistently",
"record",
"that",
"flush",
"has",
"been",
"started"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2740-L2782 |
65,840 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.writtenStartedFlush | public final void writtenStartedFlush(AOStream stream, Item startedFlushItem)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writtenStartedFlush");
String key =
SIMPUtils.getRemoteGetKey(stream.getRemoteMEUuid(), stream.getGatheringTargetDestUuid());
Stre... | java | public final void writtenStartedFlush(AOStream stream, Item startedFlushItem)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writtenStartedFlush");
String key =
SIMPUtils.getRemoteGetKey(stream.getRemoteMEUuid(), stream.getGatheringTargetDestUuid());
Stre... | [
"public",
"final",
"void",
"writtenStartedFlush",
"(",
"AOStream",
"stream",
",",
"Item",
"startedFlushItem",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Callback when the Item that records that flush has been started has been committed to persistent storage
@param stream The stream making this call
@param startedFlushItem The item written | [
"Callback",
"when",
"the",
"Item",
"that",
"records",
"that",
"flush",
"has",
"been",
"started",
"has",
"been",
"committed",
"to",
"persistent",
"storage"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2789-L2835 |
65,841 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.getItemStream | public SIMPItemStream getItemStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getItemStream");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getItemStream", containerItemStream);
return (SIMPItemStream) containerI... | java | public SIMPItemStream getItemStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getItemStream");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getItemStream", containerItemStream);
return (SIMPItemStream) containerI... | [
"public",
"SIMPItemStream",
"getItemStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getItemStream\"",
")",
";",
"if",
"("... | Return the SIMPItemStream associated with this AOH. This method is needed
for proper cleanup of remote durable subscriptions since the usual
item stream owned by the DestinationHandler is not used.
@return The SIMPItemStream passed to this AOH during instantiation. | [
"Return",
"the",
"SIMPItemStream",
"associated",
"with",
"this",
"AOH",
".",
"This",
"method",
"is",
"needed",
"for",
"proper",
"cleanup",
"of",
"remote",
"durable",
"subscriptions",
"since",
"the",
"usual",
"item",
"stream",
"owned",
"by",
"the",
"DestinationHa... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2952-L2961 |
65,842 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.getDestName | public final String getDestName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDestName");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getDestName", destName);
return destName;
} | java | public final String getDestName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDestName");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getDestName", destName);
return destName;
} | [
"public",
"final",
"String",
"getDestName",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getDestName\"",
")",
";",
"if",
"(",... | Return the destination name which this AOH is associated with.
@return The destination name passed to this AOH during instantiation. | [
"Return",
"the",
"destination",
"name",
"which",
"this",
"AOH",
"is",
"associated",
"with",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2968-L2977 |
65,843 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.getDestUUID | public final SIBUuid12 getDestUUID()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getDestUUID");
SibTr.exit(tc, "getDestUUID", destName);
}
return destUuid;
} | java | public final SIBUuid12 getDestUUID()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getDestUUID");
SibTr.exit(tc, "getDestUUID", destName);
}
return destUuid;
} | [
"public",
"final",
"SIBUuid12",
"getDestUUID",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getDestUUID\"",
")",
";",
"S... | Return the destination UUID which this AOH is associated with. This method
is needed for proper cleanup of remote durable subscriptions since pseudo
destinations are used, rather than the destination normally associated with the
DestinationHandler.
@return The destination name passed to this AOH during instantiation. | [
"Return",
"the",
"destination",
"UUID",
"which",
"this",
"AOH",
"is",
"associated",
"with",
".",
"This",
"method",
"is",
"needed",
"for",
"proper",
"cleanup",
"of",
"remote",
"durable",
"subscriptions",
"since",
"pseudo",
"destinations",
"are",
"used",
"rather",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L2987-L2996 |
65,844 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.forceFlushAtSource | public void forceFlushAtSource(SIBUuid8 remoteUuid, SIBUuid12 gatheringTargetDestUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forceFlushAtSource", new Object[] {remoteUuid, gatheringTargetDestUuid});
StreamInfo sinfo;
boolean success = false;
String ... | java | public void forceFlushAtSource(SIBUuid8 remoteUuid, SIBUuid12 gatheringTargetDestUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forceFlushAtSource", new Object[] {remoteUuid, gatheringTargetDestUuid});
StreamInfo sinfo;
boolean success = false;
String ... | [
"public",
"void",
"forceFlushAtSource",
"(",
"SIBUuid8",
"remoteUuid",
",",
"SIBUuid12",
"gatheringTargetDestUuid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entr... | If the RME has been deleted then the stream needs to be flushed to unlock
any messaqes on this DME.
@param remoteME the uuid of the remote ME | [
"If",
"the",
"RME",
"has",
"been",
"deleted",
"then",
"the",
"stream",
"needs",
"to",
"be",
"flushed",
"to",
"unlock",
"any",
"messaqes",
"on",
"this",
"DME",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L3086-L3203 |
65,845 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java | AnycastOutputHandler.deleteAndUnlockPersistentStream | private void deleteAndUnlockPersistentStream(StreamInfo sinfo, ArrayList valueTicks) throws MessageStoreException, SIRollbackException, SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc... | java | private void deleteAndUnlockPersistentStream(StreamInfo sinfo, ArrayList valueTicks) throws MessageStoreException, SIRollbackException, SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc... | [
"private",
"void",
"deleteAndUnlockPersistentStream",
"(",
"StreamInfo",
"sinfo",
",",
"ArrayList",
"valueTicks",
")",
"throws",
"MessageStoreException",
",",
"SIRollbackException",
",",
"SIConnectionLostException",
",",
"SIIncorrectCallException",
",",
"SIResourceException",
... | remove the persistent ticks and the itemstream and started-flush item | [
"remove",
"the",
"persistent",
"ticks",
"and",
"the",
"itemstream",
"and",
"started",
"-",
"flush",
"item"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AnycastOutputHandler.java#L3207-L3230 |
65,846 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.init | protected void init(boolean useDirect, int outSize, int inSize, int cacheSize) {
this.useDirectBuffer = useDirect;
this.outgoingHdrBufferSize = outSize;
this.incomingBufferSize = inSize;
// if cache size has increased, then allocate the larger bytecache
// array, but don't chang... | java | protected void init(boolean useDirect, int outSize, int inSize, int cacheSize) {
this.useDirectBuffer = useDirect;
this.outgoingHdrBufferSize = outSize;
this.incomingBufferSize = inSize;
// if cache size has increased, then allocate the larger bytecache
// array, but don't chang... | [
"protected",
"void",
"init",
"(",
"boolean",
"useDirect",
",",
"int",
"outSize",
",",
"int",
"inSize",
",",
"int",
"cacheSize",
")",
"{",
"this",
".",
"useDirectBuffer",
"=",
"useDirect",
";",
"this",
".",
"outgoingHdrBufferSize",
"=",
"outSize",
";",
"this"... | Initialize this class instance with the chosen parse configuration
options.
@param useDirect -- use direct ByteBuffers or indirect
@param outSize -- size of buffers to use while marshalling headers
@param inSize -- size of buffers to use while parsing headers
@param cacheSize -- byte cache size of optimized parsing | [
"Initialize",
"this",
"class",
"instance",
"with",
"the",
"chosen",
"parse",
"configuration",
"options",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L271-L282 |
65,847 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.addParseBuffer | public void addParseBuffer(WsByteBuffer buffer) {
// increment where we're about to put the new buffer in
int index = ++this.parseIndex;
if (null == this.parseBuffers) {
// first parse buffer to track
this.parseBuffers = new WsByteBuffer[BUFFERS_INITIAL_SIZE];
... | java | public void addParseBuffer(WsByteBuffer buffer) {
// increment where we're about to put the new buffer in
int index = ++this.parseIndex;
if (null == this.parseBuffers) {
// first parse buffer to track
this.parseBuffers = new WsByteBuffer[BUFFERS_INITIAL_SIZE];
... | [
"public",
"void",
"addParseBuffer",
"(",
"WsByteBuffer",
"buffer",
")",
"{",
"// increment where we're about to put the new buffer in",
"int",
"index",
"=",
"++",
"this",
".",
"parseIndex",
";",
"if",
"(",
"null",
"==",
"this",
".",
"parseBuffers",
")",
"{",
"// f... | Save a reference to a new buffer with header parse information. This is
not part of the "created list" and will not be released by this message
class.
@param buffer | [
"Save",
"a",
"reference",
"to",
"a",
"new",
"buffer",
"with",
"header",
"parse",
"information",
".",
"This",
"is",
"not",
"part",
"of",
"the",
"created",
"list",
"and",
"will",
"not",
"be",
"released",
"by",
"this",
"message",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L295-L324 |
65,848 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.addToCreatedBuffer | public void addToCreatedBuffer(WsByteBuffer buffer) {
// increment where we're about to put the new buffer in
int index = ++this.createdIndex;
if (null == this.myCreatedBuffers) {
// first allocation
this.myCreatedBuffers = new WsByteBuffer[BUFFERS_INITIAL_SIZE];
... | java | public void addToCreatedBuffer(WsByteBuffer buffer) {
// increment where we're about to put the new buffer in
int index = ++this.createdIndex;
if (null == this.myCreatedBuffers) {
// first allocation
this.myCreatedBuffers = new WsByteBuffer[BUFFERS_INITIAL_SIZE];
... | [
"public",
"void",
"addToCreatedBuffer",
"(",
"WsByteBuffer",
"buffer",
")",
"{",
"// increment where we're about to put the new buffer in",
"int",
"index",
"=",
"++",
"this",
".",
"createdIndex",
";",
"if",
"(",
"null",
"==",
"this",
".",
"myCreatedBuffers",
")",
"{... | Add a buffer on the list that will be manually released later.
@param buffer | [
"Add",
"a",
"buffer",
"on",
"the",
"list",
"that",
"will",
"be",
"manually",
"released",
"later",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L331-L348 |
65,849 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.clear | public void clear() {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isEntryEnabled()) {
Tr.entry(tc, "clear");
}
clearAllHeaders();
this.eohPosition = HeaderStorage.NOTSET;
this.currentElem = null;
this.stateOfParsing =... | java | public void clear() {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isEntryEnabled()) {
Tr.entry(tc, "clear");
}
clearAllHeaders();
this.eohPosition = HeaderStorage.NOTSET;
this.currentElem = null;
this.stateOfParsing =... | [
"public",
"void",
"clear",
"(",
")",
"{",
"final",
"boolean",
"bTrace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"bTrace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
... | Clear out information on this object so that it can be re-used. | [
"Clear",
"out",
"information",
"on",
"this",
"object",
"so",
"that",
"it",
"can",
"be",
"re",
"-",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L533-L574 |
65,850 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.clearBuffers | private void clearBuffers() {
// simply null out the parse buffers list, then release all the created buffers
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
for (int i = 0; i <= this.parseIndex; i++) {
if (bTrace && tc.isDebugEnabled()) {
Tr.debug(tc, "R... | java | private void clearBuffers() {
// simply null out the parse buffers list, then release all the created buffers
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
for (int i = 0; i <= this.parseIndex; i++) {
if (bTrace && tc.isDebugEnabled()) {
Tr.debug(tc, "R... | [
"private",
"void",
"clearBuffers",
"(",
")",
"{",
"// simply null out the parse buffers list, then release all the created buffers",
"final",
"boolean",
"bTrace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
... | Clear the array of buffers used during the parsing or marshalling of
headers. | [
"Clear",
"the",
"array",
"of",
"buffers",
"used",
"during",
"the",
"parsing",
"or",
"marshalling",
"of",
"headers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L580-L599 |
65,851 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.debug | public void debug() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "*** Begin Header Debug ***");
HeaderElement elem = this.hdrSequence;
while (null != elem) {
Tr.debug(tc, elem.getName() + ": " + elem.getDebugValue());
... | java | public void debug() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "*** Begin Header Debug ***");
HeaderElement elem = this.hdrSequence;
while (null != elem) {
Tr.debug(tc, elem.getName() + ": " + elem.getDebugValue());
... | [
"public",
"void",
"debug",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"*** Begin Header Debug ***\"",
")",
";",
"HeaderEleme... | Print debug information on the headers to the RAS tracing log. | [
"Print",
"debug",
"information",
"on",
"the",
"headers",
"to",
"the",
"RAS",
"tracing",
"log",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L604-L615 |
65,852 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.destroy | protected void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Destroying these headers: " + this);
}
// if we have headers present, or reference parse buffers (i.e.
// the first header parsed threw an error perhaps), then clear
... | java | protected void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Destroying these headers: " + this);
}
// if we have headers present, or reference parse buffers (i.e.
// the first header parsed threw an error perhaps), then clear
... | [
"protected",
"void",
"destroy",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Destroying these headers: \"",
"+",
"this",
")",... | Completely clear out all the information on this object when it
is no longer used. | [
"Completely",
"clear",
"out",
"all",
"the",
"information",
"on",
"this",
"object",
"when",
"it",
"is",
"no",
"longer",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L621-L638 |
65,853 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.writeByteArray | protected void writeByteArray(ObjectOutput output, byte[] data) throws IOException {
if (null == data || 0 == data.length) {
output.writeInt(-1);
} else {
output.writeInt(data.length);
output.write(data);
}
} | java | protected void writeByteArray(ObjectOutput output, byte[] data) throws IOException {
if (null == data || 0 == data.length) {
output.writeInt(-1);
} else {
output.writeInt(data.length);
output.write(data);
}
} | [
"protected",
"void",
"writeByteArray",
"(",
"ObjectOutput",
"output",
",",
"byte",
"[",
"]",
"data",
")",
"throws",
"IOException",
"{",
"if",
"(",
"null",
"==",
"data",
"||",
"0",
"==",
"data",
".",
"length",
")",
"{",
"output",
".",
"writeInt",
"(",
"... | Write information for the input data to the output stream. If the input
data is null or empty, this will write a -1 length marker.
@param output
@param data
@throws IOException | [
"Write",
"information",
"for",
"the",
"input",
"data",
"to",
"the",
"output",
"stream",
".",
"If",
"the",
"input",
"data",
"is",
"null",
"or",
"empty",
"this",
"will",
"write",
"a",
"-",
"1",
"length",
"marker",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L713-L720 |
65,854 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.scribbleWhiteSpace | private void scribbleWhiteSpace(WsByteBuffer buffer, int start, int stop) {
if (buffer.hasArray()) {
// buffer has a backing array so directly update that
final byte[] data = buffer.array();
final int offset = buffer.arrayOffset();
int myStart = start + offset;
... | java | private void scribbleWhiteSpace(WsByteBuffer buffer, int start, int stop) {
if (buffer.hasArray()) {
// buffer has a backing array so directly update that
final byte[] data = buffer.array();
final int offset = buffer.arrayOffset();
int myStart = start + offset;
... | [
"private",
"void",
"scribbleWhiteSpace",
"(",
"WsByteBuffer",
"buffer",
",",
"int",
"start",
",",
"int",
"stop",
")",
"{",
"if",
"(",
"buffer",
".",
"hasArray",
"(",
")",
")",
"{",
"// buffer has a backing array so directly update that",
"final",
"byte",
"[",
"]... | Overlay whitespace into the input buffer using the provided starting and
stopping positions.
@param buffer
@param start
@param stop | [
"Overlay",
"whitespace",
"into",
"the",
"input",
"buffer",
"using",
"the",
"provided",
"starting",
"and",
"stopping",
"positions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1196-L1227 |
65,855 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.eraseValue | private void eraseValue(HeaderElement elem) {
// wipe out the removed value
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Erasing existing header: " + elem.getName());
}
int next_index = this.lastCRLFBufferIndex;
int next_pos = this.... | java | private void eraseValue(HeaderElement elem) {
// wipe out the removed value
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Erasing existing header: " + elem.getName());
}
int next_index = this.lastCRLFBufferIndex;
int next_pos = this.... | [
"private",
"void",
"eraseValue",
"(",
"HeaderElement",
"elem",
")",
"{",
"// wipe out the removed value",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
... | Method to completely erase the input header from the parse buffers.
@param elem | [
"Method",
"to",
"completely",
"erase",
"the",
"input",
"header",
"from",
"the",
"parse",
"buffers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1234-L1255 |
65,856 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.overlayBytes | private int overlayBytes(byte[] data, int inOffset, int inLength, int inIndex) {
int length = inLength;
int offset = inOffset;
int index = inIndex;
WsByteBuffer buffer = this.parseBuffers[index];
if (-1 == length) {
length = data.length;
}
while (index... | java | private int overlayBytes(byte[] data, int inOffset, int inLength, int inIndex) {
int length = inLength;
int offset = inOffset;
int index = inIndex;
WsByteBuffer buffer = this.parseBuffers[index];
if (-1 == length) {
length = data.length;
}
while (index... | [
"private",
"int",
"overlayBytes",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"inOffset",
",",
"int",
"inLength",
",",
"int",
"inIndex",
")",
"{",
"int",
"length",
"=",
"inLength",
";",
"int",
"offset",
"=",
"inOffset",
";",
"int",
"index",
"=",
"inInde... | Utility method to overlay the input bytes into the parse buffers,
starting at the input index and moving forward as needed.
@param data
@param inOffset
@param inLength
@param inIndex
@return index of last buffer updated | [
"Utility",
"method",
"to",
"overlay",
"the",
"input",
"bytes",
"into",
"the",
"parse",
"buffers",
"starting",
"at",
"the",
"input",
"index",
"and",
"moving",
"forward",
"as",
"needed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1267-L1290 |
65,857 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.overlayValue | private void overlayValue(HeaderElement elem) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Overlaying existing header: " + elem.getName());
}
int next_index = this.lastCRLFBufferIndex;
int next_pos = this.lastCRLFPosition;
if (nul... | java | private void overlayValue(HeaderElement elem) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Overlaying existing header: " + elem.getName());
}
int next_index = this.lastCRLFBufferIndex;
int next_pos = this.lastCRLFPosition;
if (nul... | [
"private",
"void",
"overlayValue",
"(",
"HeaderElement",
"elem",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Overlaying existing he... | Method to overlay the new header value onto the older value in the parse
buffers.
@param elem | [
"Method",
"to",
"overlay",
"the",
"new",
"header",
"value",
"onto",
"the",
"older",
"value",
"in",
"the",
"parse",
"buffers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1298-L1326 |
65,858 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.marshallAddedHeaders | private WsByteBuffer[] marshallAddedHeaders(WsByteBuffer[] inBuffers, int index) {
WsByteBuffer[] buffers = inBuffers;
buffers[index] = allocateBuffer(this.outgoingHdrBufferSize);
for (HeaderElement elem = this.hdrSequence; null != elem; elem = elem.nextSequence) {
if (elem.wasAdded(... | java | private WsByteBuffer[] marshallAddedHeaders(WsByteBuffer[] inBuffers, int index) {
WsByteBuffer[] buffers = inBuffers;
buffers[index] = allocateBuffer(this.outgoingHdrBufferSize);
for (HeaderElement elem = this.hdrSequence; null != elem; elem = elem.nextSequence) {
if (elem.wasAdded(... | [
"private",
"WsByteBuffer",
"[",
"]",
"marshallAddedHeaders",
"(",
"WsByteBuffer",
"[",
"]",
"inBuffers",
",",
"int",
"index",
")",
"{",
"WsByteBuffer",
"[",
"]",
"buffers",
"=",
"inBuffers",
";",
"buffers",
"[",
"index",
"]",
"=",
"allocateBuffer",
"(",
"thi... | Marshall the newly added headers from the sequence list to the output
buffers starting at the input index on the list.
@param inBuffers
@param index
@return WsByteBuffer[] | [
"Marshall",
"the",
"newly",
"added",
"headers",
"from",
"the",
"sequence",
"list",
"to",
"the",
"output",
"buffers",
"starting",
"at",
"the",
"input",
"index",
"on",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1336-L1350 |
65,859 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.clearAllHeaders | private void clearAllHeaders() {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isEntryEnabled()) {
Tr.entry(tc, "clearAllHeaders()");
}
HeaderElement elem = this.hdrSequence;
while (null != elem) {
final HeaderElement next ... | java | private void clearAllHeaders() {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
if (bTrace && tc.isEntryEnabled()) {
Tr.entry(tc, "clearAllHeaders()");
}
HeaderElement elem = this.hdrSequence;
while (null != elem) {
final HeaderElement next ... | [
"private",
"void",
"clearAllHeaders",
"(",
")",
"{",
"final",
"boolean",
"bTrace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"bTrace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc"... | Clear all traces of the headers from storage. | [
"Clear",
"all",
"traces",
"of",
"the",
"headers",
"from",
"storage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1657-L1684 |
65,860 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.removeSpecialHeader | public void removeSpecialHeader(HeaderKeys key) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeSpecialHeader(h): " + key.getName());
}
removeHdrInstances(findHeader(key), FILTER_NO);
} | java | public void removeSpecialHeader(HeaderKeys key) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeSpecialHeader(h): " + key.getName());
}
removeHdrInstances(findHeader(key), FILTER_NO);
} | [
"public",
"void",
"removeSpecialHeader",
"(",
"HeaderKeys",
"key",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeSpecialHeader(... | Remove all instances of a special header that does
not require the headerkey filterRemove method to be called.
@param key | [
"Remove",
"all",
"instances",
"of",
"a",
"special",
"header",
"that",
"does",
"not",
"require",
"the",
"headerkey",
"filterRemove",
"method",
"to",
"be",
"called",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1778-L1783 |
65,861 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.returnCurrentBuffer | public WsByteBuffer returnCurrentBuffer() {
WsByteBuffer buff = null;
if (HeaderStorage.NOTSET != this.parseIndex) {
buff = this.parseBuffers[this.parseIndex];
this.parseIndex--;
}
return buff;
} | java | public WsByteBuffer returnCurrentBuffer() {
WsByteBuffer buff = null;
if (HeaderStorage.NOTSET != this.parseIndex) {
buff = this.parseBuffers[this.parseIndex];
this.parseIndex--;
}
return buff;
} | [
"public",
"WsByteBuffer",
"returnCurrentBuffer",
"(",
")",
"{",
"WsByteBuffer",
"buff",
"=",
"null",
";",
"if",
"(",
"HeaderStorage",
".",
"NOTSET",
"!=",
"this",
".",
"parseIndex",
")",
"{",
"buff",
"=",
"this",
".",
"parseBuffers",
"[",
"this",
".",
"par... | Method to remove the current parsing buffer from this object's
ownership so it can be used by others.
@return WsByteBuffer (null if there is no current buffer) | [
"Method",
"to",
"remove",
"the",
"current",
"parsing",
"buffer",
"from",
"this",
"object",
"s",
"ownership",
"so",
"it",
"can",
"be",
"used",
"by",
"others",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L1791-L1798 |
65,862 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.createSingleHeader | private void createSingleHeader(HeaderKeys key, byte[] value, int offset, int length) {
HeaderElement elem = findHeader(key);
if (null != elem) {
// delete all secondary instances first
if (null != elem.nextInstance) {
HeaderElement temp = elem.nextInstance;
... | java | private void createSingleHeader(HeaderKeys key, byte[] value, int offset, int length) {
HeaderElement elem = findHeader(key);
if (null != elem) {
// delete all secondary instances first
if (null != elem.nextInstance) {
HeaderElement temp = elem.nextInstance;
... | [
"private",
"void",
"createSingleHeader",
"(",
"HeaderKeys",
"key",
",",
"byte",
"[",
"]",
"value",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"HeaderElement",
"elem",
"=",
"findHeader",
"(",
"key",
")",
";",
"if",
"(",
"null",
"!=",
"elem",
... | Utility method to create a single header instance with the given
information. If elements already exist, this will delete secondary
ones and overlay the value on the first element.
@param key
@param value
@param offset
@param length | [
"Utility",
"method",
"to",
"create",
"a",
"single",
"header",
"instance",
"with",
"the",
"given",
"information",
".",
"If",
"elements",
"already",
"exist",
"this",
"will",
"delete",
"secondary",
"ones",
"and",
"overlay",
"the",
"value",
"on",
"the",
"first",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2044-L2077 |
65,863 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.addHeader | private void addHeader(HeaderElement elem, boolean bFilter) {
final HeaderKeys key = elem.getKey();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Adding header [" + key.getName()
+ "] with value [" + elem.getDebugValue() + "]");
... | java | private void addHeader(HeaderElement elem, boolean bFilter) {
final HeaderKeys key = elem.getKey();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Adding header [" + key.getName()
+ "] with value [" + elem.getDebugValue() + "]");
... | [
"private",
"void",
"addHeader",
"(",
"HeaderElement",
"elem",
",",
"boolean",
"bFilter",
")",
"{",
"final",
"HeaderKeys",
"key",
"=",
"elem",
".",
"getKey",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
... | Add this new instance of a header to storage.
@param elem
@param bFilter - call filter on add? | [
"Add",
"this",
"new",
"instance",
"of",
"a",
"header",
"to",
"storage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2085-L2129 |
65,864 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.findHeader | private HeaderElement findHeader(HeaderKeys key, int instance) {
final int ord = key.getOrdinal();
if (!storage.containsKey(ord) && ord <= HttpHeaderKeys.ORD_MAX) {
return null;
}
HeaderElement elem = null;
//If the ordinal created for this key is larger than 1024,... | java | private HeaderElement findHeader(HeaderKeys key, int instance) {
final int ord = key.getOrdinal();
if (!storage.containsKey(ord) && ord <= HttpHeaderKeys.ORD_MAX) {
return null;
}
HeaderElement elem = null;
//If the ordinal created for this key is larger than 1024,... | [
"private",
"HeaderElement",
"findHeader",
"(",
"HeaderKeys",
"key",
",",
"int",
"instance",
")",
"{",
"final",
"int",
"ord",
"=",
"key",
".",
"getOrdinal",
"(",
")",
";",
"if",
"(",
"!",
"storage",
".",
"containsKey",
"(",
"ord",
")",
"&&",
"ord",
"<="... | Find the specific instance of this header in storage.
@param key
@param instance
@return HeaderElement | [
"Find",
"the",
"specific",
"instance",
"of",
"this",
"header",
"in",
"storage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2196-L2230 |
65,865 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.removeHdr | private void removeHdr(HeaderElement elem) {
if (null == elem) {
return;
}
HeaderKeys key = elem.getKey();
elem.remove();
if (key.useFilters()) {
filterRemove(key, elem.asBytes());
}
} | java | private void removeHdr(HeaderElement elem) {
if (null == elem) {
return;
}
HeaderKeys key = elem.getKey();
elem.remove();
if (key.useFilters()) {
filterRemove(key, elem.asBytes());
}
} | [
"private",
"void",
"removeHdr",
"(",
"HeaderElement",
"elem",
")",
"{",
"if",
"(",
"null",
"==",
"elem",
")",
"{",
"return",
";",
"}",
"HeaderKeys",
"key",
"=",
"elem",
".",
"getKey",
"(",
")",
";",
"elem",
".",
"remove",
"(",
")",
";",
"if",
"(",
... | Remove this single instance of a header.
@param elem | [
"Remove",
"this",
"single",
"instance",
"of",
"a",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2273-L2282 |
65,866 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.removeHdrInstances | private void removeHdrInstances(HeaderElement root, boolean bFilter) {
if (null == root) {
return;
}
HeaderKeys key = root.getKey();
if (bFilter && key.useFilters()) {
filterRemove(key, null);
}
HeaderElement elem = root;
while (null != ele... | java | private void removeHdrInstances(HeaderElement root, boolean bFilter) {
if (null == root) {
return;
}
HeaderKeys key = root.getKey();
if (bFilter && key.useFilters()) {
filterRemove(key, null);
}
HeaderElement elem = root;
while (null != ele... | [
"private",
"void",
"removeHdrInstances",
"(",
"HeaderElement",
"root",
",",
"boolean",
"bFilter",
")",
"{",
"if",
"(",
"null",
"==",
"root",
")",
"{",
"return",
";",
"}",
"HeaderKeys",
"key",
"=",
"root",
".",
"getKey",
"(",
")",
";",
"if",
"(",
"bFilt... | Remove all instances of this header.
@param root
@param bFilter | [
"Remove",
"all",
"instances",
"of",
"this",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2290-L2303 |
65,867 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.setSpecialHeader | protected void setSpecialHeader(HeaderKeys key, byte[] value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setSpecialHeader(h,b[]): " + key.getName());
}
removeHdrInstances(findHeader(key), FILTER_NO);
HeaderElement elem = getElement(key)... | java | protected void setSpecialHeader(HeaderKeys key, byte[] value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setSpecialHeader(h,b[]): " + key.getName());
}
removeHdrInstances(findHeader(key), FILTER_NO);
HeaderElement elem = getElement(key)... | [
"protected",
"void",
"setSpecialHeader",
"(",
"HeaderKeys",
"key",
",",
"byte",
"[",
"]",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"("... | Set one of the special headers that does not require the headerkey
filterX methods to be called.
@param key
@param value | [
"Set",
"one",
"of",
"the",
"special",
"headers",
"that",
"does",
"not",
"require",
"the",
"headerkey",
"filterX",
"methods",
"to",
"be",
"called",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2312-L2320 |
65,868 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.setHeaderChangeLimit | public void setHeaderChangeLimit(int limit) {
this.headerChangeLimit = limit;
this.bOverChangeLimit = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Setting header change limit to " + limit);
}
} | java | public void setHeaderChangeLimit(int limit) {
this.headerChangeLimit = limit;
this.bOverChangeLimit = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Setting header change limit to " + limit);
}
} | [
"public",
"void",
"setHeaderChangeLimit",
"(",
"int",
"limit",
")",
"{",
"this",
".",
"headerChangeLimit",
"=",
"limit",
";",
"this",
".",
"bOverChangeLimit",
"=",
"false",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
"... | Set the limit on the number of allowed header changes before this message
must be remarshalled.
@param limit | [
"Set",
"the",
"limit",
"on",
"the",
"number",
"of",
"allowed",
"header",
"changes",
"before",
"this",
"message",
"must",
"be",
"remarshalled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2360-L2366 |
65,869 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.allocateBuffer | public WsByteBuffer allocateBuffer(int size) {
WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager();
WsByteBuffer wsbb = (this.useDirectBuffer) ? mgr.allocateDirect(size) : mgr.allocate(size);
addToCreatedBuffer(wsbb);
return wsbb;
} | java | public WsByteBuffer allocateBuffer(int size) {
WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager();
WsByteBuffer wsbb = (this.useDirectBuffer) ? mgr.allocateDirect(size) : mgr.allocate(size);
addToCreatedBuffer(wsbb);
return wsbb;
} | [
"public",
"WsByteBuffer",
"allocateBuffer",
"(",
"int",
"size",
")",
"{",
"WsByteBufferPoolManager",
"mgr",
"=",
"HttpDispatcher",
".",
"getBufferManager",
"(",
")",
";",
"WsByteBuffer",
"wsbb",
"=",
"(",
"this",
".",
"useDirectBuffer",
")",
"?",
"mgr",
".",
"... | Allocate a buffer according to the requested input size.
@param size
@return WsByteBuffer | [
"Allocate",
"a",
"buffer",
"according",
"to",
"the",
"requested",
"input",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2495-L2500 |
65,870 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.setDebugContext | @Override
public void setDebugContext(Object o) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "debugContext set to " + o + " for " + this);
}
if (null != o) {
this.debugContext = o;
}
} | java | @Override
public void setDebugContext(Object o) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "debugContext set to " + o + " for " + this);
}
if (null != o) {
this.debugContext = o;
}
} | [
"@",
"Override",
"public",
"void",
"setDebugContext",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"debugCont... | Allow the debug context object to be set to the input Object for more
specialized debugging. A null input object will be ignored.
@param o | [
"Allow",
"the",
"debug",
"context",
"object",
"to",
"be",
"set",
"to",
"the",
"input",
"Object",
"for",
"more",
"specialized",
"debugging",
".",
"A",
"null",
"input",
"object",
"will",
"be",
"ignored",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2530-L2538 |
65,871 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.incrementHeaderCounter | private void incrementHeaderCounter() {
this.numberOfHeaders++;
this.headerAddCount++;
if (this.limitNumHeaders < this.numberOfHeaders) {
String msg = "Too many headers in storage: " + this.numberOfHeaders;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... | java | private void incrementHeaderCounter() {
this.numberOfHeaders++;
this.headerAddCount++;
if (this.limitNumHeaders < this.numberOfHeaders) {
String msg = "Too many headers in storage: " + this.numberOfHeaders;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... | [
"private",
"void",
"incrementHeaderCounter",
"(",
")",
"{",
"this",
".",
"numberOfHeaders",
"++",
";",
"this",
".",
"headerAddCount",
"++",
";",
"if",
"(",
"this",
".",
"limitNumHeaders",
"<",
"this",
".",
"numberOfHeaders",
")",
"{",
"String",
"msg",
"=",
... | Increment the number of headers in storage counter by one. If this puts
it over the limit for the message, then an exception is thrown.
@throws IllegalArgumentException if there are now too many headers | [
"Increment",
"the",
"number",
"of",
"headers",
"in",
"storage",
"counter",
"by",
"one",
".",
"If",
"this",
"puts",
"it",
"over",
"the",
"limit",
"for",
"the",
"message",
"then",
"an",
"exception",
"is",
"thrown",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2665-L2675 |
65,872 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.checkHeaderValue | private void checkHeaderValue(byte[] data, int offset, int length) {
// if the last character is a CR or LF, then this fails
int index = (offset + length) - 1;
if (index < 0) {
// empty data, quit now with success
return;
}
String error = null;
if ... | java | private void checkHeaderValue(byte[] data, int offset, int length) {
// if the last character is a CR or LF, then this fails
int index = (offset + length) - 1;
if (index < 0) {
// empty data, quit now with success
return;
}
String error = null;
if ... | [
"private",
"void",
"checkHeaderValue",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"// if the last character is a CR or LF, then this fails",
"int",
"index",
"=",
"(",
"offset",
"+",
"length",
")",
"-",
"1",
";",
"if",
... | Check the input header value for validity, starting at the offset and
continuing for the input length of characters.
@param data
@param offset
@param length | [
"Check",
"the",
"input",
"header",
"value",
"for",
"validity",
"starting",
"at",
"the",
"offset",
"and",
"continuing",
"for",
"the",
"input",
"length",
"of",
"characters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2725-L2769 |
65,873 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.checkHeaderValue | private void checkHeaderValue(String data) {
// if the last character is a CR or LF, then this fails
int index = data.length() - 1;
if (index < 0) {
// empty string, quit now with success
return;
}
String error = null;
char c = data.charAt(index);
... | java | private void checkHeaderValue(String data) {
// if the last character is a CR or LF, then this fails
int index = data.length() - 1;
if (index < 0) {
// empty string, quit now with success
return;
}
String error = null;
char c = data.charAt(index);
... | [
"private",
"void",
"checkHeaderValue",
"(",
"String",
"data",
")",
"{",
"// if the last character is a CR or LF, then this fails",
"int",
"index",
"=",
"data",
".",
"length",
"(",
")",
"-",
"1",
";",
"if",
"(",
"index",
"<",
"0",
")",
"{",
"// empty string, quit... | Check the input header value for validity.
@param data
@exception IllegalArgumentException if invalid | [
"Check",
"the",
"input",
"header",
"value",
"for",
"validity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2946-L2983 |
65,874 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.countInstances | private int countInstances(HeaderElement root) {
int count = 0;
HeaderElement elem = root;
while (null != elem) {
if (!elem.wasRemoved()) {
count++;
}
elem = elem.nextInstance;
}
return count;
} | java | private int countInstances(HeaderElement root) {
int count = 0;
HeaderElement elem = root;
while (null != elem) {
if (!elem.wasRemoved()) {
count++;
}
elem = elem.nextInstance;
}
return count;
} | [
"private",
"int",
"countInstances",
"(",
"HeaderElement",
"root",
")",
"{",
"int",
"count",
"=",
"0",
";",
"HeaderElement",
"elem",
"=",
"root",
";",
"while",
"(",
"null",
"!=",
"elem",
")",
"{",
"if",
"(",
"!",
"elem",
".",
"wasRemoved",
"(",
")",
"... | Count the number of instances of this header starting at the given
element.
@param root
@return int | [
"Count",
"the",
"number",
"of",
"instances",
"of",
"this",
"header",
"starting",
"at",
"the",
"given",
"element",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2992-L3002 |
65,875 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.skipWhiteSpace | private boolean skipWhiteSpace(WsByteBuffer buff) {
// keep reading until we hit the end of the buffer or a non-space char
byte b;
do {
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buff)) {
// not filled
return ... | java | private boolean skipWhiteSpace(WsByteBuffer buff) {
// keep reading until we hit the end of the buffer or a non-space char
byte b;
do {
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buff)) {
// not filled
return ... | [
"private",
"boolean",
"skipWhiteSpace",
"(",
"WsByteBuffer",
"buff",
")",
"{",
"// keep reading until we hit the end of the buffer or a non-space char",
"byte",
"b",
";",
"do",
"{",
"if",
"(",
"this",
".",
"bytePosition",
">=",
"this",
".",
"byteLimit",
")",
"{",
"i... | Skip any whitespace that might be at the start of this buffer.
@param buff
@return boolean (true if found non whitespace, false if end
of buffer found) | [
"Skip",
"any",
"whitespace",
"that",
"might",
"be",
"at",
"the",
"start",
"of",
"this",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3011-L3027 |
65,876 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.addInstanceOfElement | private boolean addInstanceOfElement(HeaderElement root, HeaderElement elem) {
// first add to the overall sequence list
if (null == this.hdrSequence) {
this.hdrSequence = elem;
this.lastHdrInSequence = elem;
} else {
// find the end of the list and append thi... | java | private boolean addInstanceOfElement(HeaderElement root, HeaderElement elem) {
// first add to the overall sequence list
if (null == this.hdrSequence) {
this.hdrSequence = elem;
this.lastHdrInSequence = elem;
} else {
// find the end of the list and append thi... | [
"private",
"boolean",
"addInstanceOfElement",
"(",
"HeaderElement",
"root",
",",
"HeaderElement",
"elem",
")",
"{",
"// first add to the overall sequence list",
"if",
"(",
"null",
"==",
"this",
".",
"hdrSequence",
")",
"{",
"this",
".",
"hdrSequence",
"=",
"elem",
... | Helper method to add a new instance of a HeaderElement to
root's internal list. This might be the first instance, or an
additional instance in which case it will be added at the end
of the list.
@param root
@param elem
@return boolean | [
"Helper",
"method",
"to",
"add",
"a",
"new",
"instance",
"of",
"a",
"HeaderElement",
"to",
"root",
"s",
"internal",
"list",
".",
"This",
"might",
"be",
"the",
"first",
"instance",
"or",
"an",
"additional",
"instance",
"in",
"which",
"case",
"it",
"will",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3043-L3063 |
65,877 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.putInt | protected WsByteBuffer[] putInt(int data, WsByteBuffer[] buffers) {
return putBytes(GenericUtils.asBytes(data), buffers);
} | java | protected WsByteBuffer[] putInt(int data, WsByteBuffer[] buffers) {
return putBytes(GenericUtils.asBytes(data), buffers);
} | [
"protected",
"WsByteBuffer",
"[",
"]",
"putInt",
"(",
"int",
"data",
",",
"WsByteBuffer",
"[",
"]",
"buffers",
")",
"{",
"return",
"putBytes",
"(",
"GenericUtils",
".",
"asBytes",
"(",
"data",
")",
",",
"buffers",
")",
";",
"}"
] | Place the input int value into the outgoing cache. This will return
the buffer array as it may have changed if the cache need to be flushed.
@param data
@param buffers
@return WsByteBuffer[] | [
"Place",
"the",
"input",
"int",
"value",
"into",
"the",
"outgoing",
"cache",
".",
"This",
"will",
"return",
"the",
"buffer",
"array",
"as",
"it",
"may",
"have",
"changed",
"if",
"the",
"cache",
"need",
"to",
"be",
"flushed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3073-L3075 |
65,878 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.flushCache | protected WsByteBuffer[] flushCache(WsByteBuffer[] buffers) {
// PK13351 - use the offset/length version to write only what we need
// to and avoid the extra memory allocation
int pos = this.bytePosition;
if (0 == pos) {
// nothing to write
return buffers;
... | java | protected WsByteBuffer[] flushCache(WsByteBuffer[] buffers) {
// PK13351 - use the offset/length version to write only what we need
// to and avoid the extra memory allocation
int pos = this.bytePosition;
if (0 == pos) {
// nothing to write
return buffers;
... | [
"protected",
"WsByteBuffer",
"[",
"]",
"flushCache",
"(",
"WsByteBuffer",
"[",
"]",
"buffers",
")",
"{",
"// PK13351 - use the offset/length version to write only what we need",
"// to and avoid the extra memory allocation",
"int",
"pos",
"=",
"this",
".",
"bytePosition",
";"... | Method to flush whatever is in the cache into the input buffers. These
buffers are then returned to the caller as the flush may have needed to
expand the list.
@param buffers
@return WsByteBuffer[] | [
"Method",
"to",
"flush",
"whatever",
"is",
"in",
"the",
"cache",
"into",
"the",
"input",
"buffers",
".",
"These",
"buffers",
"are",
"then",
"returned",
"to",
"the",
"caller",
"as",
"the",
"flush",
"may",
"have",
"needed",
"to",
"expand",
"the",
"list",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3183-L3193 |
65,879 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.decrementBytePositionIgnoringLFs | final protected void decrementBytePositionIgnoringLFs() {
// PK15898 - added for just LF after first line
this.bytePosition--;
if (BNFHeaders.LF == this.byteCache[this.bytePosition]) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "de... | java | final protected void decrementBytePositionIgnoringLFs() {
// PK15898 - added for just LF after first line
this.bytePosition--;
if (BNFHeaders.LF == this.byteCache[this.bytePosition]) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "de... | [
"final",
"protected",
"void",
"decrementBytePositionIgnoringLFs",
"(",
")",
"{",
"// PK15898 - added for just LF after first line",
"this",
".",
"bytePosition",
"--",
";",
"if",
"(",
"BNFHeaders",
".",
"LF",
"==",
"this",
".",
"byteCache",
"[",
"this",
".",
"bytePos... | Decrement the byte position unless it points to an LF character, in which
case just leave the byte position alone. | [
"Decrement",
"the",
"byte",
"position",
"unless",
"it",
"points",
"to",
"an",
"LF",
"character",
"in",
"which",
"case",
"just",
"leave",
"the",
"byte",
"position",
"alone",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3212-L3221 |
65,880 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.resetCacheToken | final protected void resetCacheToken(int len) {
if (null == this.parsedToken || len != this.parsedToken.length) {
this.parsedToken = new byte[len];
}
this.parsedTokenLength = 0;
} | java | final protected void resetCacheToken(int len) {
if (null == this.parsedToken || len != this.parsedToken.length) {
this.parsedToken = new byte[len];
}
this.parsedTokenLength = 0;
} | [
"final",
"protected",
"void",
"resetCacheToken",
"(",
"int",
"len",
")",
"{",
"if",
"(",
"null",
"==",
"this",
".",
"parsedToken",
"||",
"len",
"!=",
"this",
".",
"parsedToken",
".",
"length",
")",
"{",
"this",
".",
"parsedToken",
"=",
"new",
"byte",
"... | Reset the parse byte token based on the input length. If the existing
array is the same size, then this is a simple reset. This is intended
to only be used when the contents have already been extracted and can
be overwritten with new data.
@param len | [
"Reset",
"the",
"parse",
"byte",
"token",
"based",
"on",
"the",
"input",
"length",
".",
"If",
"the",
"existing",
"array",
"is",
"the",
"same",
"size",
"then",
"this",
"is",
"a",
"simple",
"reset",
".",
"This",
"is",
"intended",
"to",
"only",
"be",
"use... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3251-L3256 |
65,881 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.fillCacheToken | final protected boolean fillCacheToken(WsByteBuffer buff) {
// figure out how much we have left to copy out, append to any existing
// parsed token (multiple passes through here).
int curr_len = this.parsedTokenLength;
int need_len = this.parsedToken.length - curr_len;
int copy_l... | java | final protected boolean fillCacheToken(WsByteBuffer buff) {
// figure out how much we have left to copy out, append to any existing
// parsed token (multiple passes through here).
int curr_len = this.parsedTokenLength;
int need_len = this.parsedToken.length - curr_len;
int copy_l... | [
"final",
"protected",
"boolean",
"fillCacheToken",
"(",
"WsByteBuffer",
"buff",
")",
"{",
"// figure out how much we have left to copy out, append to any existing",
"// parsed token (multiple passes through here).",
"int",
"curr_len",
"=",
"this",
".",
"parsedTokenLength",
";",
"... | Method to fill the parse token from the given input buffer. The token
array must have been created prior to this attempt to fill it.
@param buff
@return boolean (true means success) | [
"Method",
"to",
"fill",
"the",
"parse",
"token",
"from",
"the",
"given",
"input",
"buffer",
".",
"The",
"token",
"array",
"must",
"have",
"been",
"created",
"prior",
"to",
"this",
"attempt",
"to",
"fill",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3265-L3297 |
65,882 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.fillByteCache | protected boolean fillByteCache(WsByteBuffer buff) {
if (this.bytePosition < this.byteLimit) {
return false;
}
int size = buff.remaining();
if (size > this.byteCacheSize) {
// truncate to just fill up the cache
size = this.byteCacheSize;
}
... | java | protected boolean fillByteCache(WsByteBuffer buff) {
if (this.bytePosition < this.byteLimit) {
return false;
}
int size = buff.remaining();
if (size > this.byteCacheSize) {
// truncate to just fill up the cache
size = this.byteCacheSize;
}
... | [
"protected",
"boolean",
"fillByteCache",
"(",
"WsByteBuffer",
"buff",
")",
"{",
"if",
"(",
"this",
".",
"bytePosition",
"<",
"this",
".",
"byteLimit",
")",
"{",
"return",
"false",
";",
"}",
"int",
"size",
"=",
"buff",
".",
"remaining",
"(",
")",
";",
"... | Fills the byte cache.
@param buff
@return true on success and false on failure. | [
"Fills",
"the",
"byte",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3305-L3331 |
65,883 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.findCRLFTokenLength | protected TokenCodes findCRLFTokenLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Null buffer provided");
... | java | protected TokenCodes findCRLFTokenLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Null buffer provided");
... | [
"protected",
"TokenCodes",
"findCRLFTokenLength",
"(",
"WsByteBuffer",
"buff",
")",
"throws",
"MalformedMessageException",
"{",
"TokenCodes",
"rc",
"=",
"TokenCodes",
".",
"TOKEN_RC_MOREDATA",
";",
"if",
"(",
"null",
"==",
"buff",
")",
"{",
"if",
"(",
"TraceCompon... | Parse a CRLF delimited token and return the length of the token.
@param buff
@return TokenCodes (global length variable is set to parsed length)
@throws MalformedMessageException | [
"Parse",
"a",
"CRLF",
"delimited",
"token",
"and",
"return",
"the",
"length",
"of",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3351-L3410 |
65,884 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.skipCRLFs | protected TokenCodes skipCRLFs(WsByteBuffer buffer) {
int maxCRLFs = 33;
// limit is the max number of CRLFs to skip
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buffer)) {
// no more data
return TokenCodes.TOKEN_RC_MOREDATA;
... | java | protected TokenCodes skipCRLFs(WsByteBuffer buffer) {
int maxCRLFs = 33;
// limit is the max number of CRLFs to skip
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buffer)) {
// no more data
return TokenCodes.TOKEN_RC_MOREDATA;
... | [
"protected",
"TokenCodes",
"skipCRLFs",
"(",
"WsByteBuffer",
"buffer",
")",
"{",
"int",
"maxCRLFs",
"=",
"33",
";",
"// limit is the max number of CRLFs to skip",
"if",
"(",
"this",
".",
"bytePosition",
">=",
"this",
".",
"byteLimit",
")",
"{",
"if",
"(",
"!",
... | This method is used to skip leading CRLF characters. It will stop when
it finds a non-CRLF character, runs out of data, or finds too many CRLFs
@param buffer
@return TokenCodes -- MOREDATA means it ran out of buffer information,
DELIM means it found a non-CRLF character, and CRLF means it found
too many CRLFs | [
"This",
"method",
"is",
"used",
"to",
"skip",
"leading",
"CRLF",
"characters",
".",
"It",
"will",
"stop",
"when",
"it",
"finds",
"a",
"non",
"-",
"CRLF",
"character",
"runs",
"out",
"of",
"data",
"or",
"finds",
"too",
"many",
"CRLFs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3506-L3539 |
65,885 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.findHeaderLength | protected TokenCodes findHeaderLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "findHeaderLength: null buffer provi... | java | protected TokenCodes findHeaderLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "findHeaderLength: null buffer provi... | [
"protected",
"TokenCodes",
"findHeaderLength",
"(",
"WsByteBuffer",
"buff",
")",
"throws",
"MalformedMessageException",
"{",
"TokenCodes",
"rc",
"=",
"TokenCodes",
".",
"TOKEN_RC_MOREDATA",
";",
"if",
"(",
"null",
"==",
"buff",
")",
"{",
"if",
"(",
"TraceComponent... | Parse a byte delimited token and return the length of the token.
@param buff
@return TokenCodes (global length variable is set to parsed length)
@throws MalformedMessageException | [
"Parse",
"a",
"byte",
"delimited",
"token",
"and",
"return",
"the",
"length",
"of",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3659-L3732 |
65,886 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.parseHeaderName | private boolean parseHeaderName(WsByteBuffer buff) throws MalformedMessageException {
// if we're just starting, then skip leading white space characters
// otherwise ignore them (i.e we might be in the middle of
// "Mozilla/5.0 (Win"
if (null == this.parsedToken) {
if (!ski... | java | private boolean parseHeaderName(WsByteBuffer buff) throws MalformedMessageException {
// if we're just starting, then skip leading white space characters
// otherwise ignore them (i.e we might be in the middle of
// "Mozilla/5.0 (Win"
if (null == this.parsedToken) {
if (!ski... | [
"private",
"boolean",
"parseHeaderName",
"(",
"WsByteBuffer",
"buff",
")",
"throws",
"MalformedMessageException",
"{",
"// if we're just starting, then skip leading white space characters",
"// otherwise ignore them (i.e we might be in the middle of",
"// \"Mozilla/5.0 (Win\"",
"if",
"("... | Utility method to parse the header name from the input buffer.
@param buff
@return boolean (false means it needs more data, true otherwise)
@throws MalformedMessageException | [
"Utility",
"method",
"to",
"parse",
"the",
"header",
"name",
"from",
"the",
"input",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3741-L3802 |
65,887 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.parseHeaderValueExtract | private boolean parseHeaderValueExtract(WsByteBuffer buff) throws MalformedMessageException {
// 295178 - don't log sensitive information
// log value contents based on the header key (if known)
int log = LOG_FULL;
HeaderKeys key = this.currentElem.getKey();
if (null != key && !... | java | private boolean parseHeaderValueExtract(WsByteBuffer buff) throws MalformedMessageException {
// 295178 - don't log sensitive information
// log value contents based on the header key (if known)
int log = LOG_FULL;
HeaderKeys key = this.currentElem.getKey();
if (null != key && !... | [
"private",
"boolean",
"parseHeaderValueExtract",
"(",
"WsByteBuffer",
"buff",
")",
"throws",
"MalformedMessageException",
"{",
"// 295178 - don't log sensitive information",
"// log value contents based on the header key (if known)",
"int",
"log",
"=",
"LOG_FULL",
";",
"HeaderKeys"... | Utility method for parsing a header value out of the input buffer.
@param buff
@return boolean (false if need more data, true otherwise)
@throws MalformedMessageException | [
"Utility",
"method",
"for",
"parsing",
"a",
"header",
"value",
"out",
"of",
"the",
"input",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3811-L3832 |
65,888 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.parseTokenNonExtract | protected int parseTokenNonExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF) throws MalformedMessageException {
TokenCodes rc = findTokenLength(buff, bDelimiter, bApproveCRLF);
return (TokenCodes.TOKEN_RC_MOREDATA.equals(rc)) ? -1 : this.parsedTokenLength;
} | java | protected int parseTokenNonExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF) throws MalformedMessageException {
TokenCodes rc = findTokenLength(buff, bDelimiter, bApproveCRLF);
return (TokenCodes.TOKEN_RC_MOREDATA.equals(rc)) ? -1 : this.parsedTokenLength;
} | [
"protected",
"int",
"parseTokenNonExtract",
"(",
"WsByteBuffer",
"buff",
",",
"byte",
"bDelimiter",
",",
"boolean",
"bApproveCRLF",
")",
"throws",
"MalformedMessageException",
"{",
"TokenCodes",
"rc",
"=",
"findTokenLength",
"(",
"buff",
",",
"bDelimiter",
",",
"bAp... | Standard parsing of a token; however, instead of saving the data into
the global parsedToken variable, this merely returns the length of the
token. Used for occasions where we just need to find the length of
the token.
@param buff
@param bDelimiter
@param bApproveCRLF
@return int (-1 means we need more data)
@throws M... | [
"Standard",
"parsing",
"of",
"a",
"token",
";",
"however",
"instead",
"of",
"saving",
"the",
"data",
"into",
"the",
"global",
"parsedToken",
"variable",
"this",
"merely",
"returns",
"the",
"length",
"of",
"the",
"token",
".",
"Used",
"for",
"occasions",
"whe... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3917-L3921 |
65,889 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.saveParsedToken | private void saveParsedToken(WsByteBuffer buff, int start, boolean delim, int log) {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
// local copy of the length
int length = this.parsedTokenLength;
this.parsedTokenLength = 0;
if (0 > length) {
throw new ... | java | private void saveParsedToken(WsByteBuffer buff, int start, boolean delim, int log) {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
// local copy of the length
int length = this.parsedTokenLength;
this.parsedTokenLength = 0;
if (0 > length) {
throw new ... | [
"private",
"void",
"saveParsedToken",
"(",
"WsByteBuffer",
"buff",
",",
"int",
"start",
",",
"boolean",
"delim",
",",
"int",
"log",
")",
"{",
"final",
"boolean",
"bTrace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"// local copy of the le... | Sets the temporary parse token from the input buffer.
@param buff The current WsByteBuffer being parsed
@param start The start position of the token
@param delim Did we stop on the delimiter or not?
@param log Whether to log the contents or not | [
"Sets",
"the",
"temporary",
"parse",
"token",
"from",
"the",
"input",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3973-L4045 |
65,890 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java | BNFHeadersImpl.parsedCompactHeader | public void parsedCompactHeader(boolean flag) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "parsedCompactHeader: " + flag);
}
this.compactHeaderFlag = flag;
} | java | public void parsedCompactHeader(boolean flag) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "parsedCompactHeader: " + flag);
}
this.compactHeaderFlag = flag;
} | [
"public",
"void",
"parsedCompactHeader",
"(",
"boolean",
"flag",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"parsedCompactHeader: \... | Sets the flag indicating that a SIP compact header has been parsed.
@param flag Whether or not a header is in compact for or not | [
"Sets",
"the",
"flag",
"indicating",
"that",
"a",
"SIP",
"compact",
"header",
"has",
"been",
"parsed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L4052-L4058 |
65,891 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java | MPAlarmThread.finishAlarmThread | void finishAlarmThread()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "finishAlarmThread");
//wake up the thread so that it will exit it's main loop and end
synchronized(wakeupLock)
{
//flag this alarm thread as finished
finished = true;
... | java | void finishAlarmThread()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "finishAlarmThread");
//wake up the thread so that it will exit it's main loop and end
synchronized(wakeupLock)
{
//flag this alarm thread as finished
finished = true;
... | [
"void",
"finishAlarmThread",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"finishAlarmThread\"",
")",
";",
"//wake up the thread so ... | Terminate this alarm thread. This is final, the thread should not
be restarted. | [
"Terminate",
"this",
"alarm",
"thread",
".",
"This",
"is",
"final",
"the",
"thread",
"should",
"not",
"be",
"restarted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java#L135-L151 |
65,892 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java | MPAlarmThread.run | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "run");
try
{
//loop until finished
while(!finished)
{
//what time is it now
long now = System.currentTimeMillis();
boolean fire = false;
//synchr... | java | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "run");
try
{
//loop until finished
while(!finished)
{
//what time is it now
long now = System.currentTimeMillis();
boolean fire = false;
//synchr... | [
"public",
"void",
"run",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"run\"",
")",
";",
"try",
"{",
"//loop until finished",
... | The main loop for the MPAlarmThread. Loops until the alarm thread
is marked as finished. If the alarm thread is suspended, it will
wait forever. Otherwise the it will wait inside the loop until a
specified time and then call the MPAlarmManager.fireInternalAlarm
method. | [
"The",
"main",
"loop",
"for",
"the",
"MPAlarmThread",
".",
"Loops",
"until",
"the",
"alarm",
"thread",
"is",
"marked",
"as",
"finished",
".",
"If",
"the",
"alarm",
"thread",
"is",
"suspended",
"it",
"will",
"wait",
"forever",
".",
"Otherwise",
"the",
"it",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java#L160-L275 |
65,893 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.startInactivityTimer | public boolean startInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "startInactivityTimer");
if (_inactivityTimeout > 0
&& _status.getState() == TransactionState.STATE_ACTIVE
... | java | public boolean startInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "startInactivityTimer");
if (_inactivityTimeout > 0
&& _status.getState() == TransactionState.STATE_ACTIVE
... | [
"public",
"boolean",
"startInactivityTimer",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"t... | Start an inactivity timer and call alarm method of parameter when
timeout expires.
@param iat callback object to be notified when timer expires.
This may be null.
@exception SystemException thrown if transaction is not active | [
"Start",
"an",
"inactivity",
"timer",
"and",
"call",
"alarm",
"method",
"of",
"parameter",
"when",
"timeout",
"expires",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L205-L224 |
65,894 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.rollbackResources | public void rollbackResources() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "rollbackResources");
try {
final Transaction t = ((EmbeddableTranManagerSet) TransactionManagerFactory.getTransactionManager... | java | public void rollbackResources() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "rollbackResources");
try {
final Transaction t = ((EmbeddableTranManagerSet) TransactionManagerFactory.getTransactionManager... | [
"public",
"void",
"rollbackResources",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
... | Rollback all resources, but do not drive state changes.
Used when transaction HAS TIMED OUT. | [
"Rollback",
"all",
"resources",
"but",
"do",
"not",
"drive",
"state",
"changes",
".",
"Used",
"when",
"transaction",
"HAS",
"TIMED",
"OUT",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L230-L249 |
65,895 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.stopInactivityTimer | public synchronized void stopInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "stopInactivityTimer");
if (_inactivityTimerActive) {
_inactivityTimerActive = false;
EmbeddableTi... | java | public synchronized void stopInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "stopInactivityTimer");
if (_inactivityTimerActive) {
_inactivityTimerActive = false;
EmbeddableTi... | [
"public",
"synchronized",
"void",
"stopInactivityTimer",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry... | Stop inactivity timer associated with transaction.
This method needs to be synchronized to serialize with inactivity
timeout. If the timeout runs after this method, then there will
be no _inactivityTimer to call and the context will be on_server.
If the timeout runs before, then a subsequent resume will fail
as the tra... | [
"Stop",
"inactivity",
"timer",
"associated",
"with",
"transaction",
".",
"This",
"method",
"needs",
"to",
"be",
"synchronized",
"to",
"serialize",
"with",
"inactivity",
"timeout",
".",
"If",
"the",
"timeout",
"runs",
"after",
"this",
"method",
"then",
"there",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L269-L287 |
65,896 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.resumeAssociation | @Override
public void resumeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation");
resumeAssociation(true);
if (traceOn && tc.isEntryEnabled())
Tr.exit(tc, "resume... | java | @Override
public void resumeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation");
resumeAssociation(true);
if (traceOn && tc.isEntryEnabled())
Tr.exit(tc, "resume... | [
"@",
"Override",
"public",
"void",
"resumeAssociation",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entr... | Called by interceptor when incoming reply arrives.
This polices the single threaded operation of the transaction. | [
"Called",
"by",
"interceptor",
"when",
"incoming",
"reply",
"arrives",
".",
"This",
"polices",
"the",
"single",
"threaded",
"operation",
"of",
"the",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L419-L430 |
65,897 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.resumeAssociation | public synchronized void resumeAssociation(boolean allowSetRollback) throws TRANSACTION_ROLLEDBACK {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation", allowSetRollback);
// if another thread is active... | java | public synchronized void resumeAssociation(boolean allowSetRollback) throws TRANSACTION_ROLLEDBACK {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation", allowSetRollback);
// if another thread is active... | [
"public",
"synchronized",
"void",
"resumeAssociation",
"(",
"boolean",
"allowSetRollback",
")",
"throws",
"TRANSACTION_ROLLEDBACK",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc"... | This polices the single threaded operation of the transaction.
allowSetRollback indicates whether the condition where there is already an
active association should result in rolling back the transaction.
In the standard case of a client interceptor attempting to resume the association between
a transaction and the thr... | [
"This",
"polices",
"the",
"single",
"threaded",
"operation",
"of",
"the",
"transaction",
".",
"allowSetRollback",
"indicates",
"whether",
"the",
"condition",
"where",
"there",
"is",
"already",
"an",
"active",
"association",
"should",
"result",
"in",
"rolling",
"ba... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L450-L489 |
65,898 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.addAssociation | @Override
public synchronized void addAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "addAssociation");
if (_activeAssociations > _suspendedAssociations) {
if (traceOn && tc.isDebugEnabl... | java | @Override
public synchronized void addAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "addAssociation");
if (_activeAssociations > _suspendedAssociations) {
if (traceOn && tc.isDebugEnabl... | [
"@",
"Override",
"public",
"synchronized",
"void",
"addAssociation",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",... | Called by interceptor when incoming request arrives.
This polices the single threaded operation of the transaction. | [
"Called",
"by",
"interceptor",
"when",
"incoming",
"request",
"arrives",
".",
"This",
"polices",
"the",
"single",
"threaded",
"operation",
"of",
"the",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L510-L539 |
65,899 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java | EmbeddableTransactionImpl.removeAssociation | @Override
public synchronized void removeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "removeAssociation");
_activeAssociations--;
if (_activeAssociations <= 0) {
startInactiv... | java | @Override
public synchronized void removeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "removeAssociation");
_activeAssociations--;
if (_activeAssociations <= 0) {
startInactiv... | [
"@",
"Override",
"public",
"synchronized",
"void",
"removeAssociation",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"T... | Called by interceptor when reply is sent.
This updates the server association count for this context. | [
"Called",
"by",
"interceptor",
"when",
"reply",
"is",
"sent",
".",
"This",
"updates",
"the",
"server",
"association",
"count",
"for",
"this",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L545-L564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.