repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.getThreadId
public static final String getThreadId() { String id = threadids.get(); if (null == id) { // Pad the tid out to 8 characters id = getThreadId(Thread.currentThread()); threadids.set(id); } return id; }
java
public static final String getThreadId() { String id = threadids.get(); if (null == id) { // Pad the tid out to 8 characters id = getThreadId(Thread.currentThread()); threadids.set(id); } return id; }
[ "public", "static", "final", "String", "getThreadId", "(", ")", "{", "String", "id", "=", "threadids", ".", "get", "(", ")", ";", "if", "(", "null", "==", "id", ")", "{", "// Pad the tid out to 8 characters", "id", "=", "getThreadId", "(", "Thread", ".", ...
Get and return the thread id, padded to 8 characters. @return 8 character string representation of thread id
[ "Get", "and", "return", "the", "thread", "id", "padded", "to", "8", "characters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L173-L181
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.padHexString
public static final String padHexString(int num, int width) { final String zeroPad = "0000000000000000"; String str = Integer.toHexString(num); final int length = str.length(); if (length >= width) return str; StringBuilder buffer = new StringBuilder(zeroPad.substr...
java
public static final String padHexString(int num, int width) { final String zeroPad = "0000000000000000"; String str = Integer.toHexString(num); final int length = str.length(); if (length >= width) return str; StringBuilder buffer = new StringBuilder(zeroPad.substr...
[ "public", "static", "final", "String", "padHexString", "(", "int", "num", ",", "int", "width", ")", "{", "final", "String", "zeroPad", "=", "\"0000000000000000\"", ";", "String", "str", "=", "Integer", ".", "toHexString", "(", "num", ")", ";", "final", "in...
Returns the provided integer, padded to the specified number of characters with zeros. @param num Input number as an integer @param width Number of characters to return, including padding @return input number as zero-padded string
[ "Returns", "the", "provided", "integer", "padded", "to", "the", "specified", "number", "of", "characters", "with", "zeros", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L202-L214
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.throwableToString
public static final String throwableToString(Throwable t) { final StringWriter s = new StringWriter(); final PrintWriter p = new PrintWriter(s); if (t == null) { p.println("none"); } else { printStackTrace(p, t); } return DataFormatHelper.escape(...
java
public static final String throwableToString(Throwable t) { final StringWriter s = new StringWriter(); final PrintWriter p = new PrintWriter(s); if (t == null) { p.println("none"); } else { printStackTrace(p, t); } return DataFormatHelper.escape(...
[ "public", "static", "final", "String", "throwableToString", "(", "Throwable", "t", ")", "{", "final", "StringWriter", "s", "=", "new", "StringWriter", "(", ")", ";", "final", "PrintWriter", "p", "=", "new", "PrintWriter", "(", "s", ")", ";", "if", "(", "...
Returns a string containing the formatted exception stack @param t throwable @return formatted exception stack as a string
[ "Returns", "a", "string", "containing", "the", "formatted", "exception", "stack" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L223-L234
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.printFieldStackTrace
private static final boolean printFieldStackTrace(PrintWriter p, Throwable t, String className, String fieldName) { for (Class<?> c = t.getClass(); c != Object.class; c = c.getSuperclass()) { if (c.getName().equals(className)) { try { Object value = c.getField(fie...
java
private static final boolean printFieldStackTrace(PrintWriter p, Throwable t, String className, String fieldName) { for (Class<?> c = t.getClass(); c != Object.class; c = c.getSuperclass()) { if (c.getName().equals(className)) { try { Object value = c.getField(fie...
[ "private", "static", "final", "boolean", "printFieldStackTrace", "(", "PrintWriter", "p", ",", "Throwable", "t", ",", "String", "className", ",", "String", "fieldName", ")", "{", "for", "(", "Class", "<", "?", ">", "c", "=", "t", ".", "getClass", "(", ")...
Find a field value in the class hierarchy of an exception, and if the field contains another Throwable, then print its stack trace. @param p the writer to print to @param t the outer throwable @param className the name of the class to look for @param fieldName the field in the class to look for @return true if the fie...
[ "Find", "a", "field", "value", "in", "the", "class", "hierarchy", "of", "an", "exception", "and", "if", "the", "field", "contains", "another", "Throwable", "then", "print", "its", "stack", "trace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L260-L277
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/compiler/JikesJspCompiler.java
JikesJspCompiler.createErrorMsg
private String createErrorMsg(JspLineId jspLineId, int errorLineNr) { StringBuffer compilerOutput = new StringBuffer(); if (jspLineId.getSourceLineCount() <= 1) { Object[] objArray = new Object[] { new Integer(jspLineId.getStartSourceLineNum()), jspLineId.getFilePath()}; if (jspLineId.getFilePath...
java
private String createErrorMsg(JspLineId jspLineId, int errorLineNr) { StringBuffer compilerOutput = new StringBuffer(); if (jspLineId.getSourceLineCount() <= 1) { Object[] objArray = new Object[] { new Integer(jspLineId.getStartSourceLineNum()), jspLineId.getFilePath()}; if (jspLineId.getFilePath...
[ "private", "String", "createErrorMsg", "(", "JspLineId", "jspLineId", ",", "int", "errorLineNr", ")", "{", "StringBuffer", "compilerOutput", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "jspLineId", ".", "getSourceLineCount", "(", ")", "<=", "1", ")",...
name of parent file
[ "name", "of", "parent", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/compiler/JikesJspCompiler.java#L360-L409
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java
WebConfigParamUtils.getInstanceInitParameter
@SuppressWarnings("unchecked") public static <T> T getInstanceInitParameter(ExternalContext context, String name, String deprecatedName, T defaultValue) { String param = getStringInitParameter(context, name, deprecatedName); if (param == null) { return defaultVal...
java
@SuppressWarnings("unchecked") public static <T> T getInstanceInitParameter(ExternalContext context, String name, String deprecatedName, T defaultValue) { String param = getStringInitParameter(context, name, deprecatedName); if (param == null) { return defaultVal...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "<", "T", ">", "T", "getInstanceInitParameter", "(", "ExternalContext", "context", ",", "String", "name", ",", "String", "deprecatedName", ",", "T", "defaultValue", ")", "{", "String", "para...
Gets the init parameter value from the specified context and instanciate it. If the parameter was not specified, the default value is used instead. @param context the application's external context @param name the init parameter's name @param deprecatedName the init parameter's deprecated name. @param defaultValue the...
[ "Gets", "the", "init", "parameter", "value", "from", "the", "specified", "context", "and", "instanciate", "it", ".", "If", "the", "parameter", "was", "not", "specified", "the", "default", "value", "is", "used", "instead", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java#L687-L707
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/LDAPUtils.java
LDAPUtils.escapeLDAPFilterTerm
public static String escapeLDAPFilterTerm(String term) { if (term == null) return null; Matcher m = FILTER_CHARS_TO_ESCAPE.matcher(term); StringBuffer sb = new StringBuffer(term.length()); while (m.find()) { final String replacement = escapeFilterChar(m.group().ch...
java
public static String escapeLDAPFilterTerm(String term) { if (term == null) return null; Matcher m = FILTER_CHARS_TO_ESCAPE.matcher(term); StringBuffer sb = new StringBuffer(term.length()); while (m.find()) { final String replacement = escapeFilterChar(m.group().ch...
[ "public", "static", "String", "escapeLDAPFilterTerm", "(", "String", "term", ")", "{", "if", "(", "term", "==", "null", ")", "return", "null", ";", "Matcher", "m", "=", "FILTER_CHARS_TO_ESCAPE", ".", "matcher", "(", "term", ")", ";", "StringBuffer", "sb", ...
Escape a term for use in an LDAP filter. @param term @return
[ "Escape", "a", "term", "for", "use", "in", "an", "LDAP", "filter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/LDAPUtils.java#L28-L39
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/RestoreStateUtils.java
RestoreStateUtils.getBindingMethod
private static Method getBindingMethod(UIComponent parent) { Class[] clazzes = parent.getClass().getInterfaces(); for (int i = 0; i < clazzes.length; i++) { Class clazz = clazzes[i]; if(clazz.getName().indexOf("BindingAware")!=-1) { try ...
java
private static Method getBindingMethod(UIComponent parent) { Class[] clazzes = parent.getClass().getInterfaces(); for (int i = 0; i < clazzes.length; i++) { Class clazz = clazzes[i]; if(clazz.getName().indexOf("BindingAware")!=-1) { try ...
[ "private", "static", "Method", "getBindingMethod", "(", "UIComponent", "parent", ")", "{", "Class", "[", "]", "clazzes", "=", "parent", ".", "getClass", "(", ")", ".", "getInterfaces", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "...
This is all a hack to work around a spec-bug which will be fixed in JSF2.0 @param parent @return true if this component is bindingAware (e.g. aliasBean)
[ "This", "is", "all", "a", "hack", "to", "work", "around", "a", "spec", "-", "bug", "which", "will", "be", "fixed", "in", "JSF2", ".", "0" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/RestoreStateUtils.java#L99-L121
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setObjectClasses
public void setObjectClasses(List<String> objectClasses) { int size = objectClasses.size(); iObjectClasses = new ArrayList<String>(objectClasses.size()); for (int i = 0; i < size; i++) { String objectClass = objectClasses.get(i).toLowerCase(); if (!iObjectClasses.contains...
java
public void setObjectClasses(List<String> objectClasses) { int size = objectClasses.size(); iObjectClasses = new ArrayList<String>(objectClasses.size()); for (int i = 0; i < size; i++) { String objectClass = objectClasses.get(i).toLowerCase(); if (!iObjectClasses.contains...
[ "public", "void", "setObjectClasses", "(", "List", "<", "String", ">", "objectClasses", ")", "{", "int", "size", "=", "objectClasses", ".", "size", "(", ")", ";", "iObjectClasses", "=", "new", "ArrayList", "<", "String", ">", "(", "objectClasses", ".", "si...
Sets a list of defining object classes for this entity type. The object classes will be stored in lower case form for comparison. @param objectClasses A list of defining object class names to be added.
[ "Sets", "a", "list", "of", "defining", "object", "classes", "for", "this", "entity", "type", ".", "The", "object", "classes", "will", "be", "stored", "in", "lower", "case", "form", "for", "comparison", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L232-L241
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setObjectClassesForCreate
public void setObjectClassesForCreate(List<String> objectClasses) { if (iRDNObjectClass != null && iRDNObjectClass.length > 1) { iObjectClassAttrs = new Attribute[iRDNObjectClass.length]; for (int i = 0; i < iRDNObjectClass.length; i++) { iObjectClassAttrs[i] = new BasicA...
java
public void setObjectClassesForCreate(List<String> objectClasses) { if (iRDNObjectClass != null && iRDNObjectClass.length > 1) { iObjectClassAttrs = new Attribute[iRDNObjectClass.length]; for (int i = 0; i < iRDNObjectClass.length; i++) { iObjectClassAttrs[i] = new BasicA...
[ "public", "void", "setObjectClassesForCreate", "(", "List", "<", "String", ">", "objectClasses", ")", "{", "if", "(", "iRDNObjectClass", "!=", "null", "&&", "iRDNObjectClass", ".", "length", ">", "1", ")", "{", "iObjectClassAttrs", "=", "new", "Attribute", "["...
Sets the object classes attribute for creating. @param objectClasses A list of defining object class names to be added.
[ "Sets", "the", "object", "classes", "attribute", "for", "creating", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L249-L277
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setRDNAttributes
public void setRDNAttributes(List<Map<String, Object>> rdnAttrList) throws MissingInitPropertyException { int size = rdnAttrList.size(); // if size = 0, No RDN attributes defined. Same as RDN properties. if (size > 0) { iRDNAttrs = new String[size][]; iRDNObjectClass = ne...
java
public void setRDNAttributes(List<Map<String, Object>> rdnAttrList) throws MissingInitPropertyException { int size = rdnAttrList.size(); // if size = 0, No RDN attributes defined. Same as RDN properties. if (size > 0) { iRDNAttrs = new String[size][]; iRDNObjectClass = ne...
[ "public", "void", "setRDNAttributes", "(", "List", "<", "Map", "<", "String", ",", "Object", ">", ">", "rdnAttrList", ")", "throws", "MissingInitPropertyException", "{", "int", "size", "=", "rdnAttrList", ".", "size", "(", ")", ";", "// if size = 0, No RDN attri...
Sets the RDN attribute types of this member type. RDN attribute types will be converted to lower case. @param The RDN attribute types of this member type.
[ "Sets", "the", "RDN", "attribute", "types", "of", "this", "member", "type", ".", "RDN", "attribute", "types", "will", "be", "converted", "to", "lower", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L400-L429
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.getObjectClassAttribute
public Attribute getObjectClassAttribute(String dn) { if (iObjectClassAttrs.length == 1 || dn == null) { return iObjectClassAttrs[0]; } else { String[] rdns = LdapHelper.getRDNAttributes(dn); for (int i = 0; i < iRDNAttrs.length; i++) { String[] attr...
java
public Attribute getObjectClassAttribute(String dn) { if (iObjectClassAttrs.length == 1 || dn == null) { return iObjectClassAttrs[0]; } else { String[] rdns = LdapHelper.getRDNAttributes(dn); for (int i = 0; i < iRDNAttrs.length; i++) { String[] attr...
[ "public", "Attribute", "getObjectClassAttribute", "(", "String", "dn", ")", "{", "if", "(", "iObjectClassAttrs", ".", "length", "==", "1", "||", "dn", "==", "null", ")", "{", "return", "iObjectClassAttrs", "[", "0", "]", ";", "}", "else", "{", "String", ...
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server. @return The LDAP object class attribute of this member type.
[ "Gets", "the", "LDAP", "object", "class", "attribute", "that", "contains", "all", "object", "classes", "needed", "to", "create", "the", "member", "on", "LDAP", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L436-L455
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java
SimpleEntry.next
public SimpleEntry next() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "next", this); SibTr.exit(tc, "next", this.next); } return this.next; }
java
public SimpleEntry next() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "next", this); SibTr.exit(tc, "next", this.next); } return this.next; }
[ "public", "SimpleEntry", "next", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"next\"", ",", "this", ")", ";", "SibTr",...
Return the next entry in the list @return
[ "Return", "the", "next", "entry", "in", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java#L44-L53
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java
SimpleEntry.remove
public void remove() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "remove", this); if(previous != null) previous.next = next; else list.first = next; if(next != null) next.previous = previous; else list.last = previous; ...
java
public void remove() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "remove", this); if(previous != null) previous.next = next; else list.first = next; if(next != null) next.previous = previous; else list.last = previous; ...
[ "public", "void", "remove", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ",", "this", ")", ";", "if", "(", "pr...
Remove this entry from the list
[ "Remove", "this", "entry", "from", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java#L59-L79
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java
ChildAliasSelector.rank
void rank(MetatypeOcd ocd, List<String> rankedSuffixes) { List<String> childAliasSuffixes = new LinkedList<String>(); for (String suffix : rankedSuffixes) if (!childAliasSuffixes.contains(suffix)) { MetatypeOcd collision = unavailableSuffixes.put(suffix, ocd); ...
java
void rank(MetatypeOcd ocd, List<String> rankedSuffixes) { List<String> childAliasSuffixes = new LinkedList<String>(); for (String suffix : rankedSuffixes) if (!childAliasSuffixes.contains(suffix)) { MetatypeOcd collision = unavailableSuffixes.put(suffix, ocd); ...
[ "void", "rank", "(", "MetatypeOcd", "ocd", ",", "List", "<", "String", ">", "rankedSuffixes", ")", "{", "List", "<", "String", ">", "childAliasSuffixes", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "for", "(", "String", "suffix", ":", ...
Specifies rankings for child alias suffixes. @param ocd represents an object class definition (OCD) element. @param rankedSuffixes ordered list that indicates the rankings. Elements at the beginning of the list are considered to have the highest preference.
[ "Specifies", "rankings", "for", "child", "alias", "suffixes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java#L71-L85
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java
ChildAliasSelector.reserve
void reserve(String suffix, MetatypeOcd ocd) { MetatypeOcd previous = unavailableSuffixes.put(suffix, ocd); if (previous != null) throw new IllegalArgumentException("aliasSuffix: " + suffix); }
java
void reserve(String suffix, MetatypeOcd ocd) { MetatypeOcd previous = unavailableSuffixes.put(suffix, ocd); if (previous != null) throw new IllegalArgumentException("aliasSuffix: " + suffix); }
[ "void", "reserve", "(", "String", "suffix", ",", "MetatypeOcd", "ocd", ")", "{", "MetatypeOcd", "previous", "=", "unavailableSuffixes", ".", "put", "(", "suffix", ",", "ocd", ")", ";", "if", "(", "previous", "!=", "null", ")", "throw", "new", "IllegalArgum...
Reserve a child alias suffix so that no one else can claim it. This method should only be used when an aliasSuffix override is specified in wlp-ra.xml. @param suffix name of the child alias. @param ocd OCD element that is claiming it. @throws IllegalArgumentException if another OCD has already reserved the child alias...
[ "Reserve", "a", "child", "alias", "suffix", "so", "that", "no", "one", "else", "can", "claim", "it", ".", "This", "method", "should", "only", "be", "used", "when", "an", "aliasSuffix", "override", "is", "specified", "in", "wlp", "-", "ra", ".", "xml", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java#L95-L99
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverEsa.java
KernelResolverEsa.matchCapability
private CapabilityMatchingResult matchCapability(Collection<? extends ProvisioningFeatureDefinition> features) { String capabilityString = esaResource.getProvisionCapability(); if (capabilityString == null) { CapabilityMatchingResult result = new CapabilityMatchingResult(); resu...
java
private CapabilityMatchingResult matchCapability(Collection<? extends ProvisioningFeatureDefinition> features) { String capabilityString = esaResource.getProvisionCapability(); if (capabilityString == null) { CapabilityMatchingResult result = new CapabilityMatchingResult(); resu...
[ "private", "CapabilityMatchingResult", "matchCapability", "(", "Collection", "<", "?", "extends", "ProvisioningFeatureDefinition", ">", "features", ")", "{", "String", "capabilityString", "=", "esaResource", ".", "getProvisionCapability", "(", ")", ";", "if", "(", "ca...
Attempt to match the ProvisionCapability requirements against the given list of features @param features the list of features to match against @return a {@link CapabilityMatchingResult} specifying whether all requirements were satisfied and which features were used to satisfy them
[ "Attempt", "to", "match", "the", "ProvisionCapability", "requirements", "against", "the", "given", "list", "of", "features" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverEsa.java#L180-L212
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/connections/RestRepositoryConnection.java
RestRepositoryConnection.getAssetURL
public String getAssetURL(String id) { String url = getRepositoryUrl() + "/assets/" + id + "?"; if (getUserId() != null) { url += "userId=" + getUserId(); } if (getUserId() != null && getPassword() != null) { url += "&password=" + getPassword(); } ...
java
public String getAssetURL(String id) { String url = getRepositoryUrl() + "/assets/" + id + "?"; if (getUserId() != null) { url += "userId=" + getUserId(); } if (getUserId() != null && getPassword() != null) { url += "&password=" + getPassword(); } ...
[ "public", "String", "getAssetURL", "(", "String", "id", ")", "{", "String", "url", "=", "getRepositoryUrl", "(", ")", "+", "\"/assets/\"", "+", "id", "+", "\"?\"", ";", "if", "(", "getUserId", "(", ")", "!=", "null", ")", "{", "url", "+=", "\"userId=\"...
Returns a URL which represent the URL that can be used to view the asset in Massive. This is more for testing purposes, the assets can be access programatically via various methods on this class. @param asset - an Asset @return String - the asset URL
[ "Returns", "a", "URL", "which", "represent", "the", "URL", "that", "can", "be", "used", "to", "view", "the", "asset", "in", "Massive", ".", "This", "is", "more", "for", "testing", "purposes", "the", "assets", "can", "be", "access", "programatically", "via"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/connections/RestRepositoryConnection.java#L147-L159
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/cmdline/ExeHelpAction.java
ExeHelpAction.getTaskUsage
public String getTaskUsage(ExeAction task) { StringBuilder taskUsage = new StringBuilder(NL); // print a empty line taskUsage.append(getHelpPart("global.usage")); taskUsage.append(NL); taskUsage.append('\t'); taskUsage.append(COMMAND); taskUsage.append(' '); ...
java
public String getTaskUsage(ExeAction task) { StringBuilder taskUsage = new StringBuilder(NL); // print a empty line taskUsage.append(getHelpPart("global.usage")); taskUsage.append(NL); taskUsage.append('\t'); taskUsage.append(COMMAND); taskUsage.append(' '); ...
[ "public", "String", "getTaskUsage", "(", "ExeAction", "task", ")", "{", "StringBuilder", "taskUsage", "=", "new", "StringBuilder", "(", "NL", ")", ";", "// print a empty line", "taskUsage", ".", "append", "(", "getHelpPart", "(", "\"global.usage\"", ")", ")", ";...
Constructs a string to represent the usage for a particular task. @param task - type of action @return string that holds the usage for param:task
[ "Constructs", "a", "string", "to", "represent", "the", "usage", "for", "a", "particular", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/cmdline/ExeHelpAction.java#L74-L125
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java
BoundedBuffer.getQueueIndex
private int getQueueIndex(Object[] queue, java.util.concurrent.atomic.AtomicInteger counter, boolean increment) { // fast path for single element array if (queue.length == 1) { return 0; } else if (increment) { // get the next long value from counter int i =...
java
private int getQueueIndex(Object[] queue, java.util.concurrent.atomic.AtomicInteger counter, boolean increment) { // fast path for single element array if (queue.length == 1) { return 0; } else if (increment) { // get the next long value from counter int i =...
[ "private", "int", "getQueueIndex", "(", "Object", "[", "]", "queue", ",", "java", ".", "util", ".", "concurrent", ".", "atomic", ".", "AtomicInteger", "counter", ",", "boolean", "increment", ")", "{", "// fast path for single element array", "if", "(", "queue", ...
has waited.
[ "has", "waited", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java#L230-L252
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java
BoundedBuffer.put
public void put(Object x) throws InterruptedException { if (x == null) { throw new IllegalArgumentException(); } // D186845 if (Thread.interrupted()) // D186845 throw new InterruptedException(); // D312598 - begin boolean ret = false; while (true) { ...
java
public void put(Object x) throws InterruptedException { if (x == null) { throw new IllegalArgumentException(); } // D186845 if (Thread.interrupted()) // D186845 throw new InterruptedException(); // D312598 - begin boolean ret = false; while (true) { ...
[ "public", "void", "put", "(", "Object", "x", ")", "throws", "InterruptedException", "{", "if", "(", "x", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "// D186845 if (Thread.interrupted())", "// D186845 throw new Interrupted...
Puts an object into the buffer. If the buffer is full, the call will block indefinitely until space is freed up. @param x the object being placed in the buffer. @exception IllegalArgumentException if the object is null.
[ "Puts", "an", "object", "into", "the", "buffer", ".", "If", "the", "buffer", "is", "full", "the", "call", "will", "block", "indefinitely", "until", "space", "is", "freed", "up", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java#L466-L505
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setTarget
@Override public void setTarget(String target) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTarget", target); } _target = target; }
java
@Override public void setTarget(String target) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTarget", target); } _target = target; }
[ "@", "Override", "public", "void", "setTarget", "(", "String", "target", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isDebugEnabled", "(", ")", ")", "{", "SibTr", ".", "debug", "(", "this", ",", "TRAC...
Set the target property. @param target
[ "Set", "the", "target", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L891-L899
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setTargetType
@Override public void setTargetType(String targetType) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetType", targetType); } _targetType = targetType; }
java
@Override public void setTargetType(String targetType) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetType", targetType); } _targetType = targetType; }
[ "@", "Override", "public", "void", "setTargetType", "(", "String", "targetType", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isDebugEnabled", "(", ")", ")", "{", "SibTr", ".", "debug", "(", "this", ",",...
Set the target type property. @param targetType
[ "Set", "the", "target", "type", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L918-L926
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setMaxSequentialMessageFailure
@Override public void setMaxSequentialMessageFailure(final String maxSequentialMessageFailure) { _maxSequentialMessageFailure = (maxSequentialMessageFailure == null ? null : Integer.valueOf(maxSequentialMessageFailure)); }
java
@Override public void setMaxSequentialMessageFailure(final String maxSequentialMessageFailure) { _maxSequentialMessageFailure = (maxSequentialMessageFailure == null ? null : Integer.valueOf(maxSequentialMessageFailure)); }
[ "@", "Override", "public", "void", "setMaxSequentialMessageFailure", "(", "final", "String", "maxSequentialMessageFailure", ")", "{", "_maxSequentialMessageFailure", "=", "(", "maxSequentialMessageFailure", "==", "null", "?", "null", ":", "Integer", ".", "valueOf", "(",...
Set the MaxSequentialMessageFailure property @param maxSequentialMessageFailure The maximum number of failed messages
[ "Set", "the", "MaxSequentialMessageFailure", "property" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L1051-L1055
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setAutoStopSequentialMessageFailure
@Override public void setAutoStopSequentialMessageFailure(final String autoStopSequentialMessageFailure) { _autoStopSequentialMessageFailure = (autoStopSequentialMessageFailure == null ? null : Integer.valueOf(autoStopSequentialMessageFailure)); }
java
@Override public void setAutoStopSequentialMessageFailure(final String autoStopSequentialMessageFailure) { _autoStopSequentialMessageFailure = (autoStopSequentialMessageFailure == null ? null : Integer.valueOf(autoStopSequentialMessageFailure)); }
[ "@", "Override", "public", "void", "setAutoStopSequentialMessageFailure", "(", "final", "String", "autoStopSequentialMessageFailure", ")", "{", "_autoStopSequentialMessageFailure", "=", "(", "autoStopSequentialMessageFailure", "==", "null", "?", "null", ":", "Integer", ".",...
Set the AutoStopSequentialMessageFailure property @param autoStopSequentialMessageFailure The maximum number of failed messages before stopping the MDB
[ "Set", "the", "AutoStopSequentialMessageFailure", "property" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L1082-L1086
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LTCUOWCallback.java
LTCUOWCallback.createUserTransactionCallback
public static UOWScopeCallback createUserTransactionCallback() { if (tc.isEntryEnabled()) Tr.entry(tc, "createUserTransactionCallback"); if (userTranCallback == null) { userTranCallback = new LTCUOWCallback(UOW_TYPE_TRANSACTION); } if (tc.isEntryEnabled()) ...
java
public static UOWScopeCallback createUserTransactionCallback() { if (tc.isEntryEnabled()) Tr.entry(tc, "createUserTransactionCallback"); if (userTranCallback == null) { userTranCallback = new LTCUOWCallback(UOW_TYPE_TRANSACTION); } if (tc.isEntryEnabled()) ...
[ "public", "static", "UOWScopeCallback", "createUserTransactionCallback", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"createUserTransactionCallback\"", ")", ";", "if", "(", "userTranCallback", "==",...
may be different in derived classes
[ "may", "be", "different", "in", "derived", "classes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LTCUOWCallback.java#L41-L52
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getInstance
public static X509Name getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
java
public static X509Name getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
[ "public", "static", "X509Name", "getInstance", "(", "ASN1TaggedObject", "obj", ",", "boolean", "explicit", ")", "{", "return", "getInstance", "(", "ASN1Sequence", ".", "getInstance", "(", "obj", ",", "explicit", ")", ")", ";", "}" ]
Return a X509Name based on the passed in tagged object. @param obj tag object holding name. @param explicit true if explicitly tagged false otherwise. @return the X509Name
[ "Return", "a", "X509Name", "based", "on", "the", "passed", "in", "tagged", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L228-L233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getOIDs
public Vector getOIDs() { Vector v = new Vector(); for (int i = 0; i != ordering.size(); i++) { v.addElement(ordering.elementAt(i)); } return v; }
java
public Vector getOIDs() { Vector v = new Vector(); for (int i = 0; i != ordering.size(); i++) { v.addElement(ordering.elementAt(i)); } return v; }
[ "public", "Vector", "getOIDs", "(", ")", "{", "Vector", "v", "=", "new", "Vector", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "ordering", ".", "size", "(", ")", ";", "i", "++", ")", "{", "v", ".", "addElement", "(", "ord...
return a vector of the oids in the name, in the order they were found.
[ "return", "a", "vector", "of", "the", "oids", "in", "the", "name", "in", "the", "order", "they", "were", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L577-L587
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getValues
public Vector getValues() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; }
java
public Vector getValues() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; }
[ "public", "Vector", "getValues", "(", ")", "{", "Vector", "v", "=", "new", "Vector", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "values", ".", "size", "(", ")", ";", "i", "++", ")", "{", "v", ".", "addElement", "(", "val...
return a vector of the values found in the name, in the order they were found.
[ "return", "a", "vector", "of", "the", "values", "found", "in", "the", "name", "in", "the", "order", "they", "were", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L593-L603
train
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/ConfigID.java
ConfigID.fromProperty
public static ConfigID fromProperty(String property) { //TODO Perhaps there is a clever regex that could handle this String[] parents = property.split("//"); ConfigID id = null; for (String parentString : parents) { id = constructId(id, parentString); } retu...
java
public static ConfigID fromProperty(String property) { //TODO Perhaps there is a clever regex that could handle this String[] parents = property.split("//"); ConfigID id = null; for (String parentString : parents) { id = constructId(id, parentString); } retu...
[ "public", "static", "ConfigID", "fromProperty", "(", "String", "property", ")", "{", "//TODO Perhaps there is a clever regex that could handle this", "String", "[", "]", "parents", "=", "property", ".", "split", "(", "\"//\"", ")", ";", "ConfigID", "id", "=", "null"...
Translate config.id back into an ConfigID object @param property @return
[ "Translate", "config", ".", "id", "back", "into", "an", "ConfigID", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/ConfigID.java#L68-L78
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java
ClientConnectionManagerImpl.connect
@Override public Conversation connect(InetSocketAddress remoteHost, ConversationReceiveListener arl, String chainName) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
@Override public Conversation connect(InetSocketAddress remoteHost, ConversationReceiveListener arl, String chainName) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "@", "Override", "public", "Conversation", "connect", "(", "InetSocketAddress", "remoteHost", ",", "ConversationReceiveListener", "arl", ",", "String", "chainName", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
Implementation of the connect method provided by our abstract parent. Attempts to establish a conversation to the specified remote host using the appropriate chain. This may involve creating a new connection or reusing an existing one. The harder part is doing this in such a way as to avoid blocking all calls while pro...
[ "Implementation", "of", "the", "connect", "method", "provided", "by", "our", "abstract", "parent", ".", "Attempts", "to", "establish", "a", "conversation", "to", "the", "specified", "remote", "host", "using", "the", "appropriate", "chain", ".", "This", "may", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java#L78-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java
ClientConnectionManagerImpl.initialise
public static void initialise() throws SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialise"); initialisationFailed = true; Framework framework = Framework.getInstance(); if (framework != null) { ...
java
public static void initialise() throws SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialise"); initialisationFailed = true; Framework framework = Framework.getInstance(); if (framework != null) { ...
[ "public", "static", "void", "initialise", "(", ")", "throws", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"initialise\"...
Initialises the Client Connection Manager. @see com.ibm.ws.sib.jfapchannel.ClientConnectionManager#initialise()
[ "Initialises", "the", "Client", "Connection", "Manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java#L166-L188
train
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionImpl.java
SessionImpl.destroy
private void destroy() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Session being destroyed; " + this); } // List<HttpSessionListener> list = this.myConfig.getSessionListeners(); // if (null != list)...
java
private void destroy() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Session being destroyed; " + this); } // List<HttpSessionListener> list = this.myConfig.getSessionListeners(); // if (null != list)...
[ "private", "void", "destroy", "(", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "bTrace", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ",",...
Once a session has been invalidated, this will perform final cleanup and notifying any listeners.
[ "Once", "a", "session", "has", "been", "invalidated", "this", "will", "perform", "final", "cleanup", "and", "notifying", "any", "listeners", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionImpl.java#L82-L109
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ThreadContextClassLoader.java
ThreadContextClassLoader.cleanup
private void cleanup() { final String methodName = "cleanup(): "; try { final Bundle b = bundle.getAndSet(null); if (b != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + "Uninstalling bundle location: " + b.getLocation() + ", bundl...
java
private void cleanup() { final String methodName = "cleanup(): "; try { final Bundle b = bundle.getAndSet(null); if (b != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + "Uninstalling bundle location: " + b.getLocation() + ", bundl...
[ "private", "void", "cleanup", "(", ")", "{", "final", "String", "methodName", "=", "\"cleanup(): \"", ";", "try", "{", "final", "Bundle", "b", "=", "bundle", ".", "getAndSet", "(", "null", ")", ";", "if", "(", "b", "!=", "null", ")", "{", "if", "(", ...
Cleans up the TCCL instance. Once called, this TCCL is effectively disabled. It's associated gateway bundle will have been removed.
[ "Cleans", "up", "the", "TCCL", "instance", ".", "Once", "called", "this", "TCCL", "is", "effectively", "disabled", ".", "It", "s", "associated", "gateway", "bundle", "will", "have", "been", "removed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ThreadContextClassLoader.java#L59-L88
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ThreadContextClassLoader.java
ThreadContextClassLoader.decrementRefCount
int decrementRefCount() { final String methodName = "decrementRefCount(): "; final int count = refCount.decrementAndGet(); if (count < 0) { // more destroys than creates if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, method...
java
int decrementRefCount() { final String methodName = "decrementRefCount(): "; final int count = refCount.decrementAndGet(); if (count < 0) { // more destroys than creates if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, method...
[ "int", "decrementRefCount", "(", ")", "{", "final", "String", "methodName", "=", "\"decrementRefCount(): \"", ";", "final", "int", "count", "=", "refCount", ".", "decrementAndGet", "(", ")", ";", "if", "(", "count", "<", "0", ")", "{", "// more destroys than c...
The ClassLoadingService implementation should call this method when it's destroyThreadContextClassLoader method is called. Each call to destroyTCCL should decrement this ref counter. When there are no more references to this TCCL, it will be cleaned up, which effectively invalidates it. Users of the ClassLoadingServic...
[ "The", "ClassLoadingService", "implementation", "should", "call", "this", "method", "when", "it", "s", "destroyThreadContextClassLoader", "method", "is", "called", ".", "Each", "call", "to", "destroyTCCL", "should", "decrement", "this", "ref", "counter", ".", "When"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ThreadContextClassLoader.java#L106-L119
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPCtxtInjectionBinding.java
JPAPCtxtInjectionBinding.newPersistenceContext
private static PersistenceContext newPersistenceContext(final String fJndiName, final String fUnitName, final int fCtxType, final List<Property> fCtxProperties) { return new PersistenceContext() { @Override public Class<? exten...
java
private static PersistenceContext newPersistenceContext(final String fJndiName, final String fUnitName, final int fCtxType, final List<Property> fCtxProperties) { return new PersistenceContext() { @Override public Class<? exten...
[ "private", "static", "PersistenceContext", "newPersistenceContext", "(", "final", "String", "fJndiName", ",", "final", "String", "fUnitName", ",", "final", "int", "fCtxType", ",", "final", "List", "<", "Property", ">", "fCtxProperties", ")", "{", "return", "new", ...
This transient PersistenceContext annotation class has no default value. i.e. null is a valid value for some fields.
[ "This", "transient", "PersistenceContext", "annotation", "class", "has", "no", "default", "value", ".", "i", ".", "e", ".", "null", "is", "a", "valid", "value", "for", "some", "fields", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPCtxtInjectionBinding.java#L450-L515
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java
ProxyReceiveListener.processConnectionInfo
private void processConnectionInfo(CommsByteBuffer buffer, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "processConnectionInfo", new Object[]{buffer, conversation}); ClientConversationState ...
java
private void processConnectionInfo(CommsByteBuffer buffer, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "processConnectionInfo", new Object[]{buffer, conversation}); ClientConversationState ...
[ "private", "void", "processConnectionInfo", "(", "CommsByteBuffer", "buffer", ",", "Conversation", "conversation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
This method will process the connection information received from our peer. At the moment this consists of the connection object ID required at the server, the name of the messaging engine and the ME Uuid. @param buffer @param conversation
[ "This", "method", "will", "process", "the", "connection", "information", "received", "from", "our", "peer", ".", "At", "the", "moment", "this", "consists", "of", "the", "connection", "object", "ID", "required", "at", "the", "server", "the", "name", "of", "th...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java#L526-L587
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java
ProxyReceiveListener.processSchema
private void processSchema(CommsByteBuffer buffer, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processSchema", new Object[] { ...
java
private void processSchema(CommsByteBuffer buffer, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processSchema", new Object[] { ...
[ "private", "void", "processSchema", "(", "CommsByteBuffer", "buffer", ",", "Conversation", "conversation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
This method will process a schema received from our peer's MFP compoennt. At the moment this consists of contacting MFP here on the client and giving it the schema. Schemas are received when the ME is about to send us a message and realises that we don't have the necessary schema to decode it. A High priority message i...
[ "This", "method", "will", "process", "a", "schema", "received", "from", "our", "peer", "s", "MFP", "compoennt", ".", "At", "the", "moment", "this", "consists", "of", "contacting", "MFP", "here", "on", "the", "client", "and", "giving", "it", "the", "schema"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java#L600-L636
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java
ProxyReceiveListener.processSyncMessageChunk
private void processSyncMessageChunk(CommsByteBuffer buffer, Conversation conversation, boolean connectionMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "processSyncMessageChunk", ...
java
private void processSyncMessageChunk(CommsByteBuffer buffer, Conversation conversation, boolean connectionMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "processSyncMessageChunk", ...
[ "private", "void", "processSyncMessageChunk", "(", "CommsByteBuffer", "buffer", ",", "Conversation", "conversation", ",", "boolean", "connectionMessage", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", ...
Processes a chunk received from a synchronous message. @param buffer @param conversation @param connectionMessage
[ "Processes", "a", "chunk", "received", "from", "a", "synchronous", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProxyReceiveListener.java#L645-L675
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.getBean
public BeanO getBean(ContainerTx tx, BeanId id) { return id.getActivationStrategy().atGet(tx, id); }
java
public BeanO getBean(ContainerTx tx, BeanId id) { return id.getActivationStrategy().atGet(tx, id); }
[ "public", "BeanO", "getBean", "(", "ContainerTx", "tx", ",", "BeanId", "id", ")", "{", "return", "id", ".", "getActivationStrategy", "(", ")", ".", "atGet", "(", "tx", ",", "id", ")", ";", "}" ]
Return bean from cache for given transaction, bean id. Return null if no entry in cache.
[ "Return", "bean", "from", "cache", "for", "given", "transaction", "bean", "id", ".", "Return", "null", "if", "no", "entry", "in", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L368-L371
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.commitBean
public void commitBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atCommit(tx, bean); }
java
public void commitBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atCommit(tx, bean); }
[ "public", "void", "commitBean", "(", "ContainerTx", "tx", ",", "BeanO", "bean", ")", "{", "bean", ".", "getActivationStrategy", "(", ")", ".", "atCommit", "(", "tx", ",", "bean", ")", ";", "}" ]
Perform commit-time processing for the specified transaction and bean. This method should be called for each bean which was participating in a transaction which was successfully committed. The transaction-local instance of the bean is removed from the cache, and any necessary reconciliation between that instance and t...
[ "Perform", "commit", "-", "time", "processing", "for", "the", "specified", "transaction", "and", "bean", ".", "This", "method", "should", "be", "called", "for", "each", "bean", "which", "was", "participating", "in", "a", "transaction", "which", "was", "success...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L387-L390
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.unitOfWorkEnd
public void unitOfWorkEnd(ContainerAS as, BeanO bean) { bean.getActivationStrategy().atUnitOfWorkEnd(as, bean); }
java
public void unitOfWorkEnd(ContainerAS as, BeanO bean) { bean.getActivationStrategy().atUnitOfWorkEnd(as, bean); }
[ "public", "void", "unitOfWorkEnd", "(", "ContainerAS", "as", ",", "BeanO", "bean", ")", "{", "bean", ".", "getActivationStrategy", "(", ")", ".", "atUnitOfWorkEnd", "(", "as", ",", "bean", ")", ";", "}" ]
LIDB441.5 - added
[ "LIDB441", ".", "5", "-", "added" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L404-L407
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.rollbackBean
public void rollbackBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atRollback(tx, bean); }
java
public void rollbackBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atRollback(tx, bean); }
[ "public", "void", "rollbackBean", "(", "ContainerTx", "tx", ",", "BeanO", "bean", ")", "{", "bean", ".", "getActivationStrategy", "(", ")", ".", "atRollback", "(", "tx", ",", "bean", ")", ";", "}" ]
Perform rollback-time processing for the specified transaction and bean. This method should be called for each bean which was participating in a transaction which was rolled back. Removes the transaction-local instance from the cache. @param tx The transaction which was just rolled back @param bean The bean for rollb...
[ "Perform", "rollback", "-", "time", "processing", "for", "the", "specified", "transaction", "and", "bean", ".", "This", "method", "should", "be", "called", "for", "each", "bean", "which", "was", "participating", "in", "a", "transaction", "which", "was", "rolle...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L419-L422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.enlistBean
public final void enlistBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atEnlist(tx, bean); }
java
public final void enlistBean(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atEnlist(tx, bean); }
[ "public", "final", "void", "enlistBean", "(", "ContainerTx", "tx", ",", "BeanO", "bean", ")", "{", "bean", ".", "getActivationStrategy", "(", ")", ".", "atEnlist", "(", "tx", ",", "bean", ")", ";", "}" ]
Perform actions required when a bean is enlisted in a transaction at some point in time other than at activation. Used only for beans using TX_BEAN_MANAGED.
[ "Perform", "actions", "required", "when", "a", "bean", "is", "enlisted", "in", "a", "transaction", "at", "some", "point", "in", "time", "other", "than", "at", "activation", ".", "Used", "only", "for", "beans", "using", "TX_BEAN_MANAGED", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L429-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.terminate
public void terminate() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "terminate"); statefulBeanReaper.cancel(); //d601399 // Force a reaper sweep statefulBeanReaper.finalSweep(passivator); beanCache.terminate(); if (T...
java
public void terminate() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "terminate"); statefulBeanReaper.cancel(); //d601399 // Force a reaper sweep statefulBeanReaper.finalSweep(passivator); beanCache.terminate(); if (T...
[ "public", "void", "terminate", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"terminate\"", ")", ";", "statefulBeanReaper", ".", "...
Enable cleanup of passivated beans, kind of a hack, required because all the bean's homes have already been cleaned up at this point
[ "Enable", "cleanup", "of", "passivated", "beans", "kind", "of", "a", "hack", "required", "because", "all", "the", "bean", "s", "homes", "have", "already", "been", "cleaned", "up", "at", "this", "point" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L564-L578
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java
Activator.uninstallBean
public void uninstallBean(J2EEName homeName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "uninstallBean " + homeName); BeanO cacheMember; J2EEName cacheHomeName; Iterator<?> statefulBeans; // d103404.1 int numEnumerated = 0, nu...
java
public void uninstallBean(J2EEName homeName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "uninstallBean " + homeName); BeanO cacheMember; J2EEName cacheHomeName; Iterator<?> statefulBeans; // d103404.1 int numEnumerated = 0, nu...
[ "public", "void", "uninstallBean", "(", "J2EEName", "homeName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"uninstallBean \"", "+", "h...
Uninstall a bean identified by the J2EEName. This is a partial solution to the general problem of how we can quiesce beans. Uninstalling a bean requires us to enumerate the whole bean cache We attempt to find beans which have the same J2EEName as the bean we are uninstalling. We then fire the uninstall event on the act...
[ "Uninstall", "a", "bean", "identified", "by", "the", "J2EEName", ".", "This", "is", "a", "partial", "solution", "to", "the", "general", "problem", "of", "how", "we", "can", "quiesce", "beans", ".", "Uninstalling", "a", "bean", "requires", "us", "to", "enum...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/Activator.java#L597-L686
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpImpl.java
TimerNpImpl.calculateNextExpiration
synchronized long calculateNextExpiration() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "calculateNextExpiration: " + this); ivLastExpiration = ivExpiration; // 598265 if (ivParsedScheduleExpression != n...
java
synchronized long calculateNextExpiration() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "calculateNextExpiration: " + this); ivLastExpiration = ivExpiration; // 598265 if (ivParsedScheduleExpression != n...
[ "synchronized", "long", "calculateNextExpiration", "(", ")", "{", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc...
Calculate the next time that the timer should fire. @return the number of milliseconds until the next timeout, or 0 if the timer should not fire again
[ "Calculate", "the", "next", "time", "that", "the", "timer", "should", "fire", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpImpl.java#L406-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpImpl.java
TimerNpImpl.removeTimersByJ2EEName
public static void removeTimersByJ2EEName(J2EEName j2eeName) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "removeTimersByJ2EEName: " + j2eeName); Collection<TimerNpImpl> timersToRemove = null; // Al...
java
public static void removeTimersByJ2EEName(J2EEName j2eeName) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "removeTimersByJ2EEName: " + j2eeName); Collection<TimerNpImpl> timersToRemove = null; // Al...
[ "public", "static", "void", "removeTimersByJ2EEName", "(", "J2EEName", "j2eeName", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ...
Removes all timers associated with the specified application or module. @param j2eeName the name of the application or module
[ "Removes", "all", "timers", "associated", "with", "the", "specified", "application", "or", "module", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpImpl.java#L1067-L1116
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/WebAppModule.java
WebAppModule.statisticCreated
public void statisticCreated (SPIStatistic s) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) logger.logp(Level.FINE, CLASS_NAME,"statisticCreated","Servlet statistic created with id="+s.getId()); if (s.getId() == LOADED_SERVLETS) { ...
java
public void statisticCreated (SPIStatistic s) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) logger.logp(Level.FINE, CLASS_NAME,"statisticCreated","Servlet statistic created with id="+s.getId()); if (s.getId() == LOADED_SERVLETS) { ...
[ "public", "void", "statisticCreated", "(", "SPIStatistic", "s", ")", "{", "if", "(", "com", ".", "ibm", ".", "websphere", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE",...
use ID defined in template to identify a statistic
[ "use", "ID", "defined", "in", "template", "to", "identify", "a", "statistic" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/WebAppModule.java#L147-L160
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.createEJBModuleMetaDataImpl
public EJBModuleMetaDataImpl createEJBModuleMetaDataImpl(EJBApplicationMetaData ejbAMD, // F743-4950 ModuleInitData mid, SfFailoverCache statefulFailoverCache, ...
java
public EJBModuleMetaDataImpl createEJBModuleMetaDataImpl(EJBApplicationMetaData ejbAMD, // F743-4950 ModuleInitData mid, SfFailoverCache statefulFailoverCache, ...
[ "public", "EJBModuleMetaDataImpl", "createEJBModuleMetaDataImpl", "(", "EJBApplicationMetaData", "ejbAMD", ",", "// F743-4950", "ModuleInitData", "mid", ",", "SfFailoverCache", "statefulFailoverCache", ",", "EJSContainer", "container", ")", "{", "final", "boolean", "isTraceOn...
Create the EJB Container's internal module metadata object and fill in the data from the metadata framework's generic ModuleDataObject. This occurs at application start time. @param ejbAMD is the container's metadata for the application containing this module @param mid the data needed to initialize a bean module. @pa...
[ "Create", "the", "EJB", "Container", "s", "internal", "module", "metadata", "object", "and", "fill", "in", "the", "data", "from", "the", "metadata", "framework", "s", "generic", "ModuleDataObject", ".", "This", "occurs", "at", "application", "start", "time", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L214-L270
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.processDeferredBMD
public void processDeferredBMD(BeanMetaData bmd) throws EJBConfigurationException, ContainerException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "processDeferredBMD: " + bmd.j2eeName); // F743-506 - Process au...
java
public void processDeferredBMD(BeanMetaData bmd) throws EJBConfigurationException, ContainerException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "processDeferredBMD: " + bmd.j2eeName); // F743-506 - Process au...
[ "public", "void", "processDeferredBMD", "(", "BeanMetaData", "bmd", ")", "throws", "EJBConfigurationException", ",", "ContainerException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", ...
Perform metadata processing for a bean that is being deferred.
[ "Perform", "metadata", "processing", "for", "a", "bean", "that", "is", "being", "deferred", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L569-L586
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.initializeLifecycleInterceptorMethodMD
private void initializeLifecycleInterceptorMethodMD(Method[] ejbMethods, List<ContainerTransaction> transactionList, List<ActivitySessionMethod> activitySessionList, ...
java
private void initializeLifecycleInterceptorMethodMD(Method[] ejbMethods, List<ContainerTransaction> transactionList, List<ActivitySessionMethod> activitySessionList, ...
[ "private", "void", "initializeLifecycleInterceptorMethodMD", "(", "Method", "[", "]", "ejbMethods", ",", "List", "<", "ContainerTransaction", ">", "transactionList", ",", "List", "<", "ActivitySessionMethod", ">", "activitySessionList", ",", "BeanMetaData", "bmd", ")", ...
Initialize lifecycleInterceptorMethodInfos and lifecycleInterceptorMethodNames fields in the specified BeanMetaData.
[ "Initialize", "lifecycleInterceptorMethodInfos", "and", "lifecycleInterceptorMethodNames", "fields", "in", "the", "specified", "BeanMetaData", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L1554-L1629
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getNestedException
@SuppressWarnings("deprecation") protected Throwable getNestedException(Throwable t) { Throwable root = t; for (;;) { if (root instanceof RemoteException) { RemoteException re = (RemoteException) root; if (re.detail == null) break; ...
java
@SuppressWarnings("deprecation") protected Throwable getNestedException(Throwable t) { Throwable root = t; for (;;) { if (root instanceof RemoteException) { RemoteException re = (RemoteException) root; if (re.detail == null) break; ...
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "protected", "Throwable", "getNestedException", "(", "Throwable", "t", ")", "{", "Throwable", "root", "=", "t", ";", "for", "(", ";", ";", ")", "{", "if", "(", "root", "instanceof", "RemoteException", ")"...
d494984 eliminate assignment to parameter t.
[ "d494984", "eliminate", "assignment", "to", "parameter", "t", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L2090-L2114
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.processSingletonConcurrencyManagementType
private void processSingletonConcurrencyManagementType(BeanMetaData bmd) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "processSingletonConcurrencyManagementType"); } /...
java
private void processSingletonConcurrencyManagementType(BeanMetaData bmd) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "processSingletonConcurrencyManagementType"); } /...
[ "private", "void", "processSingletonConcurrencyManagementType", "(", "BeanMetaData", "bmd", ")", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", ...
F743-1752CodRev rewrote to do error checking and validation.
[ "F743", "-", "1752CodRev", "rewrote", "to", "do", "error", "checking", "and", "validation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3160-L3249
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.initializeManagedObjectFactoryOrConstructor
private void initializeManagedObjectFactoryOrConstructor(BeanMetaData bmd) throws EJBConfigurationException { if (bmd.isManagedBean()) { bmd.ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory(bmd, bmd.enterpriseBeanClass); // If the managed object factroy and the managed objec...
java
private void initializeManagedObjectFactoryOrConstructor(BeanMetaData bmd) throws EJBConfigurationException { if (bmd.isManagedBean()) { bmd.ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory(bmd, bmd.enterpriseBeanClass); // If the managed object factroy and the managed objec...
[ "private", "void", "initializeManagedObjectFactoryOrConstructor", "(", "BeanMetaData", "bmd", ")", "throws", "EJBConfigurationException", "{", "if", "(", "bmd", ".", "isManagedBean", "(", ")", ")", "{", "bmd", ".", "ivEnterpriseBeanFactory", "=", "getManagedBeanManagedO...
Create the appropriate ManagedObjectFactory for the bean type, or obtain the constructor if a ManagedObjectFactory will not be used.
[ "Create", "the", "appropriate", "ManagedObjectFactory", "for", "the", "bean", "type", "or", "obtain", "the", "constructor", "if", "a", "ManagedObjectFactory", "will", "not", "be", "used", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3255-L3288
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.initializeEntityConstructor
private void initializeEntityConstructor(BeanMetaData bmd) throws EJBConfigurationException { try { bmd.ivEnterpriseBeanClassConstructor = bmd.enterpriseBeanClass.getConstructor((Class<?>[]) null); } catch (NoSuchMethodException e) { Tr.error(tc, "JIT_NO_DEFAULT_CTOR_CNTR5007E", ...
java
private void initializeEntityConstructor(BeanMetaData bmd) throws EJBConfigurationException { try { bmd.ivEnterpriseBeanClassConstructor = bmd.enterpriseBeanClass.getConstructor((Class<?>[]) null); } catch (NoSuchMethodException e) { Tr.error(tc, "JIT_NO_DEFAULT_CTOR_CNTR5007E", ...
[ "private", "void", "initializeEntityConstructor", "(", "BeanMetaData", "bmd", ")", "throws", "EJBConfigurationException", "{", "try", "{", "bmd", ".", "ivEnterpriseBeanClassConstructor", "=", "bmd", ".", "enterpriseBeanClass", ".", "getConstructor", "(", "(", "Class", ...
Obtain the constructor for the entity bean concrete class.
[ "Obtain", "the", "constructor", "for", "the", "entity", "bean", "concrete", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3293-L3302
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getManagedBeanManagedObjectFactory
protected <T> ManagedObjectFactory<T> getManagedBeanManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { ...
java
protected <T> ManagedObjectFactory<T> getManagedBeanManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { ...
[ "protected", "<", "T", ">", "ManagedObjectFactory", "<", "T", ">", "getManagedBeanManagedObjectFactory", "(", "BeanMetaData", "bmd", ",", "Class", "<", "T", ">", "klass", ")", "throws", "EJBConfigurationException", "{", "ManagedObjectFactory", "<", "T", ">", "fact...
Gets a managed object factory for the specified ManagedBean class, or null if instances of the class do not need to be managed. @param bmd the bean metadata @param klass the ManagedBean class
[ "Gets", "a", "managed", "object", "factory", "for", "the", "specified", "ManagedBean", "class", "or", "null", "if", "instances", "of", "the", "class", "do", "not", "need", "to", "be", "managed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3316-L3332
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getInterceptorManagedObjectFactory
protected <T> ManagedObjectFactory<T> getInterceptorManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { ...
java
protected <T> ManagedObjectFactory<T> getInterceptorManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { ...
[ "protected", "<", "T", ">", "ManagedObjectFactory", "<", "T", ">", "getInterceptorManagedObjectFactory", "(", "BeanMetaData", "bmd", ",", "Class", "<", "T", ">", "klass", ")", "throws", "EJBConfigurationException", "{", "ManagedObjectFactory", "<", "T", ">", "fact...
Gets a managed object factory for the specified interceptor class, or null if instances of the class do not need to be managed. @param bmd the bean metadata @param klass the interceptor class
[ "Gets", "a", "managed", "object", "factory", "for", "the", "specified", "interceptor", "class", "or", "null", "if", "instances", "of", "the", "class", "do", "not", "need", "to", "be", "managed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3341-L3357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getEJBManagedObjectFactory
protected <T> ManagedObjectFactory<T> getEJBManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { try...
java
protected <T> ManagedObjectFactory<T> getEJBManagedObjectFactory(BeanMetaData bmd, Class<T> klass) throws EJBConfigurationException { ManagedObjectFactory<T> factory = null; ManagedObjectService managedObjectService = getManagedObjectService(); if (managedObjectService != null) { try...
[ "protected", "<", "T", ">", "ManagedObjectFactory", "<", "T", ">", "getEJBManagedObjectFactory", "(", "BeanMetaData", "bmd", ",", "Class", "<", "T", ">", "klass", ")", "throws", "EJBConfigurationException", "{", "ManagedObjectFactory", "<", "T", ">", "factory", ...
Gets a managed object factory for the specified EJB class, or null if instances of the class do not need to be managed. @param bmd the bean metadata @param klass the bean implementation class
[ "Gets", "a", "managed", "object", "factory", "for", "the", "specified", "EJB", "class", "or", "null", "if", "instances", "of", "the", "class", "do", "not", "need", "to", "be", "managed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L3366-L3382
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getWrapperProxyClassLoader
private ClassLoader getWrapperProxyClassLoader(BeanMetaData bmd, Class<?> intf) // F58064 throws EJBConfigurationException { // Wrapper proxies are intended to support application restart scenarios. // In order to allow GC of the target EJB class loader when the // applicatio...
java
private ClassLoader getWrapperProxyClassLoader(BeanMetaData bmd, Class<?> intf) // F58064 throws EJBConfigurationException { // Wrapper proxies are intended to support application restart scenarios. // In order to allow GC of the target EJB class loader when the // applicatio...
[ "private", "ClassLoader", "getWrapperProxyClassLoader", "(", "BeanMetaData", "bmd", ",", "Class", "<", "?", ">", "intf", ")", "// F58064", "throws", "EJBConfigurationException", "{", "// Wrapper proxies are intended to support application restart scenarios.", "// In order to allo...
Returns a class loader that can be used to define a proxy for the specified interface. @param bmd the bean metadata @param intf the interface to proxy @return the loader @throws EJBConfigurationException
[ "Returns", "a", "class", "loader", "that", "can", "be", "used", "to", "define", "a", "proxy", "for", "the", "specified", "interface", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L4453-L4495
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.getWrapperProxyConstructor
private Constructor<?> getWrapperProxyConstructor(BeanMetaData bmd, String proxyClassName, Class<?> interfaceClass, Method[] methods) // F58064 ...
java
private Constructor<?> getWrapperProxyConstructor(BeanMetaData bmd, String proxyClassName, Class<?> interfaceClass, Method[] methods) // F58064 ...
[ "private", "Constructor", "<", "?", ">", "getWrapperProxyConstructor", "(", "BeanMetaData", "bmd", ",", "String", "proxyClassName", ",", "Class", "<", "?", ">", "interfaceClass", ",", "Method", "[", "]", "methods", ")", "// F58064", "throws", "EJBConfigurationExce...
Defines a wrapper proxy class and obtains its constructor that accepts a WrapperProxyStte. @param bmd the bean metadata @param proxyClassName the wrapper proxy class name @param interfaceClass the interface class to proxy @param methods the methods to define on the proxy @return the constructor with a WrapperProxyStat...
[ "Defines", "a", "wrapper", "proxy", "class", "and", "obtains", "its", "constructor", "that", "accepts", "a", "WrapperProxyStte", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L4509-L4524
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.hasEmptyThrowsClause
private static boolean hasEmptyThrowsClause(Method method) { for (Class<?> klass : method.getExceptionTypes()) { // Per CTS, callback methods can declare unchecked exceptions on the // throws clause. if (!RuntimeException.class.isAssignableFrom(klass) && !Erro...
java
private static boolean hasEmptyThrowsClause(Method method) { for (Class<?> klass : method.getExceptionTypes()) { // Per CTS, callback methods can declare unchecked exceptions on the // throws clause. if (!RuntimeException.class.isAssignableFrom(klass) && !Erro...
[ "private", "static", "boolean", "hasEmptyThrowsClause", "(", "Method", "method", ")", "{", "for", "(", "Class", "<", "?", ">", "klass", ":", "method", ".", "getExceptionTypes", "(", ")", ")", "{", "// Per CTS, callback methods can declare unchecked exceptions on the",...
Returns true if the specified method has an empty throws clause. @param method the method to check @return true if the method throws clause is empty
[ "Returns", "true", "if", "the", "specified", "method", "has", "an", "empty", "throws", "clause", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L4533-L4544
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.dealWithUnsatisifedXMLTimers
private void dealWithUnsatisifedXMLTimers(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, BeanMetaData bmd) throws EJBConfigur...
java
private void dealWithUnsatisifedXMLTimers(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, BeanMetaData bmd) throws EJBConfigur...
[ "private", "void", "dealWithUnsatisifedXMLTimers", "(", "Map", "<", "String", ",", "List", "<", "com", ".", "ibm", ".", "ws", ".", "javaee", ".", "dd", ".", "ejb", ".", "Timer", ">", ">", "timers1ParmByMethodName", ",", "Map", "<", "String", ",", "List",...
Verifies that every timer defined in xml was successfully associated with a Method. @param timers1ParmByMethodName List of timers defined in xml with 1 parm. @param timers0ParmByMethodName List of timers defined in xml with 0 parms. @param timersUnspecifiedParmByMethodName List of timers defined in xml with unspecifie...
[ "Verifies", "that", "every", "timer", "defined", "in", "xml", "was", "successfully", "associated", "with", "a", "Method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L5258-L5281
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.hasTimeoutCallbackParameters
private boolean hasTimeoutCallbackParameters(MethodMap.MethodInfo methodInfo) { int numParams = methodInfo.getNumParameters(); return numParams == 0 || (numParams == 1 && methodInfo.getParameterType(0) == Timer.class); }
java
private boolean hasTimeoutCallbackParameters(MethodMap.MethodInfo methodInfo) { int numParams = methodInfo.getNumParameters(); return numParams == 0 || (numParams == 1 && methodInfo.getParameterType(0) == Timer.class); }
[ "private", "boolean", "hasTimeoutCallbackParameters", "(", "MethodMap", ".", "MethodInfo", "methodInfo", ")", "{", "int", "numParams", "=", "methodInfo", ".", "getNumParameters", "(", ")", ";", "return", "numParams", "==", "0", "||", "(", "numParams", "==", "1",...
Returns true if the specified method has the proper parameter types for a timeout callback method. @param methodInfo the method info @return true if the method has the proper parameter
[ "Returns", "true", "if", "the", "specified", "method", "has", "the", "proper", "parameter", "types", "for", "a", "timeout", "callback", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L5314-L5318
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.addTimerToCorrectMap
private void addTimerToCorrectMap(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timersUnsp...
java
private void addTimerToCorrectMap(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timersUnsp...
[ "private", "void", "addTimerToCorrectMap", "(", "Map", "<", "String", ",", "List", "<", "com", ".", "ibm", ".", "ws", ".", "javaee", ".", "dd", ".", "ejb", ".", "Timer", ">", ">", "timers1ParmByMethodName", ",", "Map", "<", "String", ",", "List", "<", ...
Sticks a timer defined in xml into the correct list, based on the number of parameters specified in xml for the timer. @param timers1ParmByMethodName list of timers specified in xml with 1 parm @param timers0ParmByMethodName list of timers specified in xml with 0 parms @param timersUnspecifiedParmByMethodName list of ...
[ "Sticks", "a", "timer", "defined", "in", "xml", "into", "the", "correct", "list", "based", "on", "the", "number", "of", "parameters", "specified", "in", "xml", "for", "the", "timer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L5332-L5361
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.findMethodInEJBMethodInfoArray
private EJBMethodInfoImpl findMethodInEJBMethodInfoArray(EJBMethodInfoImpl[] methodInfos, final Method targetMethod) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "findMethodInEJBMethodInfoArray for method \"" + target...
java
private EJBMethodInfoImpl findMethodInEJBMethodInfoArray(EJBMethodInfoImpl[] methodInfos, final Method targetMethod) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "findMethodInEJBMethodInfoArray for method \"" + target...
[ "private", "EJBMethodInfoImpl", "findMethodInEJBMethodInfoArray", "(", "EJBMethodInfoImpl", "[", "]", "methodInfos", ",", "final", "Method", "targetMethod", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "i...
d494984.1 - added entire method
[ "d494984", ".", "1", "-", "added", "entire", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L6321-L6341
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.processReferenceContext
protected void processReferenceContext(BeanMetaData bmd) throws InjectionException, EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "ensureReferenceDataIsProcessed"); // At this point, reg...
java
protected void processReferenceContext(BeanMetaData bmd) throws InjectionException, EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "ensureReferenceDataIsProcessed"); // At this point, reg...
[ "protected", "void", "processReferenceContext", "(", "BeanMetaData", "bmd", ")", "throws", "InjectionException", ",", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTra...
Ensure that reference data is processed, and that the resulting output data structures are stuffed in BeanMetaData. This method gets called during finishBMDInit. If the bean component is part of a pure module, then its reference data has not been processed yet, and we go ahead and do that now. However, if the bean co...
[ "Ensure", "that", "reference", "data", "is", "processed", "and", "that", "the", "resulting", "output", "data", "structures", "are", "stuffed", "in", "BeanMetaData", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L7326-L7394
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java
EJBMDOrchestrator.removeTemporaryMethodData
private void removeTemporaryMethodData(BeanMetaData bmd) { bmd.methodsExposedOnLocalHomeInterface = null; bmd.methodsExposedOnLocalInterface = null; bmd.methodsExposedOnRemoteHomeInterface = null; bmd.methodsExposedOnRemoteInterface = null; bmd.allPublicMethodsOnBean = null; ...
java
private void removeTemporaryMethodData(BeanMetaData bmd) { bmd.methodsExposedOnLocalHomeInterface = null; bmd.methodsExposedOnLocalInterface = null; bmd.methodsExposedOnRemoteHomeInterface = null; bmd.methodsExposedOnRemoteInterface = null; bmd.allPublicMethodsOnBean = null; ...
[ "private", "void", "removeTemporaryMethodData", "(", "BeanMetaData", "bmd", ")", "{", "bmd", ".", "methodsExposedOnLocalHomeInterface", "=", "null", ";", "bmd", ".", "methodsExposedOnLocalInterface", "=", "null", ";", "bmd", ".", "methodsExposedOnRemoteHomeInterface", "...
Removes temporary lists of data from BMD when they are no longer needed.
[ "Removes", "temporary", "lists", "of", "data", "from", "BMD", "when", "they", "are", "no", "longer", "needed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/EJBMDOrchestrator.java#L7900-L7907
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java
BrowserSessionImpl.next
public SIBusMessage next() throws SISessionUnavailableException, SISessionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIBrowserSession.tc, "ne...
java
public SIBusMessage next() throws SISessionUnavailableException, SISessionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIBrowserSession.tc, "ne...
[ "public", "SIBusMessage", "next", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(",...
Gets the next item from the BrowseCursor. @see com.ibm.wsspi.sib.core.BrowserSession#next()
[ "Gets", "the", "next", "item", "from", "the", "BrowseCursor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java#L206-L280
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java
BrowserSessionImpl.close
public void close() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIBrowserSession.tc, "close", this); synchronized (this) { if (!_closed) //if we're closed already, don't bother doing anything. { //dereference ...
java
public void close() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIBrowserSession.tc, "close", this); synchronized (this) { if (!_closed) //if we're closed already, don't bother doing anything. { //dereference ...
[ "public", "void", "close", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "CoreSPIBrowserSession", ".", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "CoreSPIBrowserSession", ".", "tc", ",", ...
Close this BrowserSession... Dereference from the parent connection and set the closed flag to true. @see com.ibm.ws.sib.processor.BrowserSession#close()
[ "Close", "this", "BrowserSession", "...", "Dereference", "from", "the", "parent", "connection", "and", "set", "the", "closed", "flag", "to", "true", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java#L288-L306
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java
BrowserSessionImpl.checkNotClosed
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); synchronized (this) { if (_closed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr....
java
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); synchronized (this) { if (_closed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr....
[ "void", "checkNotClosed", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkNotClosed\"", ...
Check if the session is closed. If the closed flag is set to true, throw an exception. @throws SISessionUnavailableException thrown if the session is closed
[ "Check", "if", "the", "session", "is", "closed", ".", "If", "the", "closed", "flag", "is", "set", "to", "true", "throw", "an", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java#L426-L448
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java
BrowserSessionImpl.getNamedDestination
public DestinationHandler getNamedDestination() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getNamedDestination"); SibTr.exit(tc, "getNamedDestination", _dest); } return _dest; }
java
public DestinationHandler getNamedDestination() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getNamedDestination"); SibTr.exit(tc, "getNamedDestination", _dest); } return _dest; }
[ "public", "DestinationHandler", "getNamedDestination", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getNamedDestination\"", ")...
Returns the destination that the session was created against @return
[ "Returns", "the", "destination", "that", "the", "session", "was", "created", "against" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BrowserSessionImpl.java#L552-L560
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/ClientConfig.java
ClientConfig.getUserAgent
public String getUserAgent(FacesContext facesContext) { if (userAgent == null) { synchronized (this) { if (userAgent == null) { Map<String, String[]> requestHeaders = facesContext.getExternalConte...
java
public String getUserAgent(FacesContext facesContext) { if (userAgent == null) { synchronized (this) { if (userAgent == null) { Map<String, String[]> requestHeaders = facesContext.getExternalConte...
[ "public", "String", "getUserAgent", "(", "FacesContext", "facesContext", ")", "{", "if", "(", "userAgent", "==", "null", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "userAgent", "==", "null", ")", "{", "Map", "<", "String", ",", "String",...
This information will get stored as it cannot change during the session anyway. @return the UserAgent of the request.
[ "This", "information", "will", "get", "stored", "as", "it", "cannot", "change", "during", "the", "session", "anyway", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/ClientConfig.java#L179-L201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/jwk/BigIntegerUtil.java
BigIntegerUtil.decode
public static BigInteger decode(String s) { byte[] bytes = Base64.decodeBase64(s); BigInteger bi = new BigInteger(1, bytes); return bi; }
java
public static BigInteger decode(String s) { byte[] bytes = Base64.decodeBase64(s); BigInteger bi = new BigInteger(1, bytes); return bi; }
[ "public", "static", "BigInteger", "decode", "(", "String", "s", ")", "{", "byte", "[", "]", "bytes", "=", "Base64", ".", "decodeBase64", "(", "s", ")", ";", "BigInteger", "bi", "=", "new", "BigInteger", "(", "1", ",", "bytes", ")", ";", "return", "bi...
This is in use by FAT only at the writing time
[ "This", "is", "in", "use", "by", "FAT", "only", "at", "the", "writing", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/jwk/BigIntegerUtil.java#L19-L24
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsDiagnosticModule.java
CommsDiagnosticModule.initialise
public static synchronized void initialise() { // Only initialise if it has not already been created if (_instance == null) { // Check what environment we are running in. If we are in server mode we must use the // server diagnostic module. //Liberty COMMS TODO: //For...
java
public static synchronized void initialise() { // Only initialise if it has not already been created if (_instance == null) { // Check what environment we are running in. If we are in server mode we must use the // server diagnostic module. //Liberty COMMS TODO: //For...
[ "public", "static", "synchronized", "void", "initialise", "(", ")", "{", "// Only initialise if it has not already been created", "if", "(", "_instance", "==", "null", ")", "{", "// Check what environment we are running in. If we are in server mode we must use the ", "// server dia...
Initialises the diagnostic module.
[ "Initialises", "the", "diagnostic", "module", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsDiagnosticModule.java#L53-L104
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsDiagnosticModule.java
CommsDiagnosticModule.ffdcDumpDefault
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "ffdcDumpDefault", new Object[]{t, is, callerThis, objs, sourceId}); // Dump the SIB informat...
java
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "ffdcDumpDefault", new Object[]{t, is, callerThis, objs, sourceId}); // Dump the SIB informat...
[ "public", "void", "ffdcDumpDefault", "(", "Throwable", "t", ",", "IncidentStream", "is", ",", "Object", "callerThis", ",", "Object", "[", "]", "objs", ",", "String", "sourceId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "....
Called when an FFDC is generated and the stack matches one of our packages. @see com.ibm.ws.sib.utils.ffdc.SibDiagnosticModule#ffdcDumpDefault(java.lang.Throwable, com.ibm.ws.ffdc.IncidentStream, java.lang.Object, java.lang.Object[], java.lang.String)
[ "Called", "when", "an", "FFDC", "is", "generated", "and", "the", "stack", "matches", "one", "of", "our", "packages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsDiagnosticModule.java#L111-L126
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java
RemoteAsyncResultImpl.setObserver
boolean setObserver(Observer observer) { // F16043 boolean success; Observer oldObserver; synchronized (this) { oldObserver = ivObserver; success = oldObserver != null || !isDone(); ivObserver = success ? observer : null; } if (oldObserver !=...
java
boolean setObserver(Observer observer) { // F16043 boolean success; Observer oldObserver; synchronized (this) { oldObserver = ivObserver; success = oldObserver != null || !isDone(); ivObserver = success ? observer : null; } if (oldObserver !=...
[ "boolean", "setObserver", "(", "Observer", "observer", ")", "{", "// F16043", "boolean", "success", ";", "Observer", "oldObserver", ";", "synchronized", "(", "this", ")", "{", "oldObserver", "=", "ivObserver", ";", "success", "=", "oldObserver", "!=", "null", ...
Sets the current observer and updates the pending one. If the result is already available, the existing observer if any will be updated and passed the new observer as data. Otherwise, the observer will be updated when the result is available and will be passed null as data. @param observer the new observer @return tru...
[ "Sets", "the", "current", "observer", "and", "updates", "the", "pending", "one", ".", "If", "the", "result", "is", "already", "available", "the", "existing", "observer", "if", "any", "will", "be", "updated", "and", "passed", "the", "new", "observer", "as", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java#L128-L142
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java
RemoteAsyncResultImpl.cleanup
private void cleanup() { // d623593 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "cleanup"); synchronized (ivRemoteAsyncResultReaper) { if (ivAddedToReaper) { // d690014 // d690014.3 -...
java
private void cleanup() { // d623593 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "cleanup"); synchronized (ivRemoteAsyncResultReaper) { if (ivAddedToReaper) { // d690014 // d690014.3 -...
[ "private", "void", "cleanup", "(", ")", "{", "// d623593", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(",...
Clean up all resources associated with this object.
[ "Clean", "up", "all", "resources", "associated", "with", "this", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java#L218-L236
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java
RemoteAsyncResultImpl.exportObject
RemoteAsyncResult exportObject() throws RemoteException { ivObjectID = ivRemoteRuntime.activateAsyncResult((Servant) createTie()); return ivRemoteRuntime.getAsyncResultReference(ivObjectID); }
java
RemoteAsyncResult exportObject() throws RemoteException { ivObjectID = ivRemoteRuntime.activateAsyncResult((Servant) createTie()); return ivRemoteRuntime.getAsyncResultReference(ivObjectID); }
[ "RemoteAsyncResult", "exportObject", "(", ")", "throws", "RemoteException", "{", "ivObjectID", "=", "ivRemoteRuntime", ".", "activateAsyncResult", "(", "(", "Servant", ")", "createTie", "(", ")", ")", ";", "return", "ivRemoteRuntime", ".", "getAsyncResultReference", ...
Export this object so that it is remotely accessible. <p>This method must be called before the async work is scheduled.
[ "Export", "this", "object", "so", "that", "it", "is", "remotely", "accessible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java#L243-L246
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java
RemoteAsyncResultImpl.unexportObject
protected void unexportObject() { // d623593 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "unexportObject: " + this); if (ivObjectID != null) { // Either the allowed timeout occurred or a method was ca...
java
protected void unexportObject() { // d623593 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "unexportObject: " + this); if (ivObjectID != null) { // Either the allowed timeout occurred or a method was ca...
[ "protected", "void", "unexportObject", "(", ")", "{", "// d623593", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug...
Unexport this object so that it is not remotely accessible. <p>The caller must be holding the monitor lock on the RemoteAsyncResultReaper prior to calling this method if the async work was successfully scheduled.
[ "Unexport", "this", "object", "so", "that", "it", "is", "not", "remotely", "accessible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultImpl.java#L287-L307
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanIdCache.java
BeanIdCache.find
public BeanId find(EJSHome home, Serializable pkey, boolean isHome) { int hashValue = BeanId.computeHashValue(home.j2eeName, pkey, isHome); BeanId[] buckets = this.ivBuckets; BeanId element = buckets[(hashValue & 0x7FFFFFFF) % buckets.length]; if (element == null || !element.equals...
java
public BeanId find(EJSHome home, Serializable pkey, boolean isHome) { int hashValue = BeanId.computeHashValue(home.j2eeName, pkey, isHome); BeanId[] buckets = this.ivBuckets; BeanId element = buckets[(hashValue & 0x7FFFFFFF) % buckets.length]; if (element == null || !element.equals...
[ "public", "BeanId", "find", "(", "EJSHome", "home", ",", "Serializable", "pkey", ",", "boolean", "isHome", ")", "{", "int", "hashValue", "=", "BeanId", ".", "computeHashValue", "(", "home", ".", "j2eeName", ",", "pkey", ",", "isHome", ")", ";", "BeanId", ...
d156807.3 Begins
[ "d156807", ".", "3", "Begins" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanIdCache.java#L102-L131
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/FaceletCacheImpl.java
FaceletCacheImpl.needsToBeRefreshed
protected boolean needsToBeRefreshed(DefaultFacelet facelet) { // if set to 0, constantly reload-- nocache if (_refreshPeriod == NO_CACHE_DELAY) { return true; } // if set to -1, never reload if (_refreshPeriod == INFINITE_DELAY) { ret...
java
protected boolean needsToBeRefreshed(DefaultFacelet facelet) { // if set to 0, constantly reload-- nocache if (_refreshPeriod == NO_CACHE_DELAY) { return true; } // if set to -1, never reload if (_refreshPeriod == INFINITE_DELAY) { ret...
[ "protected", "boolean", "needsToBeRefreshed", "(", "DefaultFacelet", "facelet", ")", "{", "// if set to 0, constantly reload-- nocache", "if", "(", "_refreshPeriod", "==", "NO_CACHE_DELAY", ")", "{", "return", "true", ";", "}", "// if set to -1, never reload", "if", "(", ...
Template method for determining if the Facelet needs to be refreshed. @param facelet Facelet that could have expired @return true if it needs to be refreshed
[ "Template", "method", "for", "determining", "if", "the", "Facelet", "needs", "to", "be", "refreshed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/FaceletCacheImpl.java#L139-L192
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java
PatternWrapper.getState
int getState() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "getState"); int state; if (!prefixDone) { // Somewhere in the prefix or at beginning and there is no prefix Pattern.Clause prefix = pattern.getPrefix(); if (prefix == null || next >= prefix.items.length) { // Th...
java
int getState() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "getState"); int state; if (!prefixDone) { // Somewhere in the prefix or at beginning and there is no prefix Pattern.Clause prefix = pattern.getPrefix(); if (prefix == null || next >= prefix.items.length) { // Th...
[ "int", "getState", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "this", ",", "cclass", ",", "\"getState\"", ")", ";", "int", "state", ";", "if", "(", "!", "prefixDone", ")", "{", "// Somewhere in the ...
Get the state of this Pattern (which item is next to process
[ "Get", "the", "state", "of", "this", "Pattern", "(", "which", "item", "is", "next", "to", "process" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java#L74-L101
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java
PatternWrapper.advance
void advance() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "advance"); if (!prefixDone) { Pattern.Clause prefix = pattern.getPrefix(); if (prefix == null || next >= prefix.items.length) { Pattern.Clause suffix = pattern.getSuffix(); if (suffix != null && suffix != prefix) ...
java
void advance() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "advance"); if (!prefixDone) { Pattern.Clause prefix = pattern.getPrefix(); if (prefix == null || next >= prefix.items.length) { Pattern.Clause suffix = pattern.getSuffix(); if (suffix != null && suffix != prefix) ...
[ "void", "advance", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "this", ",", "cclass", ",", "\"advance\"", ")", ";", "if", "(", "!", "prefixDone", ")", "{", "Pattern", ".", "Clause", "prefix", "=", ...
Advance the state of this pattern
[ "Advance", "the", "state", "of", "this", "pattern" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java#L104-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java
PatternWrapper.getChars
char[] getChars() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "getChars"); char[] ans; if (prefixDone) ans = (char[]) pattern.getSuffix().items[next--]; else ans = (char[]) pattern.getPrefix().items[next++]; if (tc.isEntryEnabled()) tc.exit(this,cclass, "getChars", new S...
java
char[] getChars() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "getChars"); char[] ans; if (prefixDone) ans = (char[]) pattern.getSuffix().items[next--]; else ans = (char[]) pattern.getPrefix().items[next++]; if (tc.isEntryEnabled()) tc.exit(this,cclass, "getChars", new S...
[ "char", "[", "]", "getChars", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "this", ",", "cclass", ",", "\"getChars\"", ")", ";", "char", "[", "]", "ans", ";", "if", "(", "prefixDone", ")", "ans", ...
Get the characters and advance (assumes the pattern is in one of the CHARS states
[ "Get", "the", "characters", "and", "advance", "(", "assumes", "the", "pattern", "is", "in", "one", "of", "the", "CHARS", "states" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java#L130-L141
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java
PatternWrapper.matchMidClauses
public boolean matchMidClauses(char[] chars, int start, int length) { return pattern.matchMiddle(chars, start, start+length); }
java
public boolean matchMidClauses(char[] chars, int start, int length) { return pattern.matchMiddle(chars, start, start+length); }
[ "public", "boolean", "matchMidClauses", "(", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "length", ")", "{", "return", "pattern", ".", "matchMiddle", "(", "chars", ",", "start", ",", "start", "+", "length", ")", ";", "}" ]
Test whether the underlying pattern's mid clauses match a set of characters. @param chars @param start @param length @return
[ "Test", "whether", "the", "underlying", "pattern", "s", "mid", "clauses", "match", "a", "set", "of", "characters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PatternWrapper.java#L162-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.extractPropertyFromURI
public String extractPropertyFromURI(String propName, String uri) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "extractPropertyFromURI", new Object[]{propName, uri}); String result = null; // only something to do if uri is non-null & non-empty u if (uri != nu...
java
public String extractPropertyFromURI(String propName, String uri) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "extractPropertyFromURI", new Object[]{propName, uri}); String result = null; // only something to do if uri is non-null & non-empty u if (uri != nu...
[ "public", "String", "extractPropertyFromURI", "(", "String", "propName", ",", "String", "uri", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ...
Extract the value of the named property from URI. Find the named property in the name value pairs of the uri and return the value, or null if the property is not present. @param propName the name of the property whose value is required @param uri the URI to search in @return
[ "Extract", "the", "value", "of", "the", "named", "property", "from", "URI", ".", "Find", "the", "named", "property", "in", "the", "name", "value", "pairs", "of", "the", "uri", "and", "return", "the", "value", "or", "null", "if", "the", "property", "is", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L98-L132
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.splitOnNonEscapedChar
private String[] splitOnNonEscapedChar(String inputStr, char splitChar, int expectedPartCount) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "splitOnNonEscapedChar", new Object[]{inputStr, splitChar, expectedPartCount}); String[] parts = null; List<String> partsLi...
java
private String[] splitOnNonEscapedChar(String inputStr, char splitChar, int expectedPartCount) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "splitOnNonEscapedChar", new Object[]{inputStr, splitChar, expectedPartCount}); String[] parts = null; List<String> partsLi...
[ "private", "String", "[", "]", "splitOnNonEscapedChar", "(", "String", "inputStr", ",", "char", "splitChar", ",", "int", "expectedPartCount", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", "...
Split the specified string into the requested number of pieces using the splitter character provided. This method is careful to only split on non-escaped instances of the splitter character. Historical regex expressions that this replaces were as follows (from Javadoc) // Patterns used for splitting strings // NB Thes...
[ "Split", "the", "specified", "string", "into", "the", "requested", "number", "of", "pieces", "using", "the", "splitter", "character", "provided", ".", "This", "method", "is", "careful", "to", "only", "split", "on", "non", "-", "escaped", "instances", "of", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L424-L530
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.unescape
private String unescape(String input, char c) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unescape", new Object[]{input, c}); String result = input; // if there are no instances of c in the String we can just return the original if (input.indexOf(c) != -1) ...
java
private String unescape(String input, char c) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unescape", new Object[]{input, c}); String result = input; // if there are no instances of c in the String we can just return the original if (input.indexOf(c) != -1) ...
[ "private", "String", "unescape", "(", "String", "input", ",", "char", "c", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ","...
Remove '\' characters from input String when they precede specified character. @param input The string to be processed @param c The character that should be unescaped @return The modified String
[ "Remove", "\\", "characters", "from", "input", "String", "when", "they", "precede", "specified", "character", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L695-L718
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.unescapeBackslash
private String unescapeBackslash(String input) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unescapeBackslash", input); String result = input; // If there are no backslashes then don't bother creating the buffer etc. if (input.indexOf("\\...
java
private String unescapeBackslash(String input) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unescapeBackslash", input); String result = input; // If there are no backslashes then don't bother creating the buffer etc. if (input.indexOf("\\...
[ "private", "String", "unescapeBackslash", "(", "String", "input", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ","...
Convert escaped backslash to single backslash. This method de-escapes double backslashes whilst at the same time checking that there are no single backslahes in the input string. @param input The string to be processed @return The modified String @throws JMSException if an unescaped backslash is found
[ "Convert", "escaped", "backslash", "to", "single", "backslash", ".", "This", "method", "de", "-", "escapes", "double", "backslashes", "whilst", "at", "the", "same", "time", "checking", "that", "there", "are", "no", "single", "backslahes", "in", "the", "input",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L729-L760
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.validateNVP
private String[] validateNVP(String namePart, String valuePart, String uri, JmsDestination dest) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "validateNVP", new Object[]{namePart, valuePart, uri, dest}); // de-escape any escaped &s in the value (w...
java
private String[] validateNVP(String namePart, String valuePart, String uri, JmsDestination dest) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "validateNVP", new Object[]{namePart, valuePart, uri, dest}); // de-escape any escaped &s in the value (w...
[ "private", "String", "[", "]", "validateNVP", "(", "String", "namePart", ",", "String", "valuePart", ",", "String", "uri", ",", "JmsDestination", "dest", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&...
This utility method performs the validation on the name and value parts of the NVP. It performs several checks to make sure that neither part contain any illegal characters unless they are escaped by a backslash. The method also performs a conversion between any Jetstream-mappable MA88 properties. Finally, it returns ...
[ "This", "utility", "method", "performs", "the", "validation", "on", "the", "name", "and", "value", "parts", "of", "the", "NVP", ".", "It", "performs", "several", "checks", "to", "make", "sure", "that", "neither", "part", "contain", "any", "illegal", "charact...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L778-L818
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.configureDestinationFromMap
private void configureDestinationFromMap(JmsDestination dest, Map<String,String> props, String uri) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "configureDestinationFromMap", new Object[]{dest, props, uri}); // Iterate over the map, retrieving th...
java
private void configureDestinationFromMap(JmsDestination dest, Map<String,String> props, String uri) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "configureDestinationFromMap", new Object[]{dest, props, uri}); // Iterate over the map, retrieving th...
[ "private", "void", "configureDestinationFromMap", "(", "JmsDestination", "dest", ",", "Map", "<", "String", ",", "String", ">", "props", ",", "String", "uri", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
This utililty method uses the supplied Map to configure a destination property. The map contains the name and value pairs from the URI. @param Destination dest The Destination object to configure @param Map props The Map collection containing the NVPs from the URI @param String uri The original URI used for debugging ...
[ "This", "utililty", "method", "uses", "the", "supplied", "Map", "to", "configure", "a", "destination", "property", ".", "The", "map", "contains", "the", "name", "and", "value", "pairs", "from", "the", "URI", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L829-L907
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.createDestinationFromURI
public Destination createDestinationFromURI(String uri, int qmProcessing) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createDestinationFromURI", new Object[]{uri, qmProcessing}); Destination result = null; if (uri != null) { result = pr...
java
public Destination createDestinationFromURI(String uri, int qmProcessing) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createDestinationFromURI", new Object[]{uri, qmProcessing}); Destination result = null; if (uri != null) { result = pr...
[ "public", "Destination", "createDestinationFromURI", "(", "String", "uri", ",", "int", "qmProcessing", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr...
Create a Destination object from a full URI format String. @param uri The URI format string describing the destination. If null, method returns null. If not null, must begin with either queue:// or topic://, otherwise an ?? exception is thrown. @param qmProcessing flag to indicate how to deal with QMs in MA88 queue URI...
[ "Create", "a", "Destination", "object", "from", "a", "full", "URI", "format", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L993-L1001
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java
URIDestinationCreator.charIsEscaped
private static boolean charIsEscaped(String str, int index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "charIsEscaped", new Object[]{str, index}); // precondition, null str or out of range index returns false. if (str == null || index < 0 || index >= str.length()) re...
java
private static boolean charIsEscaped(String str, int index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "charIsEscaped", new Object[]{str, index}); // precondition, null str or out of range index returns false. if (str == null || index < 0 || index >= str.length()) re...
[ "private", "static", "boolean", "charIsEscaped", "(", "String", "str", ",", "int", "index", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", "...
Test if the specified character is escaped. Checks whether the character at the specified index is preceded by an escape character. The test is non-trivial because it has to check that the escape character is itself non-escaped. @param str The string in which to perform the check @param index The index in the string of...
[ "Test", "if", "the", "specified", "character", "is", "escaped", ".", "Checks", "whether", "the", "character", "at", "the", "specified", "index", "is", "preceded", "by", "an", "escape", "character", ".", "The", "test", "is", "non", "-", "trivial", "because", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/URIDestinationCreator.java#L1012-L1029
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java
TokenUtils.readPrivateKey
public static PrivateKey readPrivateKey(String pemResName) throws Exception { InputStream contentIS = TokenUtils.class.getResourceAsStream(pemResName); byte[] tmp = new byte[4096]; int length = contentIS.read(tmp); PrivateKey privateKey = decodePrivateKey(new String(tmp, 0, length)); ...
java
public static PrivateKey readPrivateKey(String pemResName) throws Exception { InputStream contentIS = TokenUtils.class.getResourceAsStream(pemResName); byte[] tmp = new byte[4096]; int length = contentIS.read(tmp); PrivateKey privateKey = decodePrivateKey(new String(tmp, 0, length)); ...
[ "public", "static", "PrivateKey", "readPrivateKey", "(", "String", "pemResName", ")", "throws", "Exception", "{", "InputStream", "contentIS", "=", "TokenUtils", ".", "class", ".", "getResourceAsStream", "(", "pemResName", ")", ";", "byte", "[", "]", "tmp", "=", ...
Read a PEM encoded private key from the classpath @param pemResName - key file resource name @return PrivateKey @throws Exception on decode failure
[ "Read", "a", "PEM", "encoded", "private", "key", "from", "the", "classpath" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java#L162-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java
TokenUtils.readPublicKey
public static PublicKey readPublicKey(String pemResName) throws Exception { InputStream contentIS = TokenUtils.class.getResourceAsStream(pemResName); byte[] tmp = new byte[4096]; int length = contentIS.read(tmp); PublicKey publicKey = decodePublicKey(new String(tmp, 0, length)); ...
java
public static PublicKey readPublicKey(String pemResName) throws Exception { InputStream contentIS = TokenUtils.class.getResourceAsStream(pemResName); byte[] tmp = new byte[4096]; int length = contentIS.read(tmp); PublicKey publicKey = decodePublicKey(new String(tmp, 0, length)); ...
[ "public", "static", "PublicKey", "readPublicKey", "(", "String", "pemResName", ")", "throws", "Exception", "{", "InputStream", "contentIS", "=", "TokenUtils", ".", "class", ".", "getResourceAsStream", "(", "pemResName", ")", ";", "byte", "[", "]", "tmp", "=", ...
Read a PEM encoded public key from the classpath @param pemResName - key file resource name @return PublicKey @throws Exception on decode failure
[ "Read", "a", "PEM", "encoded", "public", "key", "from", "the", "classpath" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java#L177-L183
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java
TokenUtils.generateKeyPair
public static KeyPair generateKeyPair(int keySize) throws NoSuchAlgorithmException { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); keyPairGenerator.initialize(keySize); KeyPair keyPair = keyPairGenerator.genKeyPair(); return keyPair; }
java
public static KeyPair generateKeyPair(int keySize) throws NoSuchAlgorithmException { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); keyPairGenerator.initialize(keySize); KeyPair keyPair = keyPairGenerator.genKeyPair(); return keyPair; }
[ "public", "static", "KeyPair", "generateKeyPair", "(", "int", "keySize", ")", "throws", "NoSuchAlgorithmException", "{", "KeyPairGenerator", "keyPairGenerator", "=", "KeyPairGenerator", ".", "getInstance", "(", "\"RSA\"", ")", ";", "keyPairGenerator", ".", "initialize",...
Generate a new RSA keypair. @param keySize - the size of the key @return KeyPair @throws NoSuchAlgorithmException on failure to load RSA key generator
[ "Generate", "a", "new", "RSA", "keypair", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java#L192-L197
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java
TokenUtils.decodePrivateKey
public static PrivateKey decodePrivateKey(String pemEncoded) throws Exception { pemEncoded = removeBeginEnd(pemEncoded); byte[] pkcs8EncodedBytes = Base64.getDecoder().decode(pemEncoded); // extract the private key PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(pkcs8EncodedBytes...
java
public static PrivateKey decodePrivateKey(String pemEncoded) throws Exception { pemEncoded = removeBeginEnd(pemEncoded); byte[] pkcs8EncodedBytes = Base64.getDecoder().decode(pemEncoded); // extract the private key PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(pkcs8EncodedBytes...
[ "public", "static", "PrivateKey", "decodePrivateKey", "(", "String", "pemEncoded", ")", "throws", "Exception", "{", "pemEncoded", "=", "removeBeginEnd", "(", "pemEncoded", ")", ";", "byte", "[", "]", "pkcs8EncodedBytes", "=", "Base64", ".", "getDecoder", "(", ")...
Decode a PEM encoded private key string to an RSA PrivateKey @param pemEncoded - PEM string for private key @return PrivateKey @throws Exception on decode failure
[ "Decode", "a", "PEM", "encoded", "private", "key", "string", "to", "an", "RSA", "PrivateKey" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java#L206-L216
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java
TokenUtils.decodePublicKey
public static PublicKey decodePublicKey(String pemEncoded) throws Exception { pemEncoded = removeBeginEnd(pemEncoded); byte[] encodedBytes = Base64.getDecoder().decode(pemEncoded); X509EncodedKeySpec spec = new X509EncodedKeySpec(encodedBytes); KeyFactory kf = KeyFactory.getInstance("RS...
java
public static PublicKey decodePublicKey(String pemEncoded) throws Exception { pemEncoded = removeBeginEnd(pemEncoded); byte[] encodedBytes = Base64.getDecoder().decode(pemEncoded); X509EncodedKeySpec spec = new X509EncodedKeySpec(encodedBytes); KeyFactory kf = KeyFactory.getInstance("RS...
[ "public", "static", "PublicKey", "decodePublicKey", "(", "String", "pemEncoded", ")", "throws", "Exception", "{", "pemEncoded", "=", "removeBeginEnd", "(", "pemEncoded", ")", ";", "byte", "[", "]", "encodedBytes", "=", "Base64", ".", "getDecoder", "(", ")", "....
Decode a PEM encoded public key string to an RSA PublicKey @param pemEncoded - PEM string for private key @return PublicKey @throws Exception on decode failure
[ "Decode", "a", "PEM", "encoded", "public", "key", "string", "to", "an", "RSA", "PublicKey" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/util/TokenUtils.java#L225-L232
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/DeferredService.java
DeferredService.registerDeferredService
public void registerDeferredService(BundleContext bundleContext, Class<?> providedService, Dictionary dict) { Object obj = serviceReg.get(); if (obj instanceof ServiceRegistration<?>) { // already registered - nothing to do here return; } if (obj instanceof CountD...
java
public void registerDeferredService(BundleContext bundleContext, Class<?> providedService, Dictionary dict) { Object obj = serviceReg.get(); if (obj instanceof ServiceRegistration<?>) { // already registered - nothing to do here return; } if (obj instanceof CountD...
[ "public", "void", "registerDeferredService", "(", "BundleContext", "bundleContext", ",", "Class", "<", "?", ">", "providedService", ",", "Dictionary", "dict", ")", "{", "Object", "obj", "=", "serviceReg", ".", "get", "(", ")", ";", "if", "(", "obj", "instanc...
Register information available after class loader is created for use by RAR bundle
[ "Register", "information", "available", "after", "class", "loader", "is", "created", "for", "use", "by", "RAR", "bundle" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/DeferredService.java#L42-L84
train