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.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java
WSJdbcPreparedStatement.executeBatch
private Object executeBatch(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.is...
java
private Object executeBatch(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.is...
[ "private", "Object", "executeBatch", "(", "Object", "implObject", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "IllegalAccessException", ",", "IllegalArgumentException", ",", "InvocationTargetException", ",", "SQLException", "{", "final", ...
Invokes executeBatch and after closing any previous result sets and ensuring statement properties are up-to-date. @param implObject the instance on which the operation is invoked. @param method the method that is invoked. @param args the parameters to the method. @throws IllegalAccessException if the method is inacce...
[ "Invokes", "executeBatch", "and", "after", "closing", "any", "previous", "result", "sets", "and", "ensuring", "statement", "properties", "are", "up", "-", "to", "-", "date", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java#L430-L453
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java
WSJdbcPreparedStatement.getReturnResultSet
private Object getReturnResultSet(Object implObject, Method method) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) ...
java
private Object getReturnResultSet(Object implObject, Method method) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) ...
[ "private", "Object", "getReturnResultSet", "(", "Object", "implObject", ",", "Method", "method", ")", "throws", "IllegalAccessException", ",", "IllegalArgumentException", ",", "InvocationTargetException", ",", "SQLException", "{", "final", "boolean", "trace", "=", "Trac...
Invokes getReturnResultSet and wraps the result set. @param implObject the instance on which the operation is invoked. @param method the method that is invoked. @throws IllegalAccessException if the method is inaccessible. @throws IllegalArgumentException if the instance does not have the method or if the method argu...
[ "Invokes", "getReturnResultSet", "and", "wraps", "the", "result", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java#L589-L619
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java
WSJdbcPreparedStatement.invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (!haveStatementPropertiesChanged && VENDOR_PROPERTY_SETTERS.contains(method.getName())) { haveStatementPropertiesChanged = true; } // The SQLJ programming model indicates that getSection s...
java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (!haveStatementPropertiesChanged && VENDOR_PROPERTY_SETTERS.contains(method.getName())) { haveStatementPropertiesChanged = true; } // The SQLJ programming model indicates that getSection s...
[ "public", "Object", "invoke", "(", "Object", "proxy", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "Throwable", "{", "if", "(", "!", "haveStatementPropertiesChanged", "&&", "VENDOR_PROPERTY_SETTERS", ".", "contains", "(", "method", ...
Intercept the proxy handler to detect changes to statement properties that must be reset on cached statements. @param proxy the dynamic proxy. @param method the method being invoked. @param args the parameters to the method. @return the result of invoking the operation on the underlying object. @throws Throwable if s...
[ "Intercept", "the", "proxy", "handler", "to", "detect", "changes", "to", "statement", "properties", "that", "must", "be", "reset", "on", "cached", "statements", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java#L709-L721
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyGeneratorImpl.java
UniqueKeyGeneratorImpl.nextRangeMaximumAvailable
public void nextRangeMaximumAvailable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextRangeMaximumAvailable"); synchronized (_globalUniqueLock) { _globalUniqueThreshold = _globalUniqueLimit + _midrange; _globalUniqueLimit ...
java
public void nextRangeMaximumAvailable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextRangeMaximumAvailable"); synchronized (_globalUniqueLock) { _globalUniqueThreshold = _globalUniqueLimit + _midrange; _globalUniqueLimit ...
[ "public", "void", "nextRangeMaximumAvailable", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"nextRangeMaximumAvailable\"", ")", ";",...
Callback to inform the generator that the current range of available unique keys has now grown.
[ "Callback", "to", "inform", "the", "generator", "that", "the", "current", "range", "of", "available", "unique", "keys", "has", "now", "grown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyGeneratorImpl.java#L142-L153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/DynamicTraceInstrumentation.java
Transformer.transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { // Don't mo...
java
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { // Don't mo...
[ "public", "byte", "[", "]", "transform", "(", "ClassLoader", "loader", ",", "String", "className", ",", "Class", "<", "?", ">", "classBeingRedefined", ",", "ProtectionDomain", "protectionDomain", ",", "byte", "[", "]", "classfileBuffer", ")", "throws", "IllegalC...
Instrument the classes.
[ "Instrument", "the", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/DynamicTraceInstrumentation.java#L154-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/EvaluationContext.java
EvaluationContext.resolveString
public String resolveString(String value, boolean ignoreWarnings) throws ConfigEvaluatorException { value = variableEvaluator.resolveVariables(value, this, ignoreWarnings); return value; }
java
public String resolveString(String value, boolean ignoreWarnings) throws ConfigEvaluatorException { value = variableEvaluator.resolveVariables(value, this, ignoreWarnings); return value; }
[ "public", "String", "resolveString", "(", "String", "value", ",", "boolean", "ignoreWarnings", ")", "throws", "ConfigEvaluatorException", "{", "value", "=", "variableEvaluator", ".", "resolveVariables", "(", "value", ",", "this", ",", "ignoreWarnings", ")", ";", "...
Tries to resolve variables. @throws ConfigEvaluatorException
[ "Tries", "to", "resolve", "variables", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/EvaluationContext.java#L231-L234
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java
ChainerServlet.init
@SuppressWarnings("unchecked") public void init() throws ServletException { // Method re-written for PQ47469 String servlets = getRequiredInitParameter(PARAM_SERVLET_PATHS); StringTokenizer sTokenizer = new StringTokenizer(servlets); Vector servletChainPath = new Vector(); while (sTokenizer.hasMoreTokens() ==...
java
@SuppressWarnings("unchecked") public void init() throws ServletException { // Method re-written for PQ47469 String servlets = getRequiredInitParameter(PARAM_SERVLET_PATHS); StringTokenizer sTokenizer = new StringTokenizer(servlets); Vector servletChainPath = new Vector(); while (sTokenizer.hasMoreTokens() ==...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "void", "init", "(", ")", "throws", "ServletException", "{", "// Method re-written for PQ47469", "String", "servlets", "=", "getRequiredInitParameter", "(", "PARAM_SERVLET_PATHS", ")", ";", "StringTokenizer", ...
Initialize the servlet chainer.
[ "Initialize", "the", "servlet", "chainer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java#L89-L114
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java
ChainerServlet.service
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Method re-written for PQ47469 ServletChain chain = new ServletChain(); try { String path = null; for (int index = 0; index < this.chainPath.length; ++index) { path = this.chainPath[in...
java
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Method re-written for PQ47469 ServletChain chain = new ServletChain(); try { String path = null; for (int index = 0; index < this.chainPath.length; ++index) { path = this.chainPath[in...
[ "public", "void", "service", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "throws", "ServletException", ",", "IOException", "{", "// Method re-written for PQ47469", "ServletChain", "chain", "=", "new", "ServletChain", "(", ")", ";",...
Handle a servlet request by chaining the configured list of servlets. Only the final response in the chain will be sent back to the client. This servlet does not actual generate any content. This servlet only constructs and processes the servlet chain. @param req HttpServletRequest @param resp HttpServletResponse @ex...
[ "Handle", "a", "servlet", "request", "by", "chaining", "the", "configured", "list", "of", "servlets", ".", "Only", "the", "final", "response", "in", "the", "chain", "will", "be", "sent", "back", "to", "the", "client", ".", "This", "servlet", "does", "not",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java#L127-L146
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java
ChainerServlet.getRequiredInitParameter
String getRequiredInitParameter(String name) throws ServletException { String value = getInitParameter(name); if (value == null) { throw new ServletException(MessageFormat.format(nls.getString("Missing.required.initialization.parameter","Missing required initialization parameter: {0}"), new ...
java
String getRequiredInitParameter(String name) throws ServletException { String value = getInitParameter(name); if (value == null) { throw new ServletException(MessageFormat.format(nls.getString("Missing.required.initialization.parameter","Missing required initialization parameter: {0}"), new ...
[ "String", "getRequiredInitParameter", "(", "String", "name", ")", "throws", "ServletException", "{", "String", "value", "=", "getInitParameter", "(", "name", ")", ";", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "ServletException", "(", "Messag...
Retrieve a required init parameter by name. @exception javax.servlet.ServletException thrown if the required parameter is not present.
[ "Retrieve", "a", "required", "init", "parameter", "by", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/filter/ChainerServlet.java#L153-L160
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java
PermissionManager.initializePermissions
private void initializePermissions() { // Set the default restrictable permissions int count = 0; if (tc.isDebugEnabled()) { if (isServer) { Tr.debug(tc, "running on server "); } else { Tr.debug(tc, "running on client "); } ...
java
private void initializePermissions() { // Set the default restrictable permissions int count = 0; if (tc.isDebugEnabled()) { if (isServer) { Tr.debug(tc, "running on server "); } else { Tr.debug(tc, "running on client "); } ...
[ "private", "void", "initializePermissions", "(", ")", "{", "// Set the default restrictable permissions", "int", "count", "=", "0", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "if", "(", "isServer", ")", "{", "Tr", ".", "debug", "(", "...
InvocationTargetException.class, NoSuchMethodException.class, SecurityException.class})
[ "InvocationTargetException", ".", "class", "NoSuchMethodException", ".", "class", "SecurityException", ".", "class", "}", ")" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java#L211-L286
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java
PermissionManager.getCombinedPermissions
@Override public PermissionCollection getCombinedPermissions(PermissionCollection staticPolicyPermissionCollection, CodeSource codesource) { Permissions effectivePermissions = new Permissions(); List<Permission> staticPolicyPermissions = Collections.list(staticPolicyPermissionCollection.elements());...
java
@Override public PermissionCollection getCombinedPermissions(PermissionCollection staticPolicyPermissionCollection, CodeSource codesource) { Permissions effectivePermissions = new Permissions(); List<Permission> staticPolicyPermissions = Collections.list(staticPolicyPermissionCollection.elements());...
[ "@", "Override", "public", "PermissionCollection", "getCombinedPermissions", "(", "PermissionCollection", "staticPolicyPermissionCollection", ",", "CodeSource", "codesource", ")", "{", "Permissions", "effectivePermissions", "=", "new", "Permissions", "(", ")", ";", "List", ...
Combine the static permissions with the server.xml and permissions.xml permissions, removing any restricted permission. This is called back from the dynamic policy to obtain the permissions for the JSP classes.
[ "Combine", "the", "static", "permissions", "with", "the", "server", ".", "xml", "and", "permissions", ".", "xml", "permissions", "removing", "any", "restricted", "permission", ".", "This", "is", "called", "back", "from", "the", "dynamic", "policy", "to", "obta...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java#L573-L585
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java
PermissionManager.isRestricted
private boolean isRestricted(Permission permission) { for (Permission restrictedPermission : restrictablePermissions) { if (restrictedPermission.implies(permission)) { return true; } } return false; }
java
private boolean isRestricted(Permission permission) { for (Permission restrictedPermission : restrictablePermissions) { if (restrictedPermission.implies(permission)) { return true; } } return false; }
[ "private", "boolean", "isRestricted", "(", "Permission", "permission", ")", "{", "for", "(", "Permission", "restrictedPermission", ":", "restrictablePermissions", ")", "{", "if", "(", "restrictedPermission", ".", "implies", "(", "permission", ")", ")", "{", "retur...
Check if this is a restricted permission. @param permission @return <code>true</code> if the permission is restricted
[ "Check", "if", "this", "is", "a", "restricted", "permission", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java#L593-L600
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java
PermissionManager.addPermissionsXMLPermission
public void addPermissionsXMLPermission(CodeSource codeSource, Permission permission) { ArrayList<Permission> permissions = null; String codeBase = codeSource.getLocation().getPath(); if (!isRestricted(permission)) { if (permissionXMLPermissionMap.containsKey(codeBase)) { ...
java
public void addPermissionsXMLPermission(CodeSource codeSource, Permission permission) { ArrayList<Permission> permissions = null; String codeBase = codeSource.getLocation().getPath(); if (!isRestricted(permission)) { if (permissionXMLPermissionMap.containsKey(codeBase)) { ...
[ "public", "void", "addPermissionsXMLPermission", "(", "CodeSource", "codeSource", ",", "Permission", "permission", ")", "{", "ArrayList", "<", "Permission", ">", "permissions", "=", "null", ";", "String", "codeBase", "=", "codeSource", ".", "getLocation", "(", ")"...
Adds a permission from the permissions.xml file for the given CodeSource. @param codeSource - The CodeSource of the code the specified permission was granted to. @param permissions - The permissions granted in the permissions.xml of the application. @return the effective granted permissions
[ "Adds", "a", "permission", "from", "the", "permissions", ".", "xml", "file", "for", "the", "given", "CodeSource", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/java2sec/PermissionManager.java#L618-L632
train
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/DelayedClassInfo.java
DelayedClassInfo.getClassInfo
public NonDelayedClassInfo getClassInfo() { String useName = getName(); NonDelayedClassInfo useClassInfo = this.classInfo; if (useClassInfo != null) { if (!useClassInfo.isJavaClass() && !(useClassInfo.isAnnotationPresent() || useClassInfo.isFieldA...
java
public NonDelayedClassInfo getClassInfo() { String useName = getName(); NonDelayedClassInfo useClassInfo = this.classInfo; if (useClassInfo != null) { if (!useClassInfo.isJavaClass() && !(useClassInfo.isAnnotationPresent() || useClassInfo.isFieldA...
[ "public", "NonDelayedClassInfo", "getClassInfo", "(", ")", "{", "String", "useName", "=", "getName", "(", ")", ";", "NonDelayedClassInfo", "useClassInfo", "=", "this", ".", "classInfo", ";", "if", "(", "useClassInfo", "!=", "null", ")", "{", "if", "(", "!", ...
Assignments to the extra data of the log parms may not be held across other method calls.
[ "Assignments", "to", "the", "extra", "data", "of", "the", "log", "parms", "may", "not", "be", "held", "across", "other", "method", "calls", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/DelayedClassInfo.java#L113-L194
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.intialiseNonPersistent
protected void intialiseNonPersistent(MultiMEProxyHandler proxyHandler, Neighbours neighbours) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "intialiseNonPersistent"); iProxyHandler = proxyHandler; iNeighbours = neighbours...
java
protected void intialiseNonPersistent(MultiMEProxyHandler proxyHandler, Neighbours neighbours) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "intialiseNonPersistent"); iProxyHandler = proxyHandler; iNeighbours = neighbours...
[ "protected", "void", "intialiseNonPersistent", "(", "MultiMEProxyHandler", "proxyHandler", ",", "Neighbours", "neighbours", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".",...
Setup the non persistent state. @param proxyHandler The proxy handler instance. @param neighbours The neighbours instance
[ "Setup", "the", "non", "persistent", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L186-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.getUUID
public final SIBUuid8 getUUID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getUUID"); SibTr.exit(tc, "getUUID", iMEUuid); } return iMEUuid; }
java
public final SIBUuid8 getUUID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getUUID"); SibTr.exit(tc, "getUUID", iMEUuid); } return iMEUuid; }
[ "public", "final", "SIBUuid8", "getUUID", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getUUID\"", ")", ";", "SibTr", ...
Gets the UUID for this Neighbour @return SIBUuid
[ "Gets", "the", "UUID", "for", "this", "Neighbour" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L211-L219
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.getBusId
public final String getBusId() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getBusId"); SibTr.exit(tc, "getBusId", iBusId); } return iBusId; }
java
public final String getBusId() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getBusId"); SibTr.exit(tc, "getBusId", iBusId); } return iBusId; }
[ "public", "final", "String", "getBusId", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getBusId\"", ")", ";", "SibTr", ...
Get the Bus name for this Neighbour @return String The Bus of this Neighbour
[ "Get", "the", "Bus", "name", "for", "this", "Neighbour" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L226-L235
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.getBus
BusGroup getBus() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getBus"); SibTr.exit(tc, "getBus", iBusGroup); } return iBusGroup; }
java
BusGroup getBus() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getBus"); SibTr.exit(tc, "getBus", iBusGroup); } return iBusGroup; }
[ "BusGroup", "getBus", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getBus\"", ")", ";", "SibTr", ".", "exit", "(", "...
Gets the Bus for this Neighbour @return BusGroup The Bus that this Neighbour belongs to
[ "Gets", "the", "Bus", "for", "this", "Neighbour" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L243-L252
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.setBus
void setBus(BusGroup busGroup) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus"); iBusGroup = busGroup; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus"); }
java
void setBus(BusGroup busGroup) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus"); iBusGroup = busGroup; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus"); }
[ "void", "setBus", "(", "BusGroup", "busGroup", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setBus\"", ")", ";", "iBusGroup", "=",...
Sets the Bus for this Neighbour @param BusGroup The group that this Neighbour belongs to
[ "Sets", "the", "Bus", "for", "this", "Neighbour" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L269-L278
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.createProducerSession
private synchronized void createProducerSession() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createProducerSession"); if (iProducerSession == null) { try { iProducerSession = (ProducerSessionImpl) ...
java
private synchronized void createProducerSession() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createProducerSession"); if (iProducerSession == null) { try { iProducerSession = (ProducerSessionImpl) ...
[ "private", "synchronized", "void", "createProducerSession", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", "...
Creates a producer session for sending the proxy messages to the Neighbours Opens the producer on the Neighbours remote Queue for sending to that Neighbour @exception SIResourceException Thrown if the producer can not be created.
[ "Creates", "a", "producer", "session", "for", "sending", "the", "proxy", "messages", "to", "the", "Neighbours" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L379-L420
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.proxyRegistered
MESubscription proxyRegistered(SIBUuid12 topicSpaceUuid, String localTopicSpaceName, String topic, String foreignTSName, Transaction transaction, boolean f...
java
MESubscription proxyRegistered(SIBUuid12 topicSpaceUuid, String localTopicSpaceName, String topic, String foreignTSName, Transaction transaction, boolean f...
[ "MESubscription", "proxyRegistered", "(", "SIBUuid12", "topicSpaceUuid", ",", "String", "localTopicSpaceName", ",", "String", "topic", ",", "String", "foreignTSName", ",", "Transaction", "transaction", ",", "boolean", "foreignSecuredProxy", ",", "String", "MESubUserId", ...
proxyRegistered is called on this Neighbour object when a proxy subscription is received from a Neighbour. A reference to that subscription is either created, or the reference to that subscription is unMarked @param topicSpace The topicSpace for the subscription. @param localTopicSpaceName The name for the topic sp...
[ "proxyRegistered", "is", "called", "on", "this", "Neighbour", "object", "when", "a", "proxy", "subscription", "is", "received", "from", "a", "Neighbour", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L442-L575
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.removeSubscription
protected void removeSubscription(SIBUuid12 topicSpace, String topic) { // Generate a key for the topicSpace/topic final String key = BusGroup.subscriptionKey(topicSpace, topic); iProxies.remove(key); }
java
protected void removeSubscription(SIBUuid12 topicSpace, String topic) { // Generate a key for the topicSpace/topic final String key = BusGroup.subscriptionKey(topicSpace, topic); iProxies.remove(key); }
[ "protected", "void", "removeSubscription", "(", "SIBUuid12", "topicSpace", ",", "String", "topic", ")", "{", "// Generate a key for the topicSpace/topic", "final", "String", "key", "=", "BusGroup", ".", "subscriptionKey", "(", "topicSpace", ",", "topic", ")", ";", "...
Remove the subscription in the case of a rollback @param topicSpace @param topic
[ "Remove", "the", "subscription", "in", "the", "case", "of", "a", "rollback" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L582-L589
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.proxyDeregistered
MESubscription proxyDeregistered(SIBUuid12 topicSpace, String topic, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "proxyDeregistered", ne...
java
MESubscription proxyDeregistered(SIBUuid12 topicSpace, String topic, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "proxyDeregistered", ne...
[ "MESubscription", "proxyDeregistered", "(", "SIBUuid12", "topicSpace", ",", "String", "topic", ",", "Transaction", "transaction", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryE...
proxyDeregistered is called on this Neighbour object when a delete proxy subscription is received from a Neighbour. A reference to that subscription is either deleted, or nothing happens. @param topic The topic for the proxy @param topicSpace The topicSpace for the subscription. @param transaction The transact...
[ "proxyDeregistered", "is", "called", "on", "this", "Neighbour", "object", "when", "a", "delete", "proxy", "subscription", "is", "received", "from", "a", "Neighbour", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L606-L675
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.addSubscription
protected void addSubscription(SIBUuid12 topicSpace, String topic, MESubscription subscription) { // Generate a key for the topicSpace/topic final String key = BusGroup.subscriptionKey(topicSpace, topic); iProxies.put(key, subscription); }
java
protected void addSubscription(SIBUuid12 topicSpace, String topic, MESubscription subscription) { // Generate a key for the topicSpace/topic final String key = BusGroup.subscriptionKey(topicSpace, topic); iProxies.put(key, subscription); }
[ "protected", "void", "addSubscription", "(", "SIBUuid12", "topicSpace", ",", "String", "topic", ",", "MESubscription", "subscription", ")", "{", "// Generate a key for the topicSpace/topic", "final", "String", "key", "=", "BusGroup", ".", "subscriptionKey", "(", "topicS...
Adds the rolled back subscription to the list. @param topicSpace @param topic
[ "Adds", "the", "rolled", "back", "subscription", "to", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L683-L689
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.getSubscription
protected MESubscription getSubscription(SIBUuid12 topicSpace, String topic) { return (MESubscription)iProxies.get(BusGroup.subscriptionKey(topicSpace, topic)); }
java
protected MESubscription getSubscription(SIBUuid12 topicSpace, String topic) { return (MESubscription)iProxies.get(BusGroup.subscriptionKey(topicSpace, topic)); }
[ "protected", "MESubscription", "getSubscription", "(", "SIBUuid12", "topicSpace", ",", "String", "topic", ")", "{", "return", "(", "MESubscription", ")", "iProxies", ".", "get", "(", "BusGroup", ".", "subscriptionKey", "(", "topicSpace", ",", "topic", ")", ")", ...
Gets the MESubscription represented from this topicSpace and topic @param topicSpace @param topic @return MESubscription representing this topicSpace/topic
[ "Gets", "the", "MESubscription", "represented", "from", "this", "topicSpace", "and", "topic" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L699-L702
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.markAllProxies
void markAllProxies() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "markAllProxies"); final Enumeration enu = iProxies.elements(); // Cycle through each of the proxies while (enu.hasMoreElements()) { final MESubscription sub = (MESubscription) en...
java
void markAllProxies() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "markAllProxies"); final Enumeration enu = iProxies.elements(); // Cycle through each of the proxies while (enu.hasMoreElements()) { final MESubscription sub = (MESubscription) en...
[ "void", "markAllProxies", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"markAllProxies\"", ")", ";", "final", "Enumeration", "en...
Marks all the proxies from this Neighbour. This is used for resynching the state between what this ME has registered and what the ME has sent.
[ "Marks", "all", "the", "proxies", "from", "this", "Neighbour", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L710-L728
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.sweepMarkedProxies
void sweepMarkedProxies( List topicSpaces, List topics, Transaction transaction, boolean okToForward) throws SIResourceException, SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "sweepMarkedProxies", new Object[] { ...
java
void sweepMarkedProxies( List topicSpaces, List topics, Transaction transaction, boolean okToForward) throws SIResourceException, SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "sweepMarkedProxies", new Object[] { ...
[ "void", "sweepMarkedProxies", "(", "List", "topicSpaces", ",", "List", "topics", ",", "Transaction", "transaction", ",", "boolean", "okToForward", ")", "throws", "SIResourceException", ",", "SIException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", ...
Removes all Subscriptions that are no longer registered Loops through all the ME Subscriptions for this Neighbour and finds the ones that still contain the reset mark and removes them. @param topicSpaces The list of topicSpaces to add the deletes to @param topics The list of topics to add the deletes to @param ...
[ "Removes", "all", "Subscriptions", "that", "are", "no", "longer", "registered" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L742-L808
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.sendToNeighbour
void sendToNeighbour(JsMessage message, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendToNeighbour", new Object[] { message, transaction }); if (iProducerSession == null) createProducerSession(); ...
java
void sendToNeighbour(JsMessage message, Transaction transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendToNeighbour", new Object[] { message, transaction }); if (iProducerSession == null) createProducerSession(); ...
[ "void", "sendToNeighbour", "(", "JsMessage", "message", ",", "Transaction", "transaction", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "....
Forwards the message given onto this Neighbours Queue. This could be a create/change or delete message. @param message The JsMessage to be sent. @param transaction The transaction to send the message under.
[ "Forwards", "the", "message", "given", "onto", "this", "Neighbours", "Queue", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L818-L855
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.recoverSubscriptions
protected void recoverSubscriptions(MultiMEProxyHandler proxyHandler) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "recoverSubscriptions", proxyHandler); iProxyHandler = proxyHandler; iProxies = new Hashtable()...
java
protected void recoverSubscriptions(MultiMEProxyHandler proxyHandler) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "recoverSubscriptions", proxyHandler); iProxyHandler = proxyHandler; iProxies = new Hashtable()...
[ "protected", "void", "recoverSubscriptions", "(", "MultiMEProxyHandler", "proxyHandler", ")", "throws", "MessageStoreException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ...
Recovers the Neighbours subscriptions that it had registered. @param proxyHandler the ProxyHandler instance
[ "Recovers", "the", "Neighbours", "subscriptions", "that", "it", "had", "registered", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L862-L911
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.deleteDestination
protected void deleteDestination() throws SIConnectionLostException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteDestination"); // If the producer session hasn't been closed, close it now synchronized(this) { ...
java
protected void deleteDestination() throws SIConnectionLostException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteDestination"); // If the producer session hasn't been closed, close it now synchronized(this) { ...
[ "protected", "void", "deleteDestination", "(", ")", "throws", "SIConnectionLostException", ",", "SIResourceException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Deletes the Queue that would be used for sending proxy update messages to this remote ME. This will only be called when the remote ME is to be deleted. This method also cancels any alarm that may have been set so it doesn't fire at some point in the future. @throws SICoreException
[ "Deletes", "the", "Queue", "that", "would", "be", "used", "for", "sending", "proxy", "update", "messages", "to", "this", "remote", "ME", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L923-L963
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.addPubSubOutputHandler
protected void addPubSubOutputHandler(PubSubOutputHandler handler) { if (iPubSubOutputHandlers == null) iPubSubOutputHandlers = new HashSet(); // Add the PubSubOutputHandler to the list that this neighbour // knows about. This is so a recovered neighbour can add the list of // output handlers ...
java
protected void addPubSubOutputHandler(PubSubOutputHandler handler) { if (iPubSubOutputHandlers == null) iPubSubOutputHandlers = new HashSet(); // Add the PubSubOutputHandler to the list that this neighbour // knows about. This is so a recovered neighbour can add the list of // output handlers ...
[ "protected", "void", "addPubSubOutputHandler", "(", "PubSubOutputHandler", "handler", ")", "{", "if", "(", "iPubSubOutputHandlers", "==", "null", ")", "iPubSubOutputHandlers", "=", "new", "HashSet", "(", ")", ";", "// Add the PubSubOutputHandler to the list that this neighb...
Add a PubSubOutputHandler to the list of PubSubOutputHandlers that this neighbour knows about.
[ "Add", "a", "PubSubOutputHandler", "to", "the", "list", "of", "PubSubOutputHandlers", "that", "this", "neighbour", "knows", "about", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1141-L1150
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.setRequestedProxySubscriptions
void setRequestedProxySubscriptions() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRequestedProxySubscriptions"); MPAlarmManager manager = iProxyHandler.getMessageProcessor().getAlarmManager(); iAlarm = manager.create(REQUEST_TIMER, this); synchronized...
java
void setRequestedProxySubscriptions() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRequestedProxySubscriptions"); MPAlarmManager manager = iProxyHandler.getMessageProcessor().getAlarmManager(); iAlarm = manager.create(REQUEST_TIMER, this); synchronized...
[ "void", "setRequestedProxySubscriptions", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setRequestedProxySubscriptions\"", ")", ";", ...
Indicate that we have sent a request message to this neighbour. This will mean that a timer is created for 5 seconds waiting for a response. If no response is received, then the timer will pop and log a console message to indicate that the pubsub topology will not be consistent. To remove the Timer, this neighbour m...
[ "Indicate", "that", "we", "have", "sent", "a", "request", "message", "to", "this", "neighbour", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1176-L1192
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.setRequestedProxySubscriptionsResponded
void setRequestedProxySubscriptionsResponded() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRequestedProxySubscriptionsResponded"); synchronized (this) { iRequestSent = false; if (!iAlarmCancelled) iAlarm.cancel(); iAlarmCancelle...
java
void setRequestedProxySubscriptionsResponded() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRequestedProxySubscriptionsResponded"); synchronized (this) { iRequestSent = false; if (!iAlarmCancelled) iAlarm.cancel(); iAlarmCancelle...
[ "void", "setRequestedProxySubscriptionsResponded", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setRequestedProxySubscriptionsResponded\"...
The request for proxy subscriptions was responded to. Cancels the Alarm that was created. Updates the underlying object to indicate that a response was received. @param transaction the transaction to do the update under
[ "The", "request", "for", "proxy", "subscriptions", "was", "responded", "to", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1202-L1229
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.wasProxyRequestSent
boolean wasProxyRequestSent() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "wasProxyRequestSent"); SibTr.exit(tc, "wasProxyRequestSent", new Boolean(iRequestSent)); } return iRequestSent; }
java
boolean wasProxyRequestSent() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "wasProxyRequestSent"); SibTr.exit(tc, "wasProxyRequestSent", new Boolean(iRequestSent)); } return iRequestSent; }
[ "boolean", "wasProxyRequestSent", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"wasProxyRequestSent\"", ")", ";", "SibTr", ...
If a request message was sent to this neighbour for the proxy subscriptions @return true if a request was sent.
[ "If", "a", "request", "message", "was", "sent", "to", "this", "neighbour", "for", "the", "proxy", "subscriptions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1237-L1245
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.deleteSystemDestinations
protected void deleteSystemDestinations() throws SIConnectionLostException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteSystemDestinations"); // If the producer session hasn't been closed, close it now synchronize...
java
protected void deleteSystemDestinations() throws SIConnectionLostException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteSystemDestinations"); // If the producer session hasn't been closed, close it now synchronize...
[ "protected", "void", "deleteSystemDestinations", "(", ")", "throws", "SIConnectionLostException", ",", "SIResourceException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ...
Deletes all remote system destinations that are on referencing the me that this neighbour is referenced too. This will only be called when the remote ME is to be deleted. This method also cancels any alarm that may have been set so it doesn't fire at some point in the future. @throws SICoreException
[ "Deletes", "all", "remote", "system", "destinations", "that", "are", "on", "referencing", "the", "me", "that", "this", "neighbour", "is", "referenced", "too", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1322-L1370
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.checkForeignSecurityAttributesChanged
private boolean checkForeignSecurityAttributesChanged(MESubscription sub, boolean foreignSecuredProxy, String MESubUserId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkForeignSecurityAttributesChan...
java
private boolean checkForeignSecurityAttributesChanged(MESubscription sub, boolean foreignSecuredProxy, String MESubUserId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkForeignSecurityAttributesChan...
[ "private", "boolean", "checkForeignSecurityAttributesChanged", "(", "MESubscription", "sub", ",", "boolean", "foreignSecuredProxy", ",", "String", "MESubUserId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnab...
checkForeignSecurityAttributesChanged is called in order to determine whether security attributes have changed. @param sub The stored subscription @param foreignSecuredProxy Flag to indicate whether the new proxy sub originated from a foreign bus where the home bus is secured. @param MESubUserId Userid to be stored...
[ "checkForeignSecurityAttributesChanged", "is", "called", "in", "order", "to", "determine", "whether", "security", "attributes", "have", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1384-L1451
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java
Neighbour.resetListFailed
synchronized void resetListFailed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetListFailed"); iRequestFailed = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "resetListFailed"); }
java
synchronized void resetListFailed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetListFailed"); iRequestFailed = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "resetListFailed"); }
[ "synchronized", "void", "resetListFailed", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resetListFailed\"", ")", ";", "iRequestFa...
Method indicates that the reset list failed - update the alarm to indicate that this failed.
[ "Method", "indicates", "that", "the", "reset", "list", "failed", "-", "update", "the", "alarm", "to", "indicate", "that", "this", "failed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1456-L1465
train
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoImpl.java
InfoImpl.isDeclaredAnnotationWithin
@Override public boolean isDeclaredAnnotationWithin(Collection<String> annotationNames) { if (declaredAnnotations != null) { for (AnnotationInfo annotation : declaredAnnotations) { if (annotationNames.contains(annotation.getAnnotationClassName())) { return tru...
java
@Override public boolean isDeclaredAnnotationWithin(Collection<String> annotationNames) { if (declaredAnnotations != null) { for (AnnotationInfo annotation : declaredAnnotations) { if (annotationNames.contains(annotation.getAnnotationClassName())) { return tru...
[ "@", "Override", "public", "boolean", "isDeclaredAnnotationWithin", "(", "Collection", "<", "String", ">", "annotationNames", ")", "{", "if", "(", "declaredAnnotations", "!=", "null", ")", "{", "for", "(", "AnnotationInfo", "annotation", ":", "declaredAnnotations", ...
Optimized to iterate across the declared annotations first.
[ "Optimized", "to", "iterate", "across", "the", "declared", "annotations", "first", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoImpl.java#L194-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java
RAWrapperEECImpl.readObject
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = s.readFields(); version = getField.get("version", 1); resourceAdapterKey = (String) getField.get("resourceAdapterKey", null); }
java
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = s.readFields(); version = getField.get("version", 1); resourceAdapterKey = (String) getField.get("resourceAdapterKey", null); }
[ "private", "void", "readObject", "(", "ObjectInputStream", "s", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "ObjectInputStream", ".", "GetField", "getField", "=", "s", ".", "readFields", "(", ")", ";", "version", "=", "getField", ".", "get"...
Overrides the default deserialization.
[ "Overrides", "the", "default", "deserialization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java#L135-L140
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java
RAWrapperEECImpl.writeObject
private void writeObject(ObjectOutputStream s) throws IOException { ObjectOutputStream.PutField putField = s.putFields(); putField.put("version", version); putField.put("resourceAdapterKey", resourceAdapterKey); s.writeFields(); }
java
private void writeObject(ObjectOutputStream s) throws IOException { ObjectOutputStream.PutField putField = s.putFields(); putField.put("version", version); putField.put("resourceAdapterKey", resourceAdapterKey); s.writeFields(); }
[ "private", "void", "writeObject", "(", "ObjectOutputStream", "s", ")", "throws", "IOException", "{", "ObjectOutputStream", ".", "PutField", "putField", "=", "s", ".", "putFields", "(", ")", ";", "putField", ".", "put", "(", "\"version\"", ",", "version", ")", ...
Overrides the default serialization.
[ "Overrides", "the", "default", "serialization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java#L161-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSControllerImpl.java
RLSControllerImpl.notifyTimeout
static void notifyTimeout() { if (tc.isEntryEnabled()) Tr.entry(tc, "notifyTimeout"); synchronized(SUSPEND_LOCK) { // Check if there are any outstanding suspends if (_tokenManager.isResumable()) { if (tc.isEventEnabled()) Tr.e...
java
static void notifyTimeout() { if (tc.isEntryEnabled()) Tr.entry(tc, "notifyTimeout"); synchronized(SUSPEND_LOCK) { // Check if there are any outstanding suspends if (_tokenManager.isResumable()) { if (tc.isEventEnabled()) Tr.e...
[ "static", "void", "notifyTimeout", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"notifyTimeout\"", ")", ";", "synchronized", "(", "SUSPEND_LOCK", ")", "{", "// Check if there are any outstanding su...
Called by the RLSSuspendTokenManager in the event of a suspension timeout occurring We need to check, if as a result of a suspension timing out, whether we should resume the RLS. We will resume only if there are no other outstanding active suspensions @return boolean isSuspended
[ "Called", "by", "the", "RLSSuspendTokenManager", "in", "the", "event", "of", "a", "suspension", "timeout", "occurring" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSControllerImpl.java#L258-L281
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.getExternalTransaction
protected synchronized final Transaction getExternalTransaction() { final String methodName = "getExternalTransaction"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); Transaction ...
java
protected synchronized final Transaction getExternalTransaction() { final String methodName = "getExternalTransaction"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); Transaction ...
[ "protected", "synchronized", "final", "Transaction", "getExternalTransaction", "(", ")", "{", "final", "String", "methodName", "=", "\"getExternalTransaction\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "...
Create the extrnal transaction for use by the public interface from this InternalTransaction. To detect orphaned Transactions, ie. Transactions not referenced elsewhere in the JVM, we will keep a reference to the internalTransaction and make a weak reference to the container we pass to the application. When the contai...
[ "Create", "the", "extrnal", "transaction", "for", "use", "by", "the", "public", "interface", "from", "this", "InternalTransaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L463-L487
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.requestCallback
protected synchronized void requestCallback(Token token, Transaction transaction) throws ObjectManagerException { final String methodName = "requestCallback"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) ...
java
protected synchronized void requestCallback(Token token, Transaction transaction) throws ObjectManagerException { final String methodName = "requestCallback"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) ...
[ "protected", "synchronized", "void", "requestCallback", "(", "Token", "token", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"requestCallback\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEn...
Note a request for the Token in the transaction to be called at prePrepare, preCommit, preBackout, postCommit and postBackout. @param token who's ManagedObject is to be called back. @param transaction the external transaction. @throws ObjectManagerException @throws InvalidStateException if the tansaction has started i...
[ "Note", "a", "request", "for", "the", "Token", "in", "the", "transaction", "to", "be", "called", "at", "prePrepare", "preCommit", "preBackout", "postCommit", "and", "postBackout", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L615-L654
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.addFromCheckpoint
protected synchronized void addFromCheckpoint(ManagedObject managedObject, Transaction transaction) throws ObjectManagerException { final String methodName = "addFromCheckpoint"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabl...
java
protected synchronized void addFromCheckpoint(ManagedObject managedObject, Transaction transaction) throws ObjectManagerException { final String methodName = "addFromCheckpoint"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabl...
[ "protected", "synchronized", "void", "addFromCheckpoint", "(", "ManagedObject", "managedObject", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"addFromCheckpoint\"", ";", "if", "(", "Tracing", "....
Recover an Add operation from a checkpoint. @param managedObject being added. @param transaction the external Transaction. @throws ObjectManagerException
[ "Recover", "an", "Add", "operation", "from", "a", "checkpoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L874-L908
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.replaceFromCheckpoint
protected synchronized void replaceFromCheckpoint(ManagedObject managedObject, byte[] serializedBytes, Transaction transaction) throws ObjectManagerException { final String methodName ...
java
protected synchronized void replaceFromCheckpoint(ManagedObject managedObject, byte[] serializedBytes, Transaction transaction) throws ObjectManagerException { final String methodName ...
[ "protected", "synchronized", "void", "replaceFromCheckpoint", "(", "ManagedObject", "managedObject", ",", "byte", "[", "]", "serializedBytes", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"repla...
Recover a Replace operation from a checkpoint. @param managedObject recovered from a checkpoint. @param serializedBytes representing the serialized form of the ManagedObject originally logged. @param transaction the external Transaction. @throws ObjectManagerException
[ "Recover", "a", "Replace", "operation", "from", "a", "checkpoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1078-L1120
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.prepare
protected synchronized void prepare(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "prepare" , "transaction=" + transaction + "(Tr...
java
protected synchronized void prepare(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "prepare" , "transaction=" + transaction + "(Tr...
[ "protected", "synchronized", "void", "prepare", "(", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry...
Prepare the transaction. After execution of this method the users of this transaction shall not perform any further work as part of the logical unit of work, or modify any of the objects that are referenced by the transaction. We have already spooled the add and delete log records for persistent objects. Since we are ...
[ "Prepare", "the", "transaction", ".", "After", "execution", "of", "this", "method", "the", "users", "of", "this", "transaction", "shall", "not", "perform", "any", "further", "work", "as", "part", "of", "the", "logical", "unit", "of", "work", "or", "modify", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1759-L1812
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.commit
protected void commit(boolean reUse, Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "commit" , new Object[] ...
java
protected void commit(boolean reUse, Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "commit" , new Object[] ...
[ "protected", "void", "commit", "(", "boolean", "reUse", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", "...
Commit the transaction. Fore write a commit record to the log. Unlock the objects that are part of this logical unit of work. @param reUse true indicates that the transaction is terminated and then reused with another logical unit of work. @param transaction the external Transaction. @throws ObjectManagerException
[ "Commit", "the", "transaction", ".", "Fore", "write", "a", "commit", "record", "to", "the", "log", ".", "Unlock", "the", "objects", "that", "are", "part", "of", "this", "logical", "unit", "of", "work", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1857-L1986
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.backout
protected void backout(boolean reUse, Transaction transaction) throws ObjectManagerException { final String methodName = "backout"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] {...
java
protected void backout(boolean reUse, Transaction transaction) throws ObjectManagerException { final String methodName = "backout"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] {...
[ "protected", "void", "backout", "(", "boolean", "reUse", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"backout\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
Rollback the transacion. Force a backout record to the log. @param reUse Indicates whether the transaction is terminated or can be reused for another logical unit of work. @param transaction the external Transaction. @throws ObjectManagerException
[ "Rollback", "the", "transacion", ".", "Force", "a", "backout", "record", "to", "the", "log", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2055-L2174
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.preBackout
void preBackout(Transaction transaction) throws ObjectManagerException { final String methodName = "preBackout"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { transaction }); // Allow any last mi...
java
void preBackout(Transaction transaction) throws ObjectManagerException { final String methodName = "preBackout"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { transaction }); // Allow any last mi...
[ "void", "preBackout", "(", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"preBackout\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(...
Before the transaction is backed out, give the ManagedObjects a chance to adjust their transient state to reflect the final outcome. It is too late for them to adjust persistent state as that is already written to the log assuming an outcome of Commit. @param transaction the external Transaction. @throws ObjectManager...
[ "Before", "the", "transaction", "is", "backed", "out", "give", "the", "ManagedObjects", "a", "chance", "to", "adjust", "their", "transient", "state", "to", "reflect", "the", "final", "outcome", ".", "It", "is", "too", "late", "for", "them", "to", "adjust", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2184-L2201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.complete
private final void complete(boolean reUse, Transaction transaction) throws ObjectManagerException { final String methodName = "complete"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new...
java
private final void complete(boolean reUse, Transaction transaction) throws ObjectManagerException { final String methodName = "complete"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new...
[ "private", "final", "void", "complete", "(", "boolean", "reUse", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"complete\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")",...
Tidy up after Commit or Backout have finished all work for this InternalTransaction. @param reUse true if the trandsaction is to be reused. @param transaction the external Transaction completing. @throws ObjectManagerException
[ "Tidy", "up", "after", "Commit", "or", "Backout", "have", "finished", "all", "work", "for", "this", "InternalTransaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2242-L2287
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.terminate
protected synchronized void terminate(int reason) throws ObjectManagerException { final String methodName = "terminate"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new Integer(reason) }); if (...
java
protected synchronized void terminate(int reason) throws ObjectManagerException { final String methodName = "terminate"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new Integer(reason) }); if (...
[ "protected", "synchronized", "void", "terminate", "(", "int", "reason", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"terminate\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isE...
Permanently disable use of this transaction. reason the Transaction.terininatedXXX reason @throws ObjectManagerException
[ "Permanently", "disable", "use", "of", "this", "transaction", ".", "reason", "the", "Transaction", ".", "terininatedXXX", "reason" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2294-L2317
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.shutdown
protected synchronized void shutdown() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "shutDown" ); setState(nextStateForShutdown); //...
java
protected synchronized void shutdown() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "shutDown" ); setState(nextStateForShutdown); //...
[ "protected", "synchronized", "void", "shutdown", "(", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry", "(", "this", ",", "ccl...
Run at shutdown of the ObjectManager to close activity. @throws ObjectManagerException
[ "Run", "at", "shutdown", "of", "the", "ObjectManager", "to", "close", "activity", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2324-L2340
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.setRequiresCheckpoint
protected final void setRequiresCheckpoint() { final String methodName = "setRequiresCheckpoint"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new ...
java
protected final void setRequiresCheckpoint() { final String methodName = "setRequiresCheckpoint"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new ...
[ "protected", "final", "void", "setRequiresCheckpoint", "(", ")", "{", "final", "String", "methodName", "=", "\"setRequiresCheckpoint\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace"...
Mark this InternalTransaction as requiring a Checkpoint in the current checkpoint cycle.
[ "Mark", "this", "InternalTransaction", "as", "requiring", "a", "Checkpoint", "in", "the", "current", "checkpoint", "cycle", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2345-L2383
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java
InternalTransaction.checkpoint
protected synchronized void checkpoint(long forcedLogSequenceNumber) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "checkpoint" , new Object[] { new Long(...
java
protected synchronized void checkpoint(long forcedLogSequenceNumber) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "checkpoint" , new Object[] { new Long(...
[ "protected", "synchronized", "void", "checkpoint", "(", "long", "forcedLogSequenceNumber", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", ...
Called by the ObjectManager when it has written a checkpointStartLogRecord. The Transaction can assume that all log records up to and including logSequenceNumber are now safely hardened to disk. On this assumption it calls includedObjects so that they can write after images to the ObjectStores. @param forcedLogSequenc...
[ "Called", "by", "the", "ObjectManager", "when", "it", "has", "written", "a", "checkpointStartLogRecord", ".", "The", "Transaction", "can", "assume", "that", "all", "log", "records", "up", "to", "and", "including", "logSequenceNumber", "are", "now", "safely", "ha...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2394-L2489
train
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java
InvokerTask.afterCompletion
@Override public void afterCompletion(int status) { if (status == Status.STATUS_COMMITTED) { Boolean previous = persistentExecutor.inMemoryTaskIds.put(taskId, Boolean.TRUE); if (previous == null) { long delay = expectedExecTime - new Date().getTime(); ...
java
@Override public void afterCompletion(int status) { if (status == Status.STATUS_COMMITTED) { Boolean previous = persistentExecutor.inMemoryTaskIds.put(taskId, Boolean.TRUE); if (previous == null) { long delay = expectedExecTime - new Date().getTime(); ...
[ "@", "Override", "public", "void", "afterCompletion", "(", "int", "status", ")", "{", "if", "(", "status", "==", "Status", ".", "STATUS_COMMITTED", ")", "{", "Boolean", "previous", "=", "persistentExecutor", ".", "inMemoryTaskIds", ".", "put", "(", "taskId", ...
Upon successful transaction commit, automatically schedules a task for execution in the near future. @see javax.transaction.Synchronization#afterCompletion(int)
[ "Upon", "successful", "transaction", "commit", "automatically", "schedules", "a", "task", "for", "execution", "in", "the", "near", "future", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java#L78-L92
train
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java
InvokerTask.serializeResult
@FFDCIgnore(Throwable.class) @Sensitive private byte[] serializeResult(Object result, ClassLoader loader) throws IOException { try { return persistentExecutor.serialize(result); } catch (Throwable x) { return persistentExecutor.serialize(new TaskFailure(x, loader, persist...
java
@FFDCIgnore(Throwable.class) @Sensitive private byte[] serializeResult(Object result, ClassLoader loader) throws IOException { try { return persistentExecutor.serialize(result); } catch (Throwable x) { return persistentExecutor.serialize(new TaskFailure(x, loader, persist...
[ "@", "FFDCIgnore", "(", "Throwable", ".", "class", ")", "@", "Sensitive", "private", "byte", "[", "]", "serializeResult", "(", "Object", "result", ",", "ClassLoader", "loader", ")", "throws", "IOException", "{", "try", "{", "return", "persistentExecutor", ".",...
Utility method that serializes a task result, or the failure that occurred when attempting to serialize the task result. @param result non-null task result @param loader class loader that can deserialize the task and result. @return serialized bytes
[ "Utility", "method", "that", "serializes", "a", "task", "result", "or", "the", "failure", "that", "occurred", "when", "attempting", "to", "serialize", "the", "task", "result", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java#L605-L613
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertNumberHandler.java
ConvertNumberHandler.createConverter
protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException { return ctx.getFacesContext().getApplication().createConverter(NumberConverter.CONVERTER_ID); }
java
protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException { return ctx.getFacesContext().getApplication().createConverter(NumberConverter.CONVERTER_ID); }
[ "protected", "Converter", "createConverter", "(", "FaceletContext", "ctx", ")", "throws", "FacesException", ",", "ELException", ",", "FaceletException", "{", "return", "ctx", ".", "getFacesContext", "(", ")", ".", "getApplication", "(", ")", ".", "createConverter", ...
Returns a new NumberConverter @see NumberConverter @see org.apache.myfaces.view.facelets.tag.jsf.ConverterHandler#createConverter(javax.faces.view.facelets.FaceletContext)
[ "Returns", "a", "new", "NumberConverter" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertNumberHandler.java#L67-L70
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java
ReceiveListenerDispatcher.queueDataReceivedInvocation
public void queueDataReceivedInvocation(Connection connection, ReceiveListener listener, WsByteBuffer data, int segmentType, int request...
java
public void queueDataReceivedInvocation(Connection connection, ReceiveListener listener, WsByteBuffer data, int segmentType, int request...
[ "public", "void", "queueDataReceivedInvocation", "(", "Connection", "connection", ",", "ReceiveListener", "listener", ",", "WsByteBuffer", "data", ",", "int", "segmentType", ",", "int", "requestNumber", ",", "int", "priority", ",", "boolean", "allocatedFromBufferPool", ...
Queues the invocation of a data received method into the dispatcher.
[ "Queues", "the", "invocation", "of", "a", "data", "received", "method", "into", "the", "dispatcher", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java#L574-L605
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java
ReceiveListenerDispatcher.getInstance
public static ReceiveListenerDispatcher getInstance(Conversation.ConversationType convType, boolean isOnClientSide) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance", new Object[] {""+convType, ""+isOnClientSide}); ...
java
public static ReceiveListenerDispatcher getInstance(Conversation.ConversationType convType, boolean isOnClientSide) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance", new Object[] {""+convType, ""+isOnClientSide}); ...
[ "public", "static", "ReceiveListenerDispatcher", "getInstance", "(", "Conversation", ".", "ConversationType", "convType", ",", "boolean", "isOnClientSide", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", ...
Return a reference to the instance of this class. Used to implement the singleton design pattern. @return ReceiveListenerDispatcher
[ "Return", "a", "reference", "to", "the", "instance", "of", "this", "class", ".", "Used", "to", "implement", "the", "singleton", "design", "pattern", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java#L739-L792
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java
CustomUtils.isCommandLine
public static boolean isCommandLine() { String output = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("wlp.process.type"); } }); boolean value = true; if (output...
java
public static boolean isCommandLine() { String output = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return System.getProperty("wlp.process.type"); } }); boolean value = true; if (output...
[ "public", "static", "boolean", "isCommandLine", "(", ")", "{", "String", "output", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">", "(", ")", "{", "@", "Override", "public", "String", "run", "(", ")", "{", "...
Returns true when the value of wlp.process.type is neither server nor client. false otherwise.
[ "Returns", "true", "when", "the", "value", "of", "wlp", ".", "process", ".", "type", "is", "neither", "server", "nor", "client", ".", "false", "otherwise", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L55-L70
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java
CustomUtils.getInstallRoot
public static String getInstallRoot() { return AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { String output = System.getProperty("wlp.install.dir"); if (output == null) { output = System.g...
java
public static String getInstallRoot() { return AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { String output = System.getProperty("wlp.install.dir"); if (output == null) { output = System.g...
[ "public", "static", "String", "getInstallRoot", "(", ")", "{", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">", "(", ")", "{", "@", "Override", "public", "String", "run", "(", ")", "{", "String", "output"...
Returns the installation root. If it wasn't detected, use current directory.
[ "Returns", "the", "installation", "root", ".", "If", "it", "wasn", "t", "detected", "use", "current", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L120-L147
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java
CustomUtils.getResourceBundle
public static ResourceBundle getResourceBundle(File location, String name, Locale locale) { File[] files = new File[] { new File(location, name + "_" + locale.toString() + RESOURCE_FILE_EXT), new File(location, name + "_" + locale.getLanguage() + RESOURCE_FILE_EXT), ...
java
public static ResourceBundle getResourceBundle(File location, String name, Locale locale) { File[] files = new File[] { new File(location, name + "_" + locale.toString() + RESOURCE_FILE_EXT), new File(location, name + "_" + locale.getLanguage() + RESOURCE_FILE_EXT), ...
[ "public", "static", "ResourceBundle", "getResourceBundle", "(", "File", "location", ",", "String", "name", ",", "Locale", "locale", ")", "{", "File", "[", "]", "files", "=", "new", "File", "[", "]", "{", "new", "File", "(", "location", ",", "name", "+", ...
find the best matching resouce bundle of the specified resouce file name.
[ "find", "the", "best", "matching", "resouce", "bundle", "of", "the", "specified", "resouce", "file", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L152-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java
CustomUtils.findCustomEncryption
public static List<CustomManifest> findCustomEncryption(String extension) throws IOException { List<File> dirs = listRootAndExtensionDirectories(); return findCustomEncryption(dirs, TOOL_EXTENSION_DIR + extension); }
java
public static List<CustomManifest> findCustomEncryption(String extension) throws IOException { List<File> dirs = listRootAndExtensionDirectories(); return findCustomEncryption(dirs, TOOL_EXTENSION_DIR + extension); }
[ "public", "static", "List", "<", "CustomManifest", ">", "findCustomEncryption", "(", "String", "extension", ")", "throws", "IOException", "{", "List", "<", "File", ">", "dirs", "=", "listRootAndExtensionDirectories", "(", ")", ";", "return", "findCustomEncryption", ...
Find the URL of the jar file which includes specified class. If there is none, return empty array. @throws IOException
[ "Find", "the", "URL", "of", "the", "jar", "file", "which", "includes", "specified", "class", ".", "If", "there", "is", "none", "return", "empty", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L176-L179
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java
CustomUtils.findCustomEncryption
protected static List<CustomManifest> findCustomEncryption(List<File> rootDirs, String path) throws IOException { List<CustomManifest> list = new ArrayList<CustomManifest>(); for (File dir : rootDirs) { dir = new File(dir, path); if (exists(dir)) { File[] files = ...
java
protected static List<CustomManifest> findCustomEncryption(List<File> rootDirs, String path) throws IOException { List<CustomManifest> list = new ArrayList<CustomManifest>(); for (File dir : rootDirs) { dir = new File(dir, path); if (exists(dir)) { File[] files = ...
[ "protected", "static", "List", "<", "CustomManifest", ">", "findCustomEncryption", "(", "List", "<", "File", ">", "rootDirs", ",", "String", "path", ")", "throws", "IOException", "{", "List", "<", "CustomManifest", ">", "list", "=", "new", "ArrayList", "<", ...
Find the custom encryption manifest files from the specified list of root directories and path name. The reason why there are multiple root directories is that the product extensions which will allow to add the additional root directory anywhere. @throws IOException
[ "Find", "the", "custom", "encryption", "manifest", "files", "from", "the", "specified", "list", "of", "root", "directories", "and", "path", "name", ".", "The", "reason", "why", "there", "are", "multiple", "root", "directories", "is", "that", "the", "product", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L188-L214
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getNetworkTransportFactory
@Override public NetworkTransportFactory getNetworkTransportFactory() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNetworkTransportFactory"); NetworkTransportFactory factory = new RichClientTransportFactory(framework); if (Trace...
java
@Override public NetworkTransportFactory getNetworkTransportFactory() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNetworkTransportFactory"); NetworkTransportFactory factory = new RichClientTransportFactory(framework); if (Trace...
[ "@", "Override", "public", "NetworkTransportFactory", "getNetworkTransportFactory", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc...
This method is our entry point into the Channel Framework implementation of the JFap Framework interfaces. @see com.ibm.ws.sib.jfapchannel.framework.Framework#getNetworkTransportFactory()
[ "This", "method", "is", "our", "entry", "point", "into", "the", "Channel", "Framework", "implementation", "of", "the", "JFap", "Framework", "interfaces", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L98-L107
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getOutboundConnectionProperties
@Override public Map getOutboundConnectionProperties(String outboundTransportName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getOutboundConnectionProperties", outboundTransportName); ChainData chainData = framew...
java
@Override public Map getOutboundConnectionProperties(String outboundTransportName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getOutboundConnectionProperties", outboundTransportName); ChainData chainData = framew...
[ "@", "Override", "public", "Map", "getOutboundConnectionProperties", "(", "String", "outboundTransportName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
This method will retrieve the property bag on the named chain so that it can be determined what properties have been set on it. @param outboundTransportName The chain name. @see com.ibm.ws.sib.jfapchannel.framework.Framework#getOutboundConnectionProperties(java.lang.String)
[ "This", "method", "will", "retrieve", "the", "property", "bag", "on", "the", "named", "chain", "so", "that", "it", "can", "be", "determined", "what", "properties", "have", "been", "set", "on", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L117-L144
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getOutboundConnectionProperties
@Override public Map getOutboundConnectionProperties(Object ep) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getOutboundConnectionProperties", ep); Map properties = null; if (ep instanceof CFEndPoint) { Outboun...
java
@Override public Map getOutboundConnectionProperties(Object ep) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getOutboundConnectionProperties", ep); Map properties = null; if (ep instanceof CFEndPoint) { Outboun...
[ "@", "Override", "public", "Map", "getOutboundConnectionProperties", "(", "Object", "ep", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
This method will retrieve the property bag on the outbound chain that will be used by the specified end point. This method is only valid for CFEndPoints. @param ep The CFEndPoint @see com.ibm.ws.sib.jfapchannel.framework.Framework#getOutboundConnectionProperties(java.lang.Object)
[ "This", "method", "will", "retrieve", "the", "property", "bag", "on", "the", "outbound", "chain", "that", "will", "be", "used", "by", "the", "specified", "end", "point", ".", "This", "method", "is", "only", "valid", "for", "CFEndPoints", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L154-L172
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getHostAddress
@Override public InetAddress getHostAddress(Object endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getHostAddress", endPoint); InetAddress address = null; if (endPoint instanceof CFEndPoint) { address = ...
java
@Override public InetAddress getHostAddress(Object endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getHostAddress", endPoint); InetAddress address = null; if (endPoint instanceof CFEndPoint) { address = ...
[ "@", "Override", "public", "InetAddress", "getHostAddress", "(", "Object", "endPoint", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "...
Retrieves the host address from the specified CFEndPoint. @see com.ibm.ws.sib.jfapchannel.framework.Framework#getHostAddress(java.lang.Object)
[ "Retrieves", "the", "host", "address", "from", "the", "specified", "CFEndPoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L426-L441
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getHostPort
@Override public int getHostPort(Object endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getHostPort", endPoint); int port = 0; if (endPoint instanceof CFEndPoint) { port = ((CFEndPoint) endPoint).getPort...
java
@Override public int getHostPort(Object endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getHostPort", endPoint); int port = 0; if (endPoint instanceof CFEndPoint) { port = ((CFEndPoint) endPoint).getPort...
[ "@", "Override", "public", "int", "getHostPort", "(", "Object", "endPoint", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",",...
Retrieves the host port from the specified CFEndPoint. @see com.ibm.ws.sib.jfapchannel.framework.Framework#getHostPort(java.lang.Object)
[ "Retrieves", "the", "host", "port", "from", "the", "specified", "CFEndPoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L448-L463
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.areEndPointsEqual
@Override public boolean areEndPointsEqual(Object ep1, Object ep2) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "areEndPointsEqual", new Object[] { ep1, ep2 }); boolean isEqual = false; if (ep1 instanceof CFEndPoint && ep2 instanc...
java
@Override public boolean areEndPointsEqual(Object ep1, Object ep2) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "areEndPointsEqual", new Object[] { ep1, ep2 }); boolean isEqual = false; if (ep1 instanceof CFEndPoint && ep2 instanc...
[ "@", "Override", "public", "boolean", "areEndPointsEqual", "(", "Object", "ep1", ",", "Object", "ep2", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
The channel framework EP's don't have their own equals method - so one is implemented here by comparing the various parts of the EP. @see com.ibm.ws.sib.jfapchannel.framework.Framework#areEndPointsEqual(java.lang.Object, java.lang.Object)
[ "The", "channel", "framework", "EP", "s", "don", "t", "have", "their", "own", "equals", "method", "-", "so", "one", "is", "implemented", "here", "by", "comparing", "the", "various", "parts", "of", "the", "EP", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L572-L597
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.getEndPointHashCode
@Override public int getEndPointHashCode(Object ep) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEndPointHashCode", ep); int hashCode = 0; if (ep instanceof CFEndPoint) { CFEndPoint cfEndPoint = (CFEndPoint)...
java
@Override public int getEndPointHashCode(Object ep) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEndPointHashCode", ep); int hashCode = 0; if (ep instanceof CFEndPoint) { CFEndPoint cfEndPoint = (CFEndPoint)...
[ "@", "Override", "public", "int", "getEndPointHashCode", "(", "Object", "ep", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
The channel framework EP's don't have their own hashCode method - so one is implemented here using the various parts of the EP. @see com.ibm.ws.sib.jfapchannel.framework.Framework#getEndPointHashCode(java.lang.Object)
[ "The", "channel", "framework", "EP", "s", "don", "t", "have", "their", "own", "hashCode", "method", "-", "so", "one", "is", "implemented", "here", "using", "the", "various", "parts", "of", "the", "EP", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L605-L627
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java
RichClientFramework.cloneEndpoint
private CFEndPoint cloneEndpoint(final CFEndPoint originalEndPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "cloneEndpoint", originalEndPoint); CFEndPoint endPoint; ByteArrayOutputStream baos = null; ObjectOutputStream out...
java
private CFEndPoint cloneEndpoint(final CFEndPoint originalEndPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "cloneEndpoint", originalEndPoint); CFEndPoint endPoint; ByteArrayOutputStream baos = null; ObjectOutputStream out...
[ "private", "CFEndPoint", "cloneEndpoint", "(", "final", "CFEndPoint", "originalEndPoint", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
Creates a copy of originalEndPoint. This is to prevent us causing problems when we change it. As there is no exposed way to do this we will use serialization. It may be a bit slow, but it is implementation safe as the implementation of CFEndPoint is designed to be serialized by WLM. Plus we only need to do this when cr...
[ "Creates", "a", "copy", "of", "originalEndPoint", ".", "This", "is", "to", "prevent", "us", "causing", "problems", "when", "we", "change", "it", ".", "As", "there", "is", "no", "exposed", "way", "to", "do", "this", "we", "will", "use", "serialization", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L665-L730
train
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/LinkRead.java
LinkRead.getCause
private Throwable getCause(Throwable t) { Throwable cause = t.getCause(); if (t.getCause() != null) { return cause; } else { return t; } }
java
private Throwable getCause(Throwable t) { Throwable cause = t.getCause(); if (t.getCause() != null) { return cause; } else { return t; } }
[ "private", "Throwable", "getCause", "(", "Throwable", "t", ")", "{", "Throwable", "cause", "=", "t", ".", "getCause", "(", ")", ";", "if", "(", "t", ".", "getCause", "(", ")", "!=", "null", ")", "{", "return", "cause", ";", "}", "else", "{", "retur...
get if 'cause' exists, else return the original exception
[ "get", "if", "cause", "exists", "else", "return", "the", "original", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/LinkRead.java#L1143-L1150
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java
BaseTraceFormatter.traceLogFormat
public String traceLogFormat(LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) { final String txt; if (formattedVerboseMsg == null) { // If we don't already have a formatted message... (for Audit or Info or Warning.. ) // we have to build something ...
java
public String traceLogFormat(LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) { final String txt; if (formattedVerboseMsg == null) { // If we don't already have a formatted message... (for Audit or Info or Warning.. ) // we have to build something ...
[ "public", "String", "traceLogFormat", "(", "LogRecord", "logRecord", ",", "Object", "id", ",", "String", "formattedMsg", ",", "String", "formattedVerboseMsg", ")", "{", "final", "String", "txt", ";", "if", "(", "formattedVerboseMsg", "==", "null", ")", "{", "/...
Format a detailed record for trace.log. Previously formatted messages may be provided and may be reused if possible. @param logRecord @param id @param formattedMsg the result of {@link #formatMessage}, or null if that method was not previously called @param formattedVerboseMsg the result of {@link #formatVerboseMessag...
[ "Format", "a", "detailed", "record", "for", "trace", ".", "log", ".", "Previously", "formatted", "messages", "may", "be", "provided", "and", "may", "be", "reused", "if", "possible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L205-L216
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java
BaseTraceFormatter.formatVerboseObj
private Object formatVerboseObj(Object obj) { // Make sure that we don't truncate any stack traces during verbose logging if (obj instanceof TruncatableThrowable) { TruncatableThrowable truncatable = (TruncatableThrowable) obj; final Throwable wrappedException = truncatable.getW...
java
private Object formatVerboseObj(Object obj) { // Make sure that we don't truncate any stack traces during verbose logging if (obj instanceof TruncatableThrowable) { TruncatableThrowable truncatable = (TruncatableThrowable) obj; final Throwable wrappedException = truncatable.getW...
[ "private", "Object", "formatVerboseObj", "(", "Object", "obj", ")", "{", "// Make sure that we don't truncate any stack traces during verbose logging", "if", "(", "obj", "instanceof", "TruncatableThrowable", ")", "{", "TruncatableThrowable", "truncatable", "=", "(", "Truncata...
Format an object for a verbose message. @param obj the non-null parameter object @return the reformatted object, or null if the object can be used as-is
[ "Format", "an", "object", "for", "a", "verbose", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L373-L384
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java
BaseTraceFormatter.formatStreamOutput
protected String formatStreamOutput(GenericData genData) { String txt = null; String loglevel = null; KeyValuePair kvp = null; KeyValuePair[] pairs = genData.getPairs(); for (KeyValuePair p : pairs) { if (p != null && !p.isList()) { kvp = p; ...
java
protected String formatStreamOutput(GenericData genData) { String txt = null; String loglevel = null; KeyValuePair kvp = null; KeyValuePair[] pairs = genData.getPairs(); for (KeyValuePair p : pairs) { if (p != null && !p.isList()) { kvp = p; ...
[ "protected", "String", "formatStreamOutput", "(", "GenericData", "genData", ")", "{", "String", "txt", "=", "null", ";", "String", "loglevel", "=", "null", ";", "KeyValuePair", "kvp", "=", "null", ";", "KeyValuePair", "[", "]", "pairs", "=", "genData", ".", ...
Outputs filteredStream of genData @param genData object to filter @return filtered message of the genData
[ "Outputs", "filteredStream", "of", "genData" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L1051-L1077
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannelHelper.java
AsyncSocketChannelHelper.createTimeout
private void createTimeout(IAbstractAsyncFuture future, long delay, boolean isRead) { if (AsyncProperties.disableTimeouts) { return; } // create the timeout time, while not holding the lock long timeoutTime = (System.currentTimeMillis() + delay + Timer...
java
private void createTimeout(IAbstractAsyncFuture future, long delay, boolean isRead) { if (AsyncProperties.disableTimeouts) { return; } // create the timeout time, while not holding the lock long timeoutTime = (System.currentTimeMillis() + delay + Timer...
[ "private", "void", "createTimeout", "(", "IAbstractAsyncFuture", "future", ",", "long", "delay", ",", "boolean", "isRead", ")", "{", "if", "(", "AsyncProperties", ".", "disableTimeouts", ")", "{", "return", ";", "}", "// create the timeout time, while not holding the ...
Create the delayed timeout work item for this request. @param future @param delay @param isRead
[ "Create", "the", "delayed", "timeout", "work", "item", "for", "this", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannelHelper.java#L574-L589
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Product.java
Product.refresh
public void refresh() { this.productProperties = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(new File(this.installDir, PRODUCT_PROPERTIES_PATH)); this.productProperties.load(fis); } catch (Exception e) { } finally { ...
java
public void refresh() { this.productProperties = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(new File(this.installDir, PRODUCT_PROPERTIES_PATH)); this.productProperties.load(fis); } catch (Exception e) { } finally { ...
[ "public", "void", "refresh", "(", ")", "{", "this", ".", "productProperties", "=", "new", "Properties", "(", ")", ";", "FileInputStream", "fis", "=", "null", ";", "try", "{", "fis", "=", "new", "FileInputStream", "(", "new", "File", "(", "this", ".", "...
Resets productProperties, featureDefs, installFeatureDefs, and mfp.
[ "Resets", "productProperties", "featureDefs", "installFeatureDefs", "and", "mfp", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Product.java#L67-L80
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestContext.java
RequestContext.getRequestMetadata
public static RequestMetadata getRequestMetadata() { RequestMetadata metadata = threadLocal.get(); if (metadata == null) metadata = getNoMetadata(); return metadata; }
java
public static RequestMetadata getRequestMetadata() { RequestMetadata metadata = threadLocal.get(); if (metadata == null) metadata = getNoMetadata(); return metadata; }
[ "public", "static", "RequestMetadata", "getRequestMetadata", "(", ")", "{", "RequestMetadata", "metadata", "=", "threadLocal", ".", "get", "(", ")", ";", "if", "(", "metadata", "==", "null", ")", "metadata", "=", "getNoMetadata", "(", ")", ";", "return", "me...
Gets the metadata for the current request @return the request metadata
[ "Gets", "the", "metadata", "for", "the", "current", "request" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestContext.java#L41-L46
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java
WsByteBufferPoolManagerImpl.initialize
public void initialize(int[] bufferEntrySizes, int[] bufferEntryDepths) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "initialize"); } // order both lists from smallest to largest, based only on Entry Sizes int len = bufferEntrySizes.lengt...
java
public void initialize(int[] bufferEntrySizes, int[] bufferEntryDepths) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "initialize"); } // order both lists from smallest to largest, based only on Entry Sizes int len = bufferEntrySizes.lengt...
[ "public", "void", "initialize", "(", "int", "[", "]", "bufferEntrySizes", ",", "int", "[", "]", "bufferEntryDepths", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ...
Initialize the pool manager with the number of pools, the entry sizes for each pool, and the maximum depth of the free pool. @param bufferEntrySizes the memory sizes of each entry in the pools @param bufferEntryDepths the maximum number of entries in the free pool
[ "Initialize", "the", "pool", "manager", "with", "the", "number", "of", "pools", "the", "entry", "sizes", "for", "each", "pool", "and", "the", "maximum", "depth", "of", "the", "free", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L260-L316
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java
WsByteBufferPoolManagerImpl.setLeakDetectionSettings
public void setLeakDetectionSettings(int interval, String output) throws IOException { this.leakDetectionInterval = interval; this.leakDetectionOutput = TrConfigurator.getLogLocation() + File.separator + output; if ((interval > -1) && (output != null)) { // clear file Fi...
java
public void setLeakDetectionSettings(int interval, String output) throws IOException { this.leakDetectionInterval = interval; this.leakDetectionOutput = TrConfigurator.getLogLocation() + File.separator + output; if ((interval > -1) && (output != null)) { // clear file Fi...
[ "public", "void", "setLeakDetectionSettings", "(", "int", "interval", ",", "String", "output", ")", "throws", "IOException", "{", "this", ".", "leakDetectionInterval", "=", "interval", ";", "this", ".", "leakDetectionOutput", "=", "TrConfigurator", ".", "getLogLocat...
Set the memory leak detection parameters. If the interval is 0 or greater, then the detection code will enabled. @param interval the minimum amount of time between leak detection code will be ran. Also the minimum amount of time that a buffer can go without being accessed before it will be flagged as a possible memory...
[ "Set", "the", "memory", "leak", "detection", "parameters", ".", "If", "the", "interval", "is", "0", "or", "greater", "then", "the", "detection", "code", "will", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L329-L338
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java
WsByteBufferPoolManagerImpl.allocateFileChannelBuffer
@Override public WsByteBuffer allocateFileChannelBuffer(FileChannel fc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "allocateFileChannelBuffer"); } return new FCWsByteBufferImpl(fc); }
java
@Override public WsByteBuffer allocateFileChannelBuffer(FileChannel fc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "allocateFileChannelBuffer"); } return new FCWsByteBufferImpl(fc); }
[ "@", "Override", "public", "WsByteBuffer", "allocateFileChannelBuffer", "(", "FileChannel", "fc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc...
Allocate a buffer which will use tha FileChannel until the buffer needs to be used in a "non-FileChannel" way. @param fc FileChannel to use for this buffer @return FCWsByteBuffer buffer which can now be used.
[ "Allocate", "a", "buffer", "which", "will", "use", "tha", "FileChannel", "until", "the", "buffer", "needs", "to", "be", "used", "in", "a", "non", "-", "FileChannel", "way", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L396-L402
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java
WsByteBufferPoolManagerImpl.allocateBufferDirect
protected WsByteBufferImpl allocateBufferDirect(WsByteBufferImpl buffer, int size, boolean overrideRefCount) { DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get(); ByteBuffer byteBuffer; if (directByteBufferHelper ...
java
protected WsByteBufferImpl allocateBufferDirect(WsByteBufferImpl buffer, int size, boolean overrideRefCount) { DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get(); ByteBuffer byteBuffer; if (directByteBufferHelper ...
[ "protected", "WsByteBufferImpl", "allocateBufferDirect", "(", "WsByteBufferImpl", "buffer", ",", "int", "size", ",", "boolean", "overrideRefCount", ")", "{", "DirectByteBufferHelper", "directByteBufferHelper", "=", "this", ".", "directByteBufferHelper", ".", "get", "(", ...
Allocate the direct ByteBuffer that will be wrapped by the input WsByteBuffer object. @param buffer @param size @param overrideRefCount
[ "Allocate", "the", "direct", "ByteBuffer", "that", "will", "be", "wrapped", "by", "the", "input", "WsByteBuffer", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L550-L561
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java
WsByteBufferPoolManagerImpl.releasing
protected void releasing(ByteBuffer buffer) { if (buffer != null && buffer.isDirect()) { DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get(); if (directByteBufferHelper != null) { directByteBufferHelper.releaseDirectByteBuffer(buffer); ...
java
protected void releasing(ByteBuffer buffer) { if (buffer != null && buffer.isDirect()) { DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get(); if (directByteBufferHelper != null) { directByteBufferHelper.releaseDirectByteBuffer(buffer); ...
[ "protected", "void", "releasing", "(", "ByteBuffer", "buffer", ")", "{", "if", "(", "buffer", "!=", "null", "&&", "buffer", ".", "isDirect", "(", ")", ")", "{", "DirectByteBufferHelper", "directByteBufferHelper", "=", "this", ".", "directByteBufferHelper", ".", ...
Method called when a buffer is being destroyed to allow any additional cleanup that might be required. @param buffer
[ "Method", "called", "when", "a", "buffer", "is", "being", "destroyed", "to", "allow", "any", "additional", "cleanup", "that", "might", "be", "required", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L621-L628
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConsumerProperties.java
ConsumerProperties.debug
public String debug() { String data = null; StringBuffer sb = new StringBuffer(); sb.append("ConsumerProperties"); sb.append("\n"); sb.append("------------------"); sb.append("\n"); sb.append("Destination: "); sb.append(getJmsDestination()); sb.append("\n"); ...
java
public String debug() { String data = null; StringBuffer sb = new StringBuffer(); sb.append("ConsumerProperties"); sb.append("\n"); sb.append("------------------"); sb.append("\n"); sb.append("Destination: "); sb.append(getJmsDestination()); sb.append("\n"); ...
[ "public", "String", "debug", "(", ")", "{", "String", "data", "=", "null", ";", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "sb", ".", "append", "(", "\"ConsumerProperties\"", ")", ";", "sb", ".", "append", "(", "\"\\n\"", ")", ";"...
Returns a printable form of the information stored in this object. @return String
[ "Returns", "a", "printable", "form", "of", "the", "information", "stored", "in", "this", "object", "." ]
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/ConsumerProperties.java#L198-L264
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java
CompositeResourceLibrary.loadAcceptPattern
private Pattern loadAcceptPattern(ExternalContext context) { assert context != null; String mappings = context.getInitParameter(ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME); if (mappings == null) { return null; } // Make sure the mappings contain somet...
java
private Pattern loadAcceptPattern(ExternalContext context) { assert context != null; String mappings = context.getInitParameter(ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME); if (mappings == null) { return null; } // Make sure the mappings contain somet...
[ "private", "Pattern", "loadAcceptPattern", "(", "ExternalContext", "context", ")", "{", "assert", "context", "!=", "null", ";", "String", "mappings", "=", "context", ".", "getInitParameter", "(", "ViewHandler", ".", "FACELETS_VIEW_MAPPINGS_PARAM_NAME", ")", ";", "if...
Load and compile a regular expression pattern built from the Facelet view mapping parameters. @param context the application's external context @return the compiled regular expression
[ "Load", "and", "compile", "a", "regular", "expression", "pattern", "built", "from", "the", "Facelet", "view", "mapping", "parameters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java#L101-L119
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java
CompositeResourceLibrary.toRegex
private String toRegex(String mappings) { assert mappings != null; // Get rid of spaces mappings = mappings.replaceAll("\\s", ""); // Escape '.' mappings = mappings.replaceAll("\\.", "\\\\."); // Change '*' to '.*' to represent any match mappings = mappings...
java
private String toRegex(String mappings) { assert mappings != null; // Get rid of spaces mappings = mappings.replaceAll("\\s", ""); // Escape '.' mappings = mappings.replaceAll("\\.", "\\\\."); // Change '*' to '.*' to represent any match mappings = mappings...
[ "private", "String", "toRegex", "(", "String", "mappings", ")", "{", "assert", "mappings", "!=", "null", ";", "// Get rid of spaces", "mappings", "=", "mappings", ".", "replaceAll", "(", "\"\\\\s\"", ",", "\"\"", ")", ";", "// Escape '.'", "mappings", "=", "ma...
Convert the specified mapping string to an equivalent regular expression. @param mappings le mapping string @return an uncompiled regular expression representing the mappings
[ "Convert", "the", "specified", "mapping", "string", "to", "an", "equivalent", "regular", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java#L150-L167
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/client/AbstractClient.java
AbstractClient.prepareConduitSelector
protected void prepareConduitSelector(Message message, URI currentURI, boolean proxy) { try { cfg.prepareConduitSelector(message); } catch (Fault ex) { LOG.warning("Failure to prepare a message from conduit selector"); } message.getExchange().put(ConduitSelector....
java
protected void prepareConduitSelector(Message message, URI currentURI, boolean proxy) { try { cfg.prepareConduitSelector(message); } catch (Fault ex) { LOG.warning("Failure to prepare a message from conduit selector"); } message.getExchange().put(ConduitSelector....
[ "protected", "void", "prepareConduitSelector", "(", "Message", "message", ",", "URI", "currentURI", ",", "boolean", "proxy", ")", "{", "try", "{", "cfg", ".", "prepareConduitSelector", "(", "message", ")", ";", "}", "catch", "(", "Fault", "ex", ")", "{", "...
or web client invocation has returned
[ "or", "web", "client", "invocation", "has", "returned" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/client/AbstractClient.java#L937-L956
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java
AbstractAliasDestinationHandler.isCorruptOrIndoubt
@Override public boolean isCorruptOrIndoubt() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isCorruptOrIndoubt"); boolean isCorruptOrIndoubt = _targetDestinationHandler.isCorruptOrIndoubt(); if (TraceComponent.isAnyTracingEnabled() && t...
java
@Override public boolean isCorruptOrIndoubt() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isCorruptOrIndoubt"); boolean isCorruptOrIndoubt = _targetDestinationHandler.isCorruptOrIndoubt(); if (TraceComponent.isAnyTracingEnabled() && t...
[ "@", "Override", "public", "boolean", "isCorruptOrIndoubt", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isCorruptOrIndoubt\"", "...
Is a real target destination corrupt?
[ "Is", "a", "real", "target", "destination", "corrupt?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java#L951-L963
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java
AbstractAliasDestinationHandler.delete
public void delete() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "delete"); //Tell the target of the alias to remove the backwards reference to it _targetDestinationHandler.removeTargettingAlias(this); if (TraceComponent.isAnyTracing...
java
public void delete() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "delete"); //Tell the target of the alias to remove the backwards reference to it _targetDestinationHandler.removeTargettingAlias(this); if (TraceComponent.isAnyTracing...
[ "public", "void", "delete", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"delete\"", ")", ";", "//Tell the target of the alias to ...
This destination handler is being deleted and should perform any processing required.
[ "This", "destination", "handler", "is", "being", "deleted", "and", "should", "perform", "any", "processing", "required", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java#L1143-L1151
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.setLayoutToPrimary
protected void setLayoutToPrimary(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, int segmentT...
java
protected void setLayoutToPrimary(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, int segmentT...
[ "protected", "void", "setLayoutToPrimary", "(", "int", "segmentLength", ",", "int", "priority", ",", "boolean", "isPooled", ",", "boolean", "isExchange", ",", "int", "packetNumber", ",", "int", "segmentType", ",", "SendListener", "sendListener", ")", "{", "if", ...
Sets the layout to use for this transmission to be a primary header only. @param segmentLength @param priority @param isPooled @param isExchange @param packetNumber @param segmentType @param sendListener
[ "Sets", "the", "layout", "to", "use", "for", "this", "transmission", "to", "be", "a", "primary", "header", "only", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L193-L212
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.setLayoutToConversation
protected void setLayoutToConversation(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
java
protected void setLayoutToConversation(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
[ "protected", "void", "setLayoutToConversation", "(", "int", "segmentLength", ",", "int", "priority", ",", "boolean", "isPooled", ",", "boolean", "isExchange", ",", "int", "packetNumber", ",", "int", "segmentType", ",", "int", "conversationId", ",", "int", "request...
Set layout for transmission to build to have a conversation header. @param segmentLength @param priority @param isPooled @param isExchange @param packetNumber @param segmentType @param conversationId @param requestNumber @param conversation @param sendListener
[ "Set", "layout", "for", "transmission", "to", "build", "to", "have", "a", "conversation", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L246-L265
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.setLayoutToStartSegment
protected void setLayoutToStartSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
java
protected void setLayoutToStartSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
[ "protected", "void", "setLayoutToStartSegment", "(", "int", "segmentLength", ",", "int", "priority", ",", "boolean", "isPooled", ",", "boolean", "isExchange", ",", "int", "packetNumber", ",", "int", "segmentType", ",", "int", "conversationId", ",", "int", "request...
Set next transmission being built to have a segment start layout
[ "Set", "next", "transmission", "being", "built", "to", "have", "a", "segment", "start", "layout" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L289-L307
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.setLayoutToMiddleSegment
protected void setLayoutToMiddleSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
java
protected void setLayoutToMiddleSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
[ "protected", "void", "setLayoutToMiddleSegment", "(", "int", "segmentLength", ",", "int", "priority", ",", "boolean", "isPooled", ",", "boolean", "isExchange", ",", "int", "packetNumber", ",", "int", "conversationId", ",", "int", "requestNumber", ")", "{", "if", ...
Set next transmission being built to have a segment middle layout
[ "Set", "next", "transmission", "being", "built", "to", "have", "a", "segment", "middle", "layout" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L310-L323
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.setLayoutToEndSegment
protected void setLayoutToEndSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
java
protected void setLayoutToEndSegment(int segmentLength, int priority, boolean isPooled, boolean isExchange, int packetNumber, ...
[ "protected", "void", "setLayoutToEndSegment", "(", "int", "segmentLength", ",", "int", "priority", ",", "boolean", "isPooled", ",", "boolean", "isExchange", ",", "int", "packetNumber", ",", "int", "conversationId", ",", "int", "requestNumber", ",", "Conversation", ...
Set next transmission being built to have a segment end layout
[ "Set", "next", "transmission", "being", "built", "to", "have", "a", "segment", "end", "layout" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L326-L340
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.isPooledBuffers
protected boolean isPooledBuffers() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isPooledBuffers"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isPooledBuffers", ""+primaryHeaderFields.isPooled); return primaryHeaderFields.isPooled; }
java
protected boolean isPooledBuffers() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isPooledBuffers"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isPooledBuffers", ""+primaryHeaderFields.isPooled); return primaryHeaderFields.isPooled; }
[ "protected", "boolean", "isPooledBuffers", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isPooledBuffers\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")",...
Returns true iff this transmission should be received into pooled buffers. @return Returns true iff this transmission should be received into pooled buffers.
[ "Returns", "true", "iff", "this", "transmission", "should", "be", "received", "into", "pooled", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L448-L453
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.isUserRequest
protected boolean isUserRequest() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isUserRequest"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isUserRequest", ""+isUserRequest); return isUserRequest; }
java
protected boolean isUserRequest() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isUserRequest"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isUserRequest", ""+isUserRequest); return isUserRequest; }
[ "protected", "boolean", "isUserRequest", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isUserRequest\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "...
Returns true iff this transmission is a user request. @return Returns true iff this transmission is a user request.
[ "Returns", "true", "iff", "this", "transmission", "is", "a", "user", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L481-L486
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.isTerminal
protected boolean isTerminal() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isTermainl"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isTermainl", ""+isTerminal); return isTerminal; }
java
protected boolean isTerminal() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isTermainl"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isTermainl", ""+isTerminal); return isTerminal; }
[ "protected", "boolean", "isTerminal", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isTermainl\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr"...
Returns true if this transmission should stop this connection from writing any more data to the socket. @return Returns true if this transmission should stop this connection from writing any more data to the socket.
[ "Returns", "true", "if", "this", "transmission", "should", "stop", "this", "connection", "from", "writing", "any", "more", "data", "to", "the", "socket", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L494-L499
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.buildHeader
private boolean buildHeader(HeaderFields headerFields, WsByteBuffer xmitBuffer) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildHeader", new Object[] {headerFields, xmitBuffer}); if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer"); boolean...
java
private boolean buildHeader(HeaderFields headerFields, WsByteBuffer xmitBuffer) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildHeader", new Object[] {headerFields, xmitBuffer}); if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer"); boolean...
[ "private", "boolean", "buildHeader", "(", "HeaderFields", "headerFields", ",", "WsByteBuffer", "xmitBuffer", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"buildHeader\"", ",", "new", ...
Builds a header from a description of the header fields. The header is incrementally built into the supplied transmission buffer. This may require use of a scratch space in the event that there is insufficient room in the transmission buffer on the first attempt. @param headerFields @param xmitBuffer @return True if ...
[ "Builds", "a", "header", "from", "a", "description", "of", "the", "header", "fields", ".", "The", "header", "is", "incrementally", "built", "into", "the", "supplied", "transmission", "buffer", ".", "This", "may", "require", "use", "of", "a", "scratch", "spac...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L538-L600
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java
TransmissionData.buildPayload
private boolean buildPayload(WsByteBuffer xmitBuffer) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildPayload", xmitBuffer); if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer"); boolean payloadFinished = false; int amountCopied, amou...
java
private boolean buildPayload(WsByteBuffer xmitBuffer) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildPayload", xmitBuffer); if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer"); boolean payloadFinished = false; int amountCopied, amou...
[ "private", "boolean", "buildPayload", "(", "WsByteBuffer", "xmitBuffer", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"buildPayload\"", ",", "xmitBuffer", ")", ";", "if", "(", "tc"...
Builds a transmission payload into the supplied buffer. This may be done incrementally by multiple invocations in the case that the supplied buffer is smaller than the payload being built. @param xmitBuffer @return True if the payload was completely built
[ "Builds", "a", "transmission", "payload", "into", "the", "supplied", "buffer", ".", "This", "may", "be", "done", "incrementally", "by", "multiple", "invocations", "in", "the", "case", "that", "the", "supplied", "buffer", "is", "smaller", "than", "the", "payloa...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L609-L648
train