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.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java
JsMessageFactoryImpl.createSpecialisedMessage
private final JsMessage createSpecialisedMessage(JsMsgObject jmo) { JsMessage message = null; /* For an API message, we need to return an instance of the appropriate */ /* specialisation. */ if (jmo.getChoiceField(JsHdrAccess.API) == JsHdrAccess...
java
private final JsMessage createSpecialisedMessage(JsMsgObject jmo) { JsMessage message = null; /* For an API message, we need to return an instance of the appropriate */ /* specialisation. */ if (jmo.getChoiceField(JsHdrAccess.API) == JsHdrAccess...
[ "private", "final", "JsMessage", "createSpecialisedMessage", "(", "JsMsgObject", "jmo", ")", "{", "JsMessage", "message", "=", "null", ";", "/* For an API message, we need to return an instance of the appropriate */", "/* specialisation. ...
Returns a new JsMessage instance, of the subclass appropriate to the message content. @param jmo The JsMsgObject containing the guts of the message @return JsMessage A new instance of the appropriate JsMessage implementation
[ "Returns", "a", "new", "JsMessage", "instance", "of", "the", "subclass", "appropriate", "to", "the", "message", "content", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java#L594-L614
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/transactions/PersistentTranId.java
PersistentTranId.bytesToInt
private int bytesToInt(byte[] bytes) { int result = -1; if (bytes.length >= 4) { result = ((bytes[0]&0xff) << 24) + ((bytes[1]&0xff) << 16) + ((bytes[2]&0xff) << 8) + (bytes[3]&0xff); } return result; ...
java
private int bytesToInt(byte[] bytes) { int result = -1; if (bytes.length >= 4) { result = ((bytes[0]&0xff) << 24) + ((bytes[1]&0xff) << 16) + ((bytes[2]&0xff) << 8) + (bytes[3]&0xff); } return result; ...
[ "private", "int", "bytesToInt", "(", "byte", "[", "]", "bytes", ")", "{", "int", "result", "=", "-", "1", ";", "if", "(", "bytes", ".", "length", ">=", "4", ")", "{", "result", "=", "(", "(", "bytes", "[", "0", "]", "&", "0xff", ")", "<<", "2...
A helper function which extracts an int from a byte array representation
[ "A", "helper", "function", "which", "extracts", "an", "int", "from", "a", "byte", "array", "representation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/transactions/PersistentTranId.java#L361-L372
train
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/ServiceEventAdapter.java
ServiceEventAdapter.getTopic
private String getTopic(ServiceEvent serviceEvent) { StringBuilder topic = new StringBuilder(SERVICE_EVENT_TOPIC_PREFIX); switch (serviceEvent.getType()) { case ServiceEvent.REGISTERED: topic.append("REGISTERED"); break; case ServiceEvent.MODIFIED...
java
private String getTopic(ServiceEvent serviceEvent) { StringBuilder topic = new StringBuilder(SERVICE_EVENT_TOPIC_PREFIX); switch (serviceEvent.getType()) { case ServiceEvent.REGISTERED: topic.append("REGISTERED"); break; case ServiceEvent.MODIFIED...
[ "private", "String", "getTopic", "(", "ServiceEvent", "serviceEvent", ")", "{", "StringBuilder", "topic", "=", "new", "StringBuilder", "(", "SERVICE_EVENT_TOPIC_PREFIX", ")", ";", "switch", "(", "serviceEvent", ".", "getType", "(", ")", ")", "{", "case", "Servic...
Determine the appropriate topic to use for the Service Event. @param serviceEvent the service event that is being adapted @return the topic or null if the event is not supported
[ "Determine", "the", "appropriate", "topic", "to", "use", "for", "the", "Service", "Event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/ServiceEventAdapter.java#L108-L126
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java
ClientNotificationFilter.updateFilters
public synchronized void updateFilters(NotificationFilter[] filtersArray) { filters.clear(); if (filtersArray != null) Collections.addAll(filters, filtersArray); }
java
public synchronized void updateFilters(NotificationFilter[] filtersArray) { filters.clear(); if (filtersArray != null) Collections.addAll(filters, filtersArray); }
[ "public", "synchronized", "void", "updateFilters", "(", "NotificationFilter", "[", "]", "filtersArray", ")", "{", "filters", ".", "clear", "(", ")", ";", "if", "(", "filtersArray", "!=", "null", ")", "Collections", ".", "addAll", "(", "filters", ",", "filter...
Override the list of filters with given array.
[ "Override", "the", "list", "of", "filters", "with", "given", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java#L54-L58
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java
ClientNotificationFilter.isNotificationEnabled
@Override public synchronized boolean isNotificationEnabled(Notification notification) { if (filters.isEmpty()) { //Allow all return true; } final Iterator<NotificationFilter> i = filters.iterator(); while (i.hasNext()) { if (i.next().isNotificati...
java
@Override public synchronized boolean isNotificationEnabled(Notification notification) { if (filters.isEmpty()) { //Allow all return true; } final Iterator<NotificationFilter> i = filters.iterator(); while (i.hasNext()) { if (i.next().isNotificati...
[ "@", "Override", "public", "synchronized", "boolean", "isNotificationEnabled", "(", "Notification", "notification", ")", "{", "if", "(", "filters", ".", "isEmpty", "(", ")", ")", "{", "//Allow all", "return", "true", ";", "}", "final", "Iterator", "<", "Notifi...
Handle notification filtering according to stored filters.
[ "Handle", "notification", "filtering", "according", "to", "stored", "filters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java#L63-L78
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getApplicationExceptionRollback
public Boolean getApplicationExceptionRollback(Throwable t) // F743-14982 { Class<?> klass = t.getClass(); ApplicationException ae = getApplicationException(klass); Boolean rollback = null; if (ae != null) { rollback = ae.rollback(); } // Prior to...
java
public Boolean getApplicationExceptionRollback(Throwable t) // F743-14982 { Class<?> klass = t.getClass(); ApplicationException ae = getApplicationException(klass); Boolean rollback = null; if (ae != null) { rollback = ae.rollback(); } // Prior to...
[ "public", "Boolean", "getApplicationExceptionRollback", "(", "Throwable", "t", ")", "// F743-14982", "{", "Class", "<", "?", ">", "klass", "=", "t", ".", "getClass", "(", ")", ";", "ApplicationException", "ae", "=", "getApplicationException", "(", "klass", ")", ...
Gets the application exception and rollback status of the specified exception. @param t the exception @return null if the exception is not an application exception; otherwise, Boolean.TRUE if the exception should cause rollback or Boolean.FALSE if it should not
[ "Gets", "the", "application", "exception", "and", "rollback", "status", "of", "the", "specified", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L385-L425
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getApplicationException
private ApplicationException getApplicationException(Class<?> klass) // F743-14982 { ApplicationException result = null; if (ivApplicationExceptionMap != null) { result = ivApplicationExceptionMap.get(klass.getName()); if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private ApplicationException getApplicationException(Class<?> klass) // F743-14982 { ApplicationException result = null; if (ivApplicationExceptionMap != null) { result = ivApplicationExceptionMap.get(klass.getName()); if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "ApplicationException", "getApplicationException", "(", "Class", "<", "?", ">", "klass", ")", "// F743-14982", "{", "ApplicationException", "result", "=", "null", ";", "if", "(", "ivApplicationExceptionMap", "!=", "null", ")", "{", "result", "=", "ivApp...
Gets the application exception status of the specified exception class from either the deployment descriptor or from the annotation. @param klass is the Throwable class @return the settings, or null if no application-exception was provided for the specified class.
[ "Gets", "the", "application", "exception", "status", "of", "the", "specified", "exception", "class", "from", "either", "the", "deployment", "descriptor", "or", "from", "the", "annotation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L436-L458
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getComponentMetaDatas
@Override public ComponentMetaData[] getComponentMetaDatas() { ComponentMetaData[] initializedComponentMetaDatas = null; synchronized (ivEJBApplicationMetaData) { initializedComponentMetaDatas = new ComponentMetaData[ivNumFullyInitializedBeans]; int i = 0; ...
java
@Override public ComponentMetaData[] getComponentMetaDatas() { ComponentMetaData[] initializedComponentMetaDatas = null; synchronized (ivEJBApplicationMetaData) { initializedComponentMetaDatas = new ComponentMetaData[ivNumFullyInitializedBeans]; int i = 0; ...
[ "@", "Override", "public", "ComponentMetaData", "[", "]", "getComponentMetaDatas", "(", ")", "{", "ComponentMetaData", "[", "]", "initializedComponentMetaDatas", "=", "null", ";", "synchronized", "(", "ivEJBApplicationMetaData", ")", "{", "initializedComponentMetaDatas", ...
Return an Array of fully initialized ComponentMetaDatas for this modules.
[ "Return", "an", "Array", "of", "fully", "initialized", "ComponentMetaDatas", "for", "this", "modules", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L491-L511
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.toDumpString
public String toDumpString() { // Get the New Line separator from the Java system property. String newLine = AccessController.doPrivileged(new SystemGetPropertyPrivileged("line.separator", "\n")); StringBuilder sb = new StringBuilder(toString()); String indent = " "; sb.app...
java
public String toDumpString() { // Get the New Line separator from the Java system property. String newLine = AccessController.doPrivileged(new SystemGetPropertyPrivileged("line.separator", "\n")); StringBuilder sb = new StringBuilder(toString()); String indent = " "; sb.app...
[ "public", "String", "toDumpString", "(", ")", "{", "// Get the New Line separator from the Java system property.", "String", "newLine", "=", "AccessController", ".", "doPrivileged", "(", "new", "SystemGetPropertyPrivileged", "(", "\"line.separator\"", ",", "\"\\n\"", ")", "...
Return a String with EJB Container's module level runtime config data
[ "Return", "a", "String", "with", "EJB", "Container", "s", "module", "level", "runtime", "config", "data" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L544-L596
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.addApplicationEventListener
public void addApplicationEventListener(EJBApplicationEventListener listener) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addApplicationEventListener: " + listener); if (ivApplicationEventLis...
java
public void addApplicationEventListener(EJBApplicationEventListener listener) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addApplicationEventListener: " + listener); if (ivApplicationEventLis...
[ "public", "void", "addApplicationEventListener", "(", "EJBApplicationEventListener", "listener", ")", "// F743-26072", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "i...
Adds a new application even listener to be notified when an application has fully started or will begin stopping. @param listener the listener
[ "Adds", "a", "new", "application", "even", "listener", "to", "be", "notified", "when", "an", "application", "has", "fully", "started", "or", "will", "begin", "stopping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L656-L667
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.addAutomaticTimerBean
public void addAutomaticTimerBean(AutomaticTimerBean timerBean) // d604213 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "addAutomaticTimerBean: " + timerBean.getBeanMetaData().j2eeName); if (ivAutomaticTimerBeans == null) { ivAutoma...
java
public void addAutomaticTimerBean(AutomaticTimerBean timerBean) // d604213 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "addAutomaticTimerBean: " + timerBean.getBeanMetaData().j2eeName); if (ivAutomaticTimerBeans == null) { ivAutoma...
[ "public", "void", "addAutomaticTimerBean", "(", "AutomaticTimerBean", "timerBean", ")", "// d604213", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", ...
Adds a list of timer method metadata for a bean belonging to this application. This method will only be called for beans that contain automatic timers. @param timerBean the list of timer method metadata
[ "Adds", "a", "list", "of", "timer", "method", "metadata", "for", "a", "bean", "belonging", "to", "this", "application", ".", "This", "method", "will", "only", "be", "called", "for", "beans", "that", "contain", "automatic", "timers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L676-L689
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.freeResourcesAfterAllBeansInitialized
public void freeResourcesAfterAllBeansInitialized(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "freeResourcesAfterAllBeansInitialized: " + bmd.j2eeName + ", " + (ivNumFullyI...
java
public void freeResourcesAfterAllBeansInitialized(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "freeResourcesAfterAllBeansInitialized: " + bmd.j2eeName + ", " + (ivNumFullyI...
[ "public", "void", "freeResourcesAfterAllBeansInitialized", "(", "BeanMetaData", "bmd", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")",...
d462512 - log orphan warning message.
[ "d462512", "-", "log", "orphan", "warning", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L705-L731
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.setVersionedModuleBaseName
@Override public void setVersionedModuleBaseName(String appBaseName, String modBaseName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "ModuleName = " + ivName + ", VersionedBaseName = " + appBaseName + "#" + modBaseName); i...
java
@Override public void setVersionedModuleBaseName(String appBaseName, String modBaseName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "ModuleName = " + ivName + ", VersionedBaseName = " + appBaseName + "#" + modBaseName); i...
[ "@", "Override", "public", "void", "setVersionedModuleBaseName", "(", "String", "appBaseName", ",", "String", "modBaseName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", "....
F54184 F54184.2
[ "F54184", "F54184", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L738-L758
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.addElement
private void addElement(String value) { if (null == value) { return; } this.num_items++; this.genericValues.add(value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addElement: " + value + " num: " + this.num_items); ...
java
private void addElement(String value) { if (null == value) { return; } this.num_items++; this.genericValues.add(value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addElement: " + value + " num: " + this.num_items); ...
[ "private", "void", "addElement", "(", "String", "value", ")", "{", "if", "(", "null", "==", "value", ")", "{", "return", ";", "}", "this", ".", "num_items", "++", ";", "this", ".", "genericValues", ".", "add", "(", "value", ")", ";", "if", "(", "Tr...
Add the given element to the generic no-key storage. The value must be in lowercase form by the time of this call. @param value - if null then nothing is stored
[ "Add", "the", "given", "element", "to", "the", "generic", "no", "-", "key", "storage", ".", "The", "value", "must", "be", "in", "lowercase", "form", "by", "the", "time", "of", "this", "call", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L94-L103
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.addElement
private void addElement(String key, String value) { this.num_items++; List<String> vals = this.values.get(key); if (null == vals) { vals = new LinkedList<String>(); } if (null == value) { vals.add("\"\""); } else { vals.add(value); ...
java
private void addElement(String key, String value) { this.num_items++; List<String> vals = this.values.get(key); if (null == vals) { vals = new LinkedList<String>(); } if (null == value) { vals.add("\"\""); } else { vals.add(value); ...
[ "private", "void", "addElement", "(", "String", "key", ",", "String", "value", ")", "{", "this", ".", "num_items", "++", ";", "List", "<", "String", ">", "vals", "=", "this", ".", "values", ".", "get", "(", "key", ")", ";", "if", "(", "null", "==",...
Add the given key=value pair into storage. Both key and value must be in lowercase form. If this key already exists, then this value will be appended to the existing values. @param key @param value - if null then an empty string value is stored
[ "Add", "the", "given", "key", "=", "value", "pair", "into", "storage", ".", "Both", "key", "and", "value", "must", "be", "in", "lowercase", "form", ".", "If", "this", "key", "already", "exists", "then", "this", "value", "will", "be", "appended", "to", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L113-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.parse
private void parse(String input) { char[] data = input.toCharArray(); int start = 0; int hard_stop = data.length - 1; while (start < data.length) { if (this.mySep == data[start]) { start++; continue; } // look for the '=...
java
private void parse(String input) { char[] data = input.toCharArray(); int start = 0; int hard_stop = data.length - 1; while (start < data.length) { if (this.mySep == data[start]) { start++; continue; } // look for the '=...
[ "private", "void", "parse", "(", "String", "input", ")", "{", "char", "[", "]", "data", "=", "input", ".", "toCharArray", "(", ")", ";", "int", "start", "=", "0", ";", "int", "hard_stop", "=", "data", ".", "length", "-", "1", ";", "while", "(", "...
Parse the input string for all value possibilities. @param input
[ "Parse", "the", "input", "string", "for", "all", "value", "possibilities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L135-L186
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.extractString
private String extractString(char[] data, int start, int end) { // skip leading whitespace and quotes while (start < end && (' ' == data[start] || '\t' == data[start] || '"' == data[start])) { start++; } // ignore trailing whitespace and quotes while (e...
java
private String extractString(char[] data, int start, int end) { // skip leading whitespace and quotes while (start < end && (' ' == data[start] || '\t' == data[start] || '"' == data[start])) { start++; } // ignore trailing whitespace and quotes while (e...
[ "private", "String", "extractString", "(", "char", "[", "]", "data", ",", "int", "start", ",", "int", "end", ")", "{", "// skip leading whitespace and quotes", "while", "(", "start", "<", "end", "&&", "(", "'", "'", "==", "data", "[", "start", "]", "||",...
Extract a string from the input array based on the start and end markers. This will strip off any leading and trailing white space or quotes. @param data @param start @param end @return String (lowercase converted)
[ "Extract", "a", "string", "from", "the", "input", "array", "based", "on", "the", "start", "and", "end", "markers", ".", "This", "will", "strip", "off", "any", "leading", "and", "trailing", "white", "space", "or", "quotes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L197-L218
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.add
public boolean add(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.genericValues, value)) { addElement(value); return true; } return false; }
java
public boolean add(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.genericValues, value)) { addElement(value); return true; } return false; }
[ "public", "boolean", "add", "(", "String", "inputValue", ")", "{", "String", "value", "=", "Normalizer", ".", "normalize", "(", "inputValue", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "if", "(", "!", "contains", "(", "this", ".", "genericValues", ...
Add the generic value to this handler with no required key. @param inputValue @return boolean (true means success adding)
[ "Add", "the", "generic", "value", "to", "this", "handler", "with", "no", "required", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L226-L233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.add
public boolean add(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.values.get(key), value)) { addElement(key, value); ...
java
public boolean add(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.values.get(key), value)) { addElement(key, value); ...
[ "public", "boolean", "add", "(", "String", "inputKey", ",", "String", "inputValue", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "String", "value", "=", "Normalizer", "....
Add the given key=value pair to this handler. @param inputKey @param inputValue @return boolean (true means success adding)
[ "Add", "the", "given", "key", "=", "value", "pair", "to", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L242-L250
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
private boolean remove(List<String> list, String item) { if (null != list) { if (list.remove(item)) { this.num_items--; return true; } } return false; }
java
private boolean remove(List<String> list, String item) { if (null != list) { if (list.remove(item)) { this.num_items--; return true; } } return false; }
[ "private", "boolean", "remove", "(", "List", "<", "String", ">", "list", ",", "String", "item", ")", "{", "if", "(", "null", "!=", "list", ")", "{", "if", "(", "list", ".", "remove", "(", "item", ")", ")", "{", "this", ".", "num_items", "--", ";"...
Remove the given item from the input list, if present, and update the item counter appropriately. @param list @param item @return boolean (true means removed)
[ "Remove", "the", "given", "item", "from", "the", "input", "list", "if", "present", "and", "update", "the", "item", "counter", "appropriately", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L260-L268
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
public boolean remove(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.values.get(key), value); if (TraceComponent.isAnyTrac...
java
public boolean remove(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.values.get(key), value); if (TraceComponent.isAnyTrac...
[ "public", "boolean", "remove", "(", "String", "inputKey", ",", "String", "inputValue", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "String", "value", "=", "Normalizer", ...
Remove this specific key=value pair from storage. If this key exists with other values, then those will not be touched, only the target value. @param inputKey @param inputValue @return boolean (true means success removing)
[ "Remove", "this", "specific", "key", "=", "value", "pair", "from", "storage", ".", "If", "this", "key", "exists", "with", "other", "values", "then", "those", "will", "not", "be", "touched", "only", "the", "target", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L278-L286
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
public boolean remove(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.genericValues, value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "remove: " + value + " rc=" + rc); ...
java
public boolean remove(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.genericValues, value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "remove: " + value + " rc=" + rc); ...
[ "public", "boolean", "remove", "(", "String", "inputValue", ")", "{", "String", "value", "=", "Normalizer", ".", "normalize", "(", "inputValue", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "boolean", "rc", "=", "remove", "(", "this", ".", "genericVa...
Remove the target value from the generic no-key storage. @param inputValue @return boolean (true means success removing)
[ "Remove", "the", "target", "value", "from", "the", "generic", "no", "-", "key", "storage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L294-L301
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.removeKey
public int removeKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); int num_removed = 0; List<String> vals = this.values.remove(key); if (null != vals) { num_removed = vals.size(); } this.num_items -= num_removed; ...
java
public int removeKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); int num_removed = 0; List<String> vals = this.values.remove(key); if (null != vals) { num_removed = vals.size(); } this.num_items -= num_removed; ...
[ "public", "int", "removeKey", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "int", "num_removed", "=", "0", ";", "List", "<", "String", ">", ...
Remove an entire key from storage, regardless of how many values it may contain. @param inputKey @return int (number of items removed by this action)
[ "Remove", "an", "entire", "key", "from", "storage", "regardless", "of", "how", "many", "values", "it", "may", "contain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L310-L322
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.contains
private boolean contains(List<String> list, String item) { return (null == list) ? false : list.contains(item); }
java
private boolean contains(List<String> list, String item) { return (null == list) ? false : list.contains(item); }
[ "private", "boolean", "contains", "(", "List", "<", "String", ">", "list", ",", "String", "item", ")", "{", "return", "(", "null", "==", "list", ")", "?", "false", ":", "list", ".", "contains", "(", "item", ")", ";", "}" ]
Query whether the target list contains the item. @param list @param item @return boolean
[ "Query", "whether", "the", "target", "list", "contains", "the", "item", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L331-L333
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.containsKey
public boolean containsKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> list = this.values.get(key); boolean rc = (null == list) ? false : !list.isEmpty(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
java
public boolean containsKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> list = this.values.get(key); boolean rc = (null == list) ? false : !list.isEmpty(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
[ "public", "boolean", "containsKey", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "List", "<", "String", ">", "list", "=", "this", ".", "valu...
Query whether the target key exists with any values in this handler. @param inputKey @return boolean
[ "Query", "whether", "the", "target", "key", "exists", "with", "any", "values", "in", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L356-L364
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.getValues
public Iterator<String> getValues(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> vals = this.values.get(key); if (null != vals) { return vals.iterator(); } return new LinkedList<String>().iterator(); }
java
public Iterator<String> getValues(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> vals = this.values.get(key); if (null != vals) { return vals.iterator(); } return new LinkedList<String>().iterator(); }
[ "public", "Iterator", "<", "String", ">", "getValues", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "List", "<", "String", ">", "vals", "=",...
Access an iterator of all values for the target key. @param inputKey @return Iterator (empty list if none present)
[ "Access", "an", "iterator", "of", "all", "values", "for", "the", "target", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L398-L405
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.marshall
public String marshall() { if (0 == this.num_items) { return ""; } boolean shouldPrepend = false; StringBuilder output = new StringBuilder(10 * this.num_items); // walk through the list of simple values (no key=value) first Iterator<String> i = this.genericVal...
java
public String marshall() { if (0 == this.num_items) { return ""; } boolean shouldPrepend = false; StringBuilder output = new StringBuilder(10 * this.num_items); // walk through the list of simple values (no key=value) first Iterator<String> i = this.genericVal...
[ "public", "String", "marshall", "(", ")", "{", "if", "(", "0", "==", "this", ".", "num_items", ")", "{", "return", "\"\"", ";", "}", "boolean", "shouldPrepend", "=", "false", ";", "StringBuilder", "output", "=", "new", "StringBuilder", "(", "10", "*", ...
Take the current data in this handler and create the properly formatted string that would represent the header. @return String (empty string if no values are present)
[ "Take", "the", "current", "data", "in", "this", "handler", "and", "create", "the", "properly", "formatted", "string", "that", "would", "represent", "the", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L413-L470
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.clear
public void clear() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Clearing this header handler: " + this); } this.num_items = 0; this.values.clear(); this.genericValues.clear(); }
java
public void clear() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Clearing this header handler: " + this); } this.num_items = 0; this.values.clear(); this.genericValues.clear(); }
[ "public", "void", "clear", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Clearing this header handler: \"", "+", "this", ")", ...
Clear everything out of storage for this handler.
[ "Clear", "everything", "out", "of", "storage", "for", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L493-L500
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.proddle
protected void proddle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "proddle"); boolean useThisThread = false; synchronized (priorityQueue) { synchronized (this) { if (idle) { useThi...
java
protected void proddle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "proddle"); boolean useThisThread = false; synchronized (priorityQueue) { synchronized (this) { if (idle) { useThi...
[ "protected", "void", "proddle", "(", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
being F176003, F181603.2, D192359
[ "being", "F176003", "F181603", ".", "2", "D192359" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L135-L154
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.complete
public void complete(NetworkConnection vc, IOWriteRequestContext wctx) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "complete", new Object[] {vc, wctx}); if (connection.isLoggingIOEvents()) connection.getConnectionEventRecorder().logDebug("complete method invoked ...
java
public void complete(NetworkConnection vc, IOWriteRequestContext wctx) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "complete", new Object[] {vc, wctx}); if (connection.isLoggingIOEvents()) connection.getConnectionEventRecorder().logDebug("complete method invoked ...
[ "public", "void", "complete", "(", "NetworkConnection", "vc", ",", "IOWriteRequestContext", "wctx", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "th...
begin F181603.2, D192359
[ "begin", "F181603", ".", "2", "D192359" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L162-L208
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.doWork
private void doWork(boolean hasWritten) throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doWork", Boolean.valueOf(hasWritten)); final BlockingQueue<Pair<SendListener,Conversation>> readySendCallbacks = new LinkedBlock...
java
private void doWork(boolean hasWritten) throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doWork", Boolean.valueOf(hasWritten)); final BlockingQueue<Pair<SendListener,Conversation>> readySendCallbacks = new LinkedBlock...
[ "private", "void", "doWork", "(", "boolean", "hasWritten", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "thi...
Looks to initiate write operations to write all available data from the priority queue to the network. Continues until all data has been sent or until the return from a write call indicates its completion will be asynchronous. Once it has finished writing on this thread, calls the registered send listeners for all mess...
[ "Looks", "to", "initiate", "write", "operations", "to", "write", "all", "available", "data", "from", "the", "priority", "queue", "to", "the", "network", ".", "Continues", "until", "all", "data", "has", "been", "sent", "or", "until", "the", "return", "from", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L219-L263
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.notifyReadySendListeners
private void notifyReadySendListeners(BlockingQueue<Pair<SendListener, Conversation>> readySendCallbacks) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyReadySendListeners", readySendCallbacks); try { for (Pair<SendListener, Conversation> callback : ...
java
private void notifyReadySendListeners(BlockingQueue<Pair<SendListener, Conversation>> readySendCallbacks) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyReadySendListeners", readySendCallbacks); try { for (Pair<SendListener, Conversation> callback : ...
[ "private", "void", "notifyReadySendListeners", "(", "BlockingQueue", "<", "Pair", "<", "SendListener", ",", "Conversation", ">", ">", "readySendCallbacks", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnable...
Call send listener callback for each entry in the given queue. Any exception thrown from a listener's callback will cause the connection to be invalidated. @param readySendCallbacks
[ "Call", "send", "listener", "callback", "for", "each", "entry", "in", "the", "given", "queue", ".", "Any", "exception", "thrown", "from", "a", "listener", "s", "callback", "will", "cause", "the", "connection", "to", "be", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L270-L285
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.switchToIdle
private boolean switchToIdle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "switchToIdle"); final boolean noMoreWork; synchronized (priorityQueue) { synchronized (this) { noMoreWork = !isWorkAvailable...
java
private boolean switchToIdle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "switchToIdle"); final boolean noMoreWork; synchronized (priorityQueue) { synchronized (this) { noMoreWork = !isWorkAvailable...
[ "private", "boolean", "switchToIdle", "(", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Switch the 'idle' flag back to 'true', provided that there is no work available. @return true iff 'idle' was set to 'true'; false iff there is now work available. @throws SIConnectionDroppedException
[ "Switch", "the", "idle", "flag", "back", "to", "true", "provided", "that", "there", "is", "no", "work", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L292-L303
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.getWriteContextBuffer
private WsByteBuffer getWriteContextBuffer() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getWriteContextBuffer"); WsByteBuffer writeBuffer = getSoleWriteContextBuffer(); if (firstInvocation.compareAndSet(true, false) || (writeBuffer == null)) { f...
java
private WsByteBuffer getWriteContextBuffer() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getWriteContextBuffer"); WsByteBuffer writeBuffer = getSoleWriteContextBuffer(); if (firstInvocation.compareAndSet(true, false) || (writeBuffer == null)) { f...
[ "private", "WsByteBuffer", "getWriteContextBuffer", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getWriteContextBuffer...
Returns the single WsByteBuffer set in 'writeCtx', ensuring that it is a direct byte buffer and is of sufficient capacity. @return the (single, non-null) byte buffer set in 'writeCtx'.
[ "Returns", "the", "single", "WsByteBuffer", "set", "in", "writeCtx", "ensuring", "that", "it", "is", "a", "direct", "byte", "buffer", "and", "is", "of", "sufficient", "capacity", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L310-L331
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.getSoleWriteContextBuffer
private WsByteBuffer getSoleWriteContextBuffer() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSoleWriteContextBuffer"); WsByteBuffer writeBuffer = null; final WsByteBuffer[] writeBuffers = writeCtx.getBuffers(); if (writeBuffers != null) { ...
java
private WsByteBuffer getSoleWriteContextBuffer() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSoleWriteContextBuffer"); WsByteBuffer writeBuffer = null; final WsByteBuffer[] writeBuffers = writeCtx.getBuffers(); if (writeBuffers != null) { ...
[ "private", "WsByteBuffer", "getSoleWriteContextBuffer", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getSoleWriteConte...
Returns the first WsByteBuffer set in 'writeCtx', ensuring that it is the sole byte buffer set in 'writeCtx', and releasing any other byte buffers that had been registered there. @return the sole byte buffer set in 'writeCtx'; maybe null if there is no such byte buffer.
[ "Returns", "the", "first", "WsByteBuffer", "set", "in", "writeCtx", "ensuring", "that", "it", "is", "the", "sole", "byte", "buffer", "set", "in", "writeCtx", "and", "releasing", "any", "other", "byte", "buffers", "that", "had", "been", "registered", "there", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L338-L356
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.physicalCloseNotification
protected void physicalCloseNotification() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "physicalCloseNotification"); synchronized(connectionClosedLock) { connectionClosed = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
protected void physicalCloseNotification() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "physicalCloseNotification"); synchronized(connectionClosedLock) { connectionClosed = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
[ "protected", "void", "physicalCloseNotification", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"physicalCloseNotificati...
Register notification that the physical underlying connection has been closed.
[ "Register", "notification", "that", "the", "physical", "underlying", "connection", "has", "been", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L427-L433
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.isWorkAvailable
private boolean isWorkAvailable() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isWorkAvailable"); final boolean isWork; if (terminate) { isWork = false; } else { isWork = (partiallySentTransmission...
java
private boolean isWorkAvailable() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isWorkAvailable"); final boolean isWork; if (terminate) { isWork = false; } else { isWork = (partiallySentTransmission...
[ "private", "boolean", "isWorkAvailable", "(", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc"...
Returns true iff there is more work available to be processed. @return true iff there is more work available to be processed. @throws SIConnectionDroppedException
[ "Returns", "true", "iff", "there", "is", "more", "work", "available", "to", "be", "processed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L501-L511
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.7.0_fat/fat/src/com/ibm/ws/javaee/v70/fat/FATServerHelper.java
FATServerHelper.addWarToServer
public static boolean addWarToServer( LibertyServer targetServer, String targetDir, String warName, String[] warPackageNames, boolean addWarResources) throws Exception { String earName = null; boolean addEarResources = DO_NOT_ADD_RESOURCES; String jarName = null; boolea...
java
public static boolean addWarToServer( LibertyServer targetServer, String targetDir, String warName, String[] warPackageNames, boolean addWarResources) throws Exception { String earName = null; boolean addEarResources = DO_NOT_ADD_RESOURCES; String jarName = null; boolea...
[ "public", "static", "boolean", "addWarToServer", "(", "LibertyServer", "targetServer", ",", "String", "targetDir", ",", "String", "warName", ",", "String", "[", "]", "warPackageNames", ",", "boolean", "addWarResources", ")", "throws", "Exception", "{", "String", "...
Package a WAR and add it to a server. The rules of {@link #addToServer} are followed, using a null EAR name and a null JAR name. @param targetServer The server to which to add the EAR or WAR. @param targetDir The directory of the server in which to place the EAR or WAR. @param warName The name of the WAR which is to ...
[ "Package", "a", "WAR", "and", "add", "it", "to", "a", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.7.0_fat/fat/src/com/ibm/ws/javaee/v70/fat/FATServerHelper.java#L47-L63
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.7.0_fat/fat/src/com/ibm/ws/javaee/v70/fat/FATServerHelper.java
FATServerHelper.addToServer
public static boolean addToServer( LibertyServer targetServer, String targetDir, String earName, boolean addEarResources, String warName, String[] warPackageNames, boolean addWarResources, String jarName, String[] jarPackageNames, boolean addJarResources) throws Exception { if (...
java
public static boolean addToServer( LibertyServer targetServer, String targetDir, String earName, boolean addEarResources, String warName, String[] warPackageNames, boolean addWarResources, String jarName, String[] jarPackageNames, boolean addJarResources) throws Exception { if (...
[ "public", "static", "boolean", "addToServer", "(", "LibertyServer", "targetServer", ",", "String", "targetDir", ",", "String", "earName", ",", "boolean", "addEarResources", ",", "String", "warName", ",", "String", "[", "]", "warPackageNames", ",", "boolean", "addW...
Conditionally, package a JAR, WAR, and EAR and add them to a server. Most often, the target directory is one of the standard server folders for applications, {@link #DROPINS_DIR} or {@link #APPS_DIR}. A WAR is always created. The WAR name parameter cannot be null. A JAR and an EAR are not always created. When the ...
[ "Conditionally", "package", "a", "JAR", "WAR", "and", "EAR", "and", "add", "them", "to", "a", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.7.0_fat/fat/src/com/ibm/ws/javaee/v70/fat/FATServerHelper.java#L158-L200
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/_ClassByteCodeAnnotationFilter.java
_ClassByteCodeAnnotationFilter.couldContainAnnotationsOnClassDef
public boolean couldContainAnnotationsOnClassDef(DataInput in, Set<String> byteCodeAnnotationsNames) throws IOException { /* According to Java VM Spec, each .class file contains * a single class or interface definition. The structure * definition is shown below: Cl...
java
public boolean couldContainAnnotationsOnClassDef(DataInput in, Set<String> byteCodeAnnotationsNames) throws IOException { /* According to Java VM Spec, each .class file contains * a single class or interface definition. The structure * definition is shown below: Cl...
[ "public", "boolean", "couldContainAnnotationsOnClassDef", "(", "DataInput", "in", ",", "Set", "<", "String", ">", "byteCodeAnnotationsNames", ")", "throws", "IOException", "{", "/* According to Java VM Spec, each .class file contains\n * a single class or interface definition...
Checks if the .class file referenced by the DataInput could contain the annotation names available in the set. @param in @param byteCodeAnnotationsNames @return @throws IOException
[ "Checks", "if", "the", ".", "class", "file", "referenced", "by", "the", "DataInput", "could", "contain", "the", "annotation", "names", "available", "in", "the", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/_ClassByteCodeAnnotationFilter.java#L66-L211
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getProperties
public Properties getProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getProperties"); return this.sslProperties; }
java
public Properties getProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getProperties"); return this.sslProperties; }
[ "public", "Properties", "getProperties", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getProperties\"", ")", ";", "return", "this"...
Access the current properties for this context. @return Properties - null if not set
[ "Access", "the", "current", "properties", "for", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L56-L60
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setProperties
public void setProperties(Properties sslProps) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setProperties"); this.sslProperties = sslProps; }
java
public void setProperties(Properties sslProps) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setProperties"); this.sslProperties = sslProps; }
[ "public", "void", "setProperties", "(", "Properties", "sslProps", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setProperties\"", ")", "...
Set the properties for this thread context. @param sslProps
[ "Set", "the", "properties", "for", "this", "thread", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L67-L71
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getSetSignerOnThread
public boolean getSetSignerOnThread() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getSetSignerOnThread: " + this.setSignerOnThread); return this.setSignerOnThread; }
java
public boolean getSetSignerOnThread() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getSetSignerOnThread: " + this.setSignerOnThread); return this.setSignerOnThread; }
[ "public", "boolean", "getSetSignerOnThread", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getSetSignerOnThread: \"", "+", "this", "....
Query whether the signer flag is set on this context. @return boolean
[ "Query", "whether", "the", "signer", "flag", "is", "set", "on", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L78-L82
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getAutoAcceptBootstrapSigner
public boolean getAutoAcceptBootstrapSigner() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getAutoAcceptBootstrapSigner: " + this.autoAcceptBootstrapSigner); return this.autoAcceptBootstrapSigner; }
java
public boolean getAutoAcceptBootstrapSigner() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getAutoAcceptBootstrapSigner: " + this.autoAcceptBootstrapSigner); return this.autoAcceptBootstrapSigner; }
[ "public", "boolean", "getAutoAcceptBootstrapSigner", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getAutoAcceptBootstrapSigner: \"", "+"...
Query whether the autoaccept bootstrap signer flag is set on this context. @return boolean
[ "Query", "whether", "the", "autoaccept", "bootstrap", "signer", "flag", "is", "set", "on", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L89-L93
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getInboundConnectionInfo
public Map<String, Object> getInboundConnectionInfo() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getInboundConnectionInfo"); return this.inboundConnectionInfo; }
java
public Map<String, Object> getInboundConnectionInfo() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getInboundConnectionInfo"); return this.inboundConnectionInfo; }
[ "public", "Map", "<", "String", ",", "Object", ">", "getInboundConnectionInfo", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"get...
Access the inbound connection info object for this context. @return Map<String,Object> - null if not set
[ "Access", "the", "inbound", "connection", "info", "object", "for", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L100-L104
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setAutoAcceptBootstrapSigner
public void setAutoAcceptBootstrapSigner(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setAutoAcceptBootstrapSigner -> " + flag); this.autoAcceptBootstrapSigner = flag; }
java
public void setAutoAcceptBootstrapSigner(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setAutoAcceptBootstrapSigner -> " + flag); this.autoAcceptBootstrapSigner = flag; }
[ "public", "void", "setAutoAcceptBootstrapSigner", "(", "boolean", "flag", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setAutoAcceptBootstr...
Set the autoaccept bootstrap signer flag on this context to the input value. @param flag
[ "Set", "the", "autoaccept", "bootstrap", "signer", "flag", "on", "this", "context", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L112-L116
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getAutoAcceptBootstrapSignerWithoutStorage
public boolean getAutoAcceptBootstrapSignerWithoutStorage() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getAutoAcceptBootstrapSignerWithoutStorage: " + this.autoAcceptBootstrapSignerWithoutStorage); return this.autoAcceptBootstrapSignerWithoutStorage; ...
java
public boolean getAutoAcceptBootstrapSignerWithoutStorage() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getAutoAcceptBootstrapSignerWithoutStorage: " + this.autoAcceptBootstrapSignerWithoutStorage); return this.autoAcceptBootstrapSignerWithoutStorage; ...
[ "public", "boolean", "getAutoAcceptBootstrapSignerWithoutStorage", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getAutoAcceptBootstrapSign...
Query whether the autoaccept bootstrap signer without storage flag is set on this context. @return boolean
[ "Query", "whether", "the", "autoaccept", "bootstrap", "signer", "without", "storage", "flag", "is", "set", "on", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L124-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setAutoAcceptBootstrapSignerWithoutStorage
public void setAutoAcceptBootstrapSignerWithoutStorage(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setAutoAcceptBootstrapSignerWithoutStorage -> " + flag); this.autoAcceptBootstrapSignerWithoutStorage = flag; }
java
public void setAutoAcceptBootstrapSignerWithoutStorage(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setAutoAcceptBootstrapSignerWithoutStorage -> " + flag); this.autoAcceptBootstrapSignerWithoutStorage = flag; }
[ "public", "void", "setAutoAcceptBootstrapSignerWithoutStorage", "(", "boolean", "flag", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setAut...
Set the autoaccept bootstrap signer without storage flag to the input value. @param flag
[ "Set", "the", "autoaccept", "bootstrap", "signer", "without", "storage", "flag", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L136-L140
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setSetSignerOnThread
public void setSetSignerOnThread(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setSetSignerOnThread: " + flag); this.setSignerOnThread = flag; }
java
public void setSetSignerOnThread(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setSetSignerOnThread: " + flag); this.setSignerOnThread = flag; }
[ "public", "void", "setSetSignerOnThread", "(", "boolean", "flag", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setSetSignerOnThread: \"", ...
Set the signer flag on this context to the input value. @param flag
[ "Set", "the", "signer", "flag", "on", "this", "context", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L147-L151
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getSignerChain
public X509Certificate[] getSignerChain() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getSignerChain"); return signer == null ? null : signer.clone(); }
java
public X509Certificate[] getSignerChain() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getSignerChain"); return signer == null ? null : signer.clone(); }
[ "public", "X509Certificate", "[", "]", "getSignerChain", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getSignerChain\"", ")", ";",...
Query the signer chain set on this context. @return X509Certificate[] - null if not set
[ "Query", "the", "signer", "chain", "set", "on", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L158-L162
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setSignerChain
public void setSignerChain(X509Certificate[] signerChain) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setSignerChain"); this.signer = signerChain == null ? null : signerChain.clone(); }
java
public void setSignerChain(X509Certificate[] signerChain) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setSignerChain"); this.signer = signerChain == null ? null : signerChain.clone(); }
[ "public", "void", "setSignerChain", "(", "X509Certificate", "[", "]", "signerChain", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setSi...
Set the signer chain on this context to the input value. @param signerChain
[ "Set", "the", "signer", "chain", "on", "this", "context", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L169-L173
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setInboundConnectionInfo
public void setInboundConnectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInboundConnectionInfo"); this.inboundConnectionInfo = connectionInfo; }
java
public void setInboundConnectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInboundConnectionInfo"); this.inboundConnectionInfo = connectionInfo; }
[ "public", "void", "setInboundConnectionInfo", "(", "Map", "<", "String", ",", "Object", ">", "connectionInfo", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", ...
Set the inbound connection info on this context to the input value. @param connectionInfo
[ "Set", "the", "inbound", "connection", "info", "on", "this", "context", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L180-L184
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getOutboundConnectionInfo
public Map<String, Object> getOutboundConnectionInfo() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getOutboundConnectionInfo"); return this.outboundConnectionInfo; }
java
public Map<String, Object> getOutboundConnectionInfo() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getOutboundConnectionInfo"); return this.outboundConnectionInfo; }
[ "public", "Map", "<", "String", ",", "Object", ">", "getOutboundConnectionInfo", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"ge...
Query the outbound connection info map of this context. @return Map<String,Object> - null if not set
[ "Query", "the", "outbound", "connection", "info", "map", "of", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L191-L195
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setOutboundConnectionInfo
public void setOutboundConnectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setOutboundConnectionInfo"); this.outboundConnectionInfo = connectionInfo; }
java
public void setOutboundConnectionInfo(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setOutboundConnectionInfo"); this.outboundConnectionInfo = connectionInfo; }
[ "public", "void", "setOutboundConnectionInfo", "(", "Map", "<", "String", ",", "Object", ">", "connectionInfo", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug",...
Set the outbound connection info of this context to the input value. @param connectionInfo
[ "Set", "the", "outbound", "connection", "info", "of", "this", "context", "to", "the", "input", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L202-L206
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.getOutboundConnectionInfoInternal
public Map<String, Object> getOutboundConnectionInfoInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getOutboundConnectionInfoInternal"); return this.outboundConnectionInfoInternal; }
java
public Map<String, Object> getOutboundConnectionInfoInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getOutboundConnectionInfoInternal"); return this.outboundConnectionInfoInternal; }
[ "public", "Map", "<", "String", ",", "Object", ">", "getOutboundConnectionInfoInternal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",",...
Get the internal outbound connection info object for this context. @return Map<String,Object> - null if not set
[ "Get", "the", "internal", "outbound", "connection", "info", "object", "for", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L213-L217
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java
ThreadContext.setOutboundConnectionInfoInternal
public void setOutboundConnectionInfoInternal(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setOutboundConnectionInfoInternal :" + connectionInfo); this.outboundConnectionInfoInternal = connectionInfo; }
java
public void setOutboundConnectionInfoInternal(Map<String, Object> connectionInfo) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setOutboundConnectionInfoInternal :" + connectionInfo); this.outboundConnectionInfoInternal = connectionInfo; }
[ "public", "void", "setOutboundConnectionInfoInternal", "(", "Map", "<", "String", ",", "Object", ">", "connectionInfo", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", ...
Set the internal outbound connection info object for this context. @param connectionInfo
[ "Set", "the", "internal", "outbound", "connection", "info", "object", "for", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadContext.java#L224-L228
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/AbstractPersistenceManager.java
AbstractPersistenceManager.serializeObject
protected byte[] serializeObject(Serializable theObject) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(baos); oout.writeObject(theObject); byte[] data = baos.toByteArray(); baos.close(); oo...
java
protected byte[] serializeObject(Serializable theObject) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(baos); oout.writeObject(theObject); byte[] data = baos.toByteArray(); baos.close(); oo...
[ "protected", "byte", "[", "]", "serializeObject", "(", "Serializable", "theObject", ")", "throws", "IOException", "{", "ByteArrayOutputStream", "baos", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "ObjectOutputStream", "oout", "=", "new", "ObjectOutputStream", ...
This method is used to serialized an object saved into a table BLOB field. @param theObject the object to be serialized @return a object byte array @throws IOException
[ "This", "method", "is", "used", "to", "serialized", "an", "object", "saved", "into", "a", "table", "BLOB", "field", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/AbstractPersistenceManager.java#L278-L288
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/JPAPuId.java
JPAPuId.setPuName
public void setPuName(String puName) { // re-initialize puName only if it has not been set to avoid // overriding valid relative puName defined in annotation/dd. if (ivPuName == null || ivPuName.length() == 0) // d442457 { ivPuName = puName; reComputeHashCod...
java
public void setPuName(String puName) { // re-initialize puName only if it has not been set to avoid // overriding valid relative puName defined in annotation/dd. if (ivPuName == null || ivPuName.length() == 0) // d442457 { ivPuName = puName; reComputeHashCod...
[ "public", "void", "setPuName", "(", "String", "puName", ")", "{", "// re-initialize puName only if it has not been set to avoid", "// overriding valid relative puName defined in annotation/dd.", "if", "(", "ivPuName", "==", "null", "||", "ivPuName", ".", "length", "(", ")",...
Persistence unit name setter.
[ "Persistence", "unit", "name", "setter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/JPAPuId.java#L78-L87
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/JPAPuId.java
JPAPuId.reComputeHashCode
private void reComputeHashCode() { ivCurHashCode = (ivAppName != null ? ivAppName.hashCode() : 0) // d437828 + (ivModJarName != null ? ivModJarName.hashCode() : 0) + (ivPuName != null ? ivPuName.hashCode() : 0); }
java
private void reComputeHashCode() { ivCurHashCode = (ivAppName != null ? ivAppName.hashCode() : 0) // d437828 + (ivModJarName != null ? ivModJarName.hashCode() : 0) + (ivPuName != null ? ivPuName.hashCode() : 0); }
[ "private", "void", "reComputeHashCode", "(", ")", "{", "ivCurHashCode", "=", "(", "ivAppName", "!=", "null", "?", "ivAppName", ".", "hashCode", "(", ")", ":", "0", ")", "// d437828", "+", "(", "ivModJarName", "!=", "null", "?", "ivModJarName", ".", "hashCo...
Compute and cache the current hashCode.
[ "Compute", "and", "cache", "the", "current", "hashCode", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/JPAPuId.java#L129-L134
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelDataImpl.java
ChannelDataImpl.createChild
public ChildChannelDataImpl createChild() { String childName = this.name + CHILD_STRING + nextChildId(); ChildChannelDataImpl child = new ChildChannelDataImpl(childName, this); this.children.add(child); return child; }
java
public ChildChannelDataImpl createChild() { String childName = this.name + CHILD_STRING + nextChildId(); ChildChannelDataImpl child = new ChildChannelDataImpl(childName, this); this.children.add(child); return child; }
[ "public", "ChildChannelDataImpl", "createChild", "(", ")", "{", "String", "childName", "=", "this", ".", "name", "+", "CHILD_STRING", "+", "nextChildId", "(", ")", ";", "ChildChannelDataImpl", "child", "=", "new", "ChildChannelDataImpl", "(", "childName", ",", "...
Create a child data object. Add it to the list of children and return it. @return child channel data object
[ "Create", "a", "child", "data", "object", ".", "Add", "it", "to", "the", "list", "of", "children", "and", "return", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelDataImpl.java#L229-L234
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/ReadableLogRecord.java
ReadableLogRecord.read
private static ReadableLogRecord read(ByteBuffer viewBuffer, long expectedSequenceNumber, ByteBuffer sourceBuffer) { ReadableLogRecord logRecord = null; int absolutePosition = sourceBuffer.position() + viewBuffer.position(); // Read the record magic number field. final byte[] magicNumberBuffer = ...
java
private static ReadableLogRecord read(ByteBuffer viewBuffer, long expectedSequenceNumber, ByteBuffer sourceBuffer) { ReadableLogRecord logRecord = null; int absolutePosition = sourceBuffer.position() + viewBuffer.position(); // Read the record magic number field. final byte[] magicNumberBuffer = ...
[ "private", "static", "ReadableLogRecord", "read", "(", "ByteBuffer", "viewBuffer", ",", "long", "expectedSequenceNumber", ",", "ByteBuffer", "sourceBuffer", ")", "{", "ReadableLogRecord", "logRecord", "=", "null", ";", "int", "absolutePosition", "=", "sourceBuffer", "...
careful with trace in this method as it is called many times from doByteByByteScanning
[ "careful", "with", "trace", "in", "this", "method", "as", "it", "is", "called", "many", "times", "from", "doByteByByteScanning" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/ReadableLogRecord.java#L87-L141
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/ReadableLogRecord.java
ReadableLogRecord.doByteByByteScanning
private static ReadableLogRecord doByteByByteScanning(ByteBuffer sourceBuffer, long expectedSequenceNumber) { if (tc.isEntryEnabled()) Tr.entry(tc, "doByteByByteScanning", new Object[] {sourceBuffer, new Long(expectedSequenceNumber)}); ReadableLogRecord logRecord = null; ByteBuffer viewBuffer = sour...
java
private static ReadableLogRecord doByteByByteScanning(ByteBuffer sourceBuffer, long expectedSequenceNumber) { if (tc.isEntryEnabled()) Tr.entry(tc, "doByteByByteScanning", new Object[] {sourceBuffer, new Long(expectedSequenceNumber)}); ReadableLogRecord logRecord = null; ByteBuffer viewBuffer = sour...
[ "private", "static", "ReadableLogRecord", "doByteByByteScanning", "(", "ByteBuffer", "sourceBuffer", ",", "long", "expectedSequenceNumber", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"doByteByByteScanning...
careful with trace in this methods loop
[ "careful", "with", "trace", "in", "this", "methods", "loop" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/ReadableLogRecord.java#L144-L183
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java
PackageIndex.add
public synchronized boolean add(String key, T value) { if (key.length() > 3 && key.endsWith(WILDCARD) && key.charAt(key.length() - 2) != '.') { throw new IllegalArgumentException("Unsupported use of wildcard in key " + key); } // Find the key in the structure (build out to it) ...
java
public synchronized boolean add(String key, T value) { if (key.length() > 3 && key.endsWith(WILDCARD) && key.charAt(key.length() - 2) != '.') { throw new IllegalArgumentException("Unsupported use of wildcard in key " + key); } // Find the key in the structure (build out to it) ...
[ "public", "synchronized", "boolean", "add", "(", "String", "key", ",", "T", "value", ")", "{", "if", "(", "key", ".", "length", "(", ")", ">", "3", "&&", "key", ".", "endsWith", "(", "WILDCARD", ")", "&&", "key", ".", "charAt", "(", "key", ".", "...
Add a new value using the given key. @param key Key, this is string @param value Value to associate with the key @return true if key successfully added, false if there was a collision.
[ "Add", "a", "new", "value", "using", "the", "given", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java#L158-L173
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java
PackageIndex.compact
public void compact() { // Bare-bones iterator: no filter, don't bother with package strings for (NodeIterator<T> i = this.getNodeIterator(); i.hasNext();) { NodeIndex<T> n = i.next(); if (n.node.exactKids != null) n.node.exactKids.trimToSize(); } }
java
public void compact() { // Bare-bones iterator: no filter, don't bother with package strings for (NodeIterator<T> i = this.getNodeIterator(); i.hasNext();) { NodeIndex<T> n = i.next(); if (n.node.exactKids != null) n.node.exactKids.trimToSize(); } }
[ "public", "void", "compact", "(", ")", "{", "// Bare-bones iterator: no filter, don't bother with package strings", "for", "(", "NodeIterator", "<", "T", ">", "i", "=", "this", ".", "getNodeIterator", "(", ")", ";", "i", ".", "hasNext", "(", ")", ";", ")", "{"...
Compact any empty space after a read-only trie has been constructed
[ "Compact", "any", "empty", "space", "after", "a", "read", "-", "only", "trie", "has", "been", "constructed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java#L250-L257
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java
PackageIndex.dump
public String dump() { StringBuilder s = new StringBuilder(); int c = 0; // we need the flavor of iterator that does build up a package string so we can // include it in the generated string s.append(nl); for (NodeIterator<T> i = this.getNodeIterator(null); i.hasNext();) ...
java
public String dump() { StringBuilder s = new StringBuilder(); int c = 0; // we need the flavor of iterator that does build up a package string so we can // include it in the generated string s.append(nl); for (NodeIterator<T> i = this.getNodeIterator(null); i.hasNext();) ...
[ "public", "String", "dump", "(", ")", "{", "StringBuilder", "s", "=", "new", "StringBuilder", "(", ")", ";", "int", "c", "=", "0", ";", "// we need the flavor of iterator that does build up a package string so we can", "// include it in the generated string", "s", ".", ...
Debugging during test, dump for FFDC @return String representation of the contents of the structure.
[ "Debugging", "during", "test", "dump", "for", "FFDC" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java#L264-L278
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java
PackageIndex.getNodeIterator
NodeIterator<T> getNodeIterator(Filter<T> filter) { return new NodeIterator<T>(root, filter, true); }
java
NodeIterator<T> getNodeIterator(Filter<T> filter) { return new NodeIterator<T>(root, filter, true); }
[ "NodeIterator", "<", "T", ">", "getNodeIterator", "(", "Filter", "<", "T", ">", "filter", ")", "{", "return", "new", "NodeIterator", "<", "T", ">", "(", "root", ",", "filter", ",", "true", ")", ";", "}" ]
Get an internal iterator for nodes that allows filtering based on packages or values. @param filter @return
[ "Get", "an", "internal", "iterator", "for", "nodes", "that", "allows", "filtering", "based", "on", "packages", "or", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/kernel/provisioning/packages/PackageIndex.java#L353-L355
train
OpenLiberty/open-liberty
dev/com.ibm.ws.resource/src/com/ibm/ws/resource/internal/ResourceFactoryTrackerData.java
ResourceFactoryTrackerData.modifed
public void modifed(ServiceReference<ResourceFactory> ref) { String[] newInterfaces = getServiceInterfaces(ref); if (!Arrays.equals(interfaces, newInterfaces)) { unregister(); register(ref, newInterfaces); } else { registration.setProperties(getServiceProperti...
java
public void modifed(ServiceReference<ResourceFactory> ref) { String[] newInterfaces = getServiceInterfaces(ref); if (!Arrays.equals(interfaces, newInterfaces)) { unregister(); register(ref, newInterfaces); } else { registration.setProperties(getServiceProperti...
[ "public", "void", "modifed", "(", "ServiceReference", "<", "ResourceFactory", ">", "ref", ")", "{", "String", "[", "]", "newInterfaces", "=", "getServiceInterfaces", "(", "ref", ")", ";", "if", "(", "!", "Arrays", ".", "equals", "(", "interfaces", ",", "ne...
Notification that the properties for the ResourceFactory changed.
[ "Notification", "that", "the", "properties", "for", "the", "ResourceFactory", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.resource/src/com/ibm/ws/resource/internal/ResourceFactoryTrackerData.java#L148-L156
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.persistence.2.0/src/com/ibm/ws/javaee/persistence/internal/HybridPersistenceActivator.java
HybridPersistenceActivator.getPersistenceProviders
@Override public List<PersistenceProvider> getPersistenceProviders() { // try to get the context classloader first, if that fails, use the loader // that loaded this class ClassLoader cl = PrivClassLoader.get(null); if (cl == null) { cl = PrivClassLoader.get(HybridPersist...
java
@Override public List<PersistenceProvider> getPersistenceProviders() { // try to get the context classloader first, if that fails, use the loader // that loaded this class ClassLoader cl = PrivClassLoader.get(null); if (cl == null) { cl = PrivClassLoader.get(HybridPersist...
[ "@", "Override", "public", "List", "<", "PersistenceProvider", ">", "getPersistenceProviders", "(", ")", "{", "// try to get the context classloader first, if that fails, use the loader", "// that loaded this class", "ClassLoader", "cl", "=", "PrivClassLoader", ".", "get", "(",...
This method returns a combination of those persistence providers available from the application classloader in addition to those in the OSGi service registry. OSGi providers are not cached and should not be cached because bundles can be moved in and out of the system and it is the job of the the service tracker to main...
[ "This", "method", "returns", "a", "combination", "of", "those", "persistence", "providers", "available", "from", "the", "application", "classloader", "in", "addition", "to", "those", "in", "the", "OSGi", "service", "registry", ".", "OSGi", "providers", "are", "n...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.persistence.2.0/src/com/ibm/ws/javaee/persistence/internal/HybridPersistenceActivator.java#L42-L73
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperties.java
ConnectorProperties.add
@Override public boolean add(Object o) { ConnectorProperty connectorPropertyToAdd = (ConnectorProperty) o; String nameToAdd = connectorPropertyToAdd.getName(); ConnectorProperty connectorProperty = null; String name = null; Enumeration<Object> e = this.elements(); wh...
java
@Override public boolean add(Object o) { ConnectorProperty connectorPropertyToAdd = (ConnectorProperty) o; String nameToAdd = connectorPropertyToAdd.getName(); ConnectorProperty connectorProperty = null; String name = null; Enumeration<Object> e = this.elements(); wh...
[ "@", "Override", "public", "boolean", "add", "(", "Object", "o", ")", "{", "ConnectorProperty", "connectorPropertyToAdd", "=", "(", "ConnectorProperty", ")", "o", ";", "String", "nameToAdd", "=", "connectorPropertyToAdd", ".", "getName", "(", ")", ";", "Connecto...
override the Vector add method to not add duplicate entries. That is, entries with the same name.
[ "override", "the", "Vector", "add", "method", "to", "not", "add", "duplicate", "entries", ".", "That", "is", "entries", "with", "the", "same", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperties.java#L37-L67
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperties.java
ConnectorProperties.findConnectorPropertyString
public String findConnectorPropertyString(String desiredPropertyName, String defaultValue) { String retVal = defaultValue; String name = null; ConnectorProperty property = null; Enumeration<Object> e = this.elements(); while (e.hasMoreElements()) { property = (Conn...
java
public String findConnectorPropertyString(String desiredPropertyName, String defaultValue) { String retVal = defaultValue; String name = null; ConnectorProperty property = null; Enumeration<Object> e = this.elements(); while (e.hasMoreElements()) { property = (Conn...
[ "public", "String", "findConnectorPropertyString", "(", "String", "desiredPropertyName", ",", "String", "defaultValue", ")", "{", "String", "retVal", "=", "defaultValue", ";", "String", "name", "=", "null", ";", "ConnectorProperty", "property", "=", "null", ";", "...
Given this ConnectorProperties Vector, find the String identified by the input desiredPropertyName. If not found, return the defaultValue. @param desiredPropertyName Name of com.ibm.ejs.j2c.ConnectorProperty entry to look for. @param defaultValue value to return if the desiredPropertyName is not found, or its value is...
[ "Given", "this", "ConnectorProperties", "Vector", "find", "the", "String", "identified", "by", "the", "input", "desiredPropertyName", ".", "If", "not", "found", "return", "the", "defaultValue", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperties.java#L77-L97
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleMessage
public void handleMessage(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleMessage", new Object[] { msgItem }); JsMessage jsMsg = msgItem.getMessage(); int priority = jsMsg.getPriority().intValue(); ...
java
public void handleMessage(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleMessage", new Object[] { msgItem }); JsMessage jsMsg = msgItem.getMessage(); int priority = jsMsg.getPriority().intValue(); ...
[ "public", "void", "handleMessage", "(", "MessageItem", "msgItem", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this"...
Handle a new message by inserting it in to the appropriate target stream. If the stream ID in the message is a new one, a flush query will be sent to the source. If the ID has been seen before but the specific stream is not found, a new one will be created and added to the stream set. @param msgItem
[ "Handle", "a", "new", "message", "by", "inserting", "it", "in", "to", "the", "appropriate", "target", "stream", ".", "If", "the", "stream", "ID", "in", "the", "message", "is", "a", "new", "one", "a", "flush", "query", "will", "be", "sent", "to", "the",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L225-L268
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleSilence
public void handleSilence(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleSilence", new Object[] { msgItem }); JsMessage jsMsg = msgItem.getMessage(); int priority = jsMsg.getPriority().intValue(); ...
java
public void handleSilence(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleSilence", new Object[] { msgItem }); JsMessage jsMsg = msgItem.getMessage(); int priority = jsMsg.getPriority().intValue(); ...
[ "public", "void", "handleSilence", "(", "MessageItem", "msgItem", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this"...
Handle a filtered message by inserting it in to the appropriate target stream as Silence. Since we only need to do this on exisiting TargetStreams, if the streamSet or stream are null we give up @param msgItem @throws SIResourceException
[ "Handle", "a", "filtered", "message", "by", "inserting", "it", "in", "to", "the", "appropriate", "target", "stream", "as", "Silence", ".", "Since", "we", "only", "need", "to", "do", "this", "on", "exisiting", "TargetStreams", "if", "the", "streamSet", "or", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L279-L306
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleNewStreamID
private void handleNewStreamID(ControlMessage cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "handleNewStreamID", new Object[] { cMsg }); handleNewStreamID(cMsg, null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
java
private void handleNewStreamID(ControlMessage cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "handleNewStreamID", new Object[] { cMsg }); handleNewStreamID(cMsg, null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
[ "private", "void", "handleNewStreamID", "(", "ControlMessage", "cMsg", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
Handle a new stream ID from a control message @param jsMsg
[ "Handle", "a", "new", "stream", "ID", "from", "a", "control", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L313-L322
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleNewStreamID
private void handleNewStreamID(AbstractMessage aMessage, MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "handleNewStreamID", new Object[] { aMessage, msgItem }); SIBUuid12 streamID = aMessage.getGuaranteedStreamUUID(); ...
java
private void handleNewStreamID(AbstractMessage aMessage, MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "handleNewStreamID", new Object[] { aMessage, msgItem }); SIBUuid12 streamID = aMessage.getGuaranteedStreamUUID(); ...
[ "private", "void", "handleNewStreamID", "(", "AbstractMessage", "aMessage", ",", "MessageItem", "msgItem", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")...
Handle a new stream ID and cache a MessageItem for replay later. msgItem can be null, for example if this was triggered by a control message. @param msgItem
[ "Handle", "a", "new", "stream", "ID", "and", "cache", "a", "MessageItem", "for", "replay", "later", ".", "msgItem", "can", "be", "null", "for", "example", "if", "this", "was", "triggered", "by", "a", "control", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L348-L400
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.addNewStreamSet
private StreamSet addNewStreamSet(SIBUuid12 streamID, SIBUuid8 sourceMEUuid, SIBUuid12 remoteDestUuid, SIBUuid8 remoteBusUuid, String linkTarget) throws SIRollbackExceptio...
java
private StreamSet addNewStreamSet(SIBUuid12 streamID, SIBUuid8 sourceMEUuid, SIBUuid12 remoteDestUuid, SIBUuid8 remoteBusUuid, String linkTarget) throws SIRollbackExceptio...
[ "private", "StreamSet", "addNewStreamSet", "(", "SIBUuid12", "streamID", ",", "SIBUuid8", "sourceMEUuid", ",", "SIBUuid12", "remoteDestUuid", ",", "SIBUuid8", "remoteBusUuid", ",", "String", "linkTarget", ")", "throws", "SIRollbackException", ",", "SIConnectionLostExcepti...
Create a new StreamSet for a given streamID and sourceCellule. @param streamID @param sourceCellule @param remoteDestUuid This may not always be the same as the Uuid of the local destination @param remoteBusUuid @return A new StreamSet @throws SIResourceException if the message store outofcache space exception is c...
[ "Create", "a", "new", "StreamSet", "for", "a", "given", "streamID", "and", "sourceCellule", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L413-L488
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.createStream
private TargetStream createStream(StreamSet streamSet, int priority, Reliability reliability, long completedPrefix) throws SIResourceException { if (TraceComponent.isAny...
java
private TargetStream createStream(StreamSet streamSet, int priority, Reliability reliability, long completedPrefix) throws SIResourceException { if (TraceComponent.isAny...
[ "private", "TargetStream", "createStream", "(", "StreamSet", "streamSet", ",", "int", "priority", ",", "Reliability", "reliability", ",", "long", "completedPrefix", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "("...
Create a new TargetStream and initialize it with a given completed prefix. Always called with streamSet lock @param streamSet @param priority @param reliability @param completedPrefix @return A new TargetStream
[ "Create", "a", "new", "TargetStream", "and", "initialize", "it", "with", "a", "given", "completed", "prefix", ".", "Always", "called", "with", "streamSet", "lock" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L500-L521
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.createStream
private TargetStream createStream(StreamSet streamSet, int priority, Reliability reliability) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "createStream", ne...
java
private TargetStream createStream(StreamSet streamSet, int priority, Reliability reliability) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "createStream", ne...
[ "private", "TargetStream", "createStream", "(", "StreamSet", "streamSet", ",", "int", "priority", ",", "Reliability", "reliability", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isE...
Create a new TargetStream in the given StreamSet @param streamSet @param priority @param reliability @return a new TargetStream @throws SIResourceException
[ "Create", "a", "new", "TargetStream", "in", "the", "given", "StreamSet" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L532-L571
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleFlushedMessage
public void handleFlushedMessage(ControlFlushed cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleFlushedMessage", new Object[] { cMsg }); SIBUuid12 streamID = cMsg.getGuaranteedStreamUUID(); forceFlush(streamID); ...
java
public void handleFlushedMessage(ControlFlushed cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleFlushedMessage", new Object[] { cMsg }); SIBUuid12 streamID = cMsg.getGuaranteedStreamUUID(); forceFlush(streamID); ...
[ "public", "void", "handleFlushedMessage", "(", "ControlFlushed", "cMsg", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", ...
Handle a ControlFlushed message. Flush any existing streams and throw away any cached messages. @param cMsg @throws SIResourceException
[ "Handle", "a", "ControlFlushed", "message", ".", "Flush", "any", "existing", "streams", "and", "throw", "away", "any", "cached", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L618-L629
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.forceFlush
public void forceFlush(SIBUuid12 streamID) throws SIResourceException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "forceFlush", new Object[] { streamID }); // Synchronize to resolve racing messages. synchronized (flushMap) { ...
java
public void forceFlush(SIBUuid12 streamID) throws SIResourceException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "forceFlush", new Object[] { streamID }); // Synchronize to resolve racing messages. synchronized (flushMap) { ...
[ "public", "void", "forceFlush", "(", "SIBUuid12", "streamID", ")", "throws", "SIResourceException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "."...
Flush any existing streams and throw away any cached messages. @param streamID @throws SIResourceException @throws SIException
[ "Flush", "any", "existing", "streams", "and", "throw", "away", "any", "cached", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L638-L674
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.requestFlushAtSource
public void requestFlushAtSource(SIBUuid8 source, SIBUuid12 destID, SIBUuid8 busID, SIBUuid12 stream, boolean indoubtDiscard) throws SIException, SIResourceException { i...
java
public void requestFlushAtSource(SIBUuid8 source, SIBUuid12 destID, SIBUuid8 busID, SIBUuid12 stream, boolean indoubtDiscard) throws SIException, SIResourceException { i...
[ "public", "void", "requestFlushAtSource", "(", "SIBUuid8", "source", ",", "SIBUuid12", "destID", ",", "SIBUuid8", "busID", ",", "SIBUuid12", "stream", ",", "boolean", "indoubtDiscard", ")", "throws", "SIException", ",", "SIResourceException", "{", "if", "(", "Trac...
Send a request to flush a stream. The originator of the stream, and the ID for the stream must be known. This method is public because it's not clear who's going to call this yet. @param source The originator of the stream (may be multiple hops away). @param stream The UUID of the stream to flush.
[ "Send", "a", "request", "to", "flush", "a", "stream", ".", "The", "originator", "of", "the", "stream", "and", "the", "ID", "for", "the", "stream", "must", "be", "known", ".", "This", "method", "is", "public", "because", "it", "s", "not", "clear", "who"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L685-L728
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.handleSilenceMessage
public void handleSilenceMessage(ControlSilence cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleSilenceMessage", new Object[] { cMsg }); int priority = cMsg.getPriority().intValue(); Reliability reliability = cMsg.getR...
java
public void handleSilenceMessage(ControlSilence cMsg) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "handleSilenceMessage", new Object[] { cMsg }); int priority = cMsg.getPriority().intValue(); Reliability reliability = cMsg.getR...
[ "public", "void", "handleSilenceMessage", "(", "ControlSilence", "cMsg", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", ...
Handle a ControlSilence message. @param cMsg @throws SIException
[ "Handle", "a", "ControlSilence", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L979-L1016
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.reconstituteStreamSet
public void reconstituteStreamSet(StreamSet streamSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reconstituteStreamSet", streamSet); synchronized(streamSets) { streamSets.put(streamSet.getStreamID(), streamSet); sourceMap.put(streamSet.get...
java
public void reconstituteStreamSet(StreamSet streamSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reconstituteStreamSet", streamSet); synchronized(streamSets) { streamSets.put(streamSet.getStreamID(), streamSet); sourceMap.put(streamSet.get...
[ "public", "void", "reconstituteStreamSet", "(", "StreamSet", "streamSet", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"...
Restore a StreamSet to a previous state @param streamSet @throws SIResourceException @throws SIException
[ "Restore", "a", "StreamSet", "to", "a", "previous", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L1025-L1038
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.alarm
public void alarm(Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); // Alarm context should be an sid, make it so. SIBUuid12 sid = (SIBUuid12) alarmContext; // synchronized here in case we're racing with an ans...
java
public void alarm(Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); // Alarm context should be an sid, make it so. SIBUuid12 sid = (SIBUuid12) alarmContext; // synchronized here in case we're racing with an ans...
[ "public", "void", "alarm", "(", "Object", "alarmContext", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"alarm\"", ",",...
This method is called when an alarm expires for an "are you flushed" or "flush request" query. @param alarmContext the alarm context we passed into the alarm scheduler. Contains the stream ID we were querying.
[ "This", "method", "is", "called", "when", "an", "alarm", "expires", "for", "an", "are", "you", "flushed", "or", "flush", "request", "query", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L1047-L1119
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.isEmpty
public boolean isEmpty() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isEmpty"); SibTr.exit(tc, "isEmpty", new Object[] {Boolean.valueOf(streamSets.isEmpty()), Boolean.valueOf(flushedStreamSets.isEmpty()),streamSets, this}); } // D...
java
public boolean isEmpty() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isEmpty"); SibTr.exit(tc, "isEmpty", new Object[] {Boolean.valueOf(streamSets.isEmpty()), Boolean.valueOf(flushedStreamSets.isEmpty()),streamSets, this}); } // D...
[ "public", "boolean", "isEmpty", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isEmpty\"", ")", ";", "SibTr...
Determine if there are any unflushed target streams to the destination @return boolean
[ "Determine", "if", "there", "are", "any", "unflushed", "target", "streams", "to", "the", "destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L1126-L1139
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java
TargetStreamManager.queryUnflushedStreams
public void queryUnflushedStreams() throws SIResourceException { synchronized (streamSets) { for(Iterator i=streamSets.iterator(); i.hasNext();) { StreamSet next = (StreamSet) i.next(); // Note the use of -1 for the request ID. This guarantees // that we won't accidentall...
java
public void queryUnflushedStreams() throws SIResourceException { synchronized (streamSets) { for(Iterator i=streamSets.iterator(); i.hasNext();) { StreamSet next = (StreamSet) i.next(); // Note the use of -1 for the request ID. This guarantees // that we won't accidentall...
[ "public", "void", "queryUnflushedStreams", "(", ")", "throws", "SIResourceException", "{", "synchronized", "(", "streamSets", ")", "{", "for", "(", "Iterator", "i", "=", "streamSets", ".", "iterator", "(", ")", ";", "i", ".", "hasNext", "(", ")", ";", ")",...
Sends an "are you flushed" query to the source of any unflushed streams. We use this to determine when it's safe to delete a destination with possibly indoubt messages.
[ "Sends", "an", "are", "you", "flushed", "query", "to", "the", "source", "of", "any", "unflushed", "streams", ".", "We", "use", "this", "to", "determine", "when", "it", "s", "safe", "to", "delete", "a", "destination", "with", "possibly", "indoubt", "message...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TargetStreamManager.java#L1317-L1335
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java
PersistentTimerTaskHandler.validateAutomaticTimer
private boolean validateAutomaticTimer(BeanMetaData bmd) { if (bmd.timedMethodInfos == null || methodId > bmd.timedMethodInfos.length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "validateAutomaticTimer: ivMethodId=" + methodId ...
java
private boolean validateAutomaticTimer(BeanMetaData bmd) { if (bmd.timedMethodInfos == null || methodId > bmd.timedMethodInfos.length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "validateAutomaticTimer: ivMethodId=" + methodId ...
[ "private", "boolean", "validateAutomaticTimer", "(", "BeanMetaData", "bmd", ")", "{", "if", "(", "bmd", ".", "timedMethodInfos", "==", "null", "||", "methodId", ">", "bmd", ".", "timedMethodInfos", ".", "length", ")", "{", "if", "(", "TraceComponent", ".", "...
Validate that the method corresponding to the method ID stored in the database matches the method that was used when the automatic timer was created. For example, this validation will fail if the application is changed to remove an automatic timer without clearing the timers from the database. As a prerequisite to call...
[ "Validate", "that", "the", "method", "corresponding", "to", "the", "method", "ID", "stored", "in", "the", "database", "matches", "the", "method", "that", "was", "used", "when", "the", "automatic", "timer", "was", "created", ".", "For", "example", "this", "va...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java#L317-L342
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java
PersistentTimerTaskHandler.writeObject
private void writeObject(ObjectOutputStream out) throws IOException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "writeObject: " + this); // Use v1 unless features are present that require v2. int versi...
java
private void writeObject(ObjectOutputStream out) throws IOException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "writeObject: " + this); // Use v1 unless features are present that require v2. int versi...
[ "private", "void", "writeObject", "(", "ObjectOutputStream", "out", ")", "throws", "IOException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "...
Write this object to the ObjectOutputStream. Note, this is overriding the default Serialize interface implementation. @see java.io.Serializable
[ "Write", "this", "object", "to", "the", "ObjectOutputStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java#L578-L622
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java
PersistentTimerTaskHandler.readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "readObject"); in.defaultReadObject(); // Read in eye catcher. ...
java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "readObject"); in.defaultReadObject(); // Read in eye catcher. ...
[ "private", "void", "readObject", "(", "ObjectInputStream", "in", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc"...
Read this object from the ObjectInputStream. Note, this is overriding the default Serialize interface implementation. @see java.io.Serializable
[ "Read", "this", "object", "from", "the", "ObjectInputStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java#L631-L699
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java
PersistentTimerTaskHandler.getBeanMetaData
protected BeanMetaData getBeanMetaData() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getBeanMetaData: " + this); EJSHome home; try { // Get the currently installed and active home for thi...
java
protected BeanMetaData getBeanMetaData() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getBeanMetaData: " + this); EJSHome home; try { // Get the currently installed and active home for thi...
[ "protected", "BeanMetaData", "getBeanMetaData", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(...
Gets BeanMetaData through EJSHome lookup
[ "Gets", "BeanMetaData", "through", "EJSHome", "lookup" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java#L730-L763
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java
PersistentTimerTaskHandler.serializeObject
private static byte[] serializeObject(Object obj) { if (obj == null) { return null; } ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(baos); out.writeObject(obj); out.flush()...
java
private static byte[] serializeObject(Object obj) { if (obj == null) { return null; } ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(baos); out.writeObject(obj); out.flush()...
[ "private", "static", "byte", "[", "]", "serializeObject", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "null", ")", "{", "return", "null", ";", "}", "ByteArrayOutputStream", "baos", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "try", "{...
Internal convenience method for serializing the user info object to a byte array.
[ "Internal", "convenience", "method", "for", "serializing", "the", "user", "info", "object", "to", "a", "byte", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimerTaskHandler.java#L768-L784
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.maxRequestsServed
protected boolean maxRequestsServed() { // PK12235, check for a partial or full stop if (getChannel().isStopping()) { // channel has stopped, no more keep-alives if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Channel stopped, disa...
java
protected boolean maxRequestsServed() { // PK12235, check for a partial or full stop if (getChannel().isStopping()) { // channel has stopped, no more keep-alives if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Channel stopped, disa...
[ "protected", "boolean", "maxRequestsServed", "(", ")", "{", "// PK12235, check for a partial or full stop", "if", "(", "getChannel", "(", ")", ".", "isStopping", "(", ")", ")", "{", "// channel has stopped, no more keep-alives", "if", "(", "TraceComponent", ".", "isAnyT...
Find out whether we've served the maximum number of requests allowed on this connection already. @return boolean
[ "Find", "out", "whether", "we", "ve", "served", "the", "maximum", "number", "of", "requests", "allowed", "on", "this", "connection", "already", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L217-L237
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.ready
@Override public void ready(VirtualConnection inVC) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "ready: " + this + " " + inVC); } this.myTSC = (TCPConnectionContext) getDeviceLink().getChannelAccessor(); HttpInboundServiceContextImpl ...
java
@Override public void ready(VirtualConnection inVC) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "ready: " + this + " " + inVC); } this.myTSC = (TCPConnectionContext) getDeviceLink().getChannelAccessor(); HttpInboundServiceContextImpl ...
[ "@", "Override", "public", "void", "ready", "(", "VirtualConnection", "inVC", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"ready...
Called by the device side channel when a new request is ready for work. @param inVC
[ "Called", "by", "the", "device", "side", "channel", "when", "a", "new", "request", "is", "ready", "for", "work", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L290-L307
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.processRequest
protected void processRequest() { final int timeout = getHTTPContext().getReadTimeout(); final TCPReadCompletedCallback callback = HttpICLReadCallback.getRef(); // keep looping on processing information until we fully parse the message // and hand it off, or until the reads for more dat...
java
protected void processRequest() { final int timeout = getHTTPContext().getReadTimeout(); final TCPReadCompletedCallback callback = HttpICLReadCallback.getRef(); // keep looping on processing information until we fully parse the message // and hand it off, or until the reads for more dat...
[ "protected", "void", "processRequest", "(", ")", "{", "final", "int", "timeout", "=", "getHTTPContext", "(", ")", ".", "getReadTimeout", "(", ")", ";", "final", "TCPReadCompletedCallback", "callback", "=", "HttpICLReadCallback", ".", "getRef", "(", ")", ";", "...
Process new information for an inbound request that needs to be parsed and handled by channels above.
[ "Process", "new", "information", "for", "an", "inbound", "request", "that", "needs", "to", "be", "parsed", "and", "handled", "by", "channels", "above", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L313-L336
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.handleNewInformation
private boolean handleNewInformation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Parsing new information: " + getVirtualConnection()); } final HttpInboundServiceContextImpl sc = getHTTPContext(); if (!isPartiallyParsed()) { ...
java
private boolean handleNewInformation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Parsing new information: " + getVirtualConnection()); } final HttpInboundServiceContextImpl sc = getHTTPContext(); if (!isPartiallyParsed()) { ...
[ "private", "boolean", "handleNewInformation", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Parsing new information: \"", "+", "...
Handle parsing the incoming request message. @return whether an error happend and this connection is already done
[ "Handle", "parsing", "the", "incoming", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L343-L428
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.handleGenericHNIError
private void handleGenericHNIError(Throwable t, HttpInboundServiceContextImpl hisc) { hisc.setHeadersParsed(); sendErrorMessage(t); setPartiallyParsed(false); }
java
private void handleGenericHNIError(Throwable t, HttpInboundServiceContextImpl hisc) { hisc.setHeadersParsed(); sendErrorMessage(t); setPartiallyParsed(false); }
[ "private", "void", "handleGenericHNIError", "(", "Throwable", "t", ",", "HttpInboundServiceContextImpl", "hisc", ")", "{", "hisc", ".", "setHeadersParsed", "(", ")", ";", "sendErrorMessage", "(", "t", ")", ";", "setPartiallyParsed", "(", "false", ")", ";", "}" ]
the same thing so now they will just call this one method
[ "the", "same", "thing", "so", "now", "they", "will", "just", "call", "this", "one", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L432-L436
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.handleNewRequest
private void handleNewRequest() { // if this is an http/2 request, skip to discrimination if (!isAlpnHttp2Link(this.vc)) { final HttpInboundServiceContextImpl sc = getHTTPContext(); // save the request info that was parsed in case somebody changes it sc.setRequestVer...
java
private void handleNewRequest() { // if this is an http/2 request, skip to discrimination if (!isAlpnHttp2Link(this.vc)) { final HttpInboundServiceContextImpl sc = getHTTPContext(); // save the request info that was parsed in case somebody changes it sc.setRequestVer...
[ "private", "void", "handleNewRequest", "(", ")", "{", "// if this is an http/2 request, skip to discrimination", "if", "(", "!", "isAlpnHttp2Link", "(", "this", ".", "vc", ")", ")", "{", "final", "HttpInboundServiceContextImpl", "sc", "=", "getHTTPContext", "(", ")", ...
Process a new request message, updating internal stats and calling the discrimination to pass it along the channel chain.
[ "Process", "a", "new", "request", "message", "updating", "internal", "stats", "and", "calling", "the", "discrimination", "to", "pass", "it", "along", "the", "channel", "chain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L442-L467
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.sendErrorMessage
private void sendErrorMessage(Throwable t) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Sending a 400 for throwable [" + t + "]"); } sendErrorMessage(StatusCodes.BAD_REQUEST); }
java
private void sendErrorMessage(Throwable t) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Sending a 400 for throwable [" + t + "]"); } sendErrorMessage(StatusCodes.BAD_REQUEST); }
[ "private", "void", "sendErrorMessage", "(", "Throwable", "t", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Sending a 400 for throwab...
Send an error message when a generic throwable occurs. @param t
[ "Send", "an", "error", "message", "when", "a", "generic", "throwable", "occurs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L566-L571
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.sendErrorMessage
private void sendErrorMessage(StatusCodes code) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Sending an error page back [code: " + code + "]"); } try { getHTTPContext().sendError(code.getHttpError()); } catch (MessageSentExcep...
java
private void sendErrorMessage(StatusCodes code) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Sending an error page back [code: " + code + "]"); } try { getHTTPContext().sendError(code.getHttpError()); } catch (MessageSentExcep...
[ "private", "void", "sendErrorMessage", "(", "StatusCodes", "code", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Sending an error pag...
Send an error message back to the client with a defined status code, instead of an exception. @param code
[ "Send", "an", "error", "message", "back", "to", "the", "client", "with", "a", "defined", "status", "code", "instead", "of", "an", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L579-L589
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.handlePipeLining
private void handlePipeLining() { HttpServiceContextImpl sc = getHTTPContext(); WsByteBuffer buffer = sc.returnLastBuffer(); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Pipelined request found: " + buffer); } sc.clear(); //...
java
private void handlePipeLining() { HttpServiceContextImpl sc = getHTTPContext(); WsByteBuffer buffer = sc.returnLastBuffer(); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Pipelined request found: " + buffer); } sc.clear(); //...
[ "private", "void", "handlePipeLining", "(", ")", "{", "HttpServiceContextImpl", "sc", "=", "getHTTPContext", "(", ")", ";", "WsByteBuffer", "buffer", "=", "sc", ".", "returnLastBuffer", "(", ")", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(",...
Handle a pipelined request discovered while closing the handling of the last request.
[ "Handle", "a", "pipelined", "request", "discovered", "while", "closing", "the", "handling", "of", "the", "last", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L595-L614
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java
HttpInboundLink.error
@Override public void error(VirtualConnection inVC, Throwable t) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "error() called on " + this + " " + inVC); } try { close(inVC, (Exception) t); } catch (ClassCastException cce) {...
java
@Override public void error(VirtualConnection inVC, Throwable t) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "error() called on " + this + " " + inVC); } try { close(inVC, (Exception) t); } catch (ClassCastException cce) {...
[ "@", "Override", "public", "void", "error", "(", "VirtualConnection", "inVC", ",", "Throwable", "t", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "...
Called when an error occurs on this connection. @param inVC @param t
[ "Called", "when", "an", "error", "occurs", "on", "this", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInboundLink.java#L879-L890
train