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.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Server.java | POP3Server.quit | public void quit() {
try {
this.keepOn = false;
if (this.serverSocket != null && !this.serverSocket.isClosed()) {
this.serverSocket.close();
this.serverSocket = null;
}
} catch (final IOException e) {
throw new RuntimeExcept... | java | public void quit() {
try {
this.keepOn = false;
if (this.serverSocket != null && !this.serverSocket.isClosed()) {
this.serverSocket.close();
this.serverSocket = null;
}
} catch (final IOException e) {
throw new RuntimeExcept... | [
"public",
"void",
"quit",
"(",
")",
"{",
"try",
"{",
"this",
".",
"keepOn",
"=",
"false",
";",
"if",
"(",
"this",
".",
"serverSocket",
"!=",
"null",
"&&",
"!",
"this",
".",
"serverSocket",
".",
"isClosed",
"(",
")",
")",
"{",
"this",
".",
"serverSo... | Exit POP3 server. | [
"Exit",
"POP3",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Server.java#L52-L62 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/SymbolicRootResource.java | SymbolicRootResource.contains | boolean contains(String normalizedPath) {
if (normalizedPath == null)
return false;
if (normalizedPath.length() < normalizedRoot.length())
return false;
return normalizedPath.regionMatches(0, normalizedRoot, 0, normalizedRoot.length());
} | java | boolean contains(String normalizedPath) {
if (normalizedPath == null)
return false;
if (normalizedPath.length() < normalizedRoot.length())
return false;
return normalizedPath.regionMatches(0, normalizedRoot, 0, normalizedRoot.length());
} | [
"boolean",
"contains",
"(",
"String",
"normalizedPath",
")",
"{",
"if",
"(",
"normalizedPath",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"normalizedPath",
".",
"length",
"(",
")",
"<",
"normalizedRoot",
".",
"length",
"(",
")",
")",
"return",
... | Check if the provided path is contained within this root's hierarchy.
@param normalizedPath
normalized path for a potential descendant ('..' and '.' segments
removed)
@return
true if this root contains the resource indicated by the
normalized path, false otherwise (or if the path is null). | [
"Check",
"if",
"the",
"provided",
"path",
"is",
"contained",
"within",
"this",
"root",
"s",
"hierarchy",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/SymbolicRootResource.java#L195-L203 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/SIBUuidLength.java | SIBUuidLength.getIPAddress | private static String getIPAddress () {
String rc;
try {
rc = InetAddress.getLocalHost().getHostAddress();
} catch (Exception e) {
// No FFDC code needed
rc = Long.valueOf(new Random().nextLong()).toString();
}
return rc;
} | java | private static String getIPAddress () {
String rc;
try {
rc = InetAddress.getLocalHost().getHostAddress();
} catch (Exception e) {
// No FFDC code needed
rc = Long.valueOf(new Random().nextLong()).toString();
}
return rc;
} | [
"private",
"static",
"String",
"getIPAddress",
"(",
")",
"{",
"String",
"rc",
";",
"try",
"{",
"rc",
"=",
"InetAddress",
".",
"getLocalHost",
"(",
")",
".",
"getHostAddress",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"// No FFDC code ... | InetAddress is compatible with both IPv4 & IPv6 | [
"InetAddress",
"is",
"compatible",
"with",
"both",
"IPv4",
"&",
"IPv6"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/SIBUuidLength.java#L157-L168 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java | WebSecurityPropagatorImpl.getSecurityMetadata | private SecurityMetadata getSecurityMetadata(WebAppConfig webAppConfig) {
WebModuleMetaData wmmd = ((WebAppConfigExtended) webAppConfig).getMetaData();
return (SecurityMetadata) wmmd.getSecurityMetaData();
} | java | private SecurityMetadata getSecurityMetadata(WebAppConfig webAppConfig) {
WebModuleMetaData wmmd = ((WebAppConfigExtended) webAppConfig).getMetaData();
return (SecurityMetadata) wmmd.getSecurityMetaData();
} | [
"private",
"SecurityMetadata",
"getSecurityMetadata",
"(",
"WebAppConfig",
"webAppConfig",
")",
"{",
"WebModuleMetaData",
"wmmd",
"=",
"(",
"(",
"WebAppConfigExtended",
")",
"webAppConfig",
")",
".",
"getMetaData",
"(",
")",
";",
"return",
"(",
"SecurityMetadata",
"... | Gets the security metadata from the web app config
@param webAppConfig the webAppConfig representing the deployed module
@return the security metadata | [
"Gets",
"the",
"security",
"metadata",
"from",
"the",
"web",
"app",
"config"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java#L560-L563 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java | WebSecurityPropagatorImpl.isDenyUncoveredHttpMethods | private boolean isDenyUncoveredHttpMethods(List<SecurityConstraint> scList) {
for (SecurityConstraint sc : scList) {
List<WebResourceCollection> wrcList = sc.getWebResourceCollections();
for (WebResourceCollection wrc : wrcList) {
if (wrc.getDenyUncoveredHttpMethods()) {
... | java | private boolean isDenyUncoveredHttpMethods(List<SecurityConstraint> scList) {
for (SecurityConstraint sc : scList) {
List<WebResourceCollection> wrcList = sc.getWebResourceCollections();
for (WebResourceCollection wrc : wrcList) {
if (wrc.getDenyUncoveredHttpMethods()) {
... | [
"private",
"boolean",
"isDenyUncoveredHttpMethods",
"(",
"List",
"<",
"SecurityConstraint",
">",
"scList",
")",
"{",
"for",
"(",
"SecurityConstraint",
"sc",
":",
"scList",
")",
"{",
"List",
"<",
"WebResourceCollection",
">",
"wrcList",
"=",
"sc",
".",
"getWebRes... | Returns whether deny-uncovered-http-methods attribute is set.
In order to check this value, entire WebResourceCollection objects need to be examined,
since it only set properly when web.xml is processed.
@param scList the List of SecurityConstraint objects.
@return true if deny-uncovered-http-methods attribute is set,... | [
"Returns",
"whether",
"deny",
"-",
"uncovered",
"-",
"http",
"-",
"methods",
"attribute",
"is",
"set",
".",
"In",
"order",
"to",
"check",
"this",
"value",
"entire",
"WebResourceCollection",
"objects",
"need",
"to",
"be",
"examined",
"since",
"it",
"only",
"s... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/WebSecurityPropagatorImpl.java#L573-L583 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.createConnectionFactory | @Override
public final DataSource createConnectionFactory(ConnectionManager connMgr) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "createConnectionFactory", connMgr);
DataSource connFactory = jdbcR... | java | @Override
public final DataSource createConnectionFactory(ConnectionManager connMgr) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "createConnectionFactory", connMgr);
DataSource connFactory = jdbcR... | [
"@",
"Override",
"public",
"final",
"DataSource",
"createConnectionFactory",
"(",
"ConnectionManager",
"connMgr",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
... | Creates a javax.sql.DataSource that uses the application server provided
connection manager to manage its connections.
@param ConnectionManager connMgr - An application server provided ConnectionManager.
@return a new instance of WSJdbcDataSource or a subclass of it pertaining to a particular JDBC spec level. | [
"Creates",
"a",
"javax",
".",
"sql",
".",
"DataSource",
"that",
"uses",
"the",
"application",
"server",
"provided",
"connection",
"manager",
"to",
"manage",
"its",
"connections",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L352-L364 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getConnection | private Connection getConnection(PooledConnection pconn, WSConnectionRequestInfoImpl cri, String userName) throws ResourceException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getConnection", AdapterUtil.toSt... | java | private Connection getConnection(PooledConnection pconn, WSConnectionRequestInfoImpl cri, String userName) throws ResourceException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getConnection", AdapterUtil.toSt... | [
"private",
"Connection",
"getConnection",
"(",
"PooledConnection",
"pconn",
",",
"WSConnectionRequestInfoImpl",
"cri",
",",
"String",
"userName",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Gets a java.sql.Connection from a PooledConnection, use the cri to extract certain information
if needed, if trused context is supported, ...
@param PooledConnection pconn - the PooledConnection
@param WSConnectionRequestInfoImpl -- the cri
@param userName the user name for the connection, or NULL if unspecified.
@ret... | [
"Gets",
"a",
"java",
".",
"sql",
".",
"Connection",
"from",
"a",
"PooledConnection",
"use",
"the",
"cri",
"to",
"extract",
"certain",
"information",
"if",
"needed",
"if",
"trused",
"context",
"is",
"supported",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L705-L742 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getInvalidConnections | @Override
public Set<ManagedConnection> getInvalidConnections(@SuppressWarnings("rawtypes") Set connectionSet) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getInvalidConnections", co... | java | @Override
public Set<ManagedConnection> getInvalidConnections(@SuppressWarnings("rawtypes") Set connectionSet) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "getInvalidConnections", co... | [
"@",
"Override",
"public",
"Set",
"<",
"ManagedConnection",
">",
"getInvalidConnections",
"(",
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"Set",
"connectionSet",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
... | The spec interface is defined with raw types, so we have no choice but to declare it that way, too | [
"The",
"spec",
"interface",
"is",
"defined",
"with",
"raw",
"types",
"so",
"we",
"have",
"no",
"choice",
"but",
"to",
"declare",
"it",
"that",
"way",
"too"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1047-L1071 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getTraceable | private Object getTraceable(Object d) throws ResourceException {
WSJdbcTracer tracer = new WSJdbcTracer(helper.getTracer(), helper.getPrintWriter(), d, type, null, true);
Set<Class<?>> classes = new HashSet<Class<?>>();
for (Class<?> cl = d.getClass(); cl != null; cl = cl.getSuperclass())
... | java | private Object getTraceable(Object d) throws ResourceException {
WSJdbcTracer tracer = new WSJdbcTracer(helper.getTracer(), helper.getPrintWriter(), d, type, null, true);
Set<Class<?>> classes = new HashSet<Class<?>>();
for (Class<?> cl = d.getClass(); cl != null; cl = cl.getSuperclass())
... | [
"private",
"Object",
"getTraceable",
"(",
"Object",
"d",
")",
"throws",
"ResourceException",
"{",
"WSJdbcTracer",
"tracer",
"=",
"new",
"WSJdbcTracer",
"(",
"helper",
".",
"getTracer",
"(",
")",
",",
"helper",
".",
"getPrintWriter",
"(",
")",
",",
"d",
",",
... | Enable supplemental tracing for the underlying data source or java.sql.Driver.
@param d the underlying data source or driver.
@return a data source or driver enabled for supplemental trace.
@throws ResourceException if an error occurs obtaining the print writer. | [
"Enable",
"supplemental",
"tracing",
"for",
"the",
"underlying",
"data",
"source",
"or",
"java",
".",
"sql",
".",
"Driver",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1081-L1091 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.onConnect | private void onConnect(Connection con, String[] sqlCommands) throws SQLException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
TransactionManager tm = connectorSvc.getTransactionManager();
Transaction suspendedTx = null;
String currentSQL = null;
Throwable failur... | java | private void onConnect(Connection con, String[] sqlCommands) throws SQLException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
TransactionManager tm = connectorSvc.getTransactionManager();
Transaction suspendedTx = null;
String currentSQL = null;
Throwable failur... | [
"private",
"void",
"onConnect",
"(",
"Connection",
"con",
",",
"String",
"[",
"]",
"sqlCommands",
")",
"throws",
"SQLException",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"TransactionManager",
"tm",
"=",
... | Execute the onConnect SQL commands. The connection won't be enlisted in a WAS transaction yet,
but it's necessary to suspend and WAS global transaction in order to avoid confusing the
DB2 type 2 JDBC driver.
@param con the connection
@param sqlCommands ordered list of SQL commands to run on the connection.
@throws SQL... | [
"Execute",
"the",
"onConnect",
"SQL",
"commands",
".",
"The",
"connection",
"won",
"t",
"be",
"enlisted",
"in",
"a",
"WAS",
"transaction",
"yet",
"but",
"it",
"s",
"necessary",
"to",
"suspend",
"and",
"WAS",
"global",
"transaction",
"in",
"order",
"to",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1241-L1278 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.postGetConnectionHandling | private void postGetConnectionHandling(Connection conn) throws SQLException {
helper.doConnectionSetup(conn);
String[] sqlCommands = dsConfig.get().onConnect;
if (sqlCommands != null && sqlCommands.length > 0)
onConnect(conn, sqlCommands);
// Log the database and driver ver... | java | private void postGetConnectionHandling(Connection conn) throws SQLException {
helper.doConnectionSetup(conn);
String[] sqlCommands = dsConfig.get().onConnect;
if (sqlCommands != null && sqlCommands.length > 0)
onConnect(conn, sqlCommands);
// Log the database and driver ver... | [
"private",
"void",
"postGetConnectionHandling",
"(",
"Connection",
"conn",
")",
"throws",
"SQLException",
"{",
"helper",
".",
"doConnectionSetup",
"(",
"conn",
")",
";",
"String",
"[",
"]",
"sqlCommands",
"=",
"dsConfig",
".",
"get",
"(",
")",
".",
"onConnect"... | utility used to gather metadata info and issue doConnectionSetup. | [
"utility",
"used",
"to",
"gather",
"metadata",
"info",
"and",
"issue",
"doConnectionSetup",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1283-L1298 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.reallySetLogWriter | final void reallySetLogWriter(final PrintWriter out) throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setting the logWriter to:", out);
if (dataSourceOrDriver != null) {
try {
AccessController.doPrivi... | java | final void reallySetLogWriter(final PrintWriter out) throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setting the logWriter to:", out);
if (dataSourceOrDriver != null) {
try {
AccessController.doPrivi... | [
"final",
"void",
"reallySetLogWriter",
"(",
"final",
"PrintWriter",
"out",
")",
"throws",
"ResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
... | This method is to be used by RRA code to set logwriter when needed | [
"This",
"method",
"is",
"to",
"be",
"used",
"by",
"RRA",
"code",
"to",
"set",
"logwriter",
"when",
"needed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1337-L1362 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java | WSManagedConnectionFactoryImpl.getLoginTimeout | public final int getLoginTimeout() throws SQLException {
try {
if(!Driver.class.equals(type)) {
return ((CommonDataSource) dataSourceOrDriver).getLoginTimeout();
}
//Return that the default value is being used when using the Driver type
return 0;
... | java | public final int getLoginTimeout() throws SQLException {
try {
if(!Driver.class.equals(type)) {
return ((CommonDataSource) dataSourceOrDriver).getLoginTimeout();
}
//Return that the default value is being used when using the Driver type
return 0;
... | [
"public",
"final",
"int",
"getLoginTimeout",
"(",
")",
"throws",
"SQLException",
"{",
"try",
"{",
"if",
"(",
"!",
"Driver",
".",
"class",
".",
"equals",
"(",
"type",
")",
")",
"{",
"return",
"(",
"(",
"CommonDataSource",
")",
"dataSourceOrDriver",
")",
"... | Retrieves the login timeout for the DataSource.
@return the login timeout for the DataSource. | [
"Retrieves",
"the",
"login",
"timeout",
"for",
"the",
"DataSource",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSManagedConnectionFactoryImpl.java#L1422-L1433 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelBasicFormatter.java | HpelBasicFormatter.formatRecord | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
StringBuilder sb = new StringBuilder(300);
String lineSeparatorPlusPadding = "";
// Use basic format
createEventHeader(record, sb);
l... | java | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
StringBuilder sb = new StringBuilder(300);
String lineSeparatorPlusPadding = "";
// Use basic format
createEventHeader(record, sb);
l... | [
"@",
"Override",
"public",
"String",
"formatRecord",
"(",
"RepositoryLogRecord",
"record",
",",
"Locale",
"locale",
")",
"{",
"if",
"(",
"null",
"==",
"record",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Record cannot be null\"",
")",
";",
"}"... | Formats a RepositoryLogRecord into a localized basic format output String.
@param record the RepositoryLogRecord to be formatted
@param locale the Locale to use for localization when formatting this record.
@return the formated string output. | [
"Formats",
"a",
"RepositoryLogRecord",
"into",
"a",
"localized",
"basic",
"format",
"output",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelBasicFormatter.java#L36-L58 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java | GlobalTagLibraryCache.loadTldFromClassloader | private void loadTldFromClassloader(GlobalTagLibConfig globalTagLibConfig, TldParser tldParser) {
for (Iterator itr = globalTagLibConfig.getTldPathList().iterator(); itr.hasNext();) {
TldPathConfig tldPathConfig = (TldPathConfig) itr.next();
InputStream is = globalTagLibConfig.getClasslo... | java | private void loadTldFromClassloader(GlobalTagLibConfig globalTagLibConfig, TldParser tldParser) {
for (Iterator itr = globalTagLibConfig.getTldPathList().iterator(); itr.hasNext();) {
TldPathConfig tldPathConfig = (TldPathConfig) itr.next();
InputStream is = globalTagLibConfig.getClasslo... | [
"private",
"void",
"loadTldFromClassloader",
"(",
"GlobalTagLibConfig",
"globalTagLibConfig",
",",
"TldParser",
"tldParser",
")",
"{",
"for",
"(",
"Iterator",
"itr",
"=",
"globalTagLibConfig",
".",
"getTldPathList",
"(",
")",
".",
"iterator",
"(",
")",
";",
"itr",... | Added by DJV for Liberty - we don't want to depend on the taglib coming from a jar on our
class path if we can avoid it, so this version uses the classloader specified by the povided
taglib config to find and read the TLDs from that taglib config.
@param globalTagLibConfig The global taglib config from which to parse ... | [
"Added",
"by",
"DJV",
"for",
"Liberty",
"-",
"we",
"don",
"t",
"want",
"to",
"depend",
"on",
"the",
"taglib",
"coming",
"from",
"a",
"jar",
"on",
"our",
"class",
"path",
"if",
"we",
"can",
"avoid",
"it",
"so",
"this",
"version",
"uses",
"the",
"class... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java#L550-L586 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java | GlobalTagLibraryCache.addGlobalTagLibConfig | public void addGlobalTagLibConfig(GlobalTagLibConfig globalTagLibConfig) {
try {
TldParser tldParser = new TldParser(this, configManager, false, globalTagLibConfig.getClassloader());
if (globalTagLibConfig.getClassloader() == null)
loadTldFromJarInputStream(globalTagLibC... | java | public void addGlobalTagLibConfig(GlobalTagLibConfig globalTagLibConfig) {
try {
TldParser tldParser = new TldParser(this, configManager, false, globalTagLibConfig.getClassloader());
if (globalTagLibConfig.getClassloader() == null)
loadTldFromJarInputStream(globalTagLibC... | [
"public",
"void",
"addGlobalTagLibConfig",
"(",
"GlobalTagLibConfig",
"globalTagLibConfig",
")",
"{",
"try",
"{",
"TldParser",
"tldParser",
"=",
"new",
"TldParser",
"(",
"this",
",",
"configManager",
",",
"false",
",",
"globalTagLibConfig",
".",
"getClassloader",
"(... | add some GlobalTabLibConfig to the global tag libs we know about. If the provided
config provides a classloader, we will load the TLDs via that class loaders, otherwise the
JAR URL will be used to find the TLDs.
@param globalTagLibConfig The global tag lib config | [
"add",
"some",
"GlobalTabLibConfig",
"to",
"the",
"global",
"tag",
"libs",
"we",
"know",
"about",
".",
"If",
"the",
"provided",
"config",
"provides",
"a",
"classloader",
"we",
"will",
"load",
"the",
"TLDs",
"via",
"that",
"class",
"loaders",
"otherwise",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/GlobalTagLibraryCache.java#L596-L612 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/ClientConnectionManager.java | ClientConnectionManager.getRef | public static synchronized ClientConnectionManager getRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRef");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRef", instance);
return instan... | java | public static synchronized ClientConnectionManager getRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRef");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRef", instance);
return instan... | [
"public",
"static",
"synchronized",
"ClientConnectionManager",
"getRef",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getRef\"",
... | Returns a reference to the single instance of this class in existence.
The class must have been previously initilised by a call to the
"initialise" method - otherwise invoking this method will generate a
runtime exception.
This class implements the singleton design pattern.
@return ChannelFramework A reference to the ... | [
"Returns",
"a",
"reference",
"to",
"the",
"single",
"instance",
"of",
"this",
"class",
"in",
"existence",
".",
"The",
"class",
"must",
"have",
"been",
"previously",
"initilised",
"by",
"a",
"call",
"to",
"the",
"initialise",
"method",
"-",
"otherwise",
"invo... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/ClientConnectionManager.java#L131-L138 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java | StatsImpl.getStatistic | @Override
public WSStatistic getStatistic(int dataId) {
ArrayList members = copyStatistics();
if (members == null || members.size() <= 0)
return null;
int sz = members.size();
for (int i = 0; i < sz; i++) {
StatisticImpl data = (StatisticImpl) members.get(i);... | java | @Override
public WSStatistic getStatistic(int dataId) {
ArrayList members = copyStatistics();
if (members == null || members.size() <= 0)
return null;
int sz = members.size();
for (int i = 0; i < sz; i++) {
StatisticImpl data = (StatisticImpl) members.get(i);... | [
"@",
"Override",
"public",
"WSStatistic",
"getStatistic",
"(",
"int",
"dataId",
")",
"{",
"ArrayList",
"members",
"=",
"copyStatistics",
"(",
")",
";",
"if",
"(",
"members",
"==",
"null",
"||",
"members",
".",
"size",
"(",
")",
"<=",
"0",
")",
"return",
... | get Statistic by data id | [
"get",
"Statistic",
"by",
"data",
"id"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java#L194-L208 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java | StatsImpl.myupdate | private synchronized void myupdate(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
if (newStats == null)
return;
StatsImpl newStats1 = (StatsImpl) newStats;
// update the level and description of this collection
this.instrumentationLevel = newStats1.getLevel();... | java | private synchronized void myupdate(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
if (newStats == null)
return;
StatsImpl newStats1 = (StatsImpl) newStats;
// update the level and description of this collection
this.instrumentationLevel = newStats1.getLevel();... | [
"private",
"synchronized",
"void",
"myupdate",
"(",
"WSStats",
"newStats",
",",
"boolean",
"keepOld",
",",
"boolean",
"recursiveUpdate",
")",
"{",
"if",
"(",
"newStats",
"==",
"null",
")",
"return",
";",
"StatsImpl",
"newStats1",
"=",
"(",
"StatsImpl",
")",
... | Assume we have verified newStats is the same PMI module as this Stats | [
"Assume",
"we",
"have",
"verified",
"newStats",
"is",
"the",
"same",
"PMI",
"module",
"as",
"this",
"Stats"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsImpl.java#L639-L653 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.insert | public void insert(SimpleTest test, Object target) {
if (size == ranges.length) {
RangeEntry[] tmp = new RangeEntry[2*size];
System.arraycopy(ranges,0,tmp,0,size);
ranges = tmp;
}
ranges[size] = new RangeEntry(test, target);
size++;
} | java | public void insert(SimpleTest test, Object target) {
if (size == ranges.length) {
RangeEntry[] tmp = new RangeEntry[2*size];
System.arraycopy(ranges,0,tmp,0,size);
ranges = tmp;
}
ranges[size] = new RangeEntry(test, target);
size++;
} | [
"public",
"void",
"insert",
"(",
"SimpleTest",
"test",
",",
"Object",
"target",
")",
"{",
"if",
"(",
"size",
"==",
"ranges",
".",
"length",
")",
"{",
"RangeEntry",
"[",
"]",
"tmp",
"=",
"new",
"RangeEntry",
"[",
"2",
"*",
"size",
"]",
";",
"System",
... | Insert a range and an associated target into the table.
@param test a SimpleTest of kind==NUMERIC containing the range
@param target The target associated with the range. | [
"Insert",
"a",
"range",
"and",
"an",
"associated",
"target",
"into",
"the",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L47-L56 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.getExact | public Object getExact(SimpleTest test) {
for (int i = 0; i < size; i++) {
if (ranges[i].correspondsTo(test))
return ranges[i].target;
}
return null;
} | java | public Object getExact(SimpleTest test) {
for (int i = 0; i < size; i++) {
if (ranges[i].correspondsTo(test))
return ranges[i].target;
}
return null;
} | [
"public",
"Object",
"getExact",
"(",
"SimpleTest",
"test",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"if",
"(",
"ranges",
"[",
"i",
"]",
".",
"correspondsTo",
"(",
"test",
")",
")",
"return",
"... | Retrieve the Object associated with an exactly defined range | [
"Retrieve",
"the",
"Object",
"associated",
"with",
"an",
"exactly",
"defined",
"range"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L60-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.replace | public void replace(SimpleTest test, Object target) {
for (int i = 0; i < size; i++)
if (ranges[i].correspondsTo(test)) {
ranges[i].target = target;
return;
}
throw new IllegalStateException();
} | java | public void replace(SimpleTest test, Object target) {
for (int i = 0; i < size; i++)
if (ranges[i].correspondsTo(test)) {
ranges[i].target = target;
return;
}
throw new IllegalStateException();
} | [
"public",
"void",
"replace",
"(",
"SimpleTest",
"test",
",",
"Object",
"target",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"if",
"(",
"ranges",
"[",
"i",
"]",
".",
"correspondsTo",
"(",
"test",
")",
... | Replace the Object in a range that is known to exist | [
"Replace",
"the",
"Object",
"in",
"a",
"range",
"that",
"is",
"known",
"to",
"exist"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L70-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java | CheapRangeTable.find | public List find(Number value) { // was NumericValue
List targets = new ArrayList(1);
for (int i = 0; i < size; i++) {
if (ranges[i].contains(value))
targets.add(ranges[i].target);
}
return targets;
} | java | public List find(Number value) { // was NumericValue
List targets = new ArrayList(1);
for (int i = 0; i < size; i++) {
if (ranges[i].contains(value))
targets.add(ranges[i].target);
}
return targets;
} | [
"public",
"List",
"find",
"(",
"Number",
"value",
")",
"{",
"// was NumericValue",
"List",
"targets",
"=",
"new",
"ArrayList",
"(",
"1",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"if",
"(",
"rang... | Find targets associated with all ranges including this value.
@param value Value to search for.
@return List of all targets found. | [
"Find",
"targets",
"associated",
"with",
"all",
"ranges",
"including",
"this",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CheapRangeTable.java#L85-L94 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/XMLConfigParser.java | XMLConfigParser.parseServerConfiguration | @FFDCIgnore(XMLStreamException.class)
public boolean parseServerConfiguration(InputStream in, String docLocation, BaseConfiguration config,
MergeBehavior mergeBehavior) throws ConfigParserException, ConfigValidationException {
XMLStreamReader parser = null;
... | java | @FFDCIgnore(XMLStreamException.class)
public boolean parseServerConfiguration(InputStream in, String docLocation, BaseConfiguration config,
MergeBehavior mergeBehavior) throws ConfigParserException, ConfigValidationException {
XMLStreamReader parser = null;
... | [
"@",
"FFDCIgnore",
"(",
"XMLStreamException",
".",
"class",
")",
"public",
"boolean",
"parseServerConfiguration",
"(",
"InputStream",
"in",
",",
"String",
"docLocation",
",",
"BaseConfiguration",
"config",
",",
"MergeBehavior",
"mergeBehavior",
")",
"throws",
"ConfigP... | private if not for tests | [
"private",
"if",
"not",
"for",
"tests"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/XMLConfigParser.java#L175-L193 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | public void start(QueuedFuture<?> queuedFuture) {
Runnable timeoutTask = () -> {
queuedFuture.abort(new TimeoutException());
};
start(timeoutTask);
} | java | public void start(QueuedFuture<?> queuedFuture) {
Runnable timeoutTask = () -> {
queuedFuture.abort(new TimeoutException());
};
start(timeoutTask);
} | [
"public",
"void",
"start",
"(",
"QueuedFuture",
"<",
"?",
">",
"queuedFuture",
")",
"{",
"Runnable",
"timeoutTask",
"=",
"(",
")",
"->",
"{",
"queuedFuture",
".",
"abort",
"(",
"new",
"TimeoutException",
"(",
")",
")",
";",
"}",
";",
"start",
"(",
"tim... | start timer and cancel given future | [
"start",
"timer",
"and",
"cancel",
"given",
"future"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L72-L78 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.timeout | private void timeout() {
lock.writeLock().lock();
try {
//if already stopped, do nothing, otherwise check times and run the timeout task
if (!this.stopped) {
long now = System.nanoTime();
long remaining = this.targetEnd - now;
this.... | java | private void timeout() {
lock.writeLock().lock();
try {
//if already stopped, do nothing, otherwise check times and run the timeout task
if (!this.stopped) {
long now = System.nanoTime();
long remaining = this.targetEnd - now;
this.... | [
"private",
"void",
"timeout",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"//if already stopped, do nothing, otherwise check times and run the timeout task",
"if",
"(",
"!",
"this",
".",
"stopped",
")",
"{",
"long",... | This method is run when the timer pops | [
"This",
"method",
"is",
"run",
"when",
"the",
"timer",
"pops"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L83-L112 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | private void start(Runnable timeoutTask) {
long timeout = timeoutPolicy.getTimeout().toNanos();
start(timeoutTask, timeout);
} | java | private void start(Runnable timeoutTask) {
long timeout = timeoutPolicy.getTimeout().toNanos();
start(timeoutTask, timeout);
} | [
"private",
"void",
"start",
"(",
"Runnable",
"timeoutTask",
")",
"{",
"long",
"timeout",
"=",
"timeoutPolicy",
".",
"getTimeout",
"(",
")",
".",
"toNanos",
"(",
")",
";",
"start",
"(",
"timeoutTask",
",",
"timeout",
")",
";",
"}"
] | Get the timeout from the policy and start the timer
@param timeoutTask | [
"Get",
"the",
"timeout",
"from",
"the",
"policy",
"and",
"start",
"the",
"timer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L119-L122 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.start | private void start(Runnable timeoutTask, long remainingNanos) {
lock.writeLock().lock();
try {
this.timeoutTask = timeoutTask;
this.start = System.nanoTime();
this.targetEnd = start + remainingNanos;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | java | private void start(Runnable timeoutTask, long remainingNanos) {
lock.writeLock().lock();
try {
this.timeoutTask = timeoutTask;
this.start = System.nanoTime();
this.targetEnd = start + remainingNanos;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | [
"private",
"void",
"start",
"(",
"Runnable",
"timeoutTask",
",",
"long",
"remainingNanos",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"this",
".",
"timeoutTask",
"=",
"timeoutTask",
";",
"this",
".",
"start",
... | This is the method which actually starts the timer
WARNING: This method uses System.nanoTime(). nanoTime is a point in time relative to an arbitrary point (fixed at runtime).
As a result, it could be positive or negative and will not bare any relation to the actual time ... it's just a relative measure.
Also, since it... | [
"This",
"is",
"the",
"method",
"which",
"actually",
"starts",
"the",
"timer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L136-L163 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.stop | public void stop() {
lock.writeLock().lock();
try {
debugRelativeTime("Stop!");
this.stopped = true;
if (this.future != null && !this.future.isDone()) {
debugRelativeTime("Cancelling");
this.future.cancel(true);
}
... | java | public void stop() {
lock.writeLock().lock();
try {
debugRelativeTime("Stop!");
this.stopped = true;
if (this.future != null && !this.future.isDone()) {
debugRelativeTime("Cancelling");
this.future.cancel(true);
}
... | [
"public",
"void",
"stop",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"debugRelativeTime",
"(",
"\"Stop!\"",
")",
";",
"this",
".",
"stopped",
"=",
"true",
";",
"if",
"(",
"this",
".",
"future",
"!=",
... | Stop the timeout ... mark it as stopped and cancel the scheduled future task if required | [
"Stop",
"the",
"timeout",
"...",
"mark",
"it",
"as",
"stopped",
"and",
"cancel",
"the",
"scheduled",
"future",
"task",
"if",
"required"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L168-L182 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.restart | public void restart() {
lock.writeLock().lock();
try {
if (this.timeoutTask == null) {
throw new IllegalStateException(Tr.formatMessage(tc, "internal.error.CWMFT4999E"));
}
stop();
this.stopped = false;
start(this.timeoutTask);
... | java | public void restart() {
lock.writeLock().lock();
try {
if (this.timeoutTask == null) {
throw new IllegalStateException(Tr.formatMessage(tc, "internal.error.CWMFT4999E"));
}
stop();
this.stopped = false;
start(this.timeoutTask);
... | [
"public",
"void",
"restart",
"(",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"this",
".",
"timeoutTask",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"Tr",
".",
"formatMes... | Restart the timer ... stop the timer, reset the stopped flag and then start again with the same timeout policy | [
"Restart",
"the",
"timer",
"...",
"stop",
"the",
"timer",
"reset",
"the",
"stopped",
"flag",
"and",
"then",
"start",
"again",
"with",
"the",
"same",
"timeout",
"policy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L197-L209 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.check | public long check() {
long remaining = 0;
lock.readLock().lock();
try {
if (this.timedout) {
// Note: this clears the interrupted flag if it was set
// Assumption is that the interruption was caused by the Timeout
boolean wasInterrupted... | java | public long check() {
long remaining = 0;
lock.readLock().lock();
try {
if (this.timedout) {
// Note: this clears the interrupted flag if it was set
// Assumption is that the interruption was caused by the Timeout
boolean wasInterrupted... | [
"public",
"long",
"check",
"(",
")",
"{",
"long",
"remaining",
"=",
"0",
";",
"lock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"this",
".",
"timedout",
")",
"{",
"// Note: this clears the interrupted flag if it was set"... | Check if the timedout flag was previously set and throw an exception if it was.
Otherwise, return the remaining timeout time, in nanoseconds.
@return the time remaining, in nanoseconds | [
"Check",
"if",
"the",
"timedout",
"flag",
"was",
"previously",
"set",
"and",
"throw",
"an",
"exception",
"if",
"it",
"was",
".",
"Otherwise",
"return",
"the",
"remaining",
"timeout",
"time",
"in",
"nanoseconds",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L244-L276 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java | TimeoutImpl.debugTime | @Trivial
private void debugTime(String message, long nanos) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
FTDebug.debugTime(tc, getDescriptor(), message, nanos);
}
} | java | @Trivial
private void debugTime(String message, long nanos) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
FTDebug.debugTime(tc, getDescriptor(), message, nanos);
}
} | [
"@",
"Trivial",
"private",
"void",
"debugTime",
"(",
"String",
"message",
",",
"long",
"nanos",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"FTDebug",
".",
"debugTime",... | Output a debug message showing a given relative time, converted from nanos to seconds
@param message
@param nanos | [
"Output",
"a",
"debug",
"message",
"showing",
"a",
"given",
"relative",
"time",
"converted",
"from",
"nanos",
"to",
"seconds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance/src/com/ibm/ws/microprofile/faulttolerance/impl/TimeoutImpl.java#L307-L312 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/FilterUtils.java | FilterUtils.createPropertyFilter | public static String createPropertyFilter(String name, String value) {
assert name.matches("[^=><~()]+");
StringBuilder builder = new StringBuilder(name.length() + 3 + (value == null ? 0 : value.length() * 2));
builder.append('(').append(name).append('=');
int begin = 0;
if (va... | java | public static String createPropertyFilter(String name, String value) {
assert name.matches("[^=><~()]+");
StringBuilder builder = new StringBuilder(name.length() + 3 + (value == null ? 0 : value.length() * 2));
builder.append('(').append(name).append('=');
int begin = 0;
if (va... | [
"public",
"static",
"String",
"createPropertyFilter",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"assert",
"name",
".",
"matches",
"(",
"\"[^=><~()]+\"",
")",
";",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
"name",
".",
"length... | Creates a filter string that matches an attribute value exactly.
Characters in the value with special meaning will be escaped.
@param name a valid attribute name
@param value the exact attribute value | [
"Creates",
"a",
"filter",
"string",
"that",
"matches",
"an",
"attribute",
"value",
"exactly",
".",
"Characters",
"in",
"the",
"value",
"with",
"special",
"meaning",
"will",
"be",
"escaped",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/FilterUtils.java#L25-L44 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java | InstallUtils.delete | public static void delete(final File f) {
if (f != null && f.exists()) {
// Why do we have to specify a return type for the run method and paramatize
// PrivilegedExceptionAction to it, this method should have a void return type ideally.
AccessController.doPrivileged(new Priv... | java | public static void delete(final File f) {
if (f != null && f.exists()) {
// Why do we have to specify a return type for the run method and paramatize
// PrivilegedExceptionAction to it, this method should have a void return type ideally.
AccessController.doPrivileged(new Priv... | [
"public",
"static",
"void",
"delete",
"(",
"final",
"File",
"f",
")",
"{",
"if",
"(",
"f",
"!=",
"null",
"&&",
"f",
".",
"exists",
"(",
")",
")",
"{",
"// Why do we have to specify a return type for the run method and paramatize",
"// PrivilegedExceptionAction to it, ... | Java 2 security APIs for deleteOnExit | [
"Java",
"2",
"security",
"APIs",
"for",
"deleteOnExit"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java#L788-L805 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java | InstallUtils.getFileIputStream | public static FileInputStream getFileIputStream(final File file) throws FileNotFoundException {
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<FileInputStream>() {
@Overri... | java | public static FileInputStream getFileIputStream(final File file) throws FileNotFoundException {
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<FileInputStream>() {
@Overri... | [
"public",
"static",
"FileInputStream",
"getFileIputStream",
"(",
"final",
"File",
"file",
")",
"throws",
"FileNotFoundException",
"{",
"try",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedExceptionAction",
"<",
"FileInputStream",
">",
... | Java 2 security APIs for FileInputStream | [
"Java",
"2",
"security",
"APIs",
"for",
"FileInputStream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java#L808-L821 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java | InstallUtils.getFileLength | public static long getFileLength(final File file) throws FileNotFoundException {
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<Long>() {
@Override
... | java | public static long getFileLength(final File file) throws FileNotFoundException {
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<Long>() {
@Override
... | [
"public",
"static",
"long",
"getFileLength",
"(",
"final",
"File",
"file",
")",
"throws",
"FileNotFoundException",
"{",
"try",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedExceptionAction",
"<",
"Long",
">",
"(",
")",
"{",
"@",
... | Java 2 security APIs for file length | [
"Java",
"2",
"security",
"APIs",
"for",
"file",
"length"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/InstallUtils.java#L824-L837 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/internal/JavaURLContextFactory.java | JavaURLContextFactory.createJavaURLContext | JavaURLContext createJavaURLContext(Hashtable<?, ?> envmt, Name name) {
return new JavaURLContext(envmt, helperServices, name);
} | java | JavaURLContext createJavaURLContext(Hashtable<?, ?> envmt, Name name) {
return new JavaURLContext(envmt, helperServices, name);
} | [
"JavaURLContext",
"createJavaURLContext",
"(",
"Hashtable",
"<",
"?",
",",
"?",
">",
"envmt",
",",
"Name",
"name",
")",
"{",
"return",
"new",
"JavaURLContext",
"(",
"envmt",
",",
"helperServices",
",",
"name",
")",
";",
"}"
] | This method should only be called by the JavaURLContextReplacer class for
de-serializing an instance of JavaURLContext. The name parameter can be
null. | [
"This",
"method",
"should",
"only",
"be",
"called",
"by",
"the",
"JavaURLContextReplacer",
"class",
"for",
"de",
"-",
"serializing",
"an",
"instance",
"of",
"JavaURLContext",
".",
"The",
"name",
"parameter",
"can",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/internal/JavaURLContextFactory.java#L103-L105 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionAffinityManager.java | SessionAffinityManager.encodeURL | public String encodeURL(HttpSession session, String url) {
return encodeURL(session, null, url, null);
} | java | public String encodeURL(HttpSession session, String url) {
return encodeURL(session, null, url, null);
} | [
"public",
"String",
"encodeURL",
"(",
"HttpSession",
"session",
",",
"String",
"url",
")",
"{",
"return",
"encodeURL",
"(",
"session",
",",
"null",
",",
"url",
",",
"null",
")",
";",
"}"
] | called from ConvergedHttpSession.encodeURL path | [
"called",
"from",
"ConvergedHttpSession",
".",
"encodeURL",
"path"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionAffinityManager.java#L231-L233 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCBodyReadCallback.java | HttpOSCBodyReadCallback.complete | public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | java | public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | [
"public",
"void",
"complete",
"(",
"VirtualConnection",
"vc",
",",
"TCPReadRequestContext",
"rsc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
... | Called by the channel below us when a read has finished.
@param vc
@param rsc | [
"Called",
"by",
"the",
"channel",
"below",
"us",
"when",
"a",
"read",
"has",
"finished",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCBodyReadCallback.java#L55-L62 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCBodyReadCallback.java | HttpOSCBodyReadCallback.error | public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " ioe=" + ioe);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) ... | java | public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " ioe=" + ioe);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) ... | [
"public",
"void",
"error",
"(",
"VirtualConnection",
"vc",
",",
"TCPReadRequestContext",
"rsc",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr... | Called by the channel below us when an error occurs during a read.
@param vc
@param rsc
@param ioe | [
"Called",
"by",
"the",
"channel",
"below",
"us",
"when",
"an",
"error",
"occurs",
"during",
"a",
"read",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCBodyReadCallback.java#L71-L97 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.management.j2ee/src/com/ibm/ws/jca/management/j2ee/internal/MBeanHelper.java | MBeanHelper.logLoudAndClear | public static void logLoudAndClear(String textToLog, String callingClass, String callingMethod) {
final String methodName = "logLoudAndClear";
final boolean trace = TraceComponent.isAnyTracingEnabled();
final String cClass = (callingClass != null && !callingClass.isEmpty()) ? callingClass : "cal... | java | public static void logLoudAndClear(String textToLog, String callingClass, String callingMethod) {
final String methodName = "logLoudAndClear";
final boolean trace = TraceComponent.isAnyTracingEnabled();
final String cClass = (callingClass != null && !callingClass.isEmpty()) ? callingClass : "cal... | [
"public",
"static",
"void",
"logLoudAndClear",
"(",
"String",
"textToLog",
",",
"String",
"callingClass",
",",
"String",
"callingMethod",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"logLoudAndClear\"",
";",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
... | logLoudAndClear Log the provided text in a very distinct way making it easy to find it in the trace.log
This method should be used for testing and debugging proposes only.
This method should not be used in shipped code.
@param textToLog String representation of the test needed to be logged in a distinct way.
@param ca... | [
"logLoudAndClear",
"Log",
"the",
"provided",
"text",
"in",
"a",
"very",
"distinct",
"way",
"making",
"it",
"easy",
"to",
"find",
"it",
"in",
"the",
"trace",
".",
"log",
"This",
"method",
"should",
"be",
"used",
"for",
"testing",
"and",
"debugging",
"propos... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.management.j2ee/src/com/ibm/ws/jca/management/j2ee/internal/MBeanHelper.java#L105-L151 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.createMessageEngine | private MessagingEngine createMessageEngine(JsMEConfig me) throws Exception {
String thisMethodName = CLASS_NAME + ".createMessageEngine(JsMEConfig)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, "replace ME name here");
}
... | java | private MessagingEngine createMessageEngine(JsMEConfig me) throws Exception {
String thisMethodName = CLASS_NAME + ".createMessageEngine(JsMEConfig)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, "replace ME name here");
}
... | [
"private",
"MessagingEngine",
"createMessageEngine",
"(",
"JsMEConfig",
"me",
")",
"throws",
"Exception",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".createMessageEngine(JsMEConfig)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
... | Create a single Message Engine admin object using suppled config object. | [
"Create",
"a",
"single",
"Message",
"Engine",
"admin",
"object",
"using",
"suppled",
"config",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L472-L493 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.getBusProxy | private JsBusImpl getBusProxy(JsMEConfig me) {
String thisMethodName = CLASS_NAME + ".getBusProxy(ConfigObject)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, "ME Name");
}
if (TraceComponent.isAnyTracingEnabled() && tc... | java | private JsBusImpl getBusProxy(JsMEConfig me) {
String thisMethodName = CLASS_NAME + ".getBusProxy(ConfigObject)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, "ME Name");
}
if (TraceComponent.isAnyTracingEnabled() && tc... | [
"private",
"JsBusImpl",
"getBusProxy",
"(",
"JsMEConfig",
"me",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".getBusProxy(ConfigObject)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",... | Returns the runtime configuration of the bus to which the supplied
messaging engine belongs. If the bus runtime configuration does not yet
exist, it is created. In liberty this is default bus configuration
@param me
@return the runtime configuration of the bus to which the supplied
messaging engine belongs. | [
"Returns",
"the",
"runtime",
"configuration",
"of",
"the",
"bus",
"to",
"which",
"the",
"supplied",
"messaging",
"engine",
"belongs",
".",
"If",
"the",
"bus",
"runtime",
"configuration",
"does",
"not",
"yet",
"exist",
"it",
"is",
"created",
".",
"In",
"liber... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L504-L517 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.getBusProxy | private JsBusImpl getBusProxy(String name) throws SIBExceptionBusNotFound {
String thisMethodName = CLASS_NAME + ".getBusProxy(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, name);
}
if (TraceComponent.isAnyTrac... | java | private JsBusImpl getBusProxy(String name) throws SIBExceptionBusNotFound {
String thisMethodName = CLASS_NAME + ".getBusProxy(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, name);
}
if (TraceComponent.isAnyTrac... | [
"private",
"JsBusImpl",
"getBusProxy",
"(",
"String",
"name",
")",
"throws",
"SIBExceptionBusNotFound",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".getBusProxy(String)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Returns the runtime configuration of the bus to which the named messaging
engine belongs. If the bus runtime configuration does not yet exist, it
is created.
@param name
@return the runtime configuration of the bus to which the named messaging
engine belongs. | [
"Returns",
"the",
"runtime",
"configuration",
"of",
"the",
"bus",
"to",
"which",
"the",
"named",
"messaging",
"engine",
"belongs",
".",
"If",
"the",
"bus",
"runtime",
"configuration",
"does",
"not",
"yet",
"exist",
"it",
"is",
"created",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L528-L541 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.getBus | public JsBus getBus(String busName) throws SIBExceptionBusNotFound {
String thisMethodName = CLASS_NAME + ".getBus(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, busName);
}
if (TraceComponent.isAnyTracingEnable... | java | public JsBus getBus(String busName) throws SIBExceptionBusNotFound {
String thisMethodName = CLASS_NAME + ".getBus(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, busName);
}
if (TraceComponent.isAnyTracingEnable... | [
"public",
"JsBus",
"getBus",
"(",
"String",
"busName",
")",
"throws",
"SIBExceptionBusNotFound",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".getBus(String)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
"."... | Returns the runtime configuration of the named bus. For liberty is always
default bus
@param busName
@return the runtime configuration of the named bus. | [
"Returns",
"the",
"runtime",
"configuration",
"of",
"the",
"named",
"bus",
".",
"For",
"liberty",
"is",
"always",
"default",
"bus"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L550-L563 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.getMessagingEngineSet | public Set getMessagingEngineSet(String busName) {
String thisMethodName = CLASS_NAME + ".getMessagingEngineSet(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, busName);
}
Set retSet = new HashSet();
if (m... | java | public Set getMessagingEngineSet(String busName) {
String thisMethodName = CLASS_NAME + ".getMessagingEngineSet(String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, busName);
}
Set retSet = new HashSet();
if (m... | [
"public",
"Set",
"getMessagingEngineSet",
"(",
"String",
"busName",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".getMessagingEngineSet(String)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryE... | Returns the set of messaging engines on the named bus.
@param busName
@return the set of messaging engines on the named bus. | [
"Returns",
"the",
"set",
"of",
"messaging",
"engines",
"on",
"the",
"named",
"bus",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L762-L782 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.showMessagingEngines | public String[] showMessagingEngines() {
String thisMethodName = CLASS_NAME + ".showMessagingEngines()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
final String[] list = new String[_messagingEngines.size()];
... | java | public String[] showMessagingEngines() {
String thisMethodName = CLASS_NAME + ".showMessagingEngines()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
final String[] list = new String[_messagingEngines.size()];
... | [
"public",
"String",
"[",
"]",
"showMessagingEngines",
"(",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".showMessagingEngines()\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
... | Return a readable string of messaging engines in the process
@return String[] | [
"Return",
"a",
"readable",
"string",
"of",
"messaging",
"engines",
"in",
"the",
"process"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L794-L818 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.startMessagingEngine | public void startMessagingEngine(String busName, String name)
throws Exception {
String thisMethodName = CLASS_NAME
+ ".startMessagingEngine(String, String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(... | java | public void startMessagingEngine(String busName, String name)
throws Exception {
String thisMethodName = CLASS_NAME
+ ".startMessagingEngine(String, String)";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(... | [
"public",
"void",
"startMessagingEngine",
"(",
"String",
"busName",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".startMessagingEngine(String, String)\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTr... | Start a messaging engine
@param busName
@param name | [
"Start",
"a",
"messaging",
"engine"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L826-L851 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.isServerStarted | public boolean isServerStarted() {
String thisMethodName = CLASS_NAME + ".isServerStarted()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | java | public boolean isServerStarted() {
String thisMethodName = CLASS_NAME + ".isServerStarted()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | [
"public",
"boolean",
"isServerStarted",
"(",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".isServerStarted()\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
... | Has the WAS server in which we are contained now started?
@return true if the server is sterted; else false. | [
"Has",
"the",
"WAS",
"server",
"in",
"which",
"we",
"are",
"contained",
"now",
"started?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L980-L993 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.isServerStopping | public boolean isServerStopping() {
String thisMethodName = CLASS_NAME + ".isServerStopping()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | java | public boolean isServerStopping() {
String thisMethodName = CLASS_NAME + ".isServerStopping()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
... | [
"public",
"boolean",
"isServerStopping",
"(",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".isServerStopping()\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
... | Is the WAS server in which we are contained stopping?
@return true if the server is stopping; else false. | [
"Is",
"the",
"WAS",
"server",
"in",
"which",
"we",
"are",
"contained",
"stopping?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L1000-L1013 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.isServerInRecoveryMode | public boolean isServerInRecoveryMode() {
String thisMethodName = CLASS_NAME + ".isServerInRecoveryMode()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
boolean ret = false;// (_serverMode == Server.RECOVERY_MO... | java | public boolean isServerInRecoveryMode() {
String thisMethodName = CLASS_NAME + ".isServerInRecoveryMode()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
}
boolean ret = false;// (_serverMode == Server.RECOVERY_MO... | [
"public",
"boolean",
"isServerInRecoveryMode",
"(",
")",
"{",
"String",
"thisMethodName",
"=",
"CLASS_NAME",
"+",
"\".isServerInRecoveryMode()\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | 250606.3 recovery mode support | [
"250606",
".",
"3",
"recovery",
"mode",
"support"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L1057-L1072 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java | JsMainImpl.listDefinedBuses | public List<String> listDefinedBuses() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "listDefinedBuses", this);
}
List buses = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.exit(tc, "listDef... | java | public List<String> listDefinedBuses() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "listDefinedBuses", this);
}
List buses = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.exit(tc, "listDef... | [
"public",
"List",
"<",
"String",
">",
"listDefinedBuses",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"listDefinedBuses\""... | Returns a list of configured buses in this cell. For liberty this method
will return the null value, because no directory structure is maintained
in liberty for a bus.
@return String[] list of buses in cell | [
"Returns",
"a",
"list",
"of",
"configured",
"buses",
"in",
"this",
"cell",
".",
"For",
"liberty",
"this",
"method",
"will",
"return",
"the",
"null",
"value",
"because",
"no",
"directory",
"structure",
"is",
"maintained",
"in",
"liberty",
"for",
"a",
"bus",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMainImpl.java#L1099-L1111 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.common.encoder/src/com/ibm/ws/common/internal/encoder/Base64Coder.java | Base64Coder.base64Decode | public static final String base64Decode(String str, String enc) throws UnsupportedEncodingException {
if (str == null) {
return null;
} else {
byte data[] = getBytes(str);
return base64Decode(new String(data, enc));
}
} | java | public static final String base64Decode(String str, String enc) throws UnsupportedEncodingException {
if (str == null) {
return null;
} else {
byte data[] = getBytes(str);
return base64Decode(new String(data, enc));
}
} | [
"public",
"static",
"final",
"String",
"base64Decode",
"(",
"String",
"str",
",",
"String",
"enc",
")",
"throws",
"UnsupportedEncodingException",
"{",
"if",
"(",
"str",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"byte",
"data",
"[",
... | Converts a String with the given encoding to a base64 encoded String.
@param str
@param enc
@return
@throws UnsupportedEncodingException | [
"Converts",
"a",
"String",
"with",
"the",
"given",
"encoding",
"to",
"a",
"base64",
"encoded",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.common.encoder/src/com/ibm/ws/common/internal/encoder/Base64Coder.java#L265-L273 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.common.encoder/src/com/ibm/ws/common/internal/encoder/Base64Coder.java | Base64Coder.base64Decode | public static final String base64Decode(String str) {
if (str == null) {
return null;
} else {
byte data[] = getBytes(str);
return toString(base64Decode(data));
}
} | java | public static final String base64Decode(String str) {
if (str == null) {
return null;
} else {
byte data[] = getBytes(str);
return toString(base64Decode(data));
}
} | [
"public",
"static",
"final",
"String",
"base64Decode",
"(",
"String",
"str",
")",
"{",
"if",
"(",
"str",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"byte",
"data",
"[",
"]",
"=",
"getBytes",
"(",
"str",
")",
";",
"return",
"to... | Converts a base64 encoded String to a decoded String.
@param str String, may be {@code null}.
@return base64 encoded String {@code null} if the str was null. | [
"Converts",
"a",
"base64",
"encoded",
"String",
"to",
"a",
"decoded",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.common.encoder/src/com/ibm/ws/common/internal/encoder/Base64Coder.java#L281-L288 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java | SibRaConsumerSession.receiveNoWait | public SIBusMessage receiveNoWait(final SITransaction tran)
throws SISessionDroppedException, SIConnectionDroppedException,
SISessionUnavailableException, SIConnectionUnavailableException,
SIConnectionLostException, SILimitExceededException,
SINotAuthorizedException, SIRe... | java | public SIBusMessage receiveNoWait(final SITransaction tran)
throws SISessionDroppedException, SIConnectionDroppedException,
SISessionUnavailableException, SIConnectionUnavailableException,
SIConnectionLostException, SILimitExceededException,
SINotAuthorizedException, SIRe... | [
"public",
"SIBusMessage",
"receiveNoWait",
"(",
"final",
"SITransaction",
"tran",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionLostException",
",",... | Receives a message. Checks that the session is valid. Maps the
transaction parameter before delegating.
@param tran
the transaction to receive the message under
@return the message or <code>null</code> if none was available
@throws SISessionUnavailableException
if the connection is not valid
@throws SIIncorrectCallEx... | [
"Receives",
"a",
"message",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
".",
"Maps",
"the",
"transaction",
"parameter",
"before",
"delegating",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java#L123-L145 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java | SibRaConsumerSession.start | public void start(boolean deliverImmediately)
throws SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException, SIErrorException {
final String methodName = "start";
... | java | public void start(boolean deliverImmediately)
throws SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException, SIErrorException {
final String methodName = "start";
... | [
"public",
"void",
"start",
"(",
"boolean",
"deliverImmediately",
")",
"throws",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionLostException",
",",
"SIResourceException",
",",
"SIErrorException",
... | Starts message delivery. Checks that the session is valid then delegates.
@param deliverImmediately
whether a thread should be spun off for message delivery
@throws SIConnectionLostException
if the delegation fails
@throws SIErrorException
if the delegation fails
@throws SIErrorException
if the delegation fails
@throw... | [
"Starts",
"message",
"delivery",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
"then",
"delegates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java#L222-L241 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java | SibRaConsumerSession.stop | public void stop() throws SISessionDroppedException,
SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException {
final String methodName = "stop";
if (TraceComponent... | java | public void stop() throws SISessionDroppedException,
SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException {
final String methodName = "stop";
if (TraceComponent... | [
"public",
"void",
"stop",
"(",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionLostException",
",",
"SIResourceException",
",",
"SIErrorException",
... | Stops message delivery. Checks that the session is valid then delegates.
@throws SIErrorException
if the delegation fails
@throws SIResourceException
if the delegation fails
@throws SIConnectionLostException
if the delegation fails
@throws SISessionUnavailableException
if the session is not valid
@throws SIConnectionU... | [
"Stops",
"message",
"delivery",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
"then",
"delegates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java#L261-L279 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java | SibRaConsumerSession.unlockAll | @Override
public void unlockAll(boolean incrementUnlockCount)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SIIncorrectCallException
{
throw new SibRaNotSupportedE... | java | @Override
public void unlockAll(boolean incrementUnlockCount)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SIIncorrectCallException
{
throw new SibRaNotSupportedE... | [
"@",
"Override",
"public",
"void",
"unlockAll",
"(",
"boolean",
"incrementUnlockCount",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",... | Unlocking of messages is not supported.
@throws SibRaNotSupportedException
always | [
"Unlocking",
"of",
"messages",
"is",
"not",
"supported",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConsumerSession.java#L472-L481 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java | ClientConversationState.setConnectionObjectID | public void setConnectionObjectID(int i)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConnectionObjectID", ""+i);
connectionObjectID = i;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConnectionObjectID");... | java | public void setConnectionObjectID(int i)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConnectionObjectID", ""+i);
connectionObjectID = i;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConnectionObjectID");... | [
"public",
"void",
"setConnectionObjectID",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setConnectionO... | Sets the Connection ID referring to the SIMPConnection Object on the server.
@param i | [
"Sets",
"the",
"Connection",
"ID",
"referring",
"to",
"the",
"SIMPConnection",
"Object",
"on",
"the",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java#L101-L108 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java | ClientConversationState.getProxyQueueConversationGroup | public ProxyQueueConversationGroup getProxyQueueConversationGroup()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProxyQueueConversationGroup");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getProxyQueueConversationG... | java | public ProxyQueueConversationGroup getProxyQueueConversationGroup()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProxyQueueConversationGroup");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getProxyQueueConversationG... | [
"public",
"ProxyQueueConversationGroup",
"getProxyQueueConversationGroup",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"... | Gets the proxy queue group associated with this conversation.
@return ProxyQueueConversationGroup | [
"Gets",
"the",
"proxy",
"queue",
"group",
"associated",
"with",
"this",
"conversation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java#L115-L120 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java | ClientConversationState.getCatConnectionListeners | public CatConnectionListenerGroup getCatConnectionListeners()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCatConnectionListeners");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getCatConnectionListeners", catConnec... | java | public CatConnectionListenerGroup getCatConnectionListeners()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCatConnectionListeners");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getCatConnectionListeners", catConnec... | [
"public",
"CatConnectionListenerGroup",
"getCatConnectionListeners",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getC... | Gets the connection listener group associated with thisconversation
@return CatConnectionListenerGroup | [
"Gets",
"the",
"connection",
"listener",
"group",
"associated",
"with",
"thisconversation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java#L141-L146 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java | ClientConversationState.getSICoreConnection | public SICoreConnection getSICoreConnection()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSICoreConnection");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getSICoreConnection", siCoreConnection);
return siCor... | java | public SICoreConnection getSICoreConnection()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSICoreConnection");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getSICoreConnection", siCoreConnection);
return siCor... | [
"public",
"SICoreConnection",
"getSICoreConnection",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getSICoreConnection\... | Returns the SICoreConnection in use with this conversation
@return SICoreConnection | [
"Returns",
"the",
"SICoreConnection",
"in",
"use",
"with",
"this",
"conversation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientConversationState.java#L153-L158 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Link.java | Link.unlink | public final boolean unlink()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlink", _positionString());
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "cursor count = " + _cursorCount);
boolean unlinked = ... | java | public final boolean unlink()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlink", _positionString());
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "cursor count = " + _cursorCount);
boolean unlinked = ... | [
"public",
"final",
"boolean",
"unlink",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"unlink\"",
",",
"_positionS... | Request that the receiver be unlinked from the list. If the receiver is linked it will be
marked as logically unlinked. Note that this will perform a logical unlink, which may result
in a physical unlink | [
"Request",
"that",
"the",
"receiver",
"be",
"unlinked",
"from",
"the",
"list",
".",
"If",
"the",
"receiver",
"is",
"linked",
"it",
"will",
"be",
"marked",
"as",
"logically",
"unlinked",
".",
"Note",
"that",
"this",
"will",
"perform",
"a",
"logical",
"unlin... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Link.java#L365-L392 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/DefaultExtensionProcessor.java | DefaultExtensionProcessor.isRequestForbidden | private boolean isRequestForbidden(StringBuffer path)
{
boolean requestIsForbidden = false;
String matchString = path.toString();
//PM82876 Start
// The fileName or dirName can have .. , check and fail for ".." in path only which can allow to serve from different location.
if(WCCustomProperties.ALLOW... | java | private boolean isRequestForbidden(StringBuffer path)
{
boolean requestIsForbidden = false;
String matchString = path.toString();
//PM82876 Start
// The fileName or dirName can have .. , check and fail for ".." in path only which can allow to serve from different location.
if(WCCustomProperties.ALLOW... | [
"private",
"boolean",
"isRequestForbidden",
"(",
"StringBuffer",
"path",
")",
"{",
"boolean",
"requestIsForbidden",
"=",
"false",
";",
"String",
"matchString",
"=",
"path",
".",
"toString",
"(",
")",
";",
"//PM82876 Start",
"// The fileName or dirName can have .. , chec... | returns true if request is forbidden because it contains ".." etc. | [
"returns",
"true",
"if",
"request",
"is",
"forbidden",
"because",
"it",
"contains",
"..",
"etc",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/DefaultExtensionProcessor.java#L1466-L1519 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/DefaultExtensionProcessor.java | DefaultExtensionProcessor.isDirectoryTraverse | private boolean isDirectoryTraverse(StringBuffer path)
{
boolean directoryTraverse = false;
String matchString = path.toString();
//PM82876 Start
if (WCCustomProperties.ALLOW_DOTS_IN_NAME) {
// The fileName can have .. , check for the failing conditions only.
if (matchString.indexOf("..... | java | private boolean isDirectoryTraverse(StringBuffer path)
{
boolean directoryTraverse = false;
String matchString = path.toString();
//PM82876 Start
if (WCCustomProperties.ALLOW_DOTS_IN_NAME) {
// The fileName can have .. , check for the failing conditions only.
if (matchString.indexOf("..... | [
"private",
"boolean",
"isDirectoryTraverse",
"(",
"StringBuffer",
"path",
")",
"{",
"boolean",
"directoryTraverse",
"=",
"false",
";",
"String",
"matchString",
"=",
"path",
".",
"toString",
"(",
")",
";",
"//PM82876 Start",
"if",
"(",
"WCCustomProperties",
".",
... | 542155 Add isDirectoryTraverse method - reduced version of isRequestForbidden | [
"542155",
"Add",
"isDirectoryTraverse",
"method",
"-",
"reduced",
"version",
"of",
"isRequestForbidden"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/DefaultExtensionProcessor.java#L1522-L1561 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java | SecurityFileMonitor.monitorFiles | public ServiceRegistration<FileMonitor> monitorFiles(Collection<String> paths, long monitorInterval) {
BundleContext bundleContext = actionable.getBundleContext();
final Hashtable<String, Object> fileMonitorProps = new Hashtable<String, Object>();
fileMonitorProps.put(FileMonitor.MONITOR_FILES, ... | java | public ServiceRegistration<FileMonitor> monitorFiles(Collection<String> paths, long monitorInterval) {
BundleContext bundleContext = actionable.getBundleContext();
final Hashtable<String, Object> fileMonitorProps = new Hashtable<String, Object>();
fileMonitorProps.put(FileMonitor.MONITOR_FILES, ... | [
"public",
"ServiceRegistration",
"<",
"FileMonitor",
">",
"monitorFiles",
"(",
"Collection",
"<",
"String",
">",
"paths",
",",
"long",
"monitorInterval",
")",
"{",
"BundleContext",
"bundleContext",
"=",
"actionable",
".",
"getBundleContext",
"(",
")",
";",
"final"... | Registers this file monitor to start monitoring the specified files at the specified interval.
@param paths the paths of the files to monitor.
@param monitorInterval the rate to monitor the files.
@return the <code>FileMonitor</code> service registration. | [
"Registers",
"this",
"file",
"monitor",
"to",
"start",
"monitoring",
"the",
"specified",
"files",
"at",
"the",
"specified",
"interval",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java#L47-L53 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java | SecurityFileMonitor.monitorFiles | public ServiceRegistration<FileMonitor> monitorFiles(String ID, Collection<String> paths, long pollingRate, String trigger) {
BundleContext bundleContext = actionable.getBundleContext();
final Hashtable<String, Object> fileMonitorProps = new Hashtable<String, Object>();
fileMonitorProps.put(File... | java | public ServiceRegistration<FileMonitor> monitorFiles(String ID, Collection<String> paths, long pollingRate, String trigger) {
BundleContext bundleContext = actionable.getBundleContext();
final Hashtable<String, Object> fileMonitorProps = new Hashtable<String, Object>();
fileMonitorProps.put(File... | [
"public",
"ServiceRegistration",
"<",
"FileMonitor",
">",
"monitorFiles",
"(",
"String",
"ID",
",",
"Collection",
"<",
"String",
">",
"paths",
",",
"long",
"pollingRate",
",",
"String",
"trigger",
")",
"{",
"BundleContext",
"bundleContext",
"=",
"actionable",
".... | Registers this file monitor to start monitoring the specified files either by mbean
notification or polling rate.
@param id of the config element
@param paths the paths of the files to monitor.
@param pollingRate the rate to pole he file for a change.
@param trigger what trigger the file update notification mbean or p... | [
"Registers",
"this",
"file",
"monitor",
"to",
"start",
"monitoring",
"the",
"specified",
"files",
"either",
"by",
"mbean",
"notification",
"or",
"polling",
"rate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java#L65-L87 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java | SecurityFileMonitor.isActionNeeded | private Boolean isActionNeeded(Collection<File> createdFiles, Collection<File> modifiedFiles) {
boolean actionNeeded = false;
for (File createdFile : createdFiles) {
if (currentlyDeletedFiles.contains(createdFile)) {
currentlyDeletedFiles.remove(createdFile);
... | java | private Boolean isActionNeeded(Collection<File> createdFiles, Collection<File> modifiedFiles) {
boolean actionNeeded = false;
for (File createdFile : createdFiles) {
if (currentlyDeletedFiles.contains(createdFile)) {
currentlyDeletedFiles.remove(createdFile);
... | [
"private",
"Boolean",
"isActionNeeded",
"(",
"Collection",
"<",
"File",
">",
"createdFiles",
",",
"Collection",
"<",
"File",
">",
"modifiedFiles",
")",
"{",
"boolean",
"actionNeeded",
"=",
"false",
";",
"for",
"(",
"File",
"createdFile",
":",
"createdFiles",
"... | Action is needed if a file is modified or if it is recreated after it was deleted.
@param modifiedFiles | [
"Action",
"is",
"needed",
"if",
"a",
"file",
"is",
"modified",
"or",
"if",
"it",
"is",
"recreated",
"after",
"it",
"was",
"deleted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/filemonitor/SecurityFileMonitor.java#L121-L135 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsQueue.java | JsQueue.getQueuedMessages | public QueuedMessage[] getQueuedMessages(java.lang.Integer fromIndexInteger,java.lang.Integer toIndexInteger,java.lang.Integer totalMessagesPerpageInteger) throws Exception {
int fromIndex=fromIndexInteger.intValue();
int toIndex=toIndexInteger.intValue();
int totalMessagesPerpage=totalMessagesPerpageInteger.i... | java | public QueuedMessage[] getQueuedMessages(java.lang.Integer fromIndexInteger,java.lang.Integer toIndexInteger,java.lang.Integer totalMessagesPerpageInteger) throws Exception {
int fromIndex=fromIndexInteger.intValue();
int toIndex=toIndexInteger.intValue();
int totalMessagesPerpage=totalMessagesPerpageInteger.i... | [
"public",
"QueuedMessage",
"[",
"]",
"getQueuedMessages",
"(",
"java",
".",
"lang",
".",
"Integer",
"fromIndexInteger",
",",
"java",
".",
"lang",
".",
"Integer",
"toIndexInteger",
",",
"java",
".",
"lang",
".",
"Integer",
"totalMessagesPerpageInteger",
")",
"thr... | 673411 -start | [
"673411",
"-",
"start"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsQueue.java#L374-L406 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java | BackgroundLruEvictionStrategy.initializeCacheData | private void initializeCacheData(int cacheSize)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
Tr.entry(tc.isEntryEnabled() ? tc : tcOOM,
"initializeCacheData : " + ivCache.getName()... | java | private void initializeCacheData(int cacheSize)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
Tr.entry(tc.isEntryEnabled() ? tc : tcOOM,
"initializeCacheData : " + ivCache.getName()... | [
"private",
"void",
"initializeCacheData",
"(",
"int",
"cacheSize",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
"||",
"t... | Initialize various optimization values used by the eviction strategy that
depend on the cache size.
@param size the size of the cache used to set these values | [
"Initialize",
"various",
"optimization",
"values",
"used",
"by",
"the",
"eviction",
"strategy",
"that",
"depend",
"on",
"the",
"cache",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java#L267-L295 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java | BackgroundLruEvictionStrategy.initializeSweepInterval | private void initializeSweepInterval(long sweepInterval)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
Tr.entry(tc.isEntryEnabled() ? tc : tcOOM,
"initializeSweepInterval : " + ivCa... | java | private void initializeSweepInterval(long sweepInterval)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
Tr.entry(tc.isEntryEnabled() ? tc : tcOOM,
"initializeSweepInterval : " + ivCa... | [
"private",
"void",
"initializeSweepInterval",
"(",
"long",
"sweepInterval",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
"... | Initialize all of the intervals that are derived from the configurable
sweep interval. Can be called at any time during runtime.
@param sweepInterval the interval between sweeps that this eviction
strategy uses | [
"Initialize",
"all",
"of",
"the",
"intervals",
"that",
"are",
"derived",
"from",
"the",
"configurable",
"sweep",
"interval",
".",
"Can",
"be",
"called",
"at",
"any",
"time",
"during",
"runtime",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java#L304-L339 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java | BackgroundLruEvictionStrategy.isTraceEnabled | private boolean isTraceEnabled(boolean debug) // d581579
{
if (debug ? tc.isDebugEnabled() : tc.isEntryEnabled())
{
return true;
}
if (ivCache.numSweeps % NUM_SWEEPS_PER_OOMTRACE == 1 &&
(debug ? tcOOM.isDebugEnabled() : tcOOM.isEntryEnabled()))
{
... | java | private boolean isTraceEnabled(boolean debug) // d581579
{
if (debug ? tc.isDebugEnabled() : tc.isEntryEnabled())
{
return true;
}
if (ivCache.numSweeps % NUM_SWEEPS_PER_OOMTRACE == 1 &&
(debug ? tcOOM.isDebugEnabled() : tcOOM.isEntryEnabled()))
{
... | [
"private",
"boolean",
"isTraceEnabled",
"(",
"boolean",
"debug",
")",
"// d581579",
"{",
"if",
"(",
"debug",
"?",
"tc",
".",
"isDebugEnabled",
"(",
")",
":",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"ivCac... | Returns true if trace should be printed. | [
"Returns",
"true",
"if",
"trace",
"should",
"be",
"printed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BackgroundLruEvictionStrategy.java#L378-L392 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/CFWIOBaseContext.java | CFWIOBaseContext.getNetworkConnectionInstance | protected NetworkConnection getNetworkConnectionInstance(VirtualConnection vc)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getNetworkConnectionInstance", vc);
NetworkConnection retConn = null;
if (vc != null)
{
// Default to the connection that we were created from
... | java | protected NetworkConnection getNetworkConnectionInstance(VirtualConnection vc)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getNetworkConnectionInstance", vc);
NetworkConnection retConn = null;
if (vc != null)
{
// Default to the connection that we were created from
... | [
"protected",
"NetworkConnection",
"getNetworkConnectionInstance",
"(",
"VirtualConnection",
"vc",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getNetworkConnectionInstance\"",
",",
"vc",
... | This method tries to avoid creating a new instance of a CFWNetworkConnection object by seeing
if the specified virtual connection is the one that we are wrapping in the
CFWNetworkConnection instance that created this context. If it is, we simply return that.
Otherwise we must create a new instance.
@param vc The virtu... | [
"This",
"method",
"tries",
"to",
"avoid",
"creating",
"a",
"new",
"instance",
"of",
"a",
"CFWNetworkConnection",
"object",
"by",
"seeing",
"if",
"the",
"specified",
"virtual",
"connection",
"is",
"the",
"one",
"that",
"we",
"are",
"wrapping",
"in",
"the",
"C... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/CFWIOBaseContext.java#L63-L82 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java | MessageMap.setChoices | private void setChoices(BigInteger multiChoice, JSchema schema) {
JSType topType = (JSType)schema.getJMFType();
if (topType instanceof JSVariant)
setChoices(multiChoice, schema, (JSVariant)topType);
else if (topType instanceof JSTuple)
setChoices(
multiChoice,
topType.getMultiCho... | java | private void setChoices(BigInteger multiChoice, JSchema schema) {
JSType topType = (JSType)schema.getJMFType();
if (topType instanceof JSVariant)
setChoices(multiChoice, schema, (JSVariant)topType);
else if (topType instanceof JSTuple)
setChoices(
multiChoice,
topType.getMultiCho... | [
"private",
"void",
"setChoices",
"(",
"BigInteger",
"multiChoice",
",",
"JSchema",
"schema",
")",
"{",
"JSType",
"topType",
"=",
"(",
"JSType",
")",
"schema",
".",
"getJMFType",
"(",
")",
";",
"if",
"(",
"topType",
"instanceof",
"JSVariant",
")",
"setChoices... | multichoice code. | [
"multichoice",
"code",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java#L106-L120 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java | MessageMap.setChoices | private void setChoices(BigInteger multiChoice, JSchema schema, JSVariant var) {
for (int i = 0; i < var.getCaseCount(); i++) {
BigInteger count = ((JSType)var.getCase(i)).getMultiChoiceCount();
if (multiChoice.compareTo(count) >= 0)
multiChoice = multiChoice.subtract(count);
else {
... | java | private void setChoices(BigInteger multiChoice, JSchema schema, JSVariant var) {
for (int i = 0; i < var.getCaseCount(); i++) {
BigInteger count = ((JSType)var.getCase(i)).getMultiChoiceCount();
if (multiChoice.compareTo(count) >= 0)
multiChoice = multiChoice.subtract(count);
else {
... | [
"private",
"void",
"setChoices",
"(",
"BigInteger",
"multiChoice",
",",
"JSchema",
"schema",
",",
"JSVariant",
"var",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"var",
".",
"getCaseCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"BigInteg... | Set the choices implied by the multiChoice code or contribution to a single JSVariant | [
"Set",
"the",
"choices",
"implied",
"by",
"the",
"multiChoice",
"code",
"or",
"contribution",
"to",
"a",
"single",
"JSVariant"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java#L123-L139 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java | MessageMap.setChoices | private void setChoices(BigInteger multiChoice, BigInteger radix, JSchema schema, JSVariant[] vars) {
for (int j = 0; j < vars.length; j++) {
radix = radix.divide(vars[j].getMultiChoiceCount());
BigInteger contrib = multiChoice.divide(radix);
multiChoice = multiChoice.remainder(radix);
setCh... | java | private void setChoices(BigInteger multiChoice, BigInteger radix, JSchema schema, JSVariant[] vars) {
for (int j = 0; j < vars.length; j++) {
radix = radix.divide(vars[j].getMultiChoiceCount());
BigInteger contrib = multiChoice.divide(radix);
multiChoice = multiChoice.remainder(radix);
setCh... | [
"private",
"void",
"setChoices",
"(",
"BigInteger",
"multiChoice",
",",
"BigInteger",
"radix",
",",
"JSchema",
"schema",
",",
"JSVariant",
"[",
"]",
"vars",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"vars",
".",
"length",
";",
"j",
"... | JSVariant whose choices are being set. | [
"JSVariant",
"whose",
"choices",
"are",
"being",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java#L144-L151 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java | MessageMap.getMultiChoice | private static BigInteger getMultiChoice(int[] choices, JSchema schema, JSVariant var) throws JMFUninitializedAccessException {
int choice = choices[var.getIndex()];
if (choice == -1)
throw new JMFUninitializedAccessException(schema.getPathName(var));
BigInteger ans = BigInteger.ZERO;
// First, ad... | java | private static BigInteger getMultiChoice(int[] choices, JSchema schema, JSVariant var) throws JMFUninitializedAccessException {
int choice = choices[var.getIndex()];
if (choice == -1)
throw new JMFUninitializedAccessException(schema.getPathName(var));
BigInteger ans = BigInteger.ZERO;
// First, ad... | [
"private",
"static",
"BigInteger",
"getMultiChoice",
"(",
"int",
"[",
"]",
"choices",
",",
"JSchema",
"schema",
",",
"JSVariant",
"var",
")",
"throws",
"JMFUninitializedAccessException",
"{",
"int",
"choice",
"=",
"choices",
"[",
"var",
".",
"getIndex",
"(",
"... | Compute the multiChoice code or contribution for an individual variant | [
"Compute",
"the",
"multiChoice",
"code",
"or",
"contribution",
"for",
"an",
"individual",
"variant"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java#L194-L209 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java | MessageMap.getMultiChoice | private static BigInteger getMultiChoice(int[] choices, JSchema schema, JSVariant[] vars) throws JMFUninitializedAccessException {
// Mixed-radix-encode the contribution from all the subvariants
BigInteger base = BigInteger.ZERO;
for (int i = 0; i < vars.length; i++)
base = base.multiply(vars[i].getMu... | java | private static BigInteger getMultiChoice(int[] choices, JSchema schema, JSVariant[] vars) throws JMFUninitializedAccessException {
// Mixed-radix-encode the contribution from all the subvariants
BigInteger base = BigInteger.ZERO;
for (int i = 0; i < vars.length; i++)
base = base.multiply(vars[i].getMu... | [
"private",
"static",
"BigInteger",
"getMultiChoice",
"(",
"int",
"[",
"]",
"choices",
",",
"JSchema",
"schema",
",",
"JSVariant",
"[",
"]",
"vars",
")",
"throws",
"JMFUninitializedAccessException",
"{",
"// Mixed-radix-encode the contribution from all the subvariants",
"B... | being calculate. | [
"being",
"calculate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMap.java#L214-L220 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java | HtmlLinkRendererBase.getStyle | protected String getStyle(FacesContext facesContext, UIComponent link)
{
if (link instanceof HtmlCommandLink)
{
return ((HtmlCommandLink)link).getStyle();
}
return (String)link.getAttributes().get(HTML.STYLE_ATTR);
} | java | protected String getStyle(FacesContext facesContext, UIComponent link)
{
if (link instanceof HtmlCommandLink)
{
return ((HtmlCommandLink)link).getStyle();
}
return (String)link.getAttributes().get(HTML.STYLE_ATTR);
} | [
"protected",
"String",
"getStyle",
"(",
"FacesContext",
"facesContext",
",",
"UIComponent",
"link",
")",
"{",
"if",
"(",
"link",
"instanceof",
"HtmlCommandLink",
")",
"{",
"return",
"(",
"(",
"HtmlCommandLink",
")",
"link",
")",
".",
"getStyle",
"(",
")",
";... | Can be overwritten by derived classes to overrule the style to be used. | [
"Can",
"be",
"overwritten",
"by",
"derived",
"classes",
"to",
"overrule",
"the",
"style",
"to",
"be",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java#L161-L170 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java | HtmlLinkRendererBase.getStyleClass | protected String getStyleClass(FacesContext facesContext, UIComponent link)
{
if (link instanceof HtmlCommandLink)
{
return ((HtmlCommandLink)link).getStyleClass();
}
return (String)link.getAttributes().get(HTML.STYLE_CLASS_ATTR);
} | java | protected String getStyleClass(FacesContext facesContext, UIComponent link)
{
if (link instanceof HtmlCommandLink)
{
return ((HtmlCommandLink)link).getStyleClass();
}
return (String)link.getAttributes().get(HTML.STYLE_CLASS_ATTR);
} | [
"protected",
"String",
"getStyleClass",
"(",
"FacesContext",
"facesContext",
",",
"UIComponent",
"link",
")",
"{",
"if",
"(",
"link",
"instanceof",
"HtmlCommandLink",
")",
"{",
"return",
"(",
"(",
"HtmlCommandLink",
")",
"link",
")",
".",
"getStyleClass",
"(",
... | Can be overwritten by derived classes to overrule the style class to be used. | [
"Can",
"be",
"overwritten",
"by",
"derived",
"classes",
"to",
"overrule",
"the",
"style",
"class",
"to",
"be",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java#L175-L184 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.completeConnectionPreface | protected void completeConnectionPreface() throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "completeConnectionPreface entry: about to send preface SETTINGS frame");
}
FrameSettings settings;
// send out a settings frame ... | java | protected void completeConnectionPreface() throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "completeConnectionPreface entry: about to send preface SETTINGS frame");
}
FrameSettings settings;
// send out a settings frame ... | [
"protected",
"void",
"completeConnectionPreface",
"(",
")",
"throws",
"Http2Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"comp... | Complete the connection preface. At this point, we should have received the client connection preface string.
Now we need to make sure that the client sent a settings frame along with the preface, update our settings,
and send an empty settings frame in response to the client preface.
@throws Http2Exception | [
"Complete",
"the",
"connection",
"preface",
".",
"At",
"this",
"point",
"we",
"should",
"have",
"received",
"the",
"client",
"connection",
"preface",
"string",
".",
"Now",
"we",
"need",
"to",
"make",
"sure",
"that",
"the",
"client",
"sent",
"a",
"settings",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L161-L181 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.readWriteTransitionState | private void readWriteTransitionState(Constants.Direction direction) throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "readWriteTransitionState: entry: frame type: " + currentFrame.getFrameType() + " state: " + state);
}
if (cu... | java | private void readWriteTransitionState(Constants.Direction direction) throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "readWriteTransitionState: entry: frame type: " + currentFrame.getFrameType() + " state: " + state);
}
if (cu... | [
"private",
"void",
"readWriteTransitionState",
"(",
"Constants",
".",
"Direction",
"direction",
")",
"throws",
"Http2Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
... | Transitions the stream state, give the previous state and current frame. Handles writes and error processing as needed.
@param Direction.WRITING_OUT or Direction.READING_IN
@throws Http2Exception | [
"Transitions",
"the",
"stream",
"state",
"give",
"the",
"previous",
"state",
"and",
"current",
"frame",
".",
"Handles",
"writes",
"and",
"error",
"processing",
"as",
"needed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L549-L606 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.updateStreamState | private void updateStreamState(StreamState state) {
this.state = state;
if (StreamState.CLOSED.equals(state)) {
setCloseTime(System.currentTimeMillis());
muxLink.closeStream(this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr... | java | private void updateStreamState(StreamState state) {
this.state = state;
if (StreamState.CLOSED.equals(state)) {
setCloseTime(System.currentTimeMillis());
muxLink.closeStream(this);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr... | [
"private",
"void",
"updateStreamState",
"(",
"StreamState",
"state",
")",
"{",
"this",
".",
"state",
"=",
"state",
";",
"if",
"(",
"StreamState",
".",
"CLOSED",
".",
"equals",
"(",
"state",
")",
")",
"{",
"setCloseTime",
"(",
"System",
".",
"currentTimeMil... | Update the stream state and provide logging, if enabled
@param state | [
"Update",
"the",
"stream",
"state",
"and",
"provide",
"logging",
"if",
"enabled"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L613-L622 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.processSETTINGSFrame | private void processSETTINGSFrame() throws FlowControlException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "processSETTINGSFrame entry:\n" + currentFrame.toString());
}
// check if this is the first non-ACK settings frame received; if so, update... | java | private void processSETTINGSFrame() throws FlowControlException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "processSETTINGSFrame entry:\n" + currentFrame.toString());
}
// check if this is the first non-ACK settings frame received; if so, update... | [
"private",
"void",
"processSETTINGSFrame",
"(",
")",
"throws",
"FlowControlException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"proce... | Helper method to process a SETTINGS frame received from the client. Since the protocol utilizes SETTINGS frames for
initialization, some special logic is needed.
@throws FlowControlException | [
"Helper",
"method",
"to",
"process",
"a",
"SETTINGS",
"frame",
"received",
"from",
"the",
"client",
".",
"Since",
"the",
"protocol",
"utilizes",
"SETTINGS",
"frames",
"for",
"initialization",
"some",
"special",
"logic",
"is",
"needed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L638-L694 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.updateStreamReadWindow | private void updateStreamReadWindow() throws Http2Exception {
if (currentFrame instanceof FrameData) {
long frameSize = currentFrame.getPayloadLength();
streamReadWindowSize -= frameSize; // decrement stream read window
muxLink.connectionReadWindowSize -= frameSize; // decrem... | java | private void updateStreamReadWindow() throws Http2Exception {
if (currentFrame instanceof FrameData) {
long frameSize = currentFrame.getPayloadLength();
streamReadWindowSize -= frameSize; // decrement stream read window
muxLink.connectionReadWindowSize -= frameSize; // decrem... | [
"private",
"void",
"updateStreamReadWindow",
"(",
")",
"throws",
"Http2Exception",
"{",
"if",
"(",
"currentFrame",
"instanceof",
"FrameData",
")",
"{",
"long",
"frameSize",
"=",
"currentFrame",
".",
"getPayloadLength",
"(",
")",
";",
"streamReadWindowSize",
"-=",
... | If this stream is receiving a DATA frame, the local read window needs to be updated. If the read window drops below a threshold,
a WINDOW_UPDATE frame will be sent for both the connection and stream to update the windows. | [
"If",
"this",
"stream",
"is",
"receiving",
"a",
"DATA",
"frame",
"the",
"local",
"read",
"window",
"needs",
"to",
"be",
"updated",
".",
"If",
"the",
"read",
"window",
"drops",
"below",
"a",
"threshold",
"a",
"WINDOW_UPDATE",
"frame",
"will",
"be",
"sent",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L756-L779 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.updateInitialWindowsUpdateSize | protected void updateInitialWindowsUpdateSize(int newSize) throws FlowControlException {
// this method should only be called by the thread that came in on processNewFrame.
// newSize should be treated as an unsigned 32-bit int
if (myID == 0) {
// the control stream doesn't care abo... | java | protected void updateInitialWindowsUpdateSize(int newSize) throws FlowControlException {
// this method should only be called by the thread that came in on processNewFrame.
// newSize should be treated as an unsigned 32-bit int
if (myID == 0) {
// the control stream doesn't care abo... | [
"protected",
"void",
"updateInitialWindowsUpdateSize",
"(",
"int",
"newSize",
")",
"throws",
"FlowControlException",
"{",
"// this method should only be called by the thread that came in on processNewFrame.",
"// newSize should be treated as an unsigned 32-bit int",
"if",
"(",
"myID",
... | Updates the initial window size for this stream. If any data frames are waiting for an increased window size,
write them out if the new window size allows it.
@param newSize - new window size
@throws FlowControlException | [
"Updates",
"the",
"initial",
"window",
"size",
"for",
"this",
"stream",
".",
"If",
"any",
"data",
"frames",
"are",
"waiting",
"for",
"an",
"increased",
"window",
"size",
"write",
"them",
"out",
"if",
"the",
"new",
"window",
"size",
"allows",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L801-L826 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.processIdle | private void processIdle(Constants.Direction direction) throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "processIdle entry: stream " + myID);
}
// Can only receive HEADERS or PRIORITY frame in Idle state
if (direction ==... | java | private void processIdle(Constants.Direction direction) throws Http2Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "processIdle entry: stream " + myID);
}
// Can only receive HEADERS or PRIORITY frame in Idle state
if (direction ==... | [
"private",
"void",
"processIdle",
"(",
"Constants",
".",
"Direction",
"direction",
")",
"throws",
"Http2Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"deb... | Perform operations to transition into IDLE state
@param direction
@throws CompressionException
@throws FlowControlException
@throws ProtocolException | [
"Perform",
"operations",
"to",
"transition",
"into",
"IDLE",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L928-L971 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.isWindowLimitExceeded | private boolean isWindowLimitExceeded(FrameData dataFrame) {
if (streamWindowUpdateWriteLimit - dataFrame.getPayloadLength() < 0 ||
muxLink.getWorkQ().getConnectionWriteLimit() - dataFrame.getPayloadLength() < 0) {
// would exceed window update limit
String s = "Cannot write ... | java | private boolean isWindowLimitExceeded(FrameData dataFrame) {
if (streamWindowUpdateWriteLimit - dataFrame.getPayloadLength() < 0 ||
muxLink.getWorkQ().getConnectionWriteLimit() - dataFrame.getPayloadLength() < 0) {
// would exceed window update limit
String s = "Cannot write ... | [
"private",
"boolean",
"isWindowLimitExceeded",
"(",
"FrameData",
"dataFrame",
")",
"{",
"if",
"(",
"streamWindowUpdateWriteLimit",
"-",
"dataFrame",
".",
"getPayloadLength",
"(",
")",
"<",
"0",
"||",
"muxLink",
".",
"getWorkQ",
"(",
")",
".",
"getConnectionWriteLi... | Check to see if a writing out a frame will cause the stream or connection window to go exceeded
@return true if the write window would be exceeded by writing the frame | [
"Check",
"to",
"see",
"if",
"a",
"writing",
"out",
"a",
"frame",
"will",
"cause",
"the",
"stream",
"or",
"connection",
"window",
"to",
"go",
"exceeded"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1120-L1135 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.sendRequestToWc | public void sendRequestToWc(FramePPHeaders frame) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "H2StreamProcessor.sendRequestToWc()");
}
if (null == frame) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | public void sendRequestToWc(FramePPHeaders frame) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "H2StreamProcessor.sendRequestToWc()");
}
if (null == frame) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"public",
"void",
"sendRequestToWc",
"(",
"FramePPHeaders",
"frame",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"H2StreamProcessor.... | Send an artificially created H2 request from a push_promise up to the WebContainer | [
"Send",
"an",
"artificially",
"created",
"H2",
"request",
"from",
"a",
"push_promise",
"up",
"to",
"the",
"WebContainer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1140-L1174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.setHeadersComplete | private void setHeadersComplete() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "completed headers have been received stream " + myID);
}
headersCompleted = true;
muxLink.setContinuationExpected(false);
} | java | private void setHeadersComplete() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "completed headers have been received stream " + myID);
}
headersCompleted = true;
muxLink.setContinuationExpected(false);
} | [
"private",
"void",
"setHeadersComplete",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"completed headers have been received stream \... | Call when all header block fragments for a header block have been received | [
"Call",
"when",
"all",
"header",
"block",
"fragments",
"for",
"a",
"header",
"block",
"have",
"been",
"received"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1348-L1354 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.getHeadersFromFrame | private void getHeadersFromFrame() {
byte[] hbf = null;
if (currentFrame.getFrameType() == FrameTypes.HEADERS || currentFrame.getFrameType() == FrameTypes.PUSHPROMISEHEADERS) {
hbf = ((FrameHeaders) currentFrame).getHeaderBlockFragment();
} else if (currentFrame.getFrameType() == Fra... | java | private void getHeadersFromFrame() {
byte[] hbf = null;
if (currentFrame.getFrameType() == FrameTypes.HEADERS || currentFrame.getFrameType() == FrameTypes.PUSHPROMISEHEADERS) {
hbf = ((FrameHeaders) currentFrame).getHeaderBlockFragment();
} else if (currentFrame.getFrameType() == Fra... | [
"private",
"void",
"getHeadersFromFrame",
"(",
")",
"{",
"byte",
"[",
"]",
"hbf",
"=",
"null",
";",
"if",
"(",
"currentFrame",
".",
"getFrameType",
"(",
")",
"==",
"FrameTypes",
".",
"HEADERS",
"||",
"currentFrame",
".",
"getFrameType",
"(",
")",
"==",
"... | Appends the header block fragment in the current header frame to this stream's incomplete header block | [
"Appends",
"the",
"header",
"block",
"fragment",
"in",
"the",
"current",
"header",
"frame",
"to",
"this",
"stream",
"s",
"incomplete",
"header",
"block"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1372-L1386 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.getBodyFromFrame | private void getBodyFromFrame() {
if (dataPayload == null) {
dataPayload = new ArrayList<byte[]>();
}
if (currentFrame.getFrameType() == FrameTypes.DATA) {
dataPayload.add(((FrameData) currentFrame).getData());
}
} | java | private void getBodyFromFrame() {
if (dataPayload == null) {
dataPayload = new ArrayList<byte[]>();
}
if (currentFrame.getFrameType() == FrameTypes.DATA) {
dataPayload.add(((FrameData) currentFrame).getData());
}
} | [
"private",
"void",
"getBodyFromFrame",
"(",
")",
"{",
"if",
"(",
"dataPayload",
"==",
"null",
")",
"{",
"dataPayload",
"=",
"new",
"ArrayList",
"<",
"byte",
"[",
"]",
">",
"(",
")",
";",
"}",
"if",
"(",
"currentFrame",
".",
"getFrameType",
"(",
")",
... | Grab the data from the current frame | [
"Grab",
"the",
"data",
"from",
"the",
"current",
"frame"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1523-L1530 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.processCompleteData | private void processCompleteData() throws ProtocolException {
WsByteBufferPoolManager bufManager = HttpDispatcher.getBufferManager();
WsByteBuffer buf = bufManager.allocate(getByteCount(dataPayload));
for (byte[] bytes : dataPayload) {
buf.put(bytes);
}
buf.flip();
... | java | private void processCompleteData() throws ProtocolException {
WsByteBufferPoolManager bufManager = HttpDispatcher.getBufferManager();
WsByteBuffer buf = bufManager.allocate(getByteCount(dataPayload));
for (byte[] bytes : dataPayload) {
buf.put(bytes);
}
buf.flip();
... | [
"private",
"void",
"processCompleteData",
"(",
")",
"throws",
"ProtocolException",
"{",
"WsByteBufferPoolManager",
"bufManager",
"=",
"HttpDispatcher",
".",
"getBufferManager",
"(",
")",
";",
"WsByteBuffer",
"buf",
"=",
"bufManager",
".",
"allocate",
"(",
"getByteCoun... | Put the data payload for this stream into the read buffer that will be passed to the webcontainer.
This should only be called when this stream has received an end of stream flag.
@throws ProtocolException | [
"Put",
"the",
"data",
"payload",
"for",
"this",
"stream",
"into",
"the",
"read",
"buffer",
"that",
"will",
"be",
"passed",
"to",
"the",
"webcontainer",
".",
"This",
"should",
"only",
"be",
"called",
"when",
"this",
"stream",
"has",
"received",
"an",
"end",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1538-L1555 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.setReadyForRead | private void setReadyForRead() throws ProtocolException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setReadyForRead entry: stream id:" + myID);
}
muxLink.updateHighestStreamId(myID);
if (headersCompleted) {
ExecutorService ex... | java | private void setReadyForRead() throws ProtocolException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setReadyForRead entry: stream id:" + myID);
}
muxLink.updateHighestStreamId(myID);
if (headersCompleted) {
ExecutorService ex... | [
"private",
"void",
"setReadyForRead",
"(",
")",
"throws",
"ProtocolException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"setReadyForRe... | Tell the HTTP inbound link that we have data ready for it to read
@throws ProtocolException | [
"Tell",
"the",
"HTTP",
"inbound",
"link",
"that",
"we",
"have",
"data",
"ready",
"for",
"it",
"to",
"read"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1562-L1572 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.moveDataIntoReadBufferArray | private void moveDataIntoReadBufferArray(WsByteBuffer newReadBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "moveDataIntoReadBufferArray entry: stream " + myID + " buffer: " + newReadBuffer);
}
// move the data that is to be sent up the cha... | java | private void moveDataIntoReadBufferArray(WsByteBuffer newReadBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "moveDataIntoReadBufferArray entry: stream " + myID + " buffer: " + newReadBuffer);
}
// move the data that is to be sent up the cha... | [
"private",
"void",
"moveDataIntoReadBufferArray",
"(",
"WsByteBuffer",
"newReadBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\... | Add a buffer to the list of buffers that will be sent to the WebContainer when a read is requested
@param newReadBuffer | [
"Add",
"a",
"buffer",
"to",
"the",
"list",
"of",
"buffers",
"that",
"will",
"be",
"sent",
"to",
"the",
"WebContainer",
"when",
"a",
"read",
"is",
"requested"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1611-L1625 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.read | @SuppressWarnings("unchecked")
public VirtualConnection read(long numBytes, WsByteBuffer[] requestBuffers) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "read entry: stream " + myID + " request: " + requestBuffers + " num bytes requested: " + numBytes);
... | java | @SuppressWarnings("unchecked")
public VirtualConnection read(long numBytes, WsByteBuffer[] requestBuffers) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "read entry: stream " + myID + " request: " + requestBuffers + " num bytes requested: " + numBytes);
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"VirtualConnection",
"read",
"(",
"long",
"numBytes",
",",
"WsByteBuffer",
"[",
"]",
"requestBuffers",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"... | Read the HTTP header and data bytes for this stream
@param numBytes the number of bytes to read
@param requestBuffers an array of buffers to copy the read data into
@return this stream's VirtualConnection or null if too many bytes were requested | [
"Read",
"the",
"HTTP",
"header",
"and",
"data",
"bytes",
"for",
"this",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1634-L1694 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.isStreamClosed | public boolean isStreamClosed() {
if (this.myID == 0 && !endStream) {
return false;
}
if (state == StreamState.CLOSED) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "isStreamClosed stream closed; " + streamId());
... | java | public boolean isStreamClosed() {
if (this.myID == 0 && !endStream) {
return false;
}
if (state == StreamState.CLOSED) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "isStreamClosed stream closed; " + streamId());
... | [
"public",
"boolean",
"isStreamClosed",
"(",
")",
"{",
"if",
"(",
"this",
".",
"myID",
"==",
"0",
"&&",
"!",
"endStream",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"state",
"==",
"StreamState",
".",
"CLOSED",
")",
"{",
"if",
"(",
"TraceCompone... | Check if the current stream should be closed
@return true if the stream should stop processing | [
"Check",
"if",
"the",
"current",
"stream",
"should",
"be",
"closed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1836-L1857 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java | H2StreamProcessor.getByteCount | private int getByteCount(ArrayList<byte[]> listOfByteArrays) {
int count = 0;
for (byte[] byteArray : listOfByteArrays) {
if (byteArray != null) {
count += byteArray.length;
}
}
return count;
} | java | private int getByteCount(ArrayList<byte[]> listOfByteArrays) {
int count = 0;
for (byte[] byteArray : listOfByteArrays) {
if (byteArray != null) {
count += byteArray.length;
}
}
return count;
} | [
"private",
"int",
"getByteCount",
"(",
"ArrayList",
"<",
"byte",
"[",
"]",
">",
"listOfByteArrays",
")",
"{",
"int",
"count",
"=",
"0",
";",
"for",
"(",
"byte",
"[",
"]",
"byteArray",
":",
"listOfByteArrays",
")",
"{",
"if",
"(",
"byteArray",
"!=",
"nu... | Get the number of bytes in this list of byte arrays
@param listOfByteArrays
@return the total byte count for this list of byte arrays | [
"Get",
"the",
"number",
"of",
"bytes",
"in",
"this",
"list",
"of",
"byte",
"arrays"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2StreamProcessor.java#L1917-L1925 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/util/UniqueIDUtils.java | UniqueIDUtils.generateIncUuid | public static String generateIncUuid(Object caller)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "generateIncUuid", "Caller="+caller);
java.util.Date time = new java.util.Date();
int hash = caller.hashCode();
long millis = time.getTime();
... | java | public static String generateIncUuid(Object caller)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "generateIncUuid", "Caller="+caller);
java.util.Date time = new java.util.Date();
int hash = caller.hashCode();
long millis = time.getTime();
... | [
"public",
"static",
"String",
"generateIncUuid",
"(",
"Object",
"caller",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"generateIncUuid... | The UUID for this incarnation of ME is generated
using the hashcode of this object and the least
significant four bytes of the current time in
milliseconds.
@param caller The calling object used in the generation of the incarnation UUID
@return The generated incarnation UUID | [
"The",
"UUID",
"for",
"this",
"incarnation",
"of",
"ME",
"is",
"generated",
"using",
"the",
"hashcode",
"of",
"this",
"object",
"and",
"the",
"least",
"significant",
"four",
"bytes",
"of",
"the",
"current",
"time",
"in",
"milliseconds",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/util/UniqueIDUtils.java#L34-L63 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/SibTr.java | SibTr.getMEName | public static String getMEName(Object o) {
String meName;
if (!threadLocalStack.isEmpty()) {
meName = threadLocalStack.peek();
} else {
meName = DEFAULT_ME_NAME;
}
String str = "";
if (o != null) {
str = "/" + Integer.toHexString(System.identityHashCode(o));
}
// D... | java | public static String getMEName(Object o) {
String meName;
if (!threadLocalStack.isEmpty()) {
meName = threadLocalStack.peek();
} else {
meName = DEFAULT_ME_NAME;
}
String str = "";
if (o != null) {
str = "/" + Integer.toHexString(System.identityHashCode(o));
}
// D... | [
"public",
"static",
"String",
"getMEName",
"(",
"Object",
"o",
")",
"{",
"String",
"meName",
";",
"if",
"(",
"!",
"threadLocalStack",
".",
"isEmpty",
"(",
")",
")",
"{",
"meName",
"=",
"threadLocalStack",
".",
"peek",
"(",
")",
";",
"}",
"else",
"{",
... | Get Jetstream ME name to be printed in trace message
@param o The object whose identityHashCode should also be appended
@return the Name of messaging engine if set, default name otherwise | [
"Get",
"Jetstream",
"ME",
"name",
"to",
"be",
"printed",
"in",
"trace",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/SibTr.java#L331-L347 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.