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
66,200
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.getInsertStack
private InsertStack getInsertStack() { Object x = _insertStack.get(); InsertStack g = null; if (x != null) { g = (InsertStack) x; g.reset(); } else { g = new InsertStack(this); x = (Object) g; _insert...
java
private InsertStack getInsertStack() { Object x = _insertStack.get(); InsertStack g = null; if (x != null) { g = (InsertStack) x; g.reset(); } else { g = new InsertStack(this); x = (Object) g; _insert...
[ "private", "InsertStack", "getInsertStack", "(", ")", "{", "Object", "x", "=", "_insertStack", ".", "get", "(", ")", ";", "InsertStack", "g", "=", "null", ";", "if", "(", "x", "!=", "null", ")", "{", "g", "=", "(", "InsertStack", ")", "x", ";", "g"...
Find an InsertStack for use by the current thread. <p>Allocation of an InsertStack is more expensive than serial reuse. This is a very cheap form of pooling done by attaching an InsertStack to each thread that calls insert.</p>
[ "Find", "an", "InsertStack", "for", "use", "by", "the", "current", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1101-L1117
66,201
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.insert
public boolean insert( Object new1) { boolean result; InsertStack stack = getInsertStack(); if (root() == null) pessimisticInsert(stack, new1); else { boolean didit = optimisticInsert(stack, new1); if (di...
java
public boolean insert( Object new1) { boolean result; InsertStack stack = getInsertStack(); if (root() == null) pessimisticInsert(stack, new1); else { boolean didit = optimisticInsert(stack, new1); if (di...
[ "public", "boolean", "insert", "(", "Object", "new1", ")", "{", "boolean", "result", ";", "InsertStack", "stack", "=", "getInsertStack", "(", ")", ";", "if", "(", "root", "(", ")", "==", "null", ")", "pessimisticInsert", "(", "stack", ",", "new1", ")", ...
Insert into a GBS Tree. @param new1 The Object to be inserted. @return true if the Object was inserted, false if the Object was a duplicate of one already in the tree.
[ "Insert", "into", "a", "GBS", "Tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1127-L1146
66,202
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.optimisticInsert
private boolean optimisticInsert( InsertStack stack, Object new1) { InsertNodes point = stack.insertNodes(); int v1 = _vno; if (root() == null) return pessimisticNeeded; if ((v1&1) ...
java
private boolean optimisticInsert( InsertStack stack, Object new1) { InsertNodes point = stack.insertNodes(); int v1 = _vno; if (root() == null) return pessimisticNeeded; if ((v1&1) ...
[ "private", "boolean", "optimisticInsert", "(", "InsertStack", "stack", ",", "Object", "new1", ")", "{", "InsertNodes", "point", "=", "stack", ".", "insertNodes", "(", ")", ";", "int", "v1", "=", "_vno", ";", "if", "(", "root", "(", ")", "==", "null", "...
Optimistic insert into a GBS Tree. @param stack The InsertStack used to do the insert. @param new1 The Object to be inserted. @return optimisticWorked if the insert worked, pessimisticNeeded if the insert failed due to interference from another thread.
[ "Optimistic", "insert", "into", "a", "GBS", "Tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1158-L1219
66,203
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.pessimisticInsert
private synchronized boolean pessimisticInsert( InsertStack stack, Object new1) { _vno++; if ((_vno&1) == 1) { if (root() == null) { ad...
java
private synchronized boolean pessimisticInsert( InsertStack stack, Object new1) { _vno++; if ((_vno&1) == 1) { if (root() == null) { ad...
[ "private", "synchronized", "boolean", "pessimisticInsert", "(", "InsertStack", "stack", ",", "Object", "new1", ")", "{", "_vno", "++", ";", "if", "(", "(", "_vno", "&", "1", ")", "==", "1", ")", "{", "if", "(", "root", "(", ")", "==", "null", ")", ...
Pessimistic insert into a GBS Tree. @param stack The InsertStack used to do the insert. @param new1 The Object to be inserted. @return optimisticWorked as this version always works.
[ "Pessimistic", "insert", "into", "a", "GBS", "Tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1230-L1265
66,204
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.findInsert
private void findInsert( InsertNodes point, InsertStack stack, Object new1) { java.util.Comparator comp = insertComparator(); NodeInsertPoint ip = stack.nodeInsertPoint(); GBSNode p;...
java
private void findInsert( InsertNodes point, InsertStack stack, Object new1) { java.util.Comparator comp = insertComparator(); NodeInsertPoint ip = stack.nodeInsertPoint(); GBSNode p;...
[ "private", "void", "findInsert", "(", "InsertNodes", "point", ",", "InsertStack", "stack", ",", "Object", "new1", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "insertComparator", "(", ")", ";", "NodeInsertPoint", "ip", "=", "stack", ".", ...
Find the insert point within the tree. @param point Returned insert points. @param stack The InsertStack of nodes traversed. @param new1 The Object to be inserted.
[ "Find", "the", "insert", "point", "within", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1274-L1337
66,205
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftAdd
private void leftAdd( GBSNode p, GBSNode r, Object new1, NodeInsertPoint ip, InsertNodes point) { if (r == null) /* There is no upper...
java
private void leftAdd( GBSNode p, GBSNode r, Object new1, NodeInsertPoint ip, InsertNodes point) { if (r == null) /* There is no upper...
[ "private", "void", "leftAdd", "(", "GBSNode", "p", ",", "GBSNode", "r", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "if", "(", "r", "==", "null", ")", "/* There is no upper predecessor */", "leftAddNoPredec...
Add to predecssor or current. <ol> <li>There is no left child. <li>There might or might not be a right child <li>INSERT_KEY < MEDIAN of current node <li>INSERT_KEY > MEDIAN of predecessor (if there is one) </ol> <p>In the example below, if the current node is GHI, then the insert key is greater than E and less ...
[ "Add", "to", "predecssor", "or", "current", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1382-L1393
66,206
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftAddNoPredecessor
private void leftAddNoPredecessor( GBSNode p, Object new1, NodeInsertPoint ip, InsertNodes point) { p.findInsertPointInLeft(new1, i...
java
private void leftAddNoPredecessor( GBSNode p, Object new1, NodeInsertPoint ip, InsertNodes point) { p.findInsertPointInLeft(new1, i...
[ "private", "void", "leftAddNoPredecessor", "(", "GBSNode", "p", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "p", ".", "findInsertPointInLeft", "(", "new1", ",", "ip", ")", ";", "point", ".", "setInsert", "(", ...
Add to left side with no predecessor present. <p>There is no upper predecessor. If key exists it is in left part of current node.</p> @param p Current node from which we tried to move left @param new1 Key being inserted @param ip Scratch NodeInsertPoint to avoid allocating a new one @param point Returned insert poin...
[ "Add", "to", "left", "side", "with", "no", "predecessor", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1406-L1414
66,207
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftAddWithPredecessor
private void leftAddWithPredecessor( GBSNode p, GBSNode r, Object new1, NodeInsertPoint ip, ...
java
private void leftAddWithPredecessor( GBSNode p, GBSNode r, Object new1, NodeInsertPoint ip, ...
[ "private", "void", "leftAddWithPredecessor", "(", "GBSNode", "p", ",", "GBSNode", "r", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "r", ".", "insertComparato...
Add to left side with an upper predecessor present. <p>There is an upper predecessor. If the current key is greater than the right-most key of the upper predecessor then the insert point is in the left half of the current node.</p> <p>Otherwise it is in the right part of the upper predecessor. If it is not a duplica...
[ "Add", "to", "left", "side", "with", "an", "upper", "predecessor", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1434-L1467
66,208
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightAdd
private void rightAdd( GBSNode p, GBSNode l, Object new1, NodeInsertPoint ip, InsertNodes point) { if (l == null) /* There is no...
java
private void rightAdd( GBSNode p, GBSNode l, Object new1, NodeInsertPoint ip, InsertNodes point) { if (l == null) /* There is no...
[ "private", "void", "rightAdd", "(", "GBSNode", "p", ",", "GBSNode", "l", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "if", "(", "l", "==", "null", ")", "/* There is no upper successor */", "rightAddNoSucc...
Add to current or successor. <ol> <li>There is no right child <li>There may or may not be a left child. <li>INSERT_KEY > MEDIAN of current node. <li>INSERT_KEY < MEDIAN of successor (if there is one) </ol> <p>In the example below, if the current node is GHI, then the insert key is greater than H and less than K...
[ "Add", "to", "current", "or", "successor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1511-L1522
66,209
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightAddNoSuccessor
private void rightAddNoSuccessor( GBSNode p, Object new1, NodeInsertPoint ip, InsertNodes point) { if (p.lessThanHalfFull()) /* No...
java
private void rightAddNoSuccessor( GBSNode p, Object new1, NodeInsertPoint ip, InsertNodes point) { if (p.lessThanHalfFull()) /* No...
[ "private", "void", "rightAddNoSuccessor", "(", "GBSNode", "p", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "if", "(", "p", ".", "lessThanHalfFull", "(", ")", ")", "/* Node not even half full so the insert */", "/* p...
Add to right side with no upper successor present. <p>There is no upper successor. If key exists it is in right part of current node. If curent node is less than half full there can be no duplicate because the last compare that got us here was with the right-most key in the current node.</p> @param p Current node f...
[ "Add", "to", "right", "side", "with", "no", "upper", "successor", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1537-L1552
66,210
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightAddWithSuccessor
private void rightAddWithSuccessor( GBSNode p, GBSNode l, Object new1, NodeInsertPoint ip, Insert...
java
private void rightAddWithSuccessor( GBSNode p, GBSNode l, Object new1, NodeInsertPoint ip, Insert...
[ "private", "void", "rightAddWithSuccessor", "(", "GBSNode", "p", ",", "GBSNode", "l", ",", "Object", "new1", ",", "NodeInsertPoint", "ip", ",", "InsertNodes", "point", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "l", ".", "insertComparator...
Add to right side with an upper successor present. <p>There is an upper successor. If the current key is less than the left-most key of the upper successor then the insert point is in the right half of the current node.</p> <p>Otherwise it is in the left part of the upper successor. If it is not a duplicate of some ...
[ "Add", "to", "right", "side", "with", "an", "upper", "successor", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1571-L1609
66,211
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.finishInsert
private void finishInsert( InsertNodes point, InsertStack stack, Object new1) { Object insertKey = new1; if (point.positionNode() != null) { GBSNode p = point.positionNod...
java
private void finishInsert( InsertNodes point, InsertStack stack, Object new1) { Object insertKey = new1; if (point.positionNode() != null) { GBSNode p = point.positionNod...
[ "private", "void", "finishInsert", "(", "InsertNodes", "point", ",", "InsertStack", "stack", ",", "Object", "new1", ")", "{", "Object", "insertKey", "=", "new1", ";", "if", "(", "point", ".", "positionNode", "(", ")", "!=", "null", ")", "{", "GBSNode", "...
Do the write phase of the insert. <p>findInsert does all of the reading needed to find the insert point. finishInsert does all of the writing required to actually do the insert. It is called by either optimisticInsert or pessimisticInsert as the writing phase is the same regardless of the locking strategy.</p> @param...
[ "Do", "the", "write", "phase", "of", "the", "insert", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1624-L1650
66,212
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.insertFringeMigrate
private void insertFringeMigrate( InsertStack stack, GBSNode p, Object mkey) { GBSNode endp = p; int endIndex = stack.index(); /* Maximum number of right chi...
java
private void insertFringeMigrate( InsertStack stack, GBSNode p, Object mkey) { GBSNode endp = p; int endIndex = stack.index(); /* Maximum number of right chi...
[ "private", "void", "insertFringeMigrate", "(", "InsertStack", "stack", ",", "GBSNode", "p", ",", "Object", "mkey", ")", "{", "GBSNode", "endp", "=", "p", ";", "int", "endIndex", "=", "stack", ".", "index", "(", ")", ";", "/* Maximum number of right child nodes...
Migrate a key from a partial leaf through to the proper place in its fringe, adding a node to the right side of the fringe if necessary. @param stack The stack that has been used to walk the tree @param p Node from which we are migrating @param mkey The migrating key. This may be null in which case there is no k...
[ "Migrate", "a", "key", "from", "a", "partial", "leaf", "through", "to", "the", "proper", "place", "in", "its", "fringe", "adding", "a", "node", "to", "the", "right", "side", "of", "the", "fringe", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1662-L1692
66,213
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.insertCheckFringeBalance
private void insertCheckFringeBalance( InsertStack stack, GBSNode endp, int endIndex, int maxBal) { ...
java
private void insertCheckFringeBalance( InsertStack stack, GBSNode endp, int endIndex, int maxBal) { ...
[ "private", "void", "insertCheckFringeBalance", "(", "InsertStack", "stack", ",", "GBSNode", "endp", ",", "int", "endIndex", ",", "int", "maxBal", ")", "{", "GBSNode", "fpoint", "=", "null", ";", "/* This points to the first half leaf we */", "/* find that has a right c...
Check to see if fringe balancing is necessary and do it if needed. @param stack The stack that has been used to walk the tree @param endp Last node visited during fringe migration @param endIndex The index within stack of endp @param maxBal Maximum fringe imbalance allowed for the tree
[ "Check", "to", "see", "if", "fringe", "balancing", "is", "necessary", "and", "do", "it", "if", "needed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1702-L1747
66,214
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.getDeleteStack
private DeleteStack getDeleteStack() { Object x = _deleteStack.get(); DeleteStack g = null; if (x != null) { g = (DeleteStack) x; g.reset(); } else { g = new DeleteStack(this); x = (Object) g; _delete...
java
private DeleteStack getDeleteStack() { Object x = _deleteStack.get(); DeleteStack g = null; if (x != null) { g = (DeleteStack) x; g.reset(); } else { g = new DeleteStack(this); x = (Object) g; _delete...
[ "private", "DeleteStack", "getDeleteStack", "(", ")", "{", "Object", "x", "=", "_deleteStack", ".", "get", "(", ")", ";", "DeleteStack", "g", "=", "null", ";", "if", "(", "x", "!=", "null", ")", "{", "g", "=", "(", "DeleteStack", ")", "x", ";", "g"...
Find a DeleteStack for use by the current thread. <p>Allocation of a DeleteStack is more expensive than serial reuse. This is a very cheap form of pooling done by attaching a DeleteStack to each thread that calls delete.</p>
[ "Find", "a", "DeleteStack", "for", "use", "by", "the", "current", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1772-L1788
66,215
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.optimisticDelete
private boolean optimisticDelete( DeleteStack stack, Object deleteKey) { DeleteNode point = stack.deleteNode(); int v1 = _vno; if ((v1&1) != 0) return pessimisticNeeded; synchronize...
java
private boolean optimisticDelete( DeleteStack stack, Object deleteKey) { DeleteNode point = stack.deleteNode(); int v1 = _vno; if ((v1&1) != 0) return pessimisticNeeded; synchronize...
[ "private", "boolean", "optimisticDelete", "(", "DeleteStack", "stack", ",", "Object", "deleteKey", ")", "{", "DeleteNode", "point", "=", "stack", ".", "deleteNode", "(", ")", ";", "int", "v1", "=", "_vno", ";", "if", "(", "(", "v1", "&", "1", ")", "!="...
Optimistic delete from a GBS Tree. @param stack The DeleteStack used to do the delete. @param deleteKey The Object to be deleteed. @return optimisticWorked if the delete worked, pessimisticNeeded if the delete failed due to interference from another thread.
[ "Optimistic", "delete", "from", "a", "GBS", "Tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1831-L1887
66,216
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.iteratorSpecialDelete
void iteratorSpecialDelete( Iterator iter, GBSNode node, int index) { _vno++; if ((_vno&1) == 1) { node.deleteByLeftShift(index); node.adjustMedian(); ...
java
void iteratorSpecialDelete( Iterator iter, GBSNode node, int index) { _vno++; if ((_vno&1) == 1) { node.deleteByLeftShift(index); node.adjustMedian(); ...
[ "void", "iteratorSpecialDelete", "(", "Iterator", "iter", ",", "GBSNode", "node", ",", "int", "index", ")", "{", "_vno", "++", ";", "if", "(", "(", "_vno", "&", "1", ")", "==", "1", ")", "{", "node", ".", "deleteByLeftShift", "(", "index", ")", ";", ...
Allow an Iterator to delete an item by direct removal from a single node. <p>The Iterator has determined that the item to be deleted resides in a leaf node with more than one item in the node. Removal of the item from the leaf can be done without further modification to the tree. The Iterator has already synchronize...
[ "Allow", "an", "Iterator", "to", "delete", "an", "item", "by", "direct", "removal", "from", "a", "single", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1945-L1961
66,217
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.finishDelete
private void finishDelete( DeleteNode point, DeleteStack stack, Object deleteKey) { adjustTarget(point); point.deleteNode().deleteByLeftShift(point.deleteIndex()); deleteFringeMigr...
java
private void finishDelete( DeleteNode point, DeleteStack stack, Object deleteKey) { adjustTarget(point); point.deleteNode().deleteByLeftShift(point.deleteIndex()); deleteFringeMigr...
[ "private", "void", "finishDelete", "(", "DeleteNode", "point", ",", "DeleteStack", "stack", ",", "Object", "deleteKey", ")", "{", "adjustTarget", "(", "point", ")", ";", "point", ".", "deleteNode", "(", ")", ".", "deleteByLeftShift", "(", "point", ".", "dele...
Do the write phase of the delete. <p>findDelete does all of the reading needed to find the delete point. finishDelete does all of the writing required to actually do the delete. It is called by either optimisticDelete or pessimisticDelete as the writing phase is the same regardless of the locking strategy.</p> @param...
[ "Do", "the", "write", "phase", "of", "the", "delete", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1976-L1985
66,218
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.findDelete
private void findDelete( DeleteNode point, DeleteStack stack, Object deleteKey) { java.util.Comparator comp = deleteComparator(); GBSNode p; /* P is used to march down the tre...
java
private void findDelete( DeleteNode point, DeleteStack stack, Object deleteKey) { java.util.Comparator comp = deleteComparator(); GBSNode p; /* P is used to march down the tre...
[ "private", "void", "findDelete", "(", "DeleteNode", "point", ",", "DeleteStack", "stack", ",", "Object", "deleteKey", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "deleteComparator", "(", ")", ";", "GBSNode", "p", ";", "/* P is used to march ...
Find the delete point within the tree. @param point The DeleteNode that will identify the delete point. @param stack The DeleteStack that records nodes traversed. @param deleteKey Object to be deleted.
[ "Find", "the", "delete", "point", "within", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2040-L2096
66,219
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.midDelete
private void midDelete( DeleteStack stack, GBSNode p, DeleteNode point) { /* Assume no lower predecessor/successor */ point.setDelete(p, p.middleIndex()); GBSNode q = p.lowerPredecessor(stack...
java
private void midDelete( DeleteStack stack, GBSNode p, DeleteNode point) { /* Assume no lower predecessor/successor */ point.setDelete(p, p.middleIndex()); GBSNode q = p.lowerPredecessor(stack...
[ "private", "void", "midDelete", "(", "DeleteStack", "stack", ",", "GBSNode", "p", ",", "DeleteNode", "point", ")", "{", "/* Assume no lower predecessor/successor */", "point", ".", "setDelete", "(", "p", ",", "p", ".", "middleIndex", "(", ")", ")", ";", "GBSNo...
Delete a key with an equal match. <p>During the search, we happened upon an equal match. If there is a predecessor at a lower level, we bring it up to fill the hole and make it the delete key. Otherwise, the one we have found is the delete key already.</p>
[ "Delete", "a", "key", "with", "an", "equal", "match", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2107-L2132
66,220
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftDelete
private void leftDelete( GBSNode p, GBSNode r, Object deleteKey, DeleteNode point) { if (r == null) /* There is no upper predecessor */ ...
java
private void leftDelete( GBSNode p, GBSNode r, Object deleteKey, DeleteNode point) { if (r == null) /* There is no upper predecessor */ ...
[ "private", "void", "leftDelete", "(", "GBSNode", "p", ",", "GBSNode", "r", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "if", "(", "r", "==", "null", ")", "/* There is no upper predecessor */", "leftDeleteNoPredecessor", "(", "p", ",...
Delete from current or predecessor. <ol> <li>There is no left child. <li> There might or might not be a right child <li>DELETE_KEY < MEDIAN of current node <li>DELETE_KEY > MEDIAN of predecessor (if there is one) </ol> <p>In the example below, if the current node is GHI, then the delete key is greater than E a...
[ "Delete", "from", "current", "or", "predecessor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2175-L2185
66,221
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftDeleteNoPredecessor
private void leftDeleteNoPredecessor( GBSNode p, Object deleteKey, DeleteNode point) { int idx = p.findDeleteInLeft(deleteKey); if (idx >= 0) ...
java
private void leftDeleteNoPredecessor( GBSNode p, Object deleteKey, DeleteNode point) { int idx = p.findDeleteInLeft(deleteKey); if (idx >= 0) ...
[ "private", "void", "leftDeleteNoPredecessor", "(", "GBSNode", "p", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "int", "idx", "=", "p", ".", "findDeleteInLeft", "(", "deleteKey", ")", ";", "if", "(", "idx", ">=", "0", ")", "point", "...
Delete from left side with no upper predecessor.
[ "Delete", "from", "left", "side", "with", "no", "upper", "predecessor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2190-L2198
66,222
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftDeleteWithPredecessor
private void leftDeleteWithPredecessor( GBSNode p, GBSNode r, Object deleteKey, DeleteNode point) { ja...
java
private void leftDeleteWithPredecessor( GBSNode p, GBSNode r, Object deleteKey, DeleteNode point) { ja...
[ "private", "void", "leftDeleteWithPredecessor", "(", "GBSNode", "p", ",", "GBSNode", "r", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "p", ".", "deleteComparator", "(", ")", ";", "i...
Delete from left side with an upper predecessor present.
[ "Delete", "from", "left", "side", "with", "an", "upper", "predecessor", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2203-L2235
66,223
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightDelete
private void rightDelete( GBSNode p, GBSNode l, Object deleteKey, DeleteNode point) { if (l == null) /* There is no upper successor ...
java
private void rightDelete( GBSNode p, GBSNode l, Object deleteKey, DeleteNode point) { if (l == null) /* There is no upper successor ...
[ "private", "void", "rightDelete", "(", "GBSNode", "p", ",", "GBSNode", "l", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "if", "(", "l", "==", "null", ")", "/* There is no upper successor */", "rightDeleteNoSuccessor", "(", "p", ",...
Delete from current or successor. <ol> <li>There is no right child <li>There may or may not be a left child. <li>DELETE_KEY > MEDIAN of current node. <li>DELETE_KEY < MEDIAN of successor (if there is one) </ol> <p>In the example below, if the current node is GHI, then the delete key is greater than H and less t...
[ "Delete", "from", "current", "or", "successor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2278-L2288
66,224
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightDeleteNoSuccessor
private void rightDeleteNoSuccessor( GBSNode p, Object deleteKey, DeleteNode point) { int idx = p.findDeleteInRight(deleteKey); if (idx >= 0) p...
java
private void rightDeleteNoSuccessor( GBSNode p, Object deleteKey, DeleteNode point) { int idx = p.findDeleteInRight(deleteKey); if (idx >= 0) p...
[ "private", "void", "rightDeleteNoSuccessor", "(", "GBSNode", "p", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "int", "idx", "=", "p", ".", "findDeleteInRight", "(", "deleteKey", ")", ";", "if", "(", "idx", ">=", "0", ")", "point", "...
Delete from right side with no successor.
[ "Delete", "from", "right", "side", "with", "no", "successor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2293-L2301
66,225
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightDeleteWithSuccessor
private void rightDeleteWithSuccessor( GBSNode p, GBSNode l, Object deleteKey, DeleteNode point) { java.ut...
java
private void rightDeleteWithSuccessor( GBSNode p, GBSNode l, Object deleteKey, DeleteNode point) { java.ut...
[ "private", "void", "rightDeleteWithSuccessor", "(", "GBSNode", "p", ",", "GBSNode", "l", ",", "Object", "deleteKey", ",", "DeleteNode", "point", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "p", ".", "deleteComparator", "(", ")", ";", "in...
Delete from right side with successor node present.
[ "Delete", "from", "right", "side", "with", "successor", "node", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2306-L2341
66,226
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.deleteFringeMigrate
private void deleteFringeMigrate( DeleteStack stack, GBSNode p) { GBSNode endp = p; /* Last node processed */ int endIndex = stack.index(); /* Index to last parent */ ...
java
private void deleteFringeMigrate( DeleteStack stack, GBSNode p) { GBSNode endp = p; /* Last node processed */ int endIndex = stack.index(); /* Index to last parent */ ...
[ "private", "void", "deleteFringeMigrate", "(", "DeleteStack", "stack", ",", "GBSNode", "p", ")", "{", "GBSNode", "endp", "=", "p", ";", "/* Last node processed */", "int", "endIndex", "=", "stack", ".", "index", "(", ")", ";", "/* Index to last p...
Migrate a hole from a partial leaf through to the proper place in its fringe, deleting a node from the right side of the fringe if necessary. <p>This may cause a fringe t0 tree to degenerate to a linear list which, in turn, will trigger a height rebalancing.</p> @param tree The index we are using @param stack The st...
[ "Migrate", "a", "hole", "from", "a", "partial", "leaf", "through", "to", "the", "proper", "place", "in", "its", "fringe", "deleting", "a", "node", "from", "the", "right", "side", "of", "the", "fringe", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2356-L2378
66,227
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.deleteCheckFringeBalance
private void deleteCheckFringeBalance( DeleteStack stack, GBSNode endp, int endIndex, int maxBal) { int f...
java
private void deleteCheckFringeBalance( DeleteStack stack, GBSNode endp, int endIndex, int maxBal) { int f...
[ "private", "void", "deleteCheckFringeBalance", "(", "DeleteStack", "stack", ",", "GBSNode", "endp", ",", "int", "endIndex", ",", "int", "maxBal", ")", "{", "int", "fDepth", "=", "0", ";", "/* Fringe balance depth */", "fDepth", "=", "0", ";", "i...
Check to see if fringe balancing is required following a delete and do the fringe rebalancing if needed.
[ "Check", "to", "see", "if", "fringe", "balancing", "is", "required", "following", "a", "delete", "and", "do", "the", "fringe", "rebalancing", "if", "needed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L2384-L2441
66,228
OpenLiberty/open-liberty
dev/com.ibm.ws.context/src/com/ibm/wsspi/threadcontext/ThreadContextDeserializer.java
ThreadContextDeserializer.deserialize
public static ThreadContextDescriptor deserialize(byte[] bytes, Map<String, String> execProps) throws ClassNotFoundException, IOException { return new ThreadContextDescriptorImpl(execProps, bytes); }
java
public static ThreadContextDescriptor deserialize(byte[] bytes, Map<String, String> execProps) throws ClassNotFoundException, IOException { return new ThreadContextDescriptorImpl(execProps, bytes); }
[ "public", "static", "ThreadContextDescriptor", "deserialize", "(", "byte", "[", "]", "bytes", ",", "Map", "<", "String", ",", "String", ">", "execProps", ")", "throws", "ClassNotFoundException", ",", "IOException", "{", "return", "new", "ThreadContextDescriptorImpl"...
Deserializes a thread context descriptor. @param bytes bytes obtained from the ThreadContextDescriptor.serialize method. @param execProps execution properties. @return a thread context descriptor. @throws ClassNotFoundException if unable to find a class during deserialization. @throws IOException if an error occurs du...
[ "Deserializes", "a", "thread", "context", "descriptor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/wsspi/threadcontext/ThreadContextDeserializer.java#L33-L35
66,229
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.listFiles
public static File[] listFiles(final File target, final List<Pattern> patterns, final boolean include) { if (patterns == null || patterns.isEmpty()) return target.listFiles(); return target.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, S...
java
public static File[] listFiles(final File target, final List<Pattern> patterns, final boolean include) { if (patterns == null || patterns.isEmpty()) return target.listFiles(); return target.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, S...
[ "public", "static", "File", "[", "]", "listFiles", "(", "final", "File", "target", ",", "final", "List", "<", "Pattern", ">", "patterns", ",", "final", "boolean", "include", ")", "{", "if", "(", "patterns", "==", "null", "||", "patterns", ".", "isEmpty",...
List files according to the patterns and the pattern type @param target @param patterns @param include @return
[ "List", "files", "according", "to", "the", "patterns", "and", "the", "pattern", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L53-L71
66,230
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.copyFile
public static void copyFile(File dest, File source) throws IOException { InputStream input = null; try { input = new FileInputStream(source); createFile(dest, input); } finally { Utils.tryToClose(input); } }
java
public static void copyFile(File dest, File source) throws IOException { InputStream input = null; try { input = new FileInputStream(source); createFile(dest, input); } finally { Utils.tryToClose(input); } }
[ "public", "static", "void", "copyFile", "(", "File", "dest", ",", "File", "source", ")", "throws", "IOException", "{", "InputStream", "input", "=", "null", ";", "try", "{", "input", "=", "new", "FileInputStream", "(", "source", ")", ";", "createFile", "(",...
Copy from one file to the other @param dest @param source @throws IOException
[ "Copy", "from", "one", "file", "to", "the", "other" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L80-L88
66,231
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.createFile
public static void createFile(final File dest, final InputStream sourceInput) throws IOException { if (sourceInput == null || dest == null) return; FileOutputStream fos = null; try { if (!dest.getParentFile().exists()) { if (!dest.getParentFile().mkdirs()...
java
public static void createFile(final File dest, final InputStream sourceInput) throws IOException { if (sourceInput == null || dest == null) return; FileOutputStream fos = null; try { if (!dest.getParentFile().exists()) { if (!dest.getParentFile().mkdirs()...
[ "public", "static", "void", "createFile", "(", "final", "File", "dest", ",", "final", "InputStream", "sourceInput", ")", "throws", "IOException", "{", "if", "(", "sourceInput", "==", "null", "||", "dest", "==", "null", ")", "return", ";", "FileOutputStream", ...
Read the content from an inputStream and write out to the other file @param dest @param sourceInput @throws IOException
[ "Read", "the", "content", "from", "an", "inputStream", "and", "write", "out", "to", "the", "other", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L97-L121
66,232
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.copyDir
public static void copyDir(File from, File to) throws FileNotFoundException, IOException { File[] files = from.listFiles(); if (files != null) { for (File ff : files) { File tf = new File(to, ff.getName()); if (ff.isDirectory()) { if (tf.m...
java
public static void copyDir(File from, File to) throws FileNotFoundException, IOException { File[] files = from.listFiles(); if (files != null) { for (File ff : files) { File tf = new File(to, ff.getName()); if (ff.isDirectory()) { if (tf.m...
[ "public", "static", "void", "copyDir", "(", "File", "from", ",", "File", "to", ")", "throws", "FileNotFoundException", ",", "IOException", "{", "File", "[", "]", "files", "=", "from", ".", "listFiles", "(", ")", ";", "if", "(", "files", "!=", "null", "...
Recursively copy the files from one dir to the other. @param from The directory to copy from, must exist. @param to The directory to copy to, must exist, must be empty. @throws IOException @throws FileNotFoundException
[ "Recursively", "copy", "the", "files", "from", "one", "dir", "to", "the", "other", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L162-L177
66,233
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.isUnderDirectory
public static boolean isUnderDirectory(File child, File parent) { if (child == null || parent == null) return false; URI childUri = child.toURI(); URI relativeUri = parent.toURI().relativize(childUri); return relativeUri.equals(childUri) ? false : true; }
java
public static boolean isUnderDirectory(File child, File parent) { if (child == null || parent == null) return false; URI childUri = child.toURI(); URI relativeUri = parent.toURI().relativize(childUri); return relativeUri.equals(childUri) ? false : true; }
[ "public", "static", "boolean", "isUnderDirectory", "(", "File", "child", ",", "File", "parent", ")", "{", "if", "(", "child", "==", "null", "||", "parent", "==", "null", ")", "return", "false", ";", "URI", "childUri", "=", "child", ".", "toURI", "(", "...
If child is under parent, will return true, otherwise, return false. @param child @param parent @return
[ "If", "child", "is", "under", "parent", "will", "return", "true", "otherwise", "return", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L218-L226
66,234
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.normalizeEntryPath
public static String normalizeEntryPath(String entryPath) { if (entryPath == null || entryPath.isEmpty()) return ""; entryPath = entryPath.replace("\\", "/"); if (entryPath.startsWith("/")) { if (entryPath.length() == 1) { entryPath = ""; } e...
java
public static String normalizeEntryPath(String entryPath) { if (entryPath == null || entryPath.isEmpty()) return ""; entryPath = entryPath.replace("\\", "/"); if (entryPath.startsWith("/")) { if (entryPath.length() == 1) { entryPath = ""; } e...
[ "public", "static", "String", "normalizeEntryPath", "(", "String", "entryPath", ")", "{", "if", "(", "entryPath", "==", "null", "||", "entryPath", ".", "isEmpty", "(", ")", ")", "return", "\"\"", ";", "entryPath", "=", "entryPath", ".", "replace", "(", "\"...
Normalize a relative entry path, so that it can be used in an archive. @param entryPath @return
[ "Normalize", "a", "relative", "entry", "path", "so", "that", "it", "can", "be", "used", "in", "an", "archive", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L287-L302
66,235
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java
FileUtils.normalizeDirPath
public static String normalizeDirPath(String dirPath) { if (dirPath == null || dirPath.isEmpty()) return ""; dirPath = dirPath.replace("\\", "/"); if (!dirPath.endsWith("/")) { dirPath = dirPath + "/"; } return dirPath; }
java
public static String normalizeDirPath(String dirPath) { if (dirPath == null || dirPath.isEmpty()) return ""; dirPath = dirPath.replace("\\", "/"); if (!dirPath.endsWith("/")) { dirPath = dirPath + "/"; } return dirPath; }
[ "public", "static", "String", "normalizeDirPath", "(", "String", "dirPath", ")", "{", "if", "(", "dirPath", "==", "null", "||", "dirPath", ".", "isEmpty", "(", ")", ")", "return", "\"\"", ";", "dirPath", "=", "dirPath", ".", "replace", "(", "\"\\\\\"", "...
Normalize a path that represents a directory @param dirPath @return
[ "Normalize", "a", "path", "that", "represents", "a", "directory" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/FileUtils.java#L310-L321
66,236
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.contains
private static final boolean contains(Collection<String> list, String value) { for (String item : list) if (item.contains(value)) return true; return false; }
java
private static final boolean contains(Collection<String> list, String value) { for (String item : list) if (item.contains(value)) return true; return false; }
[ "private", "static", "final", "boolean", "contains", "(", "Collection", "<", "String", ">", "list", ",", "String", "value", ")", "{", "for", "(", "String", "item", ":", "list", ")", "if", "(", "item", ".", "contains", "(", "value", ")", ")", "return", ...
Utility method that determines if some text is found as a substring within the contents of a list. @param list items through which to search. @param value text for which to search. @return true if found, otherwise false.
[ "Utility", "method", "that", "determines", "if", "some", "text", "is", "found", "as", "a", "substring", "within", "the", "contents", "of", "a", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L255-L260
66,237
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.getConnectionPoolDataSourceClassName
static String getConnectionPoolDataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[1]; }
java
static String getConnectionPoolDataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[1]; }
[ "static", "String", "getConnectionPoolDataSourceClassName", "(", "String", "vendorPropertiesPID", ")", "{", "String", "[", "]", "classNames", "=", "classNamesByPID", ".", "get", "(", "vendorPropertiesPID", ")", ";", "return", "classNames", "==", "null", "?", "null",...
Infer the vendor implementation class name for javax.sql.ConnectionPoolDataSource based on the PID of the vendor properties. A best effort is made for the known vendors. @param vendorPropertiesPID factory pid of the JDBC vendor properties. @return name of vendor implementation class for javax.sql.ConnectionPoolDataSou...
[ "Infer", "the", "vendor", "implementation", "class", "name", "for", "javax", ".", "sql", ".", "ConnectionPoolDataSource", "based", "on", "the", "PID", "of", "the", "vendor", "properties", ".", "A", "best", "effort", "is", "made", "for", "the", "known", "vend...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L287-L290
66,238
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.getDataSourceClassName
static String getDataSourceClassName(Collection<String> fileNames) { for (Map.Entry<String, String[]> entry : classNamesByKey.entrySet()) if (contains(fileNames, entry.getKey())) { String[] classNames = entry.getValue(); return classNames == null ? null : classNames[...
java
static String getDataSourceClassName(Collection<String> fileNames) { for (Map.Entry<String, String[]> entry : classNamesByKey.entrySet()) if (contains(fileNames, entry.getKey())) { String[] classNames = entry.getValue(); return classNames == null ? null : classNames[...
[ "static", "String", "getDataSourceClassName", "(", "Collection", "<", "String", ">", "fileNames", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "String", "[", "]", ">", "entry", ":", "classNamesByKey", ".", "entrySet", "(", ")", ")", "if...
Infer the vendor implementation class name for javax.sql.DataSource based on the JAR or ZIP names. A best effort is made for the known vendors. @param fileNames all upper case names of JAR and/or ZIP files for the JDBC driver. @return name of the vendor implementation class for javax.sql.DataSource. Null if unknown.
[ "Infer", "the", "vendor", "implementation", "class", "name", "for", "javax", ".", "sql", ".", "DataSource", "based", "on", "the", "JAR", "or", "ZIP", "names", ".", "A", "best", "effort", "is", "made", "for", "the", "known", "vendors", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L299-L308
66,239
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.getDataSourceClassName
static String getDataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[0]; }
java
static String getDataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[0]; }
[ "static", "String", "getDataSourceClassName", "(", "String", "vendorPropertiesPID", ")", "{", "String", "[", "]", "classNames", "=", "classNamesByPID", ".", "get", "(", "vendorPropertiesPID", ")", ";", "return", "classNames", "==", "null", "?", "null", ":", "cla...
Infer the vendor implementation class name for javax.sql.DataSource based on the PID of the vendor properties. A best effort is made for the known vendors. @param vendorPropertiesPID factory pid of the JDBC vendor properties. @return name of vendor implementation class for javax.sql.DataSource. Null if unknown.
[ "Infer", "the", "vendor", "implementation", "class", "name", "for", "javax", ".", "sql", ".", "DataSource", "based", "on", "the", "PID", "of", "the", "vendor", "properties", ".", "A", "best", "effort", "is", "made", "for", "the", "known", "vendors", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L317-L320
66,240
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.getXADataSourceClassName
static String getXADataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[2]; }
java
static String getXADataSourceClassName(String vendorPropertiesPID) { String[] classNames = classNamesByPID.get(vendorPropertiesPID); return classNames == null ? null : classNames[2]; }
[ "static", "String", "getXADataSourceClassName", "(", "String", "vendorPropertiesPID", ")", "{", "String", "[", "]", "classNames", "=", "classNamesByPID", ".", "get", "(", "vendorPropertiesPID", ")", ";", "return", "classNames", "==", "null", "?", "null", ":", "c...
Infer the vendor implementation class name for javax.sql.XADataSource based on the PID of the vendor properties. A best effort is made for the known vendors. @param vendorPropertiesPID factory pid of the JDBC vendor properties. @return name of vendor implementation class for javax.sql.XADataSource. Null if unknown.
[ "Infer", "the", "vendor", "implementation", "class", "name", "for", "javax", ".", "sql", ".", "XADataSource", "based", "on", "the", "PID", "of", "the", "vendor", "properties", ".", "A", "best", "effort", "is", "made", "for", "the", "known", "vendors", "." ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L347-L350
66,241
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java
JDBCDrivers.tryToLoad
private static String tryToLoad(Class<?> type, ClassLoader loader, String... classNames) { final boolean trace = TraceComponent.isAnyTracingEnabled(); for (String className : classNames) try { Class<?> c = loader.loadClass(className); boolean isInstance = typ...
java
private static String tryToLoad(Class<?> type, ClassLoader loader, String... classNames) { final boolean trace = TraceComponent.isAnyTracingEnabled(); for (String className : classNames) try { Class<?> c = loader.loadClass(className); boolean isInstance = typ...
[ "private", "static", "String", "tryToLoad", "(", "Class", "<", "?", ">", "type", ",", "ClassLoader", "loader", ",", "String", "...", "classNames", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "for",...
Attempt to load the specified class names, returning the first that successfully loads and is an instance of the specified type. @param type data source interface @param loader class loader @param classNames ordered list of class names to check @return the first class name that successfully loads and is an instance of...
[ "Attempt", "to", "load", "the", "specified", "class", "names", "returning", "the", "first", "that", "successfully", "loads", "and", "is", "an", "instance", "of", "the", "specified", "type", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDrivers.java#L504-L520
66,242
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/UserData.java
UserData.getAttributes
protected final String[] getAttributes(String key) { ArrayList<String> array = this._attributes.get(key); if (array != null && array.size() > 0) { String[] type = new String[array.size()]; return array.toArray(type); } return null; }
java
protected final String[] getAttributes(String key) { ArrayList<String> array = this._attributes.get(key); if (array != null && array.size() > 0) { String[] type = new String[array.size()]; return array.toArray(type); } return null; }
[ "protected", "final", "String", "[", "]", "getAttributes", "(", "String", "key", ")", "{", "ArrayList", "<", "String", ">", "array", "=", "this", ".", "_attributes", ".", "get", "(", "key", ")", ";", "if", "(", "array", "!=", "null", "&&", "array", "...
Get the attribute value based on the named value. A string array is returned containing all values of the attribute previously set. @param key The name of a attribute @return A list of the attribute values corresponding with the specified key
[ "Get", "the", "attribute", "value", "based", "on", "the", "named", "value", ".", "A", "string", "array", "is", "returned", "containing", "all", "values", "of", "the", "attribute", "previously", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/UserData.java#L70-L77
66,243
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/FileTransferClient.java
FileTransferClient.handleOperation
public Object handleOperation(String operation, Object[] params) throws IOException { if (OPERATION_DOWNLOAD.equals(operation)) { if (params.length == 2) { downloadFile((String) params[0], (String) params[1]); } else { //partial download re...
java
public Object handleOperation(String operation, Object[] params) throws IOException { if (OPERATION_DOWNLOAD.equals(operation)) { if (params.length == 2) { downloadFile((String) params[0], (String) params[1]); } else { //partial download re...
[ "public", "Object", "handleOperation", "(", "String", "operation", ",", "Object", "[", "]", "params", ")", "throws", "IOException", "{", "if", "(", "OPERATION_DOWNLOAD", ".", "equals", "(", "operation", ")", ")", "{", "if", "(", "params", ".", "length", "=...
Handle MBean invocation requests
[ "Handle", "MBean", "invocation", "requests" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/FileTransferClient.java#L85-L105
66,244
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2TCPReadRequestContext.java
H2TCPReadRequestContext.read
@Override public long read(long numBytes, int timeout) throws IOException { long readCount = 0; H2StreamProcessor p = muxLink.getStreamProcessor(streamID); try { p.getReadLatch().await(timeout, TimeUnit.MILLISECONDS); readCount = p.readCount(numBytes, this.getBuffer...
java
@Override public long read(long numBytes, int timeout) throws IOException { long readCount = 0; H2StreamProcessor p = muxLink.getStreamProcessor(streamID); try { p.getReadLatch().await(timeout, TimeUnit.MILLISECONDS); readCount = p.readCount(numBytes, this.getBuffer...
[ "@", "Override", "public", "long", "read", "(", "long", "numBytes", ",", "int", "timeout", ")", "throws", "IOException", "{", "long", "readCount", "=", "0", ";", "H2StreamProcessor", "p", "=", "muxLink", ".", "getStreamProcessor", "(", "streamID", ")", ";", ...
Get bytes from the stream processor associated with this read context
[ "Get", "bytes", "from", "the", "stream", "processor", "associated", "with", "this", "read", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2TCPReadRequestContext.java#L110-L123
66,245
OpenLiberty/open-liberty
dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextProviderImpl.java
SecurityContextProviderImpl.getConfigNameForRef
@FFDCIgnore(PrivilegedActionException.class) private String getConfigNameForRef(final String ref) { String name = null; if (ref != null) { final ConfigurationAdmin configAdmin = configAdminRef.getService(); Configuration config; try { config = Acce...
java
@FFDCIgnore(PrivilegedActionException.class) private String getConfigNameForRef(final String ref) { String name = null; if (ref != null) { final ConfigurationAdmin configAdmin = configAdminRef.getService(); Configuration config; try { config = Acce...
[ "@", "FFDCIgnore", "(", "PrivilegedActionException", ".", "class", ")", "private", "String", "getConfigNameForRef", "(", "final", "String", "ref", ")", "{", "String", "name", "=", "null", ";", "if", "(", "ref", "!=", "null", ")", "{", "final", "Configuration...
Use the config admin service to get the name for a given service reference @param ref the service reference string @return the name or null if there were problems
[ "Use", "the", "config", "admin", "service", "to", "get", "the", "name", "for", "a", "given", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextProviderImpl.java#L170-L190
66,246
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/com/ibm/ws/jaxrs21/clientconfig/JAXRSClientConfigHolder.java
JAXRSClientConfigHolder.addConfig
public static synchronized void addConfig(String id, String uri, Map<String, String> params) { uriMap.put(id, uri); configInfo.put(uri, params); resolvedConfigInfo.clear(); if (uri.endsWith("*")) { wildcardsPresentInConfigInfo = true; } }
java
public static synchronized void addConfig(String id, String uri, Map<String, String> params) { uriMap.put(id, uri); configInfo.put(uri, params); resolvedConfigInfo.clear(); if (uri.endsWith("*")) { wildcardsPresentInConfigInfo = true; } }
[ "public", "static", "synchronized", "void", "addConfig", "(", "String", "id", ",", "String", "uri", ",", "Map", "<", "String", ",", "String", ">", "params", ")", "{", "uriMap", ".", "put", "(", "id", ",", "uri", ")", ";", "configInfo", ".", "put", "(...
add a configuration for a URL We'd like a set of hashmaps keyed by URL, however when osgi calls deactivate, we have no arguments, so we have to associate a url with the object id of the service. That allows us to remove the right one. @param id - the object id of the service instance that added this. @param url - the ...
[ "add", "a", "configuration", "for", "a", "URL", "We", "d", "like", "a", "set", "of", "hashmaps", "keyed", "by", "URL", "however", "when", "osgi", "calls", "deactivate", "we", "have", "no", "arguments", "so", "we", "have", "to", "associate", "a", "url", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/com/ibm/ws/jaxrs21/clientconfig/JAXRSClientConfigHolder.java#L54-L61
66,247
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/viewstate/SessionIdGenerator.java
SessionIdGenerator.generateSessionId
public String generateSessionId() { byte random[] = new byte[16]; // Render the result as a String of hexadecimal digits StringBuilder buffer = new StringBuilder(); int resultLenBytes = 0; while (resultLenBytes < sessionIdLength) { getRandomBytes(rando...
java
public String generateSessionId() { byte random[] = new byte[16]; // Render the result as a String of hexadecimal digits StringBuilder buffer = new StringBuilder(); int resultLenBytes = 0; while (resultLenBytes < sessionIdLength) { getRandomBytes(rando...
[ "public", "String", "generateSessionId", "(", ")", "{", "byte", "random", "[", "]", "=", "new", "byte", "[", "16", "]", ";", "// Render the result as a String of hexadecimal digits", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "int", "...
Generate and return a new session identifier.
[ "Generate", "and", "return", "a", "new", "session", "identifier", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/viewstate/SessionIdGenerator.java#L137-L182
66,248
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java
MatchCache.containsKey
public boolean containsKey(Object key) { FastHashtableEntry tab[] = table; int hash = key.hashCode(); int index = (hash & 0x7FFFFFFF) % tab.length; for (FastHashtableEntry e = tab[index] ; e != null ; e = e.next) { if ((e.hash == hash) && e.key.equals(key)) { return true; } } ...
java
public boolean containsKey(Object key) { FastHashtableEntry tab[] = table; int hash = key.hashCode(); int index = (hash & 0x7FFFFFFF) % tab.length; for (FastHashtableEntry e = tab[index] ; e != null ; e = e.next) { if ((e.hash == hash) && e.key.equals(key)) { return true; } } ...
[ "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "FastHashtableEntry", "tab", "[", "]", "=", "table", ";", "int", "hash", "=", "key", ".", "hashCode", "(", ")", ";", "int", "index", "=", "(", "hash", "&", "0x7FFFFFFF", ")", "%", "t...
Tests if the specified object is a key in this hashtable. @param key possible key. @return <code>true</code> if the specified object is a key in this hashtable; <code>false</code> otherwise. @see java.util.Hashtable#contains(java.lang.Object) @since JDK1.0
[ "Tests", "if", "the", "specified", "object", "is", "a", "key", "in", "this", "hashtable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java#L269-L279
66,249
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java
MatchCache.ableToFilter
private boolean ableToFilter() { if (filter == null) return false; for (int i = table.length; i-- > 0 ;) { FastHashtableEntry newContents = null, next = null; for (FastHashtableEntry e = table[i] ; e != null ; e = next) { next = e.next; if (filter.shouldRetain(e.key, e.value)) ...
java
private boolean ableToFilter() { if (filter == null) return false; for (int i = table.length; i-- > 0 ;) { FastHashtableEntry newContents = null, next = null; for (FastHashtableEntry e = table[i] ; e != null ; e = next) { next = e.next; if (filter.shouldRetain(e.key, e.value)) ...
[ "private", "boolean", "ableToFilter", "(", ")", "{", "if", "(", "filter", "==", "null", ")", "return", "false", ";", "for", "(", "int", "i", "=", "table", ".", "length", ";", "i", "--", ">", "0", ";", ")", "{", "FastHashtableEntry", "newContents", "=...
Avoids the need to rehash when some entries can be "filtered" out of the Hashtable by an upcall to a separate decision routine. @return true if filtering was able to reduce the size of the Hashtable sufficiently, false if rehashing will be needed after all.
[ "Avoids", "the", "need", "to", "rehash", "when", "some", "entries", "can", "be", "filtered", "out", "of", "the", "Hashtable", "by", "an", "upcall", "to", "a", "separate", "decision", "routine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java#L340-L357
66,250
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java
MatchCache.readObject
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the length, threshold, and loadfactor s.defaultReadObject(); // Read the original length of the array and number of elements int origlength = s.readInt(); int elements = s.readInt(...
java
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the length, threshold, and loadfactor s.defaultReadObject(); // Read the original length of the array and number of elements int origlength = s.readInt(); int elements = s.readInt(...
[ "private", "void", "readObject", "(", "java", ".", "io", ".", "ObjectInputStream", "s", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "// Read in the length, threshold, and loadfactor", "s", ".", "defaultReadObject", "(", ")", ";", "// Read the origi...
readObject is called to restore the state of the hashtable from a stream. Only the keys and values are serialized since the hash values may be different when the contents are restored. Read count elements and insert into the hashtable.
[ "readObject", "is", "called", "to", "restore", "the", "state", "of", "the", "hashtable", "from", "a", "stream", ".", "Only", "the", "keys", "and", "values", "are", "serialized", "since", "the", "hash", "values", "may", "be", "different", "when", "the", "co...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchCache.java#L628-L657
66,251
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java
SSLChannelData.getBooleanProperty
public boolean getBooleanProperty(String propertyName) { boolean booleanValue = false; // Pull the key from the property map Object objectValue = this.properties.get(propertyName); if (objectValue != null) { if (objectValue instanceof Boolean) { booleanValue ...
java
public boolean getBooleanProperty(String propertyName) { boolean booleanValue = false; // Pull the key from the property map Object objectValue = this.properties.get(propertyName); if (objectValue != null) { if (objectValue instanceof Boolean) { booleanValue ...
[ "public", "boolean", "getBooleanProperty", "(", "String", "propertyName", ")", "{", "boolean", "booleanValue", "=", "false", ";", "// Pull the key from the property map", "Object", "objectValue", "=", "this", ".", "properties", ".", "get", "(", "propertyName", ")", ...
Query the boolean property value of the input name. @param propertyName @return boolean
[ "Query", "the", "boolean", "property", "value", "of", "the", "input", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java#L272-L285
66,252
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java
SSLChannelData.getStringProperty
public String getStringProperty(String propertyName) { Object value = this.properties.get(propertyName); if (null != value && value instanceof String) { return (String) value; } return null; }
java
public String getStringProperty(String propertyName) { Object value = this.properties.get(propertyName); if (null != value && value instanceof String) { return (String) value; } return null; }
[ "public", "String", "getStringProperty", "(", "String", "propertyName", ")", "{", "Object", "value", "=", "this", ".", "properties", ".", "get", "(", "propertyName", ")", ";", "if", "(", "null", "!=", "value", "&&", "value", "instanceof", "String", ")", "{...
Query the properties for the input name, the value will be null if not found or was not a String object. @param propertyName @return String
[ "Query", "the", "properties", "for", "the", "input", "name", "the", "value", "will", "be", "null", "if", "not", "found", "or", "was", "not", "a", "String", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java#L294-L300
66,253
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java
SSLChannelData.getBooleanProperty
private boolean getBooleanProperty(String key, String defaultValue, StringBuilder errors) { boolean booleanValue = false; String stringValue = null; boolean valueCorrect = false; // Pull the key from the property map Object objectValue = this.properties.get(key); if (obj...
java
private boolean getBooleanProperty(String key, String defaultValue, StringBuilder errors) { boolean booleanValue = false; String stringValue = null; boolean valueCorrect = false; // Pull the key from the property map Object objectValue = this.properties.get(key); if (obj...
[ "private", "boolean", "getBooleanProperty", "(", "String", "key", ",", "String", "defaultValue", ",", "StringBuilder", "errors", ")", "{", "boolean", "booleanValue", "=", "false", ";", "String", "stringValue", "=", "null", ";", "boolean", "valueCorrect", "=", "f...
Extract String value from property list and convert to boolean. @param key key to look up in the property map @param defaultValue used if keynot found in map. @param errors list of error string accumulating from reading invalid properties @return value found for key in property map
[ "Extract", "String", "value", "from", "property", "list", "and", "convert", "to", "boolean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java#L320-L376
66,254
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java
SSLChannelData.getIntProperty
private int getIntProperty(String key, boolean defaultProvided, int defaultValue, StringBuilder errors) { String value = getStringProperty(key); if (null != value) { try { int realValue = Integer.parseInt(value); if (TraceComponent.isAnyTracingEnabled() && tc....
java
private int getIntProperty(String key, boolean defaultProvided, int defaultValue, StringBuilder errors) { String value = getStringProperty(key); if (null != value) { try { int realValue = Integer.parseInt(value); if (TraceComponent.isAnyTracingEnabled() && tc....
[ "private", "int", "getIntProperty", "(", "String", "key", ",", "boolean", "defaultProvided", ",", "int", "defaultValue", ",", "StringBuilder", "errors", ")", "{", "String", "value", "=", "getStringProperty", "(", "key", ")", ";", "if", "(", "null", "!=", "va...
Extract an integer property from the stored values. This might use a default value if provided and the property was not found. @param key @param defaultProvided @param defaultValue @param errors @return int
[ "Extract", "an", "integer", "property", "from", "the", "stored", "values", ".", "This", "might", "use", "a", "default", "value", "if", "provided", "and", "the", "property", "was", "not", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelData.java#L388-L417
66,255
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/ReadWriteLock.java
ReadWriteLock.lockExclusive
public synchronized void lockExclusive() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "lockExclusive", this); boolean interrupted = false; // If another thread is attempting to lock exclusive, // wait for it to finish first. while...
java
public synchronized void lockExclusive() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "lockExclusive", this); boolean interrupted = false; // If another thread is attempting to lock exclusive, // wait for it to finish first. while...
[ "public", "synchronized", "void", "lockExclusive", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"lockExclusive\"", ...
This method locks the mutex so no other lockers can get the lock.
[ "This", "method", "locks", "the", "mutex", "so", "no", "other", "lockers", "can", "get", "the", "lock", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/ReadWriteLock.java#L158-L201
66,256
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java
BeanMetaData.getLocalBusinessInterfaceIndex
public int getLocalBusinessInterfaceIndex(String interfaceName) { if (ivBusinessLocalInterfaceClasses != null) { for (int i = 0; i < ivBusinessLocalInterfaceClasses.length; i++) { String bInterfaceName = ivBusinessLocalInterfaceClasses[i].getName(); if (bInterfaceName...
java
public int getLocalBusinessInterfaceIndex(String interfaceName) { if (ivBusinessLocalInterfaceClasses != null) { for (int i = 0; i < ivBusinessLocalInterfaceClasses.length; i++) { String bInterfaceName = ivBusinessLocalInterfaceClasses[i].getName(); if (bInterfaceName...
[ "public", "int", "getLocalBusinessInterfaceIndex", "(", "String", "interfaceName", ")", "{", "if", "(", "ivBusinessLocalInterfaceClasses", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ivBusinessLocalInterfaceClasses", ".", "length", ...
Gets the index of the local business interface. @param interfaceName the interface to find the index of @return the index of the interface passed in
[ "Gets", "the", "index", "of", "the", "local", "business", "interface", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java#L1278-L1292
66,257
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java
BeanMetaData.getRequiredLocalBusinessInterfaceIndex
public int getRequiredLocalBusinessInterfaceIndex(String interfaceName) throws IllegalStateException { int interfaceIndex = getLocalBusinessInterfaceIndex(interfaceName); if (interfaceIndex == -1) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc...
java
public int getRequiredLocalBusinessInterfaceIndex(String interfaceName) throws IllegalStateException { int interfaceIndex = getLocalBusinessInterfaceIndex(interfaceName); if (interfaceIndex == -1) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc...
[ "public", "int", "getRequiredLocalBusinessInterfaceIndex", "(", "String", "interfaceName", ")", "throws", "IllegalStateException", "{", "int", "interfaceIndex", "=", "getLocalBusinessInterfaceIndex", "(", "interfaceName", ")", ";", "if", "(", "interfaceIndex", "==", "-", ...
Gets the index of the local busines interface. This method will throw an IllegalStateException if a local interface could not be matched. If it is known that a match must occur on a local business interface, then this method should be used. @param interfaceName the interface to find a match on @return the index of the...
[ "Gets", "the", "index", "of", "the", "local", "busines", "interface", ".", "This", "method", "will", "throw", "an", "IllegalStateException", "if", "a", "local", "interface", "could", "not", "be", "matched", ".", "If", "it", "is", "known", "that", "a", "mat...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java#L1333-L1346
66,258
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java
BeanMetaData.getRemoteBusinessInterfaceIndex
public int getRemoteBusinessInterfaceIndex(String interfaceName) { if (ivBusinessRemoteInterfaceClasses != null) { for (int i = 0; i < ivBusinessRemoteInterfaceClasses.length; i++) { String bInterface = ivBusinessRemoteInterfaceClasses[i].getName(); if (bInterface.equ...
java
public int getRemoteBusinessInterfaceIndex(String interfaceName) { if (ivBusinessRemoteInterfaceClasses != null) { for (int i = 0; i < ivBusinessRemoteInterfaceClasses.length; i++) { String bInterface = ivBusinessRemoteInterfaceClasses[i].getName(); if (bInterface.equ...
[ "public", "int", "getRemoteBusinessInterfaceIndex", "(", "String", "interfaceName", ")", "{", "if", "(", "ivBusinessRemoteInterfaceClasses", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ivBusinessRemoteInterfaceClasses", ".", "length",...
Gets the index of the remote business interface. @param interfaceName the interface to find the index of @return the index of the interface passed in
[ "Gets", "the", "index", "of", "the", "remote", "business", "interface", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java#L1400-L1414
66,259
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java
BeanMetaData.getRequiredRemoteBusinessInterfaceIndex
public int getRequiredRemoteBusinessInterfaceIndex(String interfaceName) throws IllegalStateException { int interfaceIndex = getRemoteBusinessInterfaceIndex(interfaceName); if (interfaceIndex == -1) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(...
java
public int getRequiredRemoteBusinessInterfaceIndex(String interfaceName) throws IllegalStateException { int interfaceIndex = getRemoteBusinessInterfaceIndex(interfaceName); if (interfaceIndex == -1) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(...
[ "public", "int", "getRequiredRemoteBusinessInterfaceIndex", "(", "String", "interfaceName", ")", "throws", "IllegalStateException", "{", "int", "interfaceIndex", "=", "getRemoteBusinessInterfaceIndex", "(", "interfaceName", ")", ";", "if", "(", "interfaceIndex", "==", "-"...
Gets the index of the remote busines interface. This method will throw an IllegalStateException if a remte interface could not be matched. If it is known that a match must occur on a remote business interface, then this method should be used. @param interfaceName the interface to find a match on @return the index of t...
[ "Gets", "the", "index", "of", "the", "remote", "busines", "interface", ".", "This", "method", "will", "throw", "an", "IllegalStateException", "if", "a", "remte", "interface", "could", "not", "be", "matched", ".", "If", "it", "is", "known", "that", "a", "ma...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java#L1455-L1468
66,260
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java
BeanMetaData.getMethodLevelCustomFinderMethodSignatures
public String[][] getMethodLevelCustomFinderMethodSignatures(String cfprocessstring) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getMethodLevelCustomFinderMethodSignatures:" + cfprocessstring); StringTokenizer st = new StringTokenizer(cfprocessstring, ":...
java
public String[][] getMethodLevelCustomFinderMethodSignatures(String cfprocessstring) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getMethodLevelCustomFinderMethodSignatures:" + cfprocessstring); StringTokenizer st = new StringTokenizer(cfprocessstring, ":...
[ "public", "String", "[", "]", "[", "]", "getMethodLevelCustomFinderMethodSignatures", "(", "String", "cfprocessstring", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "e...
d112604.1
[ "d112604", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanMetaData.java#L2528-L2570
66,261
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java
JsMessageImpl.transcribeToJmf
public JsMessage transcribeToJmf() throws MessageCopyFailedException , IncorrectMessageTypeException , UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "transcribe...
java
public JsMessage transcribeToJmf() throws MessageCopyFailedException , IncorrectMessageTypeException , UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "transcribe...
[ "public", "JsMessage", "transcribeToJmf", "(", ")", "throws", "MessageCopyFailedException", ",", "IncorrectMessageTypeException", ",", "UnsupportedEncodingException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled"...
Transcribe this message to pure JMF Javadoc description supplied by JsMessage interface.
[ "Transcribe", "this", "message", "to", "pure", "JMF" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java#L457-L500
66,262
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java
JsMessageImpl.getApproximateLength
public int getApproximateLength() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getApproximateLength"); if (approxLength == -1) approxLength = guessApproxLength(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getApproxim...
java
public int getApproximateLength() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getApproximateLength"); if (approxLength == -1) approxLength = guessApproxLength(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getApproxim...
[ "public", "int", "getApproximateLength", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getApproximateLength\"", ")", ...
Return an approximate size for the flattened message. It is important that this method is quick and cheap, rather than highly accurate. Javadoc description supplied by JsMessage interface.
[ "Return", "an", "approximate", "size", "for", "the", "flattened", "message", ".", "It", "is", "important", "that", "this", "method", "is", "quick", "and", "cheap", "rather", "than", "highly", "accurate", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java#L583-L590
66,263
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java
JsMessageImpl.createNew
private final JsMessageImpl createNew() throws MessageCopyFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNew"); JsMessageImpl newMsg = null; Class msgClass = this.getClass(); try { /* Create the new JsMessage*/ newMsg = (JsMe...
java
private final JsMessageImpl createNew() throws MessageCopyFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNew"); JsMessageImpl newMsg = null; Class msgClass = this.getClass(); try { /* Create the new JsMessage*/ newMsg = (JsMe...
[ "private", "final", "JsMessageImpl", "createNew", "(", ")", "throws", "MessageCopyFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",...
Return a new Jsmessage, of the same specialization as this, containing the given JsMsgObject. @param newJmo The JsMsgObject the new JsMessage will contain. @return JsMessage A new JsMessage instance of the appropriate specialization. @exception MessageCopyFailedException A MessageCopyFailedException is thrown if ei...
[ "Return", "a", "new", "Jsmessage", "of", "the", "same", "specialization", "as", "this", "containing", "the", "given", "JsMsgObject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java#L871-L900
66,264
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java
JsMessageImpl.createNewGeneralized
private final JsMessageImpl createNewGeneralized(JsMsgObject newJmo) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewGeneralized"); JsMessageImpl newMsg = null; /* Now create the new JsMessage */ newMsg = new JsMessageImpl(newJmo); if (TraceCompo...
java
private final JsMessageImpl createNewGeneralized(JsMsgObject newJmo) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewGeneralized"); JsMessageImpl newMsg = null; /* Now create the new JsMessage */ newMsg = new JsMessageImpl(newJmo); if (TraceCompo...
[ "private", "final", "JsMessageImpl", "createNewGeneralized", "(", "JsMsgObject", "newJmo", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
Return a new JsMessage, generalizing the message to just be a JsMessageImpl. The new message contains the given JsMsgObject. @param newJmo The JsMsgObject the new JsMessage will contain. @return JsMessage A new JsMessage instance at the JsMessageImpl specialization.
[ "Return", "a", "new", "JsMessage", "generalizing", "the", "message", "to", "just", "be", "a", "JsMessageImpl", ".", "The", "new", "message", "contains", "the", "given", "JsMsgObject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageImpl.java#L910-L919
66,265
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/RequestUtils.java
RequestUtils.parsePostData
@SuppressWarnings("rawtypes") public static Hashtable parsePostData(ServletInputStream in, String encoding, boolean multireadPropertyEnabled) /* 157338 add throws */ throws IOException { int inputLen; byte[] postedBytes = null; String postedBody; if (com.ibm.ejs.ras.TraceComponen...
java
@SuppressWarnings("rawtypes") public static Hashtable parsePostData(ServletInputStream in, String encoding, boolean multireadPropertyEnabled) /* 157338 add throws */ throws IOException { int inputLen; byte[] postedBytes = null; String postedBody; if (com.ibm.ejs.ras.TraceComponen...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "static", "Hashtable", "parsePostData", "(", "ServletInputStream", "in", ",", "String", "encoding", ",", "boolean", "multireadPropertyEnabled", ")", "/* 157338 add throws */", "throws", "IOException", "{", "in...
begin 231634 Support posts with query parms in chunked body WAS.webcontainer
[ "begin", "231634", "Support", "posts", "with", "query", "parms", "in", "chunked", "body", "WAS", ".", "webcontainer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/RequestUtils.java#L349-L423
66,266
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemStream.java
ItemStream.findOldestItem
public final Item findOldestItem() throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findOldestItem"); ItemCollection ic = ((ItemCollection) _getMembership()); if (null == ic) { if (TraceCom...
java
public final Item findOldestItem() throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findOldestItem"); ItemCollection ic = ((ItemCollection) _getMembership()); if (null == ic) { if (TraceCom...
[ "public", "final", "Item", "findOldestItem", "(", ")", "throws", "MessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc",...
Find the item that has been known to the stream for longest. The item returned may be in any of the states defined in the state model. The caller should not assume that the item can be used for any particular purpose. @return Item may be null. @throws {@link MessageStoreException} if the item was spilled and could not...
[ "Find", "the", "item", "that", "has", "been", "known", "to", "the", "stream", "for", "longest", ".", "The", "item", "returned", "may", "be", "in", "any", "of", "the", "states", "defined", "in", "the", "state", "model", ".", "The", "caller", "should", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemStream.java#L442-L463
66,267
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java
TCPBaseRequestContext.abort
protected void abort() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Aborting connection"); } this.aborted = true; }
java
protected void abort() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Aborting connection"); } this.aborted = true; }
[ "protected", "void", "abort", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ",", "\"Aborting connection\"", ")", ";", "}", "this", ...
Abort this context to trigger immediate exceptions on future IO requests.
[ "Abort", "this", "context", "to", "trigger", "immediate", "exceptions", "on", "future", "IO", "requests", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java#L92-L97
66,268
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java
TCPBaseRequestContext.setTimeoutTime
protected void setTimeoutTime(int time) { int timeout = time; if (timeout == TCPRequestContext.NO_TIMEOUT) { this.timeoutTime = TCPRequestContext.NO_TIMEOUT; this.timeoutInterval = 0; } else { if (timeout == TCPRequestContext.USE_CHANNEL_TIMEOUT) { ...
java
protected void setTimeoutTime(int time) { int timeout = time; if (timeout == TCPRequestContext.NO_TIMEOUT) { this.timeoutTime = TCPRequestContext.NO_TIMEOUT; this.timeoutInterval = 0; } else { if (timeout == TCPRequestContext.USE_CHANNEL_TIMEOUT) { ...
[ "protected", "void", "setTimeoutTime", "(", "int", "time", ")", "{", "int", "timeout", "=", "time", ";", "if", "(", "timeout", "==", "TCPRequestContext", ".", "NO_TIMEOUT", ")", "{", "this", ".", "timeoutTime", "=", "TCPRequestContext", ".", "NO_TIMEOUT", ";...
Sets the timeout value returned by 'getTimeoutTime'. @param time
[ "Sets", "the", "timeout", "value", "returned", "by", "getTimeoutTime", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java#L405-L422
66,269
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java
TCPBaseRequestContext.updateIOCounts
public boolean updateIOCounts(long byteCount, int type) { setLastIOAmt(byteCount); setIODoneAmount(getIODoneAmount() + byteCount); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { String dbString = null; if (type == 0) { dbString = "Rea...
java
public boolean updateIOCounts(long byteCount, int type) { setLastIOAmt(byteCount); setIODoneAmount(getIODoneAmount() + byteCount); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { String dbString = null; if (type == 0) { dbString = "Rea...
[ "public", "boolean", "updateIOCounts", "(", "long", "byteCount", ",", "int", "type", ")", "{", "setLastIOAmt", "(", "byteCount", ")", ";", "setIODoneAmount", "(", "getIODoneAmount", "(", ")", "+", "byteCount", ")", ";", "if", "(", "TraceComponent", ".", "isA...
rather than in extension classes
[ "rather", "than", "in", "extension", "classes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java#L524-L563
66,270
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java
ServerTransportAcceptListener.acceptConnection
public ConversationReceiveListener acceptConnection(Conversation cfConversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "acceptConnection", cfConversation); // Add this conversation to our active conversations list synchronized (activeConv...
java
public ConversationReceiveListener acceptConnection(Conversation cfConversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "acceptConnection", cfConversation); // Add this conversation to our active conversations list synchronized (activeConv...
[ "public", "ConversationReceiveListener", "acceptConnection", "(", "Conversation", "cfConversation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", "...
Called when we are about to accept a connection from a peer. @param cfConversation
[ "Called", "when", "we", "are", "about", "to", "accept", "a", "connection", "from", "a", "peer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L93-L157
66,271
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java
ServerTransportAcceptListener.removeConversation
public void removeConversation(Conversation conv) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeConversation", conv); synchronized (activeConversations) { Object connectionReference = conv.getConnectionReference(); Ar...
java
public void removeConversation(Conversation conv) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeConversation", conv); synchronized (activeConversations) { Object connectionReference = conv.getConnectionReference(); Ar...
[ "public", "void", "removeConversation", "(", "Conversation", "conv", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"remov...
This method removes a conversation from the list of active conversations. This would be called if the connection is closed or if a failure is deteceted. @param conv
[ "This", "method", "removes", "a", "conversation", "from", "the", "list", "of", "active", "conversations", ".", "This", "would", "be", "called", "if", "the", "connection", "is", "closed", "or", "if", "a", "failure", "is", "deteceted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L165-L185
66,272
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java
ServerTransportAcceptListener.connectionClosed
public void connectionClosed(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "connectionClosed", connectionReference); removeAllConversations(connectionReference); if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
public void connectionClosed(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "connectionClosed", connectionReference); removeAllConversations(connectionReference); if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "public", "void", "connectionClosed", "(", "Object", "connectionReference", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "...
Driven in the event that the underlying connection closes. This will only be driven if the socket dies before a connection to the ME has had chance to be established. @see com.ibm.ws.sib.jfapchannel.ConnectionClosedListener#connectionClosed(java.lang.Object)
[ "Driven", "in", "the", "event", "that", "the", "underlying", "connection", "closes", ".", "This", "will", "only", "be", "driven", "if", "the", "socket", "dies", "before", "a", "connection", "to", "the", "ME", "has", "had", "chance", "to", "be", "establishe...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L193-L201
66,273
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java
ServerTransportAcceptListener.removeAllConversations
public void removeAllConversations(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllConversations", connectionReference); final ArrayList list; synchronized (activeConversations) { list = (Arra...
java
public void removeAllConversations(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllConversations", connectionReference); final ArrayList list; synchronized (activeConversations) { list = (Arra...
[ "public", "void", "removeAllConversations", "(", "Object", "connectionReference", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
This method is used to clean up any resources that @param connectionReference
[ "This", "method", "is", "used", "to", "clean", "up", "any", "resources", "that" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L225-L259
66,274
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.getObjectFactoryInfo
protected final ObjectFactoryInfo getObjectFactoryInfo(Class<?> klass, String className) // F743-32443 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getObjectFactory: " + klass + ", " + className); if (ivObj...
java
protected final ObjectFactoryInfo getObjectFactoryInfo(Class<?> klass, String className) // F743-32443 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getObjectFactory: " + klass + ", " + className); if (ivObj...
[ "protected", "final", "ObjectFactoryInfo", "getObjectFactoryInfo", "(", "Class", "<", "?", ">", "klass", ",", "String", "className", ")", "// F743-32443", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if",...
Gets an object factory for the specified class or class name. This method must be used to support configurations without a class loader. @param klass the class or <tt>null</tt> if unavailable @param className the class name or <tt>null</tt> if klass was specified @return the ObjectFactory
[ "Gets", "an", "object", "factory", "for", "the", "specified", "class", "or", "class", "name", ".", "This", "method", "must", "be", "used", "to", "support", "configurations", "without", "a", "class", "loader", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L268-L304
66,275
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.updateInjectionBinding
private void updateInjectionBinding(String jndiName, InjectionBinding<A> injectionBinding) // d675172 { // If the annotation didn't have a name or the binding implementation // constructor did not set it, then the binding needs to be updated // with the default name or name (if not set by co...
java
private void updateInjectionBinding(String jndiName, InjectionBinding<A> injectionBinding) // d675172 { // If the annotation didn't have a name or the binding implementation // constructor did not set it, then the binding needs to be updated // with the default name or name (if not set by co...
[ "private", "void", "updateInjectionBinding", "(", "String", "jndiName", ",", "InjectionBinding", "<", "A", ">", "injectionBinding", ")", "// d675172", "{", "// If the annotation didn't have a name or the binding implementation", "// constructor did not set it, then the binding needs ...
Updates an InjectionBinding created for an annotation.
[ "Updates", "an", "InjectionBinding", "created", "for", "an", "annotation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L356-L365
66,276
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.addOrMergeOverrideInjectionBinding
private <P extends Annotation> InjectionBinding<?> addOrMergeOverrideInjectionBinding(Class<?> instanceClass, Member member, A annotation, ...
java
private <P extends Annotation> InjectionBinding<?> addOrMergeOverrideInjectionBinding(Class<?> instanceClass, Member member, A annotation, ...
[ "private", "<", "P", "extends", "Annotation", ">", "InjectionBinding", "<", "?", ">", "addOrMergeOverrideInjectionBinding", "(", "Class", "<", "?", ">", "instanceClass", ",", "Member", "member", ",", "A", "annotation", ",", "String", "jndiName", ")", "// d675843...
Creates and adds a new override injection binding, or merges the data in an annotation with an existing override injection binding. @param <P> the primary annotation class; from the perspective of this method, the A type variable is the overridden annotation type @param instanceClass the class that contained the annot...
[ "Creates", "and", "adds", "a", "new", "override", "injection", "binding", "or", "merges", "the", "data", "in", "an", "annotation", "with", "an", "existing", "override", "injection", "binding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L413-L452
66,277
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.performJavaNameSpaceBinding
void performJavaNameSpaceBinding() throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "performJavaNameSpaceBinding: " + this); for (InjectionBinding<A> injectionBinding : ivAllAnnotations...
java
void performJavaNameSpaceBinding() throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "performJavaNameSpaceBinding: " + this); for (InjectionBinding<A> injectionBinding : ivAllAnnotations...
[ "void", "performJavaNameSpaceBinding", "(", ")", "throws", "InjectionException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr...
Bind all the jndi annotation entries found.
[ "Bind", "all", "the", "jndi", "annotation", "entries", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L708-L739
66,278
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.addInjectionBinding
public final void addInjectionBinding(InjectionBinding<A> injectionBinding) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addInjectionBinding: " + injectionBinding); // jndi name not found in collection, sim...
java
public final void addInjectionBinding(InjectionBinding<A> injectionBinding) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addInjectionBinding: " + injectionBinding); // jndi name not found in collection, sim...
[ "public", "final", "void", "addInjectionBinding", "(", "InjectionBinding", "<", "A", ">", "injectionBinding", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", ...
Add the InjectionBinding to the annotationCollection. The collection will be used later when binding and resolving injection targets. @param injectionBinding
[ "Add", "the", "InjectionBinding", "to", "the", "annotationCollection", ".", "The", "collection", "will", "be", "used", "later", "when", "binding", "and", "resolving", "injection", "targets", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L747-L755
66,279
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java
InjectionProcessor.getJavaBeansPropertyName
protected final String getJavaBeansPropertyName(Member fieldOrMethod) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getJavaBeansPropertyName : " + fieldOrMethod); String propertyName; if (fieldOrMeth...
java
protected final String getJavaBeansPropertyName(Member fieldOrMethod) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getJavaBeansPropertyName : " + fieldOrMethod); String propertyName; if (fieldOrMeth...
[ "protected", "final", "String", "getJavaBeansPropertyName", "(", "Member", "fieldOrMethod", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(",...
F50309.5
[ "F50309", ".", "5" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L767-L800
66,280
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/EmbeddedServerImpl.java
EmbeddedServerImpl.getServerFeatures
public Set<String> getServerFeatures() { ServerTask serverTask = runningServer.get(); try { if (serverTask != null) return serverTask.getServerFeatures(); } catch (InterruptedException e) { // nothing to do here, we couldn't get the results from the server...
java
public Set<String> getServerFeatures() { ServerTask serverTask = runningServer.get(); try { if (serverTask != null) return serverTask.getServerFeatures(); } catch (InterruptedException e) { // nothing to do here, we couldn't get the results from the server...
[ "public", "Set", "<", "String", ">", "getServerFeatures", "(", ")", "{", "ServerTask", "serverTask", "=", "runningServer", ".", "get", "(", ")", ";", "try", "{", "if", "(", "serverTask", "!=", "null", ")", "return", "serverTask", ".", "getServerFeatures", ...
The feature gather operation needs to launch the server far enough for it to read config and figure out all of the features that would be loaded. It doesn't actually start any of those features, but it needs to get far enough to evaluate the full feature set, including features and auto-features that are part of Libert...
[ "The", "feature", "gather", "operation", "needs", "to", "launch", "the", "server", "far", "enough", "for", "it", "to", "read", "config", "and", "figure", "out", "all", "of", "the", "features", "that", "would", "be", "loaded", ".", "It", "doesn", "t", "ac...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/EmbeddedServerImpl.java#L273-L283
66,281
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.findNode
protected Node findNode(int nodeStreamID) { // mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for if (nodeStreamID == this.streamID) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, ...
java
protected Node findNode(int nodeStreamID) { // mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for if (nodeStreamID == this.streamID) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, ...
[ "protected", "Node", "findNode", "(", "int", "nodeStreamID", ")", "{", "// mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for", "if", "(", "nodeStreamID", "==", "this", ".", "streamID", ")", "{", "if", "(", "TraceComp...
Starting with this node, find the node matching the input stream ID, look at this node and all dependents recursively. To search the whole tree start by calling findNode on the root node. @param nodeStreamID @return
[ "Starting", "with", "this", "node", "find", "the", "node", "matching", "the", "input", "stream", "ID", "look", "at", "this", "node", "and", "all", "dependents", "recursively", ".", "To", "search", "the", "whole", "tree", "start", "by", "calling", "findNode",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L77-L98
66,282
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.addDependent
protected void addDependent(Node nodeToAdd) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addDependent entry: node to add: " + nodeToAdd); } dependents.add(nodeToAdd); }
java
protected void addDependent(Node nodeToAdd) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addDependent entry: node to add: " + nodeToAdd); } dependents.add(nodeToAdd); }
[ "protected", "void", "addDependent", "(", "Node", "nodeToAdd", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"addDependent entry: node...
Add a new dependent to this node. @param toAdd
[ "Add", "a", "new", "dependent", "to", "this", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L105-L110
66,283
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.removeDependent
protected void removeDependent(Node nodeToRemove) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "removeDependent entry: node to remove: " + nodeToRemove); } dependents.remove(nodeToRemove); }
java
protected void removeDependent(Node nodeToRemove) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "removeDependent entry: node to remove: " + nodeToRemove); } dependents.remove(nodeToRemove); }
[ "protected", "void", "removeDependent", "(", "Node", "nodeToRemove", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"removeDependent en...
Remove a dependent from the dependent list this node is keeping @param toRemove
[ "Remove", "a", "dependent", "from", "the", "dependent", "list", "this", "node", "is", "keeping" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L117-L122
66,284
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.clearDependentsWriteCount
protected void clearDependentsWriteCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "clearDependentsWriteCount entry: for this node: " + this); } dependentWriteCount = 0; if ((dependents == null) || (dependents.size() == 0)) { ...
java
protected void clearDependentsWriteCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "clearDependentsWriteCount entry: for this node: " + this); } dependentWriteCount = 0; if ((dependents == null) || (dependents.size() == 0)) { ...
[ "protected", "void", "clearDependentsWriteCount", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"clearDependentsWriteCount entry: for...
clear counts for all direct dependents of this node. also clear the dependent write counter
[ "clear", "counts", "for", "all", "direct", "dependents", "of", "this", "node", ".", "also", "clear", "the", "dependent", "write", "counter" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L132-L148
66,285
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.findNextWrite
protected Node findNextWrite() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "findNextWrite entry: on node " + this + "With status: " + status + "and positive ratio of: " + getPriorityRatioPositive()); } if (status == NODE_STATUS.REQUESTING_WRITE...
java
protected Node findNextWrite() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "findNextWrite entry: on node " + this + "With status: " + status + "and positive ratio of: " + getPriorityRatioPositive()); } if (status == NODE_STATUS.REQUESTING_WRITE...
[ "protected", "Node", "findNextWrite", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"findNextWrite entry: on node \"", "+", "this...
recursively go through the tree finding the highest priority node that is requesting to write. Assume nodes are arranged according to which dependents should write next from low index to high index at all levels. Recursively find the next node ready to write, where first option is the highest rank node at a given leve...
[ "recursively", "go", "through", "the", "tree", "finding", "the", "highest", "priority", "node", "that", "is", "requesting", "to", "write", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L282-L312
66,286
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.incrementDependentWriteCount
protected int incrementDependentWriteCount() { dependentWriteCount++; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "incrementDependentWriteCount entry: new dependentWriteCount of: " + dependentWriteCount + " for node: " + this); } return dep...
java
protected int incrementDependentWriteCount() { dependentWriteCount++; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "incrementDependentWriteCount entry: new dependentWriteCount of: " + dependentWriteCount + " for node: " + this); } return dep...
[ "protected", "int", "incrementDependentWriteCount", "(", ")", "{", "dependentWriteCount", "++", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",",...
increment the count since of the number of writes the direct dependents have done since that last reset.
[ "increment", "the", "count", "since", "of", "the", "number", "of", "writes", "the", "direct", "dependents", "have", "done", "since", "that", "last", "reset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L317-L323
66,287
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java
Node.setParent
protected void setParent(Node newParent, boolean removeDep) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setParent entry: new parent will be: " + newParent + " for node: " + this); } Node oldParent = parent; parent = newParent; ...
java
protected void setParent(Node newParent, boolean removeDep) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setParent entry: new parent will be: " + newParent + " for node: " + this); } Node oldParent = parent; parent = newParent; ...
[ "protected", "void", "setParent", "(", "Node", "newParent", ",", "boolean", "removeDep", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",...
Give this node a new parent. Remove this node as a dependent of the old parent Add this node as a dependent of the new parent. @param newParent The new parent for this node. Null is allowed is is basically removing this node from the tree.
[ "Give", "this", "node", "a", "new", "parent", ".", "Remove", "this", "node", "as", "a", "dependent", "of", "the", "old", "parent", "Add", "this", "node", "as", "a", "dependent", "of", "the", "new", "parent", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L332-L358
66,288
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java
Subcursor._next
private final AbstractItemLink _next(long lockID) throws SevereMessageStoreException { // first look for an available link that we can lock. We scan the tree // removing each element as we find it. If we are able to lock the link // we use it. AbstractItemLink lockedMatchingLink = nu...
java
private final AbstractItemLink _next(long lockID) throws SevereMessageStoreException { // first look for an available link that we can lock. We scan the tree // removing each element as we find it. If we are able to lock the link // we use it. AbstractItemLink lockedMatchingLink = nu...
[ "private", "final", "AbstractItemLink", "_next", "(", "long", "lockID", ")", "throws", "SevereMessageStoreException", "{", "// first look for an available link that we can lock. We scan the tree", "// removing each element as we find it. If we are able to lock the link", "// we use it.", ...
Finds and locks the next matching item. <p>This method MUST NOT be synchronized. It can cause reading from the persistence layer. For this reason, and because it contains a loop to find a suitable item, the execution time of this method can be long and synchronization would prevent concurrent addition of entries to th...
[ "Finds", "and", "locks", "the", "next", "matching", "item", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L82-L163
66,289
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java
Subcursor.available
public final void available(AbstractItemLink link) throws SevereMessageStoreException { if (_jumpbackEnabled) { final long newPos = link.getPosition(); // we need to synchronize the read of the position // or we can miss out items when reading an empty queue fast...
java
public final void available(AbstractItemLink link) throws SevereMessageStoreException { if (_jumpbackEnabled) { final long newPos = link.getPosition(); // we need to synchronize the read of the position // or we can miss out items when reading an empty queue fast...
[ "public", "final", "void", "available", "(", "AbstractItemLink", "link", ")", "throws", "SevereMessageStoreException", "{", "if", "(", "_jumpbackEnabled", ")", "{", "final", "long", "newPos", "=", "link", ".", "getPosition", "(", ")", ";", "// we need to synchroni...
The cursor is being told that a link has become available. Add it to the list to revisit, but only if it is older than the current cursor position. @param link @throws SevereMessageStoreException
[ "The", "cursor", "is", "being", "told", "that", "a", "link", "has", "become", "available", ".", "Add", "it", "to", "the", "list", "to", "revisit", "but", "only", "if", "it", "is", "older", "than", "the", "current", "cursor", "position", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L172-L208
66,290
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java
Subcursor.next
public final AbstractItem next(long lockID) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID)); final AbstractItemLink lockedMatchingLink = _next(lockID); // retrieve the item from the li...
java
public final AbstractItem next(long lockID) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID)); final AbstractItemLink lockedMatchingLink = _next(lockID); // retrieve the item from the li...
[ "public", "final", "AbstractItem", "next", "(", "long", "lockID", ")", "throws", "SevereMessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
Return the next item that is deemed a match by the filter specified when the cursor was created. Items returned by this method are locked. @throws SevereMessageStoreException
[ "Return", "the", "next", "item", "that", "is", "deemed", "a", "match", "by", "the", "filter", "specified", "when", "the", "cursor", "was", "created", ".", "Items", "returned", "by", "this", "method", "are", "locked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L258-L273
66,291
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java
Subcursor.finished
public final void finished() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished"); if (null != _lastLink) { _lastLink.cursorRemoved(); _lastLink = null; } if (TraceComponent.isAnyTracingEnabled() && tc....
java
public final void finished() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished"); if (null != _lastLink) { _lastLink.cursorRemoved(); _lastLink = null; } if (TraceComponent.isAnyTracingEnabled() && tc....
[ "public", "final", "void", "finished", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"finished\"", ")", ";", "if...
Signals that use of the cursor has finished. The cursor is removed from the AIL that it currently rests on.
[ "Signals", "that", "use", "of", "the", "cursor", "has", "finished", ".", "The", "cursor", "is", "removed", "from", "the", "AIL", "that", "it", "currently", "rests", "on", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L279-L290
66,292
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java
SingletonBeanO.callTransactionalLifecycleInterceptors
private void callTransactionalLifecycleInterceptors(InterceptorProxy[] proxies, int methodId) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); LifecycleInterceptorWrapper wrapper = new LifecycleInterceptorWrapper(container, this); EJSDeployedSupport s = ...
java
private void callTransactionalLifecycleInterceptors(InterceptorProxy[] proxies, int methodId) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); LifecycleInterceptorWrapper wrapper = new LifecycleInterceptorWrapper(container, this); EJSDeployedSupport s = ...
[ "private", "void", "callTransactionalLifecycleInterceptors", "(", "InterceptorProxy", "[", "]", "proxies", ",", "int", "methodId", ")", "throws", "RemoteException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";",...
Invoke PostConstruct or PreDestroy interceptors associated with this bean using the transaction and security context specified in the method info. @param proxies the non-null reference to InterceptorProxy array that contains the PostConstruct interceptor methods to invoke. @param methodInfo the method info for transac...
[ "Invoke", "PostConstruct", "or", "PreDestroy", "interceptors", "associated", "with", "this", "bean", "using", "the", "transaction", "and", "security", "context", "specified", "in", "the", "method", "info", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java#L194-L231
66,293
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java
SingletonBeanO.postInvoke
@Override public void postInvoke(int id, EJSDeployedSupport s) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "postInvoke"); } // Release lock acquired if container managed con...
java
@Override public void postInvoke(int id, EJSDeployedSupport s) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "postInvoke"); } // Release lock acquired if container managed con...
[ "@", "Override", "public", "void", "postInvoke", "(", "int", "id", ",", "EJSDeployedSupport", "s", ")", "throws", "RemoteException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", ...
Release lock acquired by preInvoke. @see com.ibm.ejs.container.BeanO#postInvoke(int, com.ibm.ejs.container.EJSDeployedSupport)
[ "Release", "lock", "acquired", "by", "preInvoke", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java#L543-L574
66,294
OpenLiberty/open-liberty
dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java
DeserializationObjectInputStream.resolveClassWithCL
private Class<?> resolveClassWithCL(String name) throws ClassNotFoundException { SecurityManager security = System.getSecurityManager(); if (security != null) { return Class.forName(name, false, getClassLoader(thisClass)); } // The platform classloader is null if we failed t...
java
private Class<?> resolveClassWithCL(String name) throws ClassNotFoundException { SecurityManager security = System.getSecurityManager(); if (security != null) { return Class.forName(name, false, getClassLoader(thisClass)); } // The platform classloader is null if we failed t...
[ "private", "Class", "<", "?", ">", "resolveClassWithCL", "(", "String", "name", ")", "throws", "ClassNotFoundException", "{", "SecurityManager", "security", "=", "System", ".", "getSecurityManager", "(", ")", ";", "if", "(", "security", "!=", "null", ")", "{",...
Resolves a class using the appropriate classloader. @param name The name of the class to resolve. @return The resolved class. @throws ClassNotFoundException
[ "Resolves", "a", "class", "using", "the", "appropriate", "classloader", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L128-L142
66,295
OpenLiberty/open-liberty
dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java
DeserializationObjectInputStream.resolveProxyClass
@Override protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException { ClassLoader proxyClassLoader = classLoader; Class<?>[] interfaces = new Class[interfaceNames.length]; Class<?> nonPublicInterface = null; for (int i = 0; i < interfaceNames.length...
java
@Override protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException { ClassLoader proxyClassLoader = classLoader; Class<?>[] interfaces = new Class[interfaceNames.length]; Class<?> nonPublicInterface = null; for (int i = 0; i < interfaceNames.length...
[ "@", "Override", "protected", "Class", "<", "?", ">", "resolveProxyClass", "(", "String", "[", "]", "interfaceNames", ")", "throws", "ClassNotFoundException", "{", "ClassLoader", "proxyClassLoader", "=", "classLoader", ";", "Class", "<", "?", ">", "[", "]", "i...
Delegates class loading to the specified class loader. <p>{@inheritDoc}
[ "Delegates", "class", "loading", "to", "the", "specified", "class", "loader", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L212-L241
66,296
OpenLiberty/open-liberty
dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java
DeserializationObjectInputStream.getPlatformClassLoader
private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = null; tr...
java
private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = null; tr...
[ "private", "static", "ClassLoader", "getPlatformClassLoader", "(", ")", "{", "if", "(", "JavaInfo", ".", "majorVersion", "(", ")", ">=", "9", ")", "{", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "ClassLoader", ">", ...
Returns the PlatformClassloader when running with java 9 and above; otherwise returns null.
[ "Returns", "the", "PlatformClassloader", "when", "running", "with", "java", "9", "and", "above", ";", "otherwise", "returns", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L255-L272
66,297
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java
CATAsynchConsumer.setAsynchConsumerCallback
@Override public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext ord...
java
@Override public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext ord...
[ "@", "Override", "public", "void", "setAsynchConsumerCallback", "(", "int", "requestNumber", ",", "int", "maxActiveMessages", ",", "long", "messageLockExpiry", ",", "int", "batchsize", ",", "OrderingContext", "orderContext", ",", "boolean", "stoppable", ",", "int", ...
Creates a normal or stoppable async consumer for this session. This is called in response to the request from a client. This differs from readahead or synchronous sessions where an async callback is registered without the client knowing. @param requestNumber @param maxActiveMessages @param messageLockExpiry @param bat...
[ "Creates", "a", "normal", "or", "stoppable", "async", "consumer", "for", "this", "session", ".", "This", "is", "called", "in", "response", "to", "the", "request", "from", "a", "client", ".", "This", "differs", "from", "readahead", "or", "synchronous", "sessi...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L173-L268
66,298
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java
CATAsynchConsumer.flush
@Override public void flush(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flush", "" + requestNumber); try { // Make sure it is stopped before we activate it if (mainConsumer.isStarted()) ...
java
@Override public void flush(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flush", "" + requestNumber); try { // Make sure it is stopped before we activate it if (mainConsumer.isStarted()) ...
[ "@", "Override", "public", "void", "flush", "(", "int", "requestNumber", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
This method will flush the consumer to ensure it is completely out of messages. @param requestNumber
[ "This", "method", "will", "flush", "the", "consumer", "to", "ensure", "it", "is", "completely", "out", "of", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L619-L675
66,299
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java
CATAsynchConsumer.sendMessage
private boolean sendMessage(SIBusMessage sibMessage, boolean lastMsg, Integer priority) throws MessageEncodeFailedException, IncorrectMessageTypeException, MessageCopyFailedException, UnsupportedEncodingException { if (TraceComponen...
java
private boolean sendMessage(SIBusMessage sibMessage, boolean lastMsg, Integer priority) throws MessageEncodeFailedException, IncorrectMessageTypeException, MessageCopyFailedException, UnsupportedEncodingException { if (TraceComponen...
[ "private", "boolean", "sendMessage", "(", "SIBusMessage", "sibMessage", ",", "boolean", "lastMsg", ",", "Integer", "priority", ")", "throws", "MessageEncodeFailedException", ",", "IncorrectMessageTypeException", ",", "MessageCopyFailedException", ",", "UnsupportedEncodingExce...
Method to perform a single send of a message to the client. @param sibMessage The message to send. @param lastMsg true if this is the last message in the batch. @param priority The priority to sent the message @return Returns false if a communications error prevented the message from being sent. @throws MessageEncod...
[ "Method", "to", "perform", "a", "single", "send", "of", "a", "message", "to", "the", "client", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L689-L712