id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
111,100 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java | ParsedScheduleExpression.advanceYear | private boolean advanceYear(Calendar cal, int year)
{
year = years.nextSetBit(year + 1 - ScheduleExpressionParser.MINIMUM_YEAR); // d665298
if (year >= 0)
{
cal.set(Calendar.YEAR, year + ScheduleExpressionParser.MINIMUM_YEAR); // d665298
return true;
}
... | java | private boolean advanceYear(Calendar cal, int year)
{
year = years.nextSetBit(year + 1 - ScheduleExpressionParser.MINIMUM_YEAR); // d665298
if (year >= 0)
{
cal.set(Calendar.YEAR, year + ScheduleExpressionParser.MINIMUM_YEAR); // d665298
return true;
}
... | [
"private",
"boolean",
"advanceYear",
"(",
"Calendar",
"cal",
",",
"int",
"year",
")",
"{",
"year",
"=",
"years",
".",
"nextSetBit",
"(",
"year",
"+",
"1",
"-",
"ScheduleExpressionParser",
".",
"MINIMUM_YEAR",
")",
";",
"// d665298",
"if",
"(",
"year",
">="... | Moves the value of the year field forward in time to satisfy the year
constraint.
@param year the current year
@return <tt>true</tt> if a higher year was found | [
"Moves",
"the",
"value",
"of",
"the",
"year",
"field",
"forward",
"in",
"time",
"to",
"satisfy",
"the",
"year",
"constraint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java#L1082-L1092 |
111,101 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.connect | public void connect(String hostName, int port) throws UnknownHostException, IOException {
if (!sslHelper.isSocketAvailable()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
Tr.event(tc, "creating/recreating socket connection to " + hostName + ":" + port);
... | java | public void connect(String hostName, int port) throws UnknownHostException, IOException {
if (!sslHelper.isSocketAvailable()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
Tr.event(tc, "creating/recreating socket connection to " + hostName + ":" + port);
... | [
"public",
"void",
"connect",
"(",
"String",
"hostName",
",",
"int",
"port",
")",
"throws",
"UnknownHostException",
",",
"IOException",
"{",
"if",
"(",
"!",
"sslHelper",
".",
"isSocketAvailable",
"(",
")",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTra... | Creates a socket using TLS protocol and connects it
to the specified host and port.
@throws IOException
@throws UnknownHostException | [
"Creates",
"a",
"socket",
"using",
"TLS",
"protocol",
"and",
"connects",
"it",
"to",
"the",
"specified",
"host",
"and",
"port",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L85-L100 |
111,102 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.isConnectionStale | public boolean isConnectionStale() {
if (lastUsedTime == 0)
return false;
long currentTime = System.currentTimeMillis();
long timeSinceLastUse = currentTime - lastUsedTime;
return (timeSinceLastUse > MAX_KEEPALIVE);
} | java | public boolean isConnectionStale() {
if (lastUsedTime == 0)
return false;
long currentTime = System.currentTimeMillis();
long timeSinceLastUse = currentTime - lastUsedTime;
return (timeSinceLastUse > MAX_KEEPALIVE);
} | [
"public",
"boolean",
"isConnectionStale",
"(",
")",
"{",
"if",
"(",
"lastUsedTime",
"==",
"0",
")",
"return",
"false",
";",
"long",
"currentTime",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"long",
"timeSinceLastUse",
"=",
"currentTime",
"-",
"l... | Checks whether or not this connection has been used recently enough
to still be considered usable | [
"Checks",
"whether",
"or",
"not",
"this",
"connection",
"has",
"been",
"used",
"recently",
"enough",
"to",
"still",
"be",
"considered",
"usable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L106-L113 |
111,103 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.writeWindowFrame | public void writeWindowFrame(int windowSize) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
output.write(PROTOCOL_VERSION.getBytes(UTF_8));//Protocol version
output.write(WINDOW_SIZE_FRAME_TYPE.getBytes(UTF_8)); //Frame type 'W'
output.write(ByteBuffer.... | java | public void writeWindowFrame(int windowSize) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
output.write(PROTOCOL_VERSION.getBytes(UTF_8));//Protocol version
output.write(WINDOW_SIZE_FRAME_TYPE.getBytes(UTF_8)); //Frame type 'W'
output.write(ByteBuffer.... | [
"public",
"void",
"writeWindowFrame",
"(",
"int",
"windowSize",
")",
"throws",
"IOException",
"{",
"ByteArrayOutputStream",
"output",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"output",
".",
"write",
"(",
"PROTOCOL_VERSION",
".",
"getBytes",
"(",
"UTF_8"... | Write a window frame to the wire.
@param windowSize
@throws IOException | [
"Write",
"a",
"window",
"frame",
"to",
"the",
"wire",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L148-L158 |
111,104 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.writeFrame | public void writeFrame(byte[] frame) throws IOException {
lastUsedTime = System.currentTimeMillis();
out.write(frame);
out.flush();
} | java | public void writeFrame(byte[] frame) throws IOException {
lastUsedTime = System.currentTimeMillis();
out.write(frame);
out.flush();
} | [
"public",
"void",
"writeFrame",
"(",
"byte",
"[",
"]",
"frame",
")",
"throws",
"IOException",
"{",
"lastUsedTime",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"out",
".",
"write",
"(",
"frame",
")",
";",
"out",
".",
"flush",
"(",
")",
";",
... | Write a frame in bytes to the wire. This method is useful for writing a
data or a compressed frame to the wire.
@param frame
@throws IOException | [
"Write",
"a",
"frame",
"in",
"bytes",
"to",
"the",
"wire",
".",
"This",
"method",
"is",
"useful",
"for",
"writing",
"a",
"data",
"or",
"a",
"compressed",
"frame",
"to",
"the",
"wire",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L167-L171 |
111,105 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.readAckFrame | public void readAckFrame() throws IOException {
byte[] buffer = new byte[6];
int bytesReceived = 0;
while ((bytesReceived = bytesReceived + in.read(buffer, bytesReceived, buffer.length - bytesReceived)) != -1) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
... | java | public void readAckFrame() throws IOException {
byte[] buffer = new byte[6];
int bytesReceived = 0;
while ((bytesReceived = bytesReceived + in.read(buffer, bytesReceived, buffer.length - bytesReceived)) != -1) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
... | [
"public",
"void",
"readAckFrame",
"(",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"buffer",
"=",
"new",
"byte",
"[",
"6",
"]",
";",
"int",
"bytesReceived",
"=",
"0",
";",
"while",
"(",
"(",
"bytesReceived",
"=",
"bytesReceived",
"+",
"in",
".... | Reads ack frames in bytes from the wire.
This method blocks till all the acks are received for
frames written to the wire.
@throws IOException | [
"Reads",
"ack",
"frames",
"in",
"bytes",
"from",
"the",
"wire",
".",
"This",
"method",
"blocks",
"till",
"all",
"the",
"acks",
"are",
"received",
"for",
"frames",
"written",
"to",
"the",
"wire",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L180-L213 |
111,106 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.createDataFrames | public byte[] createDataFrames(List<Object> dataObjects) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
for (int i = 0; i < dataObjects.size(); i++) {
ByteArrayOutputStream dataObjectStream = new ByteArrayOutputStream();
@SuppressWarnings("unche... | java | public byte[] createDataFrames(List<Object> dataObjects) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
for (int i = 0; i < dataObjects.size(); i++) {
ByteArrayOutputStream dataObjectStream = new ByteArrayOutputStream();
@SuppressWarnings("unche... | [
"public",
"byte",
"[",
"]",
"createDataFrames",
"(",
"List",
"<",
"Object",
">",
"dataObjects",
")",
"throws",
"IOException",
"{",
"ByteArrayOutputStream",
"output",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
... | Creates data frames for lumberjack protocol
@param data List of objects containing key value pairs that will form the message payload
@return Data frames as a byte array
@throws IOException | [
"Creates",
"data",
"frames",
"for",
"lumberjack",
"protocol"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L222-L255 |
111,107 | OpenLiberty/open-liberty | dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java | LumberjackClient.createCompressedFrame | public byte[] createCompressedFrame(byte[] dataFrames) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
output.write(dataFrames);
//Compress the bytes using zlib level 6
byte[] cBytes = new byte[output.size()];
deflater.setInput(output.toByteArray(... | java | public byte[] createCompressedFrame(byte[] dataFrames) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
output.write(dataFrames);
//Compress the bytes using zlib level 6
byte[] cBytes = new byte[output.size()];
deflater.setInput(output.toByteArray(... | [
"public",
"byte",
"[",
"]",
"createCompressedFrame",
"(",
"byte",
"[",
"]",
"dataFrames",
")",
"throws",
"IOException",
"{",
"ByteArrayOutputStream",
"output",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"output",
".",
"write",
"(",
"dataFrames",
")",
... | Creates a compressed frame for lumberjack protocol.
@param dataFrames Data frames as a byte array
@return Compressed frame as a byte array
@throws IOException | [
"Creates",
"a",
"compressed",
"frame",
"for",
"lumberjack",
"protocol",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector/src/com/ibm/ws/lumberjack/LumberjackClient.java#L264-L282 |
111,108 | OpenLiberty/open-liberty | dev/com.ibm.ws.beanvalidation.v11.cdi/src/com/ibm/ws/beanvalidation/v11/cdi/internal/ValidationExtension.java | ValidationExtension.ensureFactoryValidator | private void ensureFactoryValidator(ClassLoader appCl) {
config.addProperty("bval.before.cdi", "true");
factory = BeanValidationExtensionHelper.validatorFactoryAccessorProxy(appCl);
if (appCl.toString().contains("com.ibm.ws.classloading.internal.AppClassLoader@")) {
instance().factor... | java | private void ensureFactoryValidator(ClassLoader appCl) {
config.addProperty("bval.before.cdi", "true");
factory = BeanValidationExtensionHelper.validatorFactoryAccessorProxy(appCl);
if (appCl.toString().contains("com.ibm.ws.classloading.internal.AppClassLoader@")) {
instance().factor... | [
"private",
"void",
"ensureFactoryValidator",
"(",
"ClassLoader",
"appCl",
")",
"{",
"config",
".",
"addProperty",
"(",
"\"bval.before.cdi\"",
",",
"\"true\"",
")",
";",
"factory",
"=",
"BeanValidationExtensionHelper",
".",
"validatorFactoryAccessorProxy",
"(",
"appCl",
... | lazily to get a small luck to have CDI in place | [
"lazily",
"to",
"get",
"a",
"small",
"luck",
"to",
"have",
"CDI",
"in",
"place"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.v11.cdi/src/com/ibm/ws/beanvalidation/v11/cdi/internal/ValidationExtension.java#L189-L196 |
111,109 | OpenLiberty/open-liberty | dev/com.ibm.ws.beanvalidation.v11.cdi/src/com/ibm/ws/beanvalidation/v11/cdi/internal/ValidationExtension.java | ValidationExtension.inject | public static <T> Releasable<T> inject(final Class<T> clazz) {
try {
final BeanManager beanManager = CDI.current().getBeanManager();
if (beanManager == null) {
return null;
}
final AnnotatedType<T> annotatedType = beanManager.createAnnotatedType(cl... | java | public static <T> Releasable<T> inject(final Class<T> clazz) {
try {
final BeanManager beanManager = CDI.current().getBeanManager();
if (beanManager == null) {
return null;
}
final AnnotatedType<T> annotatedType = beanManager.createAnnotatedType(cl... | [
"public",
"static",
"<",
"T",
">",
"Releasable",
"<",
"T",
">",
"inject",
"(",
"final",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"try",
"{",
"final",
"BeanManager",
"beanManager",
"=",
"CDI",
".",
"current",
"(",
")",
".",
"getBeanManager",
"(",
")... | Request that an instance of the specified type be provided by the container.
@param clazz
@return the requested instance wrapped in a {@link Releasable}. | [
"Request",
"that",
"an",
"instance",
"of",
"the",
"specified",
"type",
"be",
"provided",
"by",
"the",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.v11.cdi/src/com/ibm/ws/beanvalidation/v11/cdi/internal/ValidationExtension.java#L407-L427 |
111,110 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/GenericKeys.java | GenericKeys.getName | public String getName() {
if (null == this.name && null != this.byteArray) {
try {
this.name = new String(this.byteArray, HeaderStorage.ENGLISH_CHARSET);
} catch (UnsupportedEncodingException uee) {
// no FFDC required
// Invalid key name
... | java | public String getName() {
if (null == this.name && null != this.byteArray) {
try {
this.name = new String(this.byteArray, HeaderStorage.ENGLISH_CHARSET);
} catch (UnsupportedEncodingException uee) {
// no FFDC required
// Invalid key name
... | [
"public",
"String",
"getName",
"(",
")",
"{",
"if",
"(",
"null",
"==",
"this",
".",
"name",
"&&",
"null",
"!=",
"this",
".",
"byteArray",
")",
"{",
"try",
"{",
"this",
".",
"name",
"=",
"new",
"String",
"(",
"this",
".",
"byteArray",
",",
"HeaderSt... | Query the name for this key as a String.
@return String | [
"Query",
"the",
"name",
"for",
"this",
"key",
"as",
"a",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/GenericKeys.java#L77-L88 |
111,111 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DB2iNativeHelper.java | DB2iNativeHelper.isIsolationLevelSwitchingSupport | @Override
public boolean isIsolationLevelSwitchingSupport() {
// We assume that we are running on the local server so we can determine the os version
// Check that the OS is V5R3 or higher and set isolationLevelSwitchingSupported to true.
// Note: isolationLevelSwitchingSupport is defaulted... | java | @Override
public boolean isIsolationLevelSwitchingSupport() {
// We assume that we are running on the local server so we can determine the os version
// Check that the OS is V5R3 or higher and set isolationLevelSwitchingSupported to true.
// Note: isolationLevelSwitchingSupport is defaulted... | [
"@",
"Override",
"public",
"boolean",
"isIsolationLevelSwitchingSupport",
"(",
")",
"{",
"// We assume that we are running on the local server so we can determine the os version",
"// Check that the OS is V5R3 or higher and set isolationLevelSwitchingSupported to true.",
"// Note: isolationLeve... | This method returns the indicator whether the backend supports the isolation level switching on a connection
@return boolean : indicates the backend whether supports the isolation level switching | [
"This",
"method",
"returns",
"the",
"indicator",
"whether",
"the",
"backend",
"supports",
"the",
"isolation",
"level",
"switching",
"on",
"a",
"connection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DB2iNativeHelper.java#L225-L254 |
111,112 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositorySpaceAlert.java | LogRepositorySpaceAlert.setRepositoryInfo | public synchronized void setRepositoryInfo(LogRepositoryManager manager, File repositoryLocation, long repositorySpaceNeeded) throws IllegalArgumentException {
if (manager == null) throw new IllegalArgumentException("Null manager passed to LogRepositorySpaceAlert.setRepositoryInfo") ;
if (repositoryLocation == nu... | java | public synchronized void setRepositoryInfo(LogRepositoryManager manager, File repositoryLocation, long repositorySpaceNeeded) throws IllegalArgumentException {
if (manager == null) throw new IllegalArgumentException("Null manager passed to LogRepositorySpaceAlert.setRepositoryInfo") ;
if (repositoryLocation == nu... | [
"public",
"synchronized",
"void",
"setRepositoryInfo",
"(",
"LogRepositoryManager",
"manager",
",",
"File",
"repositoryLocation",
",",
"long",
"repositorySpaceNeeded",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"manager",
"==",
"null",
")",
"throw",
"n... | Set a repository into the space alert for checking. In HPEL, the LogManager for log and the LogManager for
Trace should set themselves as repositories to watch. This is done on the opening of each file. Thus, if
a destination is moved, a file is rolled, or a server is started, the info will be updated
@param reposito... | [
"Set",
"a",
"repository",
"into",
"the",
"space",
"alert",
"for",
"checking",
".",
"In",
"HPEL",
"the",
"LogManager",
"for",
"log",
"and",
"the",
"LogManager",
"for",
"Trace",
"should",
"set",
"themselves",
"as",
"repositories",
"to",
"watch",
".",
"This",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositorySpaceAlert.java#L144-L164 |
111,113 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositorySpaceAlert.java | LogRepositorySpaceAlert.checkFileSystems | private synchronized void checkFileSystems() {
for(Entry<File, FileSystemInfo> fsEntry: fsInfo.entrySet()) {
if (fsEntry.getValue().processThisCycle()) {
long fsFreeSpace = AccessHelper.getFreeSpace(fsEntry.getKey()) ;
if (logger.isLoggable(Level.FINE)) {
logger.logp(Level.FINE, className, "checkFileS... | java | private synchronized void checkFileSystems() {
for(Entry<File, FileSystemInfo> fsEntry: fsInfo.entrySet()) {
if (fsEntry.getValue().processThisCycle()) {
long fsFreeSpace = AccessHelper.getFreeSpace(fsEntry.getKey()) ;
if (logger.isLoggable(Level.FINE)) {
logger.logp(Level.FINE, className, "checkFileS... | [
"private",
"synchronized",
"void",
"checkFileSystems",
"(",
")",
"{",
"for",
"(",
"Entry",
"<",
"File",
",",
"FileSystemInfo",
">",
"fsEntry",
":",
"fsInfo",
".",
"entrySet",
"(",
")",
")",
"{",
"if",
"(",
"fsEntry",
".",
"getValue",
"(",
")",
".",
"pr... | check the file systems to see if there is ample room
Gets information from configuration and correlates it to the space left on the volume to see if it looks like we are
in jeopardy. An attempt is made to determine if log and trace are on the same fs. If so, then the combined impact
is assessed.
@throws Exception | [
"check",
"the",
"file",
"systems",
"to",
"see",
"if",
"there",
"is",
"ample",
"room",
"Gets",
"information",
"from",
"configuration",
"and",
"correlates",
"it",
"to",
"the",
"space",
"left",
"on",
"the",
"volume",
"to",
"see",
"if",
"it",
"looks",
"like",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositorySpaceAlert.java#L191-L205 |
111,114 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.loadClassByName | public static Class<?> loadClassByName(String className) throws ClassNotFoundException {
try {
return Class.forName(className);
} catch (ClassNotFoundException e) {
return Thread.currentThread().getContextClassLoader().loadClass(className);
}
} | java | public static Class<?> loadClassByName(String className) throws ClassNotFoundException {
try {
return Class.forName(className);
} catch (ClassNotFoundException e) {
return Thread.currentThread().getContextClassLoader().loadClass(className);
}
} | [
"public",
"static",
"Class",
"<",
"?",
">",
"loadClassByName",
"(",
"String",
"className",
")",
"throws",
"ClassNotFoundException",
"{",
"try",
"{",
"return",
"Class",
".",
"forName",
"(",
"className",
")",
";",
"}",
"catch",
"(",
"ClassNotFoundException",
"e"... | Load Class by class name. If class not found in it's Class loader or one of the parent class loaders - delegate to the Thread's ContextClassLoader
@param className Canonical class name
@return Class definition of className
@throws ClassNotFoundException | [
"Load",
"Class",
"by",
"class",
"name",
".",
"If",
"class",
"not",
"found",
"in",
"it",
"s",
"Class",
"loader",
"or",
"one",
"of",
"the",
"parent",
"class",
"loaders",
"-",
"delegate",
"to",
"the",
"Thread",
"s",
"ContextClassLoader"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L54-L60 |
111,115 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.isOverriddenMethod | public static boolean isOverriddenMethod(Method methodToFind, Class<?> cls) {
Set<Class<?>> superClasses = new HashSet<>();
for (Class<?> class1 : cls.getInterfaces()) {
superClasses.add(class1);
}
if (cls.getSuperclass() != null) {
superClasses.add(cls.getSuperc... | java | public static boolean isOverriddenMethod(Method methodToFind, Class<?> cls) {
Set<Class<?>> superClasses = new HashSet<>();
for (Class<?> class1 : cls.getInterfaces()) {
superClasses.add(class1);
}
if (cls.getSuperclass() != null) {
superClasses.add(cls.getSuperc... | [
"public",
"static",
"boolean",
"isOverriddenMethod",
"(",
"Method",
"methodToFind",
",",
"Class",
"<",
"?",
">",
"cls",
")",
"{",
"Set",
"<",
"Class",
"<",
"?",
">",
">",
"superClasses",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"for",
"(",
"Class",
... | Checks if the method methodToFind is the overridden method from the superclass or superinterface.
@param methodToFind is method to check
@param cls is method class
@return true if the method is overridden method | [
"Checks",
"if",
"the",
"method",
"methodToFind",
"is",
"the",
"overridden",
"method",
"from",
"the",
"superclass",
"or",
"superinterface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L69-L95 |
111,116 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.getOverriddenMethod | public static Method getOverriddenMethod(Method method) {
Class<?> declaringClass = method.getDeclaringClass();
Class<?> superClass = declaringClass.getSuperclass();
Method result = null;
if (superClass != null && !(superClass.equals(Object.class))) {
result = findMethod(meth... | java | public static Method getOverriddenMethod(Method method) {
Class<?> declaringClass = method.getDeclaringClass();
Class<?> superClass = declaringClass.getSuperclass();
Method result = null;
if (superClass != null && !(superClass.equals(Object.class))) {
result = findMethod(meth... | [
"public",
"static",
"Method",
"getOverriddenMethod",
"(",
"Method",
"method",
")",
"{",
"Class",
"<",
"?",
">",
"declaringClass",
"=",
"method",
".",
"getDeclaringClass",
"(",
")",
";",
"Class",
"<",
"?",
">",
"superClass",
"=",
"declaringClass",
".",
"getSu... | Returns overridden method from superclass if it exists. If method was not found returns null.
@param method is method to find
@return overridden method from superclass | [
"Returns",
"overridden",
"method",
"from",
"superclass",
"if",
"it",
"exists",
".",
"If",
"method",
"was",
"not",
"found",
"returns",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L103-L119 |
111,117 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.findMethod | public static Method findMethod(Method methodToFind, Class<?> cls) {
if (cls == null) {
return null;
}
String methodToSearch = methodToFind.getName();
Class<?>[] soughtForParameterType = methodToFind.getParameterTypes();
Type[] soughtForGenericParameterType = methodTo... | java | public static Method findMethod(Method methodToFind, Class<?> cls) {
if (cls == null) {
return null;
}
String methodToSearch = methodToFind.getName();
Class<?>[] soughtForParameterType = methodToFind.getParameterTypes();
Type[] soughtForGenericParameterType = methodTo... | [
"public",
"static",
"Method",
"findMethod",
"(",
"Method",
"methodToFind",
",",
"Class",
"<",
"?",
">",
"cls",
")",
"{",
"if",
"(",
"cls",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"String",
"methodToSearch",
"=",
"methodToFind",
".",
"getName"... | Searches the method methodToFind in given class cls. If the method is found returns it, else return null.
@param methodToFind is the method to search
@param cls is the class or interface where to search
@return method if it is found | [
"Searches",
"the",
"method",
"methodToFind",
"in",
"given",
"class",
"cls",
".",
"If",
"the",
"method",
"is",
"found",
"returns",
"it",
"else",
"return",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L128-L148 |
111,118 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.getAnnotation | public static <A extends Annotation> A getAnnotation(Method method, Class<A> annotationClass) {
A annotation = method.getAnnotation(annotationClass);
if (annotation == null) {
for (Annotation metaAnnotation : method.getAnnotations()) {
annotation = metaAnnotation.annotationTy... | java | public static <A extends Annotation> A getAnnotation(Method method, Class<A> annotationClass) {
A annotation = method.getAnnotation(annotationClass);
if (annotation == null) {
for (Annotation metaAnnotation : method.getAnnotations()) {
annotation = metaAnnotation.annotationTy... | [
"public",
"static",
"<",
"A",
"extends",
"Annotation",
">",
"A",
"getAnnotation",
"(",
"Method",
"method",
",",
"Class",
"<",
"A",
">",
"annotationClass",
")",
"{",
"A",
"annotation",
"=",
"method",
".",
"getAnnotation",
"(",
"annotationClass",
")",
";",
"... | Returns an annotation by type from a method.
@param method is the method to find
@param annotationClass is the type of annotation
@param <A> is the type of annotation
@return annotation if it is found | [
"Returns",
"an",
"annotation",
"by",
"type",
"from",
"a",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L215-L230 |
111,119 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.getRepeatableAnnotations | public static <A extends Annotation> List<A> getRepeatableAnnotations(Method method, Class<A> annotationClass) {
A[] annotations = method.getAnnotationsByType(annotationClass);
if (annotations == null || annotations.length == 0) {
for (Annotation metaAnnotation : method.getAnnotations()) {
... | java | public static <A extends Annotation> List<A> getRepeatableAnnotations(Method method, Class<A> annotationClass) {
A[] annotations = method.getAnnotationsByType(annotationClass);
if (annotations == null || annotations.length == 0) {
for (Annotation metaAnnotation : method.getAnnotations()) {
... | [
"public",
"static",
"<",
"A",
"extends",
"Annotation",
">",
"List",
"<",
"A",
">",
"getRepeatableAnnotations",
"(",
"Method",
"method",
",",
"Class",
"<",
"A",
">",
"annotationClass",
")",
"{",
"A",
"[",
"]",
"annotations",
"=",
"method",
".",
"getAnnotati... | Returns a List of repeatable annotations by type from a method.
@param method is the method to find
@param annotationClass is the type of annotation
@param <A> is the type of annotation
@return List of repeatable annotations if it is found | [
"Returns",
"a",
"List",
"of",
"repeatable",
"annotations",
"by",
"type",
"from",
"a",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L271-L289 |
111,120 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java | ReflectionUtils.isVoid | public static boolean isVoid(Type type) {
final Class<?> cls = TypeFactory.defaultInstance().constructType(type).getRawClass();
return Void.class.isAssignableFrom(cls) || Void.TYPE.isAssignableFrom(cls);
} | java | public static boolean isVoid(Type type) {
final Class<?> cls = TypeFactory.defaultInstance().constructType(type).getRawClass();
return Void.class.isAssignableFrom(cls) || Void.TYPE.isAssignableFrom(cls);
} | [
"public",
"static",
"boolean",
"isVoid",
"(",
"Type",
"type",
")",
"{",
"final",
"Class",
"<",
"?",
">",
"cls",
"=",
"TypeFactory",
".",
"defaultInstance",
"(",
")",
".",
"constructType",
"(",
"type",
")",
".",
"getRawClass",
"(",
")",
";",
"return",
"... | Checks if the type is void.
@param type is the type to check
@return true if the type is void | [
"Checks",
"if",
"the",
"type",
"is",
"void",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/ReflectionUtils.java#L364-L367 |
111,121 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java | SSOAuthenticator.handleJwtSSO | private AuthenticationResult handleJwtSSO(HttpServletRequest req, HttpServletResponse res) {
String jwtCookieName = JwtSSOTokenHelper.getJwtCookieName();
if (jwtCookieName == null) { // jwtsso feature not active
return null;
}
String encodedjwtssotoken = ssoCookieHelper.getJ... | java | private AuthenticationResult handleJwtSSO(HttpServletRequest req, HttpServletResponse res) {
String jwtCookieName = JwtSSOTokenHelper.getJwtCookieName();
if (jwtCookieName == null) { // jwtsso feature not active
return null;
}
String encodedjwtssotoken = ssoCookieHelper.getJ... | [
"private",
"AuthenticationResult",
"handleJwtSSO",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"{",
"String",
"jwtCookieName",
"=",
"JwtSSOTokenHelper",
".",
"getJwtCookieName",
"(",
")",
";",
"if",
"(",
"jwtCookieName",
"==",
"null",
"... | If there is no jwtSSOToken, we will return null. Otherwise, we will AuthenticationResult.
@param cookies
@return | [
"If",
"there",
"is",
"no",
"jwtSSOToken",
"we",
"will",
"return",
"null",
".",
"Otherwise",
"we",
"will",
"AuthenticationResult",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java#L168-L193 |
111,122 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java | SSOAuthenticator.isTokenLoggedOut | private boolean isTokenLoggedOut(String ltpaToken) {
boolean loggedOut = false;
Object entry = LoggedOutTokenCacheImpl.getInstance().getDistributedObjectLoggedOutToken(ltpaToken);
if (entry != null)
loggedOut = true;
return loggedOut;
} | java | private boolean isTokenLoggedOut(String ltpaToken) {
boolean loggedOut = false;
Object entry = LoggedOutTokenCacheImpl.getInstance().getDistributedObjectLoggedOutToken(ltpaToken);
if (entry != null)
loggedOut = true;
return loggedOut;
} | [
"private",
"boolean",
"isTokenLoggedOut",
"(",
"String",
"ltpaToken",
")",
"{",
"boolean",
"loggedOut",
"=",
"false",
";",
"Object",
"entry",
"=",
"LoggedOutTokenCacheImpl",
".",
"getInstance",
"(",
")",
".",
"getDistributedObjectLoggedOutToken",
"(",
"ltpaToken",
"... | Check to see if the token has been logged out.
@param ltpaToken | [
"Check",
"to",
"see",
"if",
"the",
"token",
"has",
"been",
"logged",
"out",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java#L200-L206 |
111,123 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java | SSOAuthenticator.createAuthenticationData | private AuthenticationData createAuthenticationData(HttpServletRequest req, HttpServletResponse res, String token, String oid) {
AuthenticationData authenticationData = new WSAuthenticationData();
authenticationData.set(AuthenticationData.HTTP_SERVLET_REQUEST, req);
authenticationData.set(Authen... | java | private AuthenticationData createAuthenticationData(HttpServletRequest req, HttpServletResponse res, String token, String oid) {
AuthenticationData authenticationData = new WSAuthenticationData();
authenticationData.set(AuthenticationData.HTTP_SERVLET_REQUEST, req);
authenticationData.set(Authen... | [
"private",
"AuthenticationData",
"createAuthenticationData",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
",",
"String",
"token",
",",
"String",
"oid",
")",
"{",
"AuthenticationData",
"authenticationData",
"=",
"new",
"WSAuthenticationData",
"(",
... | Create an authentication data for ltpaToken
@param ssoToken
@return authenticationData | [
"Create",
"an",
"authentication",
"data",
"for",
"ltpaToken"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/SSOAuthenticator.java#L222-L234 |
111,124 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/delegated/zos/NativeMethodHelper.java | NativeMethodHelper.registerNatives | public static long registerNatives(Class<?> clazz, String nativeDescriptorName, Object[] extraInfo) {
if (!initialized) {
if (loadFailure != null) {
Error e = new UnsatisfiedLinkError();
e.initCause(loadFailure);
throw e;
} else {
... | java | public static long registerNatives(Class<?> clazz, String nativeDescriptorName, Object[] extraInfo) {
if (!initialized) {
if (loadFailure != null) {
Error e = new UnsatisfiedLinkError();
e.initCause(loadFailure);
throw e;
} else {
... | [
"public",
"static",
"long",
"registerNatives",
"(",
"Class",
"<",
"?",
">",
"clazz",
",",
"String",
"nativeDescriptorName",
",",
"Object",
"[",
"]",
"extraInfo",
")",
"{",
"if",
"(",
"!",
"initialized",
")",
"{",
"if",
"(",
"loadFailure",
"!=",
"null",
"... | Register native methods from the core DLL for the specified class and drive the
registration hooks.
@param clazz the class to link native methods for
@param nativeDescriptorName the name of the exported {@code NativeMethodDescriptor} structure
@param extra information provided to the registration callback by the calle... | [
"Register",
"native",
"methods",
"from",
"the",
"core",
"DLL",
"for",
"the",
"specified",
"class",
"and",
"drive",
"the",
"registration",
"hooks",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/delegated/zos/NativeMethodHelper.java#L58-L70 |
111,125 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/delegated/zos/NativeMethodHelper.java | NativeMethodHelper.deregisterNatives | public static long deregisterNatives(long dllHandle, Class<?> clazz, String nativeDescriptorName, Object[] extraInfo) {
if (!initialized) {
if (loadFailure != null) {
Error e = new UnsatisfiedLinkError();
e.initCause(loadFailure);
throw e;
... | java | public static long deregisterNatives(long dllHandle, Class<?> clazz, String nativeDescriptorName, Object[] extraInfo) {
if (!initialized) {
if (loadFailure != null) {
Error e = new UnsatisfiedLinkError();
e.initCause(loadFailure);
throw e;
... | [
"public",
"static",
"long",
"deregisterNatives",
"(",
"long",
"dllHandle",
",",
"Class",
"<",
"?",
">",
"clazz",
",",
"String",
"nativeDescriptorName",
",",
"Object",
"[",
"]",
"extraInfo",
")",
"{",
"if",
"(",
"!",
"initialized",
")",
"{",
"if",
"(",
"l... | Drive the deregistration hooks the native methods from the core DLL for the specified class.
@param clazz the class cleanup should occur for
@param nativeDescriptorName the name of the structure used for registration
@param dllHandle the DLL handle that was used during registration
@param extraInfo extra information p... | [
"Drive",
"the",
"deregistration",
"hooks",
"the",
"native",
"methods",
"from",
"the",
"core",
"DLL",
"for",
"the",
"specified",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/delegated/zos/NativeMethodHelper.java#L82-L94 |
111,126 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.getFormatter | public static HpelFormatter getFormatter(String formatStyle) {
if (formatStyle != null && !"".equals(formatStyle)) {
if (formatStyle.equalsIgnoreCase(FORMAT_BASIC)) {
return new HpelBasicFormatter();
} else if (formatStyle.equalsIgnoreCase(FORMAT_ADVANCED)) {
... | java | public static HpelFormatter getFormatter(String formatStyle) {
if (formatStyle != null && !"".equals(formatStyle)) {
if (formatStyle.equalsIgnoreCase(FORMAT_BASIC)) {
return new HpelBasicFormatter();
} else if (formatStyle.equalsIgnoreCase(FORMAT_ADVANCED)) {
... | [
"public",
"static",
"HpelFormatter",
"getFormatter",
"(",
"String",
"formatStyle",
")",
"{",
"if",
"(",
"formatStyle",
"!=",
"null",
"&&",
"!",
"\"\"",
".",
"equals",
"(",
"formatStyle",
")",
")",
"{",
"if",
"(",
"formatStyle",
".",
"equalsIgnoreCase",
"(",
... | Returns the HpelFormatter subclass instance to be used for formatting a RepositoryLogRecord. The formatter returned
is based on the formatStyle requested.
@param formatStyle the style of the HpelFormatter instance to be returned. Valid values must match (case-insensitive) {@link #FORMAT_BASIC}, {@link #FORMAT_ADVANCED... | [
"Returns",
"the",
"HpelFormatter",
"subclass",
"instance",
"to",
"be",
"used",
"for",
"formatting",
"a",
"RepositoryLogRecord",
".",
"The",
"formatter",
"returned",
"is",
"based",
"on",
"the",
"formatStyle",
"requested",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L77-L91 |
111,127 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.addCustomLevel | public static void addCustomLevel(Level level, String id) {
if (level == null) {
throw new IllegalArgumentException("Parameter level can not be 'null' in this call");
}
if (id == null) {
id = level.getName().substring(0, 1);
}
customLevels.put(level, id);
... | java | public static void addCustomLevel(Level level, String id) {
if (level == null) {
throw new IllegalArgumentException("Parameter level can not be 'null' in this call");
}
if (id == null) {
id = level.getName().substring(0, 1);
}
customLevels.put(level, id);
... | [
"public",
"static",
"void",
"addCustomLevel",
"(",
"Level",
"level",
",",
"String",
"id",
")",
"{",
"if",
"(",
"level",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Parameter level can not be 'null' in this call\"",
")",
";",
"}",
... | Adds level to be treated specially by this formatter.
@param level level to be added to the special list
@param id one character id to use for this level. If it's <code>null</code> first character of the level name will be used | [
"Adds",
"level",
"to",
"be",
"treated",
"specially",
"by",
"this",
"formatter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L164-L172 |
111,128 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.setCustomHeader | public void setCustomHeader(String[] header) {
if (header == null) {
throw new IllegalArgumentException("Custom header can't be null.");
}
customHeader = new CustomHeaderLine[header.length];
for (int i = 0; i < header.length; i++) {
customHeader[i] = new CustomHea... | java | public void setCustomHeader(String[] header) {
if (header == null) {
throw new IllegalArgumentException("Custom header can't be null.");
}
customHeader = new CustomHeaderLine[header.length];
for (int i = 0; i < header.length; i++) {
customHeader[i] = new CustomHea... | [
"public",
"void",
"setCustomHeader",
"(",
"String",
"[",
"]",
"header",
")",
"{",
"if",
"(",
"header",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Custom header can't be null.\"",
")",
";",
"}",
"customHeader",
"=",
"new",
"Cust... | sets new customer header format specification
@param header array of Strings containing optional parameters with name of the header value to
use in them. For example: <Q>Java version: {java.version}</Q>. | [
"sets",
"new",
"customer",
"header",
"format",
"specification"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L251-L259 |
111,129 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.setTimeZoneID | public void setTimeZoneID(String timeZoneId) {
if (verifyTimeZoneID(timeZoneId)) {
this.timeZone = TimeZone.getTimeZone(timeZoneId);
} else {
throw new IllegalArgumentException(timeZoneId + " is not a valid time zone");
}
} | java | public void setTimeZoneID(String timeZoneId) {
if (verifyTimeZoneID(timeZoneId)) {
this.timeZone = TimeZone.getTimeZone(timeZoneId);
} else {
throw new IllegalArgumentException(timeZoneId + " is not a valid time zone");
}
} | [
"public",
"void",
"setTimeZoneID",
"(",
"String",
"timeZoneId",
")",
"{",
"if",
"(",
"verifyTimeZoneID",
"(",
"timeZoneId",
")",
")",
"{",
"this",
".",
"timeZone",
"=",
"TimeZone",
".",
"getTimeZone",
"(",
"timeZoneId",
")",
";",
"}",
"else",
"{",
"throw",... | Sets the ID of the time zone to be used in the formatted log record header timestamp
@param timeZoneId new timeZoneID attribute value.
@throws IllegalArgumentException when the time zone ID is not valid. | [
"Sets",
"the",
"ID",
"of",
"the",
"time",
"zone",
"to",
"be",
"used",
"in",
"the",
"formatted",
"log",
"record",
"header",
"timestamp"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L280-L287 |
111,130 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.formatUnlocalized | protected String formatUnlocalized(String traceString, Object[] parms) { // added for LIDB2667.13
//
// handle messages that require no localization (essentially trace)
//
// get ready to append parameters
Object[] newParms = convertParameters(parms); //D233515.1
if (ne... | java | protected String formatUnlocalized(String traceString, Object[] parms) { // added for LIDB2667.13
//
// handle messages that require no localization (essentially trace)
//
// get ready to append parameters
Object[] newParms = convertParameters(parms); //D233515.1
if (ne... | [
"protected",
"String",
"formatUnlocalized",
"(",
"String",
"traceString",
",",
"Object",
"[",
"]",
"parms",
")",
"{",
"// added for LIDB2667.13",
"//",
"// handle messages that require no localization (essentially trace)",
"//",
"// get ready to append parameters",
"Object",
"[... | Used for WsLogRecords or CommonBaseEventLogRecords that specify REQUIRES_NO_LOCALIZATION,
tries to format, and if unsuccessful in using any parameters appends them per unusedParmHandling.
@return the formatted trace | [
"Used",
"for",
"WsLogRecords",
"or",
"CommonBaseEventLogRecords",
"that",
"specify",
"REQUIRES_NO_LOCALIZATION"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L432-L457 |
111,131 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java | HpelFormatter.formatRecord | public String formatRecord(RepositoryLogRecord record) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
return formatRecord(record, (Locale) null);
} | java | public String formatRecord(RepositoryLogRecord record) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
return formatRecord(record, (Locale) null);
} | [
"public",
"String",
"formatRecord",
"(",
"RepositoryLogRecord",
"record",
")",
"{",
"if",
"(",
"null",
"==",
"record",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Record cannot be null\"",
")",
";",
"}",
"return",
"formatRecord",
"(",
"record",
... | Formats a RepositoryLogRecord using the formatter's locale
@param record log record to be formatted
@return the resulting formatted string output. | [
"Formats",
"a",
"RepositoryLogRecord",
"using",
"the",
"formatter",
"s",
"locale"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelFormatter.java#L498-L503 |
111,132 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getApplicationName | public static String getApplicationName(BundleContext bundleContext) {
String applicationName = null;
if (FrameworkState.isValid()) {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
/... | java | public static String getApplicationName(BundleContext bundleContext) {
String applicationName = null;
if (FrameworkState.isValid()) {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
/... | [
"public",
"static",
"String",
"getApplicationName",
"(",
"BundleContext",
"bundleContext",
")",
"{",
"String",
"applicationName",
"=",
"null",
";",
"if",
"(",
"FrameworkState",
".",
"isValid",
"(",
")",
")",
"{",
"ComponentMetaData",
"cmd",
"=",
"ComponentMetaData... | Get the j2ee name of the application. If the ComponentMetaData is available on the thread then that can be used, otherwise fallback
to asking the CDIService for the name ... the CDI context ID is the same as the j2ee name.
@param bundleContext The bundle context to use when looking up the CDIService
@return the applic... | [
"Get",
"the",
"j2ee",
"name",
"of",
"the",
"application",
".",
"If",
"the",
"ComponentMetaData",
"is",
"available",
"on",
"the",
"thread",
"then",
"that",
"can",
"be",
"used",
"otherwise",
"fallback",
"to",
"asking",
"the",
"CDIService",
"for",
"the",
"name"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L64-L86 |
111,133 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getBundleContext | public static BundleContext getBundleContext(Class<?> clazz) {
BundleContext context = null; //we'll return null if not running inside an OSGi framework (e.g. unit test)
if (FrameworkState.isValid()) {
Bundle bundle = FrameworkUtil.getBundle(clazz);
if (bundle != null) {
... | java | public static BundleContext getBundleContext(Class<?> clazz) {
BundleContext context = null; //we'll return null if not running inside an OSGi framework (e.g. unit test)
if (FrameworkState.isValid()) {
Bundle bundle = FrameworkUtil.getBundle(clazz);
if (bundle != null) {
... | [
"public",
"static",
"BundleContext",
"getBundleContext",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"BundleContext",
"context",
"=",
"null",
";",
"//we'll return null if not running inside an OSGi framework (e.g. unit test)",
"if",
"(",
"FrameworkState",
".",
"isVali... | Get the OSGi bundle context for the given class
@param clazz the class to find the context for
@return the bundle context | [
"Get",
"the",
"OSGi",
"bundle",
"context",
"for",
"the",
"given",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L94-L104 |
111,134 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getService | public static <T> T getService(BundleContext bundleContext, Class<T> serviceClass) {
T service = null;
if (FrameworkState.isValid()) {
ServiceReference<T> ref = bundleContext.getServiceReference(serviceClass);
if (ref != null) {
service = bundleContext.getService... | java | public static <T> T getService(BundleContext bundleContext, Class<T> serviceClass) {
T service = null;
if (FrameworkState.isValid()) {
ServiceReference<T> ref = bundleContext.getServiceReference(serviceClass);
if (ref != null) {
service = bundleContext.getService... | [
"public",
"static",
"<",
"T",
">",
"T",
"getService",
"(",
"BundleContext",
"bundleContext",
",",
"Class",
"<",
"T",
">",
"serviceClass",
")",
"{",
"T",
"service",
"=",
"null",
";",
"if",
"(",
"FrameworkState",
".",
"isValid",
"(",
")",
")",
"{",
"Serv... | Find a service of the given type
@param bundleContext The context to use to find the service
@param serviceClass The class of the required service
@return the service instance or null | [
"Find",
"a",
"service",
"of",
"the",
"given",
"type"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L143-L153 |
111,135 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getApplicationServiceRef | public static ServiceReference<Application> getApplicationServiceRef(BundleContext bundleContext, String applicationName) {
ServiceReference<Application> appRef = null;
if (FrameworkState.isValid()) {
Collection<ServiceReference<Application>> appRefs;
try {
appRe... | java | public static ServiceReference<Application> getApplicationServiceRef(BundleContext bundleContext, String applicationName) {
ServiceReference<Application> appRef = null;
if (FrameworkState.isValid()) {
Collection<ServiceReference<Application>> appRefs;
try {
appRe... | [
"public",
"static",
"ServiceReference",
"<",
"Application",
">",
"getApplicationServiceRef",
"(",
"BundleContext",
"bundleContext",
",",
"String",
"applicationName",
")",
"{",
"ServiceReference",
"<",
"Application",
">",
"appRef",
"=",
"null",
";",
"if",
"(",
"Frame... | Get the Application ServiceReferences which has the given name, or null if not found
@param bundleContext The context to use to find the application service references
@param applicationName The application name to look for
@return A ServiceReference for the given application | [
"Get",
"the",
"Application",
"ServiceReferences",
"which",
"has",
"the",
"given",
"name",
"or",
"null",
"if",
"not",
"found"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L162-L183 |
111,136 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getApplicationPID | public static String getApplicationPID(BundleContext bundleContext, String applicationName) {
String applicationPID = null;
if (FrameworkState.isValid()) {
ServiceReference<?> appRef = getApplicationServiceRef(bundleContext, applicationName);
if (appRef != null) {
... | java | public static String getApplicationPID(BundleContext bundleContext, String applicationName) {
String applicationPID = null;
if (FrameworkState.isValid()) {
ServiceReference<?> appRef = getApplicationServiceRef(bundleContext, applicationName);
if (appRef != null) {
... | [
"public",
"static",
"String",
"getApplicationPID",
"(",
"BundleContext",
"bundleContext",
",",
"String",
"applicationName",
")",
"{",
"String",
"applicationPID",
"=",
"null",
";",
"if",
"(",
"FrameworkState",
".",
"isValid",
"(",
")",
")",
"{",
"ServiceReference",... | Get the internal OSGi identifier for the Application with the given name
@param bundleContext The context to use to find the Application reference
@param applicationName The application name to look for
@return The application pid | [
"Get",
"the",
"internal",
"OSGi",
"identifier",
"for",
"the",
"Application",
"with",
"the",
"given",
"name"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L192-L208 |
111,137 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.getCDIAppName | public static String getCDIAppName(BundleContext bundleContext) {
String appName = null;
if (FrameworkState.isValid()) {
// Get the CDIService
CDIService cdiService = getCDIService(bundleContext);
if (cdiService != null) {
appName = cdiService.getCurre... | java | public static String getCDIAppName(BundleContext bundleContext) {
String appName = null;
if (FrameworkState.isValid()) {
// Get the CDIService
CDIService cdiService = getCDIService(bundleContext);
if (cdiService != null) {
appName = cdiService.getCurre... | [
"public",
"static",
"String",
"getCDIAppName",
"(",
"BundleContext",
"bundleContext",
")",
"{",
"String",
"appName",
"=",
"null",
";",
"if",
"(",
"FrameworkState",
".",
"isValid",
"(",
")",
")",
"{",
"// Get the CDIService",
"CDIService",
"cdiService",
"=",
"get... | Get the current application name using the CDIService. During CDI startup, the CDIService knows which application it is currently working with so we can ask it!
@param bundleContext the context to use to find the CDIService
@return The application name | [
"Get",
"the",
"current",
"application",
"name",
"using",
"the",
"CDIService",
".",
"During",
"CDI",
"startup",
"the",
"CDIService",
"knows",
"which",
"application",
"it",
"is",
"currently",
"working",
"with",
"so",
"we",
"can",
"ask",
"it!"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L216-L226 |
111,138 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java | OSGiConfigUtils.isSystemKey | public static boolean isSystemKey(String key) {
for (String prefix : Config13Constants.SYSTEM_PREFIXES) {
if (key.startsWith(prefix)) {
return true;
}
}
return false;
} | java | public static boolean isSystemKey(String key) {
for (String prefix : Config13Constants.SYSTEM_PREFIXES) {
if (key.startsWith(prefix)) {
return true;
}
}
return false;
} | [
"public",
"static",
"boolean",
"isSystemKey",
"(",
"String",
"key",
")",
"{",
"for",
"(",
"String",
"prefix",
":",
"Config13Constants",
".",
"SYSTEM_PREFIXES",
")",
"{",
"if",
"(",
"key",
".",
"startsWith",
"(",
"prefix",
")",
")",
"{",
"return",
"true",
... | Test to see if the given configuration key starts with any known system prefixes
@param key the key to test
@return true if it startsWith one of the system prefixes | [
"Test",
"to",
"see",
"if",
"the",
"given",
"configuration",
"key",
"starts",
"with",
"any",
"known",
"system",
"prefixes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/OSGiConfigUtils.java#L339-L346 |
111,139 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelUtilsBase.java | ChannelUtilsBase.traceChannels | protected final void traceChannels(Object logTool, ChannelFramework cfw, String message, String prefix) {
if (cfw == null) {
debugTrace(logTool, prefix + " - No cfw to trace channels");
return;
}
List<?> lchannel;
Iterator<?> ichannel;
ChannelData channe... | java | protected final void traceChannels(Object logTool, ChannelFramework cfw, String message, String prefix) {
if (cfw == null) {
debugTrace(logTool, prefix + " - No cfw to trace channels");
return;
}
List<?> lchannel;
Iterator<?> ichannel;
ChannelData channe... | [
"protected",
"final",
"void",
"traceChannels",
"(",
"Object",
"logTool",
",",
"ChannelFramework",
"cfw",
",",
"String",
"message",
",",
"String",
"prefix",
")",
"{",
"if",
"(",
"cfw",
"==",
"null",
")",
"{",
"debugTrace",
"(",
"logTool",
",",
"prefix",
"+"... | Print channel configuration - for debug
@param logTool
Caller's LogTool (should be Logger OR TraceComponent)
@param cfw
Reference to channel framework service
@param message
Description to accompany trace, e.g. "CFW Channel
Configuration"
@param prefix
Component-type prefix used to associate traces together, e.g.
"XME... | [
"Print",
"channel",
"configuration",
"-",
"for",
"debug"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelUtilsBase.java#L205-L243 |
111,140 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Flow.java | Flow.getTransitionElements | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<TransitionElement> getTransitionElements() {
if (transitionElements == null) {
transitionElements = new ArrayList<TransitionElement>()... | java | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<TransitionElement> getTransitionElements() {
if (transitionElements == null) {
transitionElements = new ArrayList<TransitionElement>()... | [
"@",
"Generated",
"(",
"value",
"=",
"\"com.ibm.jtc.jax.tools.xjc.Driver\"",
",",
"date",
"=",
"\"2014-06-11T05:49:00-04:00\"",
",",
"comments",
"=",
"\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"",
")",
"public",
"List",
"<",
"TransitionElement",
">",
"getTransitionElemen... | Gets the value of the transitionElements property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the transitionElements property.
<p>... | [
"Gets",
"the",
"value",
"of",
"the",
"transitionElements",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Flow.java#L157-L163 |
111,141 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java | DropinMonitor.refresh | public synchronized void refresh(ApplicationMonitorConfig config) {
if (config != null && config.isDropinsMonitored()) {
//ApplicationMonitorConfig prevConfig = _config.getAndSet(config);
_config.set(config);
// keep track of the old monitored directory to see if we need to ... | java | public synchronized void refresh(ApplicationMonitorConfig config) {
if (config != null && config.isDropinsMonitored()) {
//ApplicationMonitorConfig prevConfig = _config.getAndSet(config);
_config.set(config);
// keep track of the old monitored directory to see if we need to ... | [
"public",
"synchronized",
"void",
"refresh",
"(",
"ApplicationMonitorConfig",
"config",
")",
"{",
"if",
"(",
"config",
"!=",
"null",
"&&",
"config",
".",
"isDropinsMonitored",
"(",
")",
")",
"{",
"//ApplicationMonitorConfig prevConfig = _config.getAndSet(config);",
"_co... | Initialize the dropins manager based on configured properties
@param properties
@return | [
"Initialize",
"the",
"dropins",
"manager",
"based",
"on",
"configured",
"properties"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java#L206-L249 |
111,142 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java | DropinMonitor.stop | public synchronized void stop() {
_coreMonitor.unregister();
for (ServiceReg<FileMonitor> reg : _monitors.values()) {
reg.unregister();
}
_monitors.clear();
// Tidy up old location if we built it
tidyUpMonitoredDirectory(createdMonitoredDir.get(), monitore... | java | public synchronized void stop() {
_coreMonitor.unregister();
for (ServiceReg<FileMonitor> reg : _monitors.values()) {
reg.unregister();
}
_monitors.clear();
// Tidy up old location if we built it
tidyUpMonitoredDirectory(createdMonitoredDir.get(), monitore... | [
"public",
"synchronized",
"void",
"stop",
"(",
")",
"{",
"_coreMonitor",
".",
"unregister",
"(",
")",
";",
"for",
"(",
"ServiceReg",
"<",
"FileMonitor",
">",
"reg",
":",
"_monitors",
".",
"values",
"(",
")",
")",
"{",
"reg",
".",
"unregister",
"(",
")"... | Stops the service and all applications started by it | [
"Stops",
"the",
"service",
"and",
"all",
"applications",
"started",
"by",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java#L276-L288 |
111,143 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java | DropinMonitor.stopApplication | private void stopApplication(File currentFile) {
if (_tc.isEventEnabled()) {
Tr.event(_tc, "Stopping dropin application '" + currentFile.getName() + "'");
}
String filePath = getAppLocation(currentFile);
try {
Configuration config = _configs.remove(filePath);
... | java | private void stopApplication(File currentFile) {
if (_tc.isEventEnabled()) {
Tr.event(_tc, "Stopping dropin application '" + currentFile.getName() + "'");
}
String filePath = getAppLocation(currentFile);
try {
Configuration config = _configs.remove(filePath);
... | [
"private",
"void",
"stopApplication",
"(",
"File",
"currentFile",
")",
"{",
"if",
"(",
"_tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"_tc",
",",
"\"Stopping dropin application '\"",
"+",
"currentFile",
".",
"getName",
"(",
")",
... | Takes a file and a pid and will stop the file with that PID from running, and remove the pid to app
mapping from the app pid mapper
@param ca
@param currentFile the application's file (can be file or directory) | [
"Takes",
"a",
"file",
"and",
"a",
"pid",
"and",
"will",
"stop",
"the",
"file",
"with",
"that",
"PID",
"from",
"running",
"and",
"remove",
"the",
"pid",
"to",
"app",
"mapping",
"from",
"the",
"app",
"pid",
"mapper"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java#L317-L331 |
111,144 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java | DropinMonitor.getAppMessageHelper | private AppMessageHelper getAppMessageHelper(String type, String fileName) {
if (type == null && fileName != null) {
String[] parts = fileName.split("[\\\\/]");
if (parts.length > 0) {
String last = parts[parts.length - 1];
int dot = last.indexOf('.');
... | java | private AppMessageHelper getAppMessageHelper(String type, String fileName) {
if (type == null && fileName != null) {
String[] parts = fileName.split("[\\\\/]");
if (parts.length > 0) {
String last = parts[parts.length - 1];
int dot = last.indexOf('.');
... | [
"private",
"AppMessageHelper",
"getAppMessageHelper",
"(",
"String",
"type",
",",
"String",
"fileName",
")",
"{",
"if",
"(",
"type",
"==",
"null",
"&&",
"fileName",
"!=",
"null",
")",
"{",
"String",
"[",
"]",
"parts",
"=",
"fileName",
".",
"split",
"(",
... | Returns the message helper for the specified application handler type.
@param type application handler type
@param fileName file name from which type can be inferred if not specified
@return the message helper for the specified application handler type. | [
"Returns",
"the",
"message",
"helper",
"for",
"the",
"specified",
"application",
"handler",
"type",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java#L354-L381 |
111,145 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java | DropinMonitor.startApplication | private void startApplication(File currentFile, String type) {
if (_tc.isEventEnabled()) {
Tr.event(_tc, "Starting dropin application '" + currentFile.getName() + "'");
}
String filePath = getAppLocation(currentFile);
try {
Configuration config = _configs.get(fil... | java | private void startApplication(File currentFile, String type) {
if (_tc.isEventEnabled()) {
Tr.event(_tc, "Starting dropin application '" + currentFile.getName() + "'");
}
String filePath = getAppLocation(currentFile);
try {
Configuration config = _configs.get(fil... | [
"private",
"void",
"startApplication",
"(",
"File",
"currentFile",
",",
"String",
"type",
")",
"{",
"if",
"(",
"_tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"_tc",
",",
"\"Starting dropin application '\"",
"+",
"currentFile",
"."... | Takes a file and an optional file type, and updates the file. If no type is given it will use the
extension of the file given.
@param ca the configuration admin service.
@param currentFile the file of the application to install. Can be a directory
@param type the type of the application. | [
"Takes",
"a",
"file",
"and",
"an",
"optional",
"file",
"type",
"and",
"updates",
"the",
"file",
".",
"If",
"no",
"type",
"is",
"given",
"it",
"will",
"use",
"the",
"extension",
"of",
"the",
"file",
"given",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/DropinMonitor.java#L392-L423 |
111,146 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.populateInterceptorMethodMap | private static void
populateInterceptorMethodMap
(Class<?> c
, LinkedList<Class<?>> lifoClasses
, InterceptorMethodKind kind
, Class<?>[] parmTypes
, List<? extends InterceptorCallback> methodMeta... | java | private static void
populateInterceptorMethodMap
(Class<?> c
, LinkedList<Class<?>> lifoClasses
, InterceptorMethodKind kind
, Class<?>[] parmTypes
, List<? extends InterceptorCallback> methodMeta... | [
"private",
"static",
"void",
"populateInterceptorMethodMap",
"(",
"Class",
"<",
"?",
">",
"c",
",",
"LinkedList",
"<",
"Class",
"<",
"?",
">",
">",
"lifoClasses",
",",
"InterceptorMethodKind",
"kind",
",",
"Class",
"<",
"?",
">",
"[",
"]",
"parmTypes",
","... | Populate the interceptor map for an EJB or interceptor class. Each
mapping value is a List of Methods ordered by class hierarchy, with
methods from java.lang.Object appearing first, which is the order
required by the EJB specification.
@param c the class to inspect
@param lifoClasses the class hierarchy of c with java... | [
"Populate",
"the",
"interceptor",
"map",
"for",
"an",
"EJB",
"or",
"interceptor",
"class",
".",
"Each",
"mapping",
"value",
"is",
"a",
"List",
"of",
"Methods",
"ordered",
"by",
"class",
"hierarchy",
"with",
"methods",
"from",
"java",
".",
"lang",
".",
"Obj... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L328-L390 |
111,147 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.getLIFOMethodList | public static LinkedList<Method>
getLIFOMethodList(List<Method> methodList, LinkedList<Class<?>> lifoSuperClassesList)
{
// Create LinkedList to be returned.
LinkedList<Method> sortedList = new LinkedList<Method>();
// For each Class object in sorted list of super classe... | java | public static LinkedList<Method>
getLIFOMethodList(List<Method> methodList, LinkedList<Class<?>> lifoSuperClassesList)
{
// Create LinkedList to be returned.
LinkedList<Method> sortedList = new LinkedList<Method>();
// For each Class object in sorted list of super classe... | [
"public",
"static",
"LinkedList",
"<",
"Method",
">",
"getLIFOMethodList",
"(",
"List",
"<",
"Method",
">",
"methodList",
",",
"LinkedList",
"<",
"Class",
"<",
"?",
">",
">",
"lifoSuperClassesList",
")",
"{",
"// Create LinkedList to be returned.",
"LinkedList",
"... | Sorts a specified Method object list into a LIFO list where the
first out is the Method object of the most generic super class
of an interceptor class and the last out is a method of the
interceptor class itself.
@param methodList is the list of Method objects to be sorted.
@param lifoSuperClassesList is a LIFO list ... | [
"Sorts",
"a",
"specified",
"Method",
"object",
"list",
"into",
"a",
"LIFO",
"list",
"where",
"the",
"first",
"out",
"is",
"the",
"Method",
"object",
"of",
"the",
"most",
"generic",
"super",
"class",
"of",
"an",
"interceptor",
"class",
"and",
"the",
"last",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L476-L512 |
111,148 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.findMethod | public static Method findMethod(final Class<?> c, String methodName, final Class<?>[] parmTypes)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "findMethod", new Object[] { c, methodName, Arrays.toString(parmTypes) });
}
// Start with s... | java | public static Method findMethod(final Class<?> c, String methodName, final Class<?>[] parmTypes)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "findMethod", new Object[] { c, methodName, Arrays.toString(parmTypes) });
}
// Start with s... | [
"public",
"static",
"Method",
"findMethod",
"(",
"final",
"Class",
"<",
"?",
">",
"c",
",",
"String",
"methodName",
",",
"final",
"Class",
"<",
"?",
">",
"[",
"]",
"parmTypes",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
... | Returns a Method object that reflects the specified method of a
specified EJB or interceptor class.
The methodName parameter is a String that specifies the simple name
of the desired method, and the parameterTypes parameter is an array
of Class objects that identify the method's formal parameter types in
the declared o... | [
"Returns",
"a",
"Method",
"object",
"that",
"reflects",
"the",
"specified",
"method",
"of",
"a",
"specified",
"EJB",
"or",
"interceptor",
"class",
".",
"The",
"methodName",
"parameter",
"is",
"a",
"String",
"that",
"specifies",
"the",
"simple",
"name",
"of",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L538-L581 |
111,149 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.getLIFOSuperClassesList | public static LinkedList<Class<?>> getLIFOSuperClassesList(Class<?> interceptorClass)
{
LinkedList<Class<?>> supers = new LinkedList<Class<?>>();
supers.addFirst(interceptorClass);
Class<?> interceptorSuperClass = interceptorClass.getSuperclass();
while (interceptorSuperClass != null... | java | public static LinkedList<Class<?>> getLIFOSuperClassesList(Class<?> interceptorClass)
{
LinkedList<Class<?>> supers = new LinkedList<Class<?>>();
supers.addFirst(interceptorClass);
Class<?> interceptorSuperClass = interceptorClass.getSuperclass();
while (interceptorSuperClass != null... | [
"public",
"static",
"LinkedList",
"<",
"Class",
"<",
"?",
">",
">",
"getLIFOSuperClassesList",
"(",
"Class",
"<",
"?",
">",
"interceptorClass",
")",
"{",
"LinkedList",
"<",
"Class",
"<",
"?",
">",
">",
"supers",
"=",
"new",
"LinkedList",
"<",
"Class",
"<... | Create a LIFO LinkedList of Class objects starting with a specified
interceptor class object itself and then each of its the super classes.
A LIFO is used so that the interceptor methods in the most general
superclass are invoked first as required by the EJB specification.
@param interceptorClass is the Class object o... | [
"Create",
"a",
"LIFO",
"LinkedList",
"of",
"Class",
"objects",
"starting",
"with",
"a",
"specified",
"interceptor",
"class",
"object",
"itself",
"and",
"then",
"each",
"of",
"its",
"the",
"super",
"classes",
".",
"A",
"LIFO",
"is",
"used",
"so",
"that",
"t... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L593-L605 |
111,150 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.validateAroundSignature | public static void validateAroundSignature(InterceptorMethodKind kind, Method m, J2EEName name)
throws EJBConfigurationException
{
// Get the modifers for the interceptor method and verify that the
// method is neither final nor static as required by EJB specification.
i... | java | public static void validateAroundSignature(InterceptorMethodKind kind, Method m, J2EEName name)
throws EJBConfigurationException
{
// Get the modifers for the interceptor method and verify that the
// method is neither final nor static as required by EJB specification.
i... | [
"public",
"static",
"void",
"validateAroundSignature",
"(",
"InterceptorMethodKind",
"kind",
",",
"Method",
"m",
",",
"J2EEName",
"name",
")",
"throws",
"EJBConfigurationException",
"{",
"// Get the modifers for the interceptor method and verify that the",
"// method is neither f... | Verify a specified AroundInvoke interceptor method has correct method
modifiers and signature.
@param kind the interceptor kind
@param m is the java reflection Method object for the around invoke method.
@param ejbClass is true if the interceptor is defined on the enterprise bean class
@param name is the {@link J2EENa... | [
"Verify",
"a",
"specified",
"AroundInvoke",
"interceptor",
"method",
"has",
"correct",
"method",
"modifiers",
"and",
"signature",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L617-L675 |
111,151 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.validateLifeCycleSignatureExceptParameters | static void validateLifeCycleSignatureExceptParameters(InterceptorMethodKind kind,
String lifeCycle, Method m,
boolean ejbClass,
J2EEName name,... | java | static void validateLifeCycleSignatureExceptParameters(InterceptorMethodKind kind,
String lifeCycle, Method m,
boolean ejbClass,
J2EEName name,... | [
"static",
"void",
"validateLifeCycleSignatureExceptParameters",
"(",
"InterceptorMethodKind",
"kind",
",",
"String",
"lifeCycle",
",",
"Method",
"m",
",",
"boolean",
"ejbClass",
",",
"J2EEName",
"name",
",",
"boolean",
"isInterceptor1_2",
")",
"throws",
"EJBConfiguratio... | Method for unittesting only | [
"Method",
"for",
"unittesting",
"only"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L710-L768 |
111,152 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java | InterceptorMetaDataHelper.isMethodOverridden | public static boolean isMethodOverridden(Method m, LinkedList<Class<?>> supers)
{
// Only check non-private methods for an override.
int methodModifier = m.getModifiers();
if (!Modifier.isPrivate(methodModifier))
{
// Not a private method, so we need to check if it is ove... | java | public static boolean isMethodOverridden(Method m, LinkedList<Class<?>> supers)
{
// Only check non-private methods for an override.
int methodModifier = m.getModifiers();
if (!Modifier.isPrivate(methodModifier))
{
// Not a private method, so we need to check if it is ove... | [
"public",
"static",
"boolean",
"isMethodOverridden",
"(",
"Method",
"m",
",",
"LinkedList",
"<",
"Class",
"<",
"?",
">",
">",
"supers",
")",
"{",
"// Only check non-private methods for an override.",
"int",
"methodModifier",
"=",
"m",
".",
"getModifiers",
"(",
")"... | d469514 - added entire method. | [
"d469514",
"-",
"added",
"entire",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataHelper.java#L840-L872 |
111,153 | OpenLiberty/open-liberty | dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtract.java | SelfExtract.createExtractor | protected static ReturnCode createExtractor() {
if (!extractorCreated) {
createExtractor_rc = SelfExtractor.buildInstance();
extractor = SelfExtractor.getInstance();
extractorCreated = true;
}
return createExtractor_rc;
} | java | protected static ReturnCode createExtractor() {
if (!extractorCreated) {
createExtractor_rc = SelfExtractor.buildInstance();
extractor = SelfExtractor.getInstance();
extractorCreated = true;
}
return createExtractor_rc;
} | [
"protected",
"static",
"ReturnCode",
"createExtractor",
"(",
")",
"{",
"if",
"(",
"!",
"extractorCreated",
")",
"{",
"createExtractor_rc",
"=",
"SelfExtractor",
".",
"buildInstance",
"(",
")",
";",
"extractor",
"=",
"SelfExtractor",
".",
"getInstance",
"(",
")",... | ok to call this before doMain from subclass main | [
"ok",
"to",
"call",
"this",
"before",
"doMain",
"from",
"subclass",
"main"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtract.java#L109-L116 |
111,154 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java | UTF8Reader.expectedByte | private void expectedByte(int position, int count)
throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.expectedByte", new Object[] {Integer.toString(position), Integer.toString(count)});
throw new UTFDataFormatException(msg);
} | java | private void expectedByte(int position, int count)
throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.expectedByte", new Object[] {Integer.toString(position), Integer.toString(count)});
throw new UTFDataFormatException(msg);
} | [
"private",
"void",
"expectedByte",
"(",
"int",
"position",
",",
"int",
"count",
")",
"throws",
"UTFDataFormatException",
"{",
"String",
"msg",
"=",
"JspCoreException",
".",
"getMsg",
"(",
"\"jsp.error.xml.expectedByte\"",
",",
"new",
"Object",
"[",
"]",
"{",
"In... | Throws an exception for expected byte. | [
"Throws",
"an",
"exception",
"for",
"expected",
"byte",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java#L601-L606 |
111,155 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java | UTF8Reader.invalidByte | private void invalidByte(int position, int count, int c)
throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.invalidByte", new Object[] {Integer.toString(position), Integer.toString(count)});
throw new UTFDataFormatException(msg);
} | java | private void invalidByte(int position, int count, int c)
throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.invalidByte", new Object[] {Integer.toString(position), Integer.toString(count)});
throw new UTFDataFormatException(msg);
} | [
"private",
"void",
"invalidByte",
"(",
"int",
"position",
",",
"int",
"count",
",",
"int",
"c",
")",
"throws",
"UTFDataFormatException",
"{",
"String",
"msg",
"=",
"JspCoreException",
".",
"getMsg",
"(",
"\"jsp.error.xml.invalidByte\"",
",",
"new",
"Object",
"["... | Throws an exception for invalid byte. | [
"Throws",
"an",
"exception",
"for",
"invalid",
"byte",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java#L609-L614 |
111,156 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java | UTF8Reader.invalidSurrogate | private void invalidSurrogate(int uuuuu) throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.invalidHighSurrogate", new Object[] {Integer.toHexString(uuuuu)});
throw new UTFDataFormatException(msg);
} | java | private void invalidSurrogate(int uuuuu) throws UTFDataFormatException {
String msg = JspCoreException.getMsg("jsp.error.xml.invalidHighSurrogate", new Object[] {Integer.toHexString(uuuuu)});
throw new UTFDataFormatException(msg);
} | [
"private",
"void",
"invalidSurrogate",
"(",
"int",
"uuuuu",
")",
"throws",
"UTFDataFormatException",
"{",
"String",
"msg",
"=",
"JspCoreException",
".",
"getMsg",
"(",
"\"jsp.error.xml.invalidHighSurrogate\"",
",",
"new",
"Object",
"[",
"]",
"{",
"Integer",
".",
"... | Throws an exception for invalid surrogate bits. | [
"Throws",
"an",
"exception",
"for",
"invalid",
"surrogate",
"bits",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/UTF8Reader.java#L617-L621 |
111,157 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.alarm | public void alarm(Object context)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "alarm", context);
btmLockManager.lock();
boolean btmLocked = true;
timeoutLockManager.lockExclusive();
boolean timeoutLocked = true;
try
{
//we won't ... | java | public void alarm(Object context)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "alarm", context);
btmLockManager.lock();
boolean btmLocked = true;
timeoutLockManager.lockExclusive();
boolean timeoutLocked = true;
try
{
//we won't ... | [
"public",
"void",
"alarm",
"(",
"Object",
"context",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"alarm\"",
",",
"c... | The group alarm call. The context on this call will be null. | [
"The",
"group",
"alarm",
"call",
".",
"The",
"context",
"on",
"this",
"call",
"will",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L201-L327 |
111,158 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.restartEntries | private void restartEntries(List timedout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restartEntries", new Object[] { timedout });
//iterate over the list of entries
Iterator itr = timedout.iterator();
while(itr.hasNext())
{
BatchedTimeoutEntry... | java | private void restartEntries(List timedout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restartEntries", new Object[] { timedout });
//iterate over the list of entries
Iterator itr = timedout.iterator();
while(itr.hasNext())
{
BatchedTimeoutEntry... | [
"private",
"void",
"restartEntries",
"(",
"List",
"timedout",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"restartEntries\"",
",",
"... | Restart alarms for a a list of BTEs
@param timedout the list of BTEs to be restarted | [
"Restart",
"alarms",
"for",
"a",
"a",
"list",
"of",
"BTEs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L334-L355 |
111,159 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.startTimer | public void startTimer()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startTimer");
btmLockManager.lockExclusive();
try
{
//only start if currently stopped
if (isStopped)
{
//set stopped to false
isStopped = false;
/... | java | public void startTimer()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startTimer");
btmLockManager.lockExclusive();
try
{
//only start if currently stopped
if (isStopped)
{
//set stopped to false
isStopped = false;
/... | [
"public",
"void",
"startTimer",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"startTimer\"",
")",
";",
"btmLockManager",
".",
... | Start the BatchedTimeoutManager | [
"Start",
"the",
"BatchedTimeoutManager"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L360-L388 |
111,160 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.startNewAlarm | private void startNewAlarm(LinkedListEntry entry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startNewAlarm", new Object[] { entry });
//start a new alarm
entry.alarm = am.create(delta, percentLate, this, entry);
if (TraceComponent.isAnyTracingEnable... | java | private void startNewAlarm(LinkedListEntry entry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startNewAlarm", new Object[] { entry });
//start a new alarm
entry.alarm = am.create(delta, percentLate, this, entry);
if (TraceComponent.isAnyTracingEnable... | [
"private",
"void",
"startNewAlarm",
"(",
"LinkedListEntry",
"entry",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"startNewAlarm\"",
",... | Start a new alarm for a given entry in the active list.
@param entry the entry in the active list | [
"Start",
"a",
"new",
"alarm",
"for",
"a",
"given",
"entry",
"in",
"the",
"active",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L395-L405 |
111,161 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.stopTimer | public void stopTimer()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stopTimer");
btmLockManager.lockExclusive();
try
{
//only stop if we are currently started
if (!isStopped)
{
//set stopped to true
isStopped = true;
... | java | public void stopTimer()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stopTimer");
btmLockManager.lockExclusive();
try
{
//only stop if we are currently started
if (!isStopped)
{
//set stopped to true
isStopped = true;
... | [
"public",
"void",
"stopTimer",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"stopTimer\"",
")",
";",
"btmLockManager",
".",
"l... | Stop the BatchedTimeoutManager | [
"Stop",
"the",
"BatchedTimeoutManager"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L410-L442 |
111,162 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java | BatchedTimeoutManager.close | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "close");
btmLockManager.lockExclusive();
try
{
stopTimer();
activeEntries = null;
}
finally
{
btmLockManager.unlockExclusive();
}
if (TraceComponent.isAnyT... | java | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "close");
btmLockManager.lockExclusive();
try
{
stopTimer();
activeEntries = null;
}
finally
{
btmLockManager.unlockExclusive();
}
if (TraceComponent.isAnyT... | [
"public",
"void",
"close",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"close\"",
")",
";",
"btmLockManager",
".",
"lockExclu... | Method to close this timer forever | [
"Method",
"to",
"close",
"this",
"timer",
"forever"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/BatchedTimeoutManager.java#L447-L463 |
111,163 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteInstanceDetails.java | RemoteInstanceDetails.setCache | public synchronized void setCache(RemoteListCache cache) {
if (cache != null && (this.cache == null || !this.cache.isComplete())) {
this.cache = cache;
}
} | java | public synchronized void setCache(RemoteListCache cache) {
if (cache != null && (this.cache == null || !this.cache.isComplete())) {
this.cache = cache;
}
} | [
"public",
"synchronized",
"void",
"setCache",
"(",
"RemoteListCache",
"cache",
")",
"{",
"if",
"(",
"cache",
"!=",
"null",
"&&",
"(",
"this",
".",
"cache",
"==",
"null",
"||",
"!",
"this",
".",
"cache",
".",
"isComplete",
"(",
")",
")",
")",
"{",
"th... | sets cache for the query result on this instance
@param cache new instance's value of cache | [
"sets",
"cache",
"for",
"the",
"query",
"result",
"on",
"this",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteInstanceDetails.java#L82-L86 |
111,164 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSListCoder.java | JSListCoder.decode | public Object decode(byte[] frame, int offset, int indirect, JMFMessageData msg) throws JMFMessageCorruptionException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "decode", new Object[]{frame, offset, indirect, msg});
Object result = null;
if (indirect < 0) {
... | java | public Object decode(byte[] frame, int offset, int indirect, JMFMessageData msg) throws JMFMessageCorruptionException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "decode", new Object[]{frame, offset, indirect, msg});
Object result = null;
if (indirect < 0) {
... | [
"public",
"Object",
"decode",
"(",
"byte",
"[",
"]",
"frame",
",",
"int",
"offset",
",",
"int",
"indirect",
",",
"JMFMessageData",
"msg",
")",
"throws",
"JMFMessageCorruptionException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&... | Implement JSCoder.decode | [
"Implement",
"JSCoder",
".",
"decode"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSListCoder.java#L80-L97 |
111,165 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSListCoder.java | JSListCoder.sanityCheck | public static void sanityCheck(int length, byte[] frame, int offset) throws JMFMessageCorruptionException {
if (length < 0 || offset + 4 + length > frame.length) {
JMFMessageCorruptionException jmce = new JMFMessageCorruptionException(
"Bad length: " + HexUtil.toString(new int[] { length }) + " at ... | java | public static void sanityCheck(int length, byte[] frame, int offset) throws JMFMessageCorruptionException {
if (length < 0 || offset + 4 + length > frame.length) {
JMFMessageCorruptionException jmce = new JMFMessageCorruptionException(
"Bad length: " + HexUtil.toString(new int[] { length }) + " at ... | [
"public",
"static",
"void",
"sanityCheck",
"(",
"int",
"length",
",",
"byte",
"[",
"]",
"frame",
",",
"int",
"offset",
")",
"throws",
"JMFMessageCorruptionException",
"{",
"if",
"(",
"length",
"<",
"0",
"||",
"offset",
"+",
"4",
"+",
"length",
">",
"fram... | A method to sanity check a 32 bit length value read from the message prior to allocating
storage based on the value. The length is not allowed to be negative or to exceed
the length of the remaining portion of the message's frame, assuming that the length
field is immediately followed by the data whose length it is.
... | [
"A",
"method",
"to",
"sanity",
"check",
"a",
"32",
"bit",
"length",
"value",
"read",
"from",
"the",
"message",
"prior",
"to",
"allocating",
"storage",
"based",
"on",
"the",
"value",
".",
"The",
"length",
"is",
"not",
"allowed",
"to",
"be",
"negative",
"o... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSListCoder.java#L183-L191 |
111,166 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/enums/FilterPredicate.java | FilterPredicate.areEqual | public static FilterPredicate areEqual(FilterableAttribute attribute, Object value) {
FilterPredicate pred = new FilterPredicate();
pred.attribute = attribute;
Class<?> requiredType = attribute.getType();
if (!requiredType.isInstance(value)) {
throw new IllegalArgumentExcepti... | java | public static FilterPredicate areEqual(FilterableAttribute attribute, Object value) {
FilterPredicate pred = new FilterPredicate();
pred.attribute = attribute;
Class<?> requiredType = attribute.getType();
if (!requiredType.isInstance(value)) {
throw new IllegalArgumentExcepti... | [
"public",
"static",
"FilterPredicate",
"areEqual",
"(",
"FilterableAttribute",
"attribute",
",",
"Object",
"value",
")",
"{",
"FilterPredicate",
"pred",
"=",
"new",
"FilterPredicate",
"(",
")",
";",
"pred",
".",
"attribute",
"=",
"attribute",
";",
"Class",
"<",
... | Create a predicate specifying that the value of the specified attribute must exactly
match the supplied value. The value must also be the type specified by the FilterableAttribute
@param attribute The attribute to match on
@param value The exact value that the attribute must have
@throws IllegalArgumentException if th... | [
"Create",
"a",
"predicate",
"specifying",
"that",
"the",
"value",
"of",
"the",
"specified",
"attribute",
"must",
"exactly",
"match",
"the",
"supplied",
"value",
".",
"The",
"value",
"must",
"also",
"be",
"the",
"type",
"specified",
"by",
"the",
"FilterableAttr... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/enums/FilterPredicate.java#L54-L65 |
111,167 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/enums/FilterPredicate.java | FilterPredicate.getString | private static String getString(Object value) {
// The logic here is slightly icky, as getValue may or may not exist,
// and must be called reflectively if it does exist
if (!(value instanceof Enum)) {
return value.toString();
}
Method method = null;
try {
... | java | private static String getString(Object value) {
// The logic here is slightly icky, as getValue may or may not exist,
// and must be called reflectively if it does exist
if (!(value instanceof Enum)) {
return value.toString();
}
Method method = null;
try {
... | [
"private",
"static",
"String",
"getString",
"(",
"Object",
"value",
")",
"{",
"// The logic here is slightly icky, as getValue may or may not exist,",
"// and must be called reflectively if it does exist",
"if",
"(",
"!",
"(",
"value",
"instanceof",
"Enum",
")",
")",
"{",
"... | From the 'value' object, find the field name that will be filtered on, which is a effectively a key into
a JSON object. This will generally be the result of calling toString on the object, but
for enums, there maybe a getValue method which be used instead.
@param value
@return | [
"From",
"the",
"value",
"object",
"find",
"the",
"field",
"name",
"that",
"will",
"be",
"filtered",
"on",
"which",
"is",
"a",
"effectively",
"a",
"key",
"into",
"a",
"JSON",
"object",
".",
"This",
"will",
"generally",
"be",
"the",
"result",
"of",
"callin... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/enums/FilterPredicate.java#L75-L116 |
111,168 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableRegisteredResources.java | EmbeddableRegisteredResources.rollbackResources | void rollbackResources()
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "rollbackResources", this);
distributeEnd(XAResource.TMFAIL);
_outcome = false;
_retryRequired = distributeOutcome();
... | java | void rollbackResources()
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "rollbackResources", this);
distributeEnd(XAResource.TMFAIL);
_outcome = false;
_retryRequired = distributeOutcome();
... | [
"void",
"rollbackResources",
"(",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"ro... | Rollback all resources, but do not drive state changes.
Used when transaction HAS TIMED OUT.
This will not start a retry thread | [
"Rollback",
"all",
"resources",
"but",
"do",
"not",
"drive",
"state",
"changes",
".",
"Used",
"when",
"transaction",
"HAS",
"TIMED",
"OUT",
".",
"This",
"will",
"not",
"start",
"a",
"retry",
"thread"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableRegisteredResources.java#L181-L194 |
111,169 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/srt/SRTUpgradeInputStream31.java | SRTUpgradeInputStream31.init | public void init(UpgradeInputByteBufferUtil input)
{
this._inBuffer = input;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "init upgrade input");
}
} | java | public void init(UpgradeInputByteBufferUtil input)
{
this._inBuffer = input;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "init upgrade input");
}
} | [
"public",
"void",
"init",
"(",
"UpgradeInputByteBufferUtil",
"input",
")",
"{",
"this",
".",
"_inBuffer",
"=",
"input",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
"."... | this.in defined in SRTInputStream | [
"this",
".",
"in",
"defined",
"in",
"SRTInputStream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/srt/SRTUpgradeInputStream31.java#L44-L50 |
111,170 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java | DiscoveredBdas.addDiscoveredBda | public void addDiscoveredBda(ArchiveType moduleType, WebSphereBeanDeploymentArchive bda) throws CDIException {
webSphereCDIDeployment.addBeanDeploymentArchive(bda);
Set<WebSphereBeanDeploymentArchive> bdaSet = bdasByType.get(moduleType);
if (bdaSet != null) {
bdaSet.add(bda);
... | java | public void addDiscoveredBda(ArchiveType moduleType, WebSphereBeanDeploymentArchive bda) throws CDIException {
webSphereCDIDeployment.addBeanDeploymentArchive(bda);
Set<WebSphereBeanDeploymentArchive> bdaSet = bdasByType.get(moduleType);
if (bdaSet != null) {
bdaSet.add(bda);
... | [
"public",
"void",
"addDiscoveredBda",
"(",
"ArchiveType",
"moduleType",
",",
"WebSphereBeanDeploymentArchive",
"bda",
")",
"throws",
"CDIException",
"{",
"webSphereCDIDeployment",
".",
"addBeanDeploymentArchive",
"(",
"bda",
")",
";",
"Set",
"<",
"WebSphereBeanDeploymentA... | Registers a newly discovered BDA and adds it to the deployment
@param moduleType the module type
@param bda the new BDA
@throws CDIException | [
"Registers",
"a",
"newly",
"discovered",
"BDA",
"and",
"adds",
"it",
"to",
"the",
"deployment"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java#L90-L107 |
111,171 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java | DiscoveredBdas.makeCrossBoundaryWiring | public void makeCrossBoundaryWiring() throws CDIException {
Collection<WebSphereBeanDeploymentArchive> sharedLibs = bdasByType.get(ArchiveType.SHARED_LIB);
Collection<WebSphereBeanDeploymentArchive> earLibs = bdasByType.get(ArchiveType.EAR_LIB);
Collection<WebSphereBeanDeploymentArchive> rarModu... | java | public void makeCrossBoundaryWiring() throws CDIException {
Collection<WebSphereBeanDeploymentArchive> sharedLibs = bdasByType.get(ArchiveType.SHARED_LIB);
Collection<WebSphereBeanDeploymentArchive> earLibs = bdasByType.get(ArchiveType.EAR_LIB);
Collection<WebSphereBeanDeploymentArchive> rarModu... | [
"public",
"void",
"makeCrossBoundaryWiring",
"(",
")",
"throws",
"CDIException",
"{",
"Collection",
"<",
"WebSphereBeanDeploymentArchive",
">",
"sharedLibs",
"=",
"bdasByType",
".",
"get",
"(",
"ArchiveType",
".",
"SHARED_LIB",
")",
";",
"Collection",
"<",
"WebSpher... | The method should be called last to wire all libraries and modules | [
"The",
"method",
"should",
"be",
"called",
"last",
"to",
"wire",
"all",
"libraries",
"and",
"modules"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java#L112-L131 |
111,172 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java | DiscoveredBdas.wireBdas | private void wireBdas(Collection<WebSphereBeanDeploymentArchive> wireFromBdas, Collection<WebSphereBeanDeploymentArchive> wireToBdas) {
for (WebSphereBeanDeploymentArchive wireFromBda : wireFromBdas) {
Collection<BeanDeploymentArchive> accessibleBdas = wireFromBda.getBeanDeploymentArchives();
... | java | private void wireBdas(Collection<WebSphereBeanDeploymentArchive> wireFromBdas, Collection<WebSphereBeanDeploymentArchive> wireToBdas) {
for (WebSphereBeanDeploymentArchive wireFromBda : wireFromBdas) {
Collection<BeanDeploymentArchive> accessibleBdas = wireFromBda.getBeanDeploymentArchives();
... | [
"private",
"void",
"wireBdas",
"(",
"Collection",
"<",
"WebSphereBeanDeploymentArchive",
">",
"wireFromBdas",
",",
"Collection",
"<",
"WebSphereBeanDeploymentArchive",
">",
"wireToBdas",
")",
"{",
"for",
"(",
"WebSphereBeanDeploymentArchive",
"wireFromBda",
":",
"wireFrom... | Make a wire from the group of bdas to a set of destination bdas
@param wireFromBdas the wiring from bda
@param wireToBdas the wiring destination bda | [
"Make",
"a",
"wire",
"from",
"the",
"group",
"of",
"bdas",
"to",
"a",
"set",
"of",
"destination",
"bdas"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/DiscoveredBdas.java#L139-L148 |
111,173 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java | HexUtil.dumpString | public static String dumpString(byte[] frame, int offset, int length) {
return dumpString(frame, offset, length, false);
} | java | public static String dumpString(byte[] frame, int offset, int length) {
return dumpString(frame, offset, length, false);
} | [
"public",
"static",
"String",
"dumpString",
"(",
"byte",
"[",
"]",
"frame",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"return",
"dumpString",
"(",
"frame",
",",
"offset",
",",
"length",
",",
"false",
")",
";",
"}"
] | Create a formatted "dump" of a sequence of bytes
@param frame the byte array containing the bytes to be formatted
@param offset the offset of the first byte to format
@param length the number of bytes to format
@return a String containing the formatted dump. | [
"Create",
"a",
"formatted",
"dump",
"of",
"a",
"sequence",
"of",
"bytes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java#L95-L97 |
111,174 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java | HexUtil.dumpString | public static String dumpString(byte[] frame, int offset, int length, boolean ascii) {
if ((frame == null)|| (length == 0)) return null;
// Main formatting is performed in buf. asciibuf is used to hold the
// ascii translation. asciibuf is appended to buf before a new line is started
StringBuffer buf = ... | java | public static String dumpString(byte[] frame, int offset, int length, boolean ascii) {
if ((frame == null)|| (length == 0)) return null;
// Main formatting is performed in buf. asciibuf is used to hold the
// ascii translation. asciibuf is appended to buf before a new line is started
StringBuffer buf = ... | [
"public",
"static",
"String",
"dumpString",
"(",
"byte",
"[",
"]",
"frame",
",",
"int",
"offset",
",",
"int",
"length",
",",
"boolean",
"ascii",
")",
"{",
"if",
"(",
"(",
"frame",
"==",
"null",
")",
"||",
"(",
"length",
"==",
"0",
")",
")",
"return... | Create a formatted "dump" of a sequence of bytes with ascii translation, if specified.
Performs simple ascii translation. No DBCS translations.
@param frame the byte array containing the bytes to be formatted
@param offset the offset of the first byte to format
@param length the number of bytes to format
@pa... | [
"Create",
"a",
"formatted",
"dump",
"of",
"a",
"sequence",
"of",
"bytes",
"with",
"ascii",
"translation",
"if",
"specified",
".",
"Performs",
"simple",
"ascii",
"translation",
".",
"No",
"DBCS",
"translations",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java#L109-L146 |
111,175 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java | HexUtil.main | public static void main(String[] args) {
System.err.println(toString(new int[] { Integer.parseInt(args[0]) }));
} | java | public static void main(String[] args) {
System.err.println(toString(new int[] { Integer.parseInt(args[0]) }));
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"toString",
"(",
"new",
"int",
"[",
"]",
"{",
"Integer",
".",
"parseInt",
"(",
"args",
"[",
"0",
"]",
")",
"}",
")",
")",
... | A trivial int-to-hex converter | [
"A",
"trivial",
"int",
"-",
"to",
"-",
"hex",
"converter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HexUtil.java#L161-L163 |
111,176 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobOperatorImpl.java | WSJobOperatorImpl.traceJobStart | protected void traceJobStart(String jobXMLName, Properties jobParameters) {
if (logger.isLoggable(Level.FINE)) {
StringWriter jobParameterWriter = new StringWriter();
if (jobParameters != null) {
try {
jobParameters.store(jobParameterWriter, "Job para... | java | protected void traceJobStart(String jobXMLName, Properties jobParameters) {
if (logger.isLoggable(Level.FINE)) {
StringWriter jobParameterWriter = new StringWriter();
if (jobParameters != null) {
try {
jobParameters.store(jobParameterWriter, "Job para... | [
"protected",
"void",
"traceJobStart",
"(",
"String",
"jobXMLName",
",",
"Properties",
"jobParameters",
")",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
")",
"{",
"StringWriter",
"jobParameterWriter",
"=",
"new",
"StringWriter",
... | Trace job submission.. | [
"Trace",
"job",
"submission",
".."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobOperatorImpl.java#L201-L217 |
111,177 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobOperatorImpl.java | WSJobOperatorImpl.traceJobXML | protected void traceJobXML(String jobXML) {
if (logger.isLoggable(Level.FINE)) {
int concatLen = jobXML.length() > 200 ? 200 : jobXML.length();
logger.fine("Starting job: " + jobXML.substring(0, concatLen) + "... truncated ...");
}
} | java | protected void traceJobXML(String jobXML) {
if (logger.isLoggable(Level.FINE)) {
int concatLen = jobXML.length() > 200 ? 200 : jobXML.length();
logger.fine("Starting job: " + jobXML.substring(0, concatLen) + "... truncated ...");
}
} | [
"protected",
"void",
"traceJobXML",
"(",
"String",
"jobXML",
")",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
")",
"{",
"int",
"concatLen",
"=",
"jobXML",
".",
"length",
"(",
")",
">",
"200",
"?",
"200",
":",
"jobXML"... | Trace job xml file.. | [
"Trace",
"job",
"xml",
"file",
".."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobOperatorImpl.java#L222-L228 |
111,178 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java | FileTransferHelper.getMIMEType | private String getMIMEType(String path) {
String extension = getFileExtension(path);
if (extension == null) {
return FILE_TRANSFER_BINARY_MIME;
}
if ("zip".equals(extension) || "ear".equals(extension) || "war".equals(extension) || "jar".equals(extension) || "eba".equals(ext... | java | private String getMIMEType(String path) {
String extension = getFileExtension(path);
if (extension == null) {
return FILE_TRANSFER_BINARY_MIME;
}
if ("zip".equals(extension) || "ear".equals(extension) || "war".equals(extension) || "jar".equals(extension) || "eba".equals(ext... | [
"private",
"String",
"getMIMEType",
"(",
"String",
"path",
")",
"{",
"String",
"extension",
"=",
"getFileExtension",
"(",
"path",
")",
";",
"if",
"(",
"extension",
"==",
"null",
")",
"{",
"return",
"FILE_TRANSFER_BINARY_MIME",
";",
"}",
"if",
"(",
"\"zip\"",... | Get the MIME type for the given path | [
"Get",
"the",
"MIME",
"type",
"for",
"the",
"given",
"path"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java#L150-L182 |
111,179 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java | FileTransferHelper.getFileExtension | private static String getFileExtension(String path) {
int index = path.lastIndexOf('.');
if (index == -1) {
return null;
}
return path.substring(index + 1).toLowerCase(Locale.ENGLISH);
} | java | private static String getFileExtension(String path) {
int index = path.lastIndexOf('.');
if (index == -1) {
return null;
}
return path.substring(index + 1).toLowerCase(Locale.ENGLISH);
} | [
"private",
"static",
"String",
"getFileExtension",
"(",
"String",
"path",
")",
"{",
"int",
"index",
"=",
"path",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
"index",
"==",
"-",
"1",
")",
"{",
"return",
"null",
";",
"}",
"return",
"path",
... | returns lower cased extension
TODO: if we support the path being a folder (to be zipped), then
this method will need to be smarter in terms of searching for an "extension" | [
"returns",
"lower",
"cased",
"extension"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java#L190-L197 |
111,180 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java | FileTransferHelper.getFileService | private synchronized FileServiceMXBean getFileService() {
if (fileService == null) {
try {
fileService = JMX.newMXBeanProxy(ManagementFactory.getPlatformMBeanServer(), new ObjectName(FileServiceMXBean.OBJECT_NAME), FileServiceMXBean.class);
} catch (MalformedObjectNameExc... | java | private synchronized FileServiceMXBean getFileService() {
if (fileService == null) {
try {
fileService = JMX.newMXBeanProxy(ManagementFactory.getPlatformMBeanServer(), new ObjectName(FileServiceMXBean.OBJECT_NAME), FileServiceMXBean.class);
} catch (MalformedObjectNameExc... | [
"private",
"synchronized",
"FileServiceMXBean",
"getFileService",
"(",
")",
"{",
"if",
"(",
"fileService",
"==",
"null",
")",
"{",
"try",
"{",
"fileService",
"=",
"JMX",
".",
"newMXBeanProxy",
"(",
"ManagementFactory",
".",
"getPlatformMBeanServer",
"(",
")",
",... | File Service MXBean | [
"File",
"Service",
"MXBean"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java#L515-L527 |
111,181 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java | FileTransferHelper.getWritableLocation | public String getWritableLocation() {
String writableLocation = getWsLocationAdmin().resolveString("${server.output.dir}/workarea/" + UUID.randomUUID() + "/");
if (writableLocation == null) {
IOException ioe = new IOException(TraceNLS.getFormattedMessage(this.getClass(),
... | java | public String getWritableLocation() {
String writableLocation = getWsLocationAdmin().resolveString("${server.output.dir}/workarea/" + UUID.randomUUID() + "/");
if (writableLocation == null) {
IOException ioe = new IOException(TraceNLS.getFormattedMessage(this.getClass(),
... | [
"public",
"String",
"getWritableLocation",
"(",
")",
"{",
"String",
"writableLocation",
"=",
"getWsLocationAdmin",
"(",
")",
".",
"resolveString",
"(",
"\"${server.output.dir}/workarea/\"",
"+",
"UUID",
".",
"randomUUID",
"(",
")",
"+",
"\"/\"",
")",
";",
"if",
... | Return a unique directory within the workarea directory | [
"Return",
"a",
"unique",
"directory",
"within",
"the",
"workarea",
"directory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java#L532-L544 |
111,182 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java | FileTransferHelper.getFilename | public static String getFilename(String path) {
//The filename is after the last slash
final int index = path != null ? path.lastIndexOf("/") : -1;
if (index == -1) {
IOException ioe = new IOException(TraceNLS.getFormattedMessage(FileTransferHelper.class,
... | java | public static String getFilename(String path) {
//The filename is after the last slash
final int index = path != null ? path.lastIndexOf("/") : -1;
if (index == -1) {
IOException ioe = new IOException(TraceNLS.getFormattedMessage(FileTransferHelper.class,
... | [
"public",
"static",
"String",
"getFilename",
"(",
"String",
"path",
")",
"{",
"//The filename is after the last slash",
"final",
"int",
"index",
"=",
"path",
"!=",
"null",
"?",
"path",
".",
"lastIndexOf",
"(",
"\"/\"",
")",
":",
"-",
"1",
";",
"if",
"(",
"... | Get the filename from a given path | [
"Get",
"the",
"filename",
"from",
"a",
"given",
"path"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/FileTransferHelper.java#L549-L562 |
111,183 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java | SibRaSingleProcessListener.internalConsumeMessages | public void internalConsumeMessages(final LockedMessageEnumeration lockedMessages,
final AsynchDispatchScheduler asynchDispatchScheduler) {
final String methodName = "internalConsumeMessages";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TR... | java | public void internalConsumeMessages(final LockedMessageEnumeration lockedMessages,
final AsynchDispatchScheduler asynchDispatchScheduler) {
final String methodName = "internalConsumeMessages";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TR... | [
"public",
"void",
"internalConsumeMessages",
"(",
"final",
"LockedMessageEnumeration",
"lockedMessages",
",",
"final",
"AsynchDispatchScheduler",
"asynchDispatchScheduler",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"internalConsumeMessages\"",
";",
"if",
"(",
"Trace... | The consumeMessages method is invoked by the message processor with an enumeration
containing one or more messages locked to this consumer. The consumeMessages method
will either call the internalConsumeMessage method directly, or, if XD wishes to suspend
the processing this method will be called then XD decides to res... | [
"The",
"consumeMessages",
"method",
"is",
"invoked",
"by",
"the",
"message",
"processor",
"with",
"an",
"enumeration",
"containing",
"one",
"or",
"more",
"messages",
"locked",
"to",
"this",
"consumer",
".",
"The",
"consumeMessages",
"method",
"will",
"either",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java#L222-L287 |
111,184 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java | SibRaSingleProcessListener.processCachedMessage | protected void processCachedMessage (SIBusMessage message,
LockedMessageEnumeration lockedMessages) throws SISessionDroppedException,
SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SILimitExceededException, SIMess... | java | protected void processCachedMessage (SIBusMessage message,
LockedMessageEnumeration lockedMessages) throws SISessionDroppedException,
SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailableException, SIConnectionLostException,
SILimitExceededException, SIMess... | [
"protected",
"void",
"processCachedMessage",
"(",
"SIBusMessage",
"message",
",",
"LockedMessageEnumeration",
"lockedMessages",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableExcept... | Perform any processing on a message that is required whilst creating the
cached locked message enumeration.
@param message The message to process
@param lockedMessages The locked message enumeration the message is in. The cursor
will currently be pointing at the message passed as a parameter.
@throws SIIncorrectCallExc... | [
"Perform",
"any",
"processing",
"on",
"a",
"message",
"that",
"is",
"required",
"whilst",
"creating",
"the",
"cached",
"locked",
"message",
"enumeration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java#L305-L322 |
111,185 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java | SibRaSingleProcessListener.getMaxActiveMessages | int getMaxActiveMessages()
{
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMaxActiveMessages";
SibTr.entry(this, TRACE, methodName);
}
// The field max active messages is used to represent the default max
... | java | int getMaxActiveMessages()
{
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMaxActiveMessages";
SibTr.entry(this, TRACE, methodName);
}
// The field max active messages is used to represent the default max
... | [
"int",
"getMaxActiveMessages",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getMaxActiveMessages\"",
";",
"SibTr",
".",
"ent... | Returns the maximum number of active messages that should be associated
with this listener at any one time.
@return int max active messages | [
"Returns",
"the",
"maximum",
"number",
"of",
"active",
"messages",
"that",
"should",
"be",
"associated",
"with",
"this",
"listener",
"at",
"any",
"one",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java#L348-L369 |
111,186 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java | SibRaSingleProcessListener.getMessageLockExpiry | long getMessageLockExpiry() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMessageLockExpiry";
SibTr.entry(this, TRACE, methodName);
SibTr.exit(this, TRACE, methodName, "0");
}
return 0;
} | java | long getMessageLockExpiry() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMessageLockExpiry";
SibTr.entry(this, TRACE, methodName);
SibTr.exit(this, TRACE, methodName, "0");
}
return 0;
} | [
"long",
"getMessageLockExpiry",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getMessageLockExpiry\"",
";",
"SibTr",
".",
"en... | Returns the expiry time for message locks.
@return zero to indicate that message locks should not be used | [
"Returns",
"the",
"expiry",
"time",
"for",
"message",
"locks",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaSingleProcessListener.java#L376-L385 |
111,187 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java | LogRecord.getUserLogRecord | protected static LogRecord getUserLogRecord(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException {
final String methodName = "getUserLogRecord";
if (Tracing.isAnyTracingEnabled() ... | java | protected static LogRecord getUserLogRecord(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException {
final String methodName = "getUserLogRecord";
if (Tracing.isAnyTracingEnabled() ... | [
"protected",
"static",
"LogRecord",
"getUserLogRecord",
"(",
"java",
".",
"io",
".",
"DataInputStream",
"dataInputStream",
",",
"ObjectManagerState",
"objectManagerState",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"getUserLogRec... | Recover a user defined Log Record from a DataInputStream
@param dataInputStream from which to construct the log record.
@param objectManagerState into which the logRecord is loaded, if
the logRecord references any Tokens they are referenced by this
ObjectManager.
@return LogRecord read from the dataInputstream.
@throw... | [
"Recover",
"a",
"user",
"defined",
"Log",
"Record",
"from",
"a",
"DataInputStream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java#L66-L102 |
111,188 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java | LogRecord.atStart | protected boolean atStart()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "atStart"
);
boolean atStartOfLogRecord = (bufferCursor == 0) && (bufferByteCursor == 0);
if (Tracing.isAnyT... | java | protected boolean atStart()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "atStart"
);
boolean atStartOfLogRecord = (bufferCursor == 0) && (bufferByteCursor == 0);
if (Tracing.isAnyT... | [
"protected",
"boolean",
"atStart",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"atStart\"",
")",
";",
"boolean",... | Indicates whether the buffer cursors are positioned at the start of the LogRecord buffers
indicating that no logBuffers have been filled yet.
@return boolean true if the cursors are positioned ta the start of the LogRecord. | [
"Indicates",
"whether",
"the",
"buffer",
"cursors",
"are",
"positioned",
"at",
"the",
"start",
"of",
"the",
"LogRecord",
"buffers",
"indicating",
"that",
"no",
"logBuffers",
"have",
"been",
"filled",
"yet",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java#L138-L153 |
111,189 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java | LogRecord.getBuffers | protected ObjectManagerByteArrayOutputStream[] getBuffers()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getBuffers"
);
// Default log reco... | java | protected ObjectManagerByteArrayOutputStream[] getBuffers()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getBuffers"
);
// Default log reco... | [
"protected",
"ObjectManagerByteArrayOutputStream",
"[",
"]",
"getBuffers",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
... | Gives back the serialized LogRecord as arrays of bytes.
Unless overriden this simply serializes the Log Record.
@return ObjectManagerByteArrayOutputStream[] the buffers containing the serialized LogRecord.
@throws ObjectManagerException | [
"Gives",
"back",
"the",
"serialized",
"LogRecord",
"as",
"arrays",
"of",
"bytes",
".",
"Unless",
"overriden",
"this",
"simply",
"serializes",
"the",
"Log",
"Record",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java#L212-L246 |
111,190 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java | LogRecord.serialize | protected ObjectManagerByteArrayOutputStream serialize(java.io.Serializable serializableObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"serialize",
... | java | protected ObjectManagerByteArrayOutputStream serialize(java.io.Serializable serializableObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"serialize",
... | [
"protected",
"ObjectManagerByteArrayOutputStream",
"serialize",
"(",
"java",
".",
"io",
".",
"Serializable",
"serializableObject",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEna... | Serialize's an Object by turning it into an array of bytes.
@param serializableObject to serialize.
@return ObjectManagerByteArrayOutputStream containing the serialized form of the Object.
@throws ObjectManagerException | [
"Serialize",
"s",
"an",
"Object",
"by",
"turning",
"it",
"into",
"an",
"array",
"of",
"bytes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java#L277-L314 |
111,191 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java | LogRecord.deserialize | protected static Object deserialize(byte[] objectBytes, ObjectManagerState objectManagerState)
throws ObjectManagerException {
final String methodName = "deserialize";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass,
... | java | protected static Object deserialize(byte[] objectBytes, ObjectManagerState objectManagerState)
throws ObjectManagerException {
final String methodName = "deserialize";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass,
... | [
"protected",
"static",
"Object",
"deserialize",
"(",
"byte",
"[",
"]",
"objectBytes",
",",
"ObjectManagerState",
"objectManagerState",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"deserialize\"",
";",
"if",
"(",
"Tracing",
"... | Turns a serialized Object from an array of bytes back into an object.
@param objectBytes the serialized form of the serializableObject.
@param objectManagerState which owns any tokens referenced by the Object.
@return Object the Object recovered from the Byte[].
@throws ObjectManagerException | [
"Turns",
"a",
"serialized",
"Object",
"from",
"an",
"array",
"of",
"bytes",
"back",
"into",
"an",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/LogRecord.java#L324-L368 |
111,192 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbXaResourceImpl.java | WSRdbXaResourceImpl.getTransactionTimeout | public final int getTransactionTimeout() throws XAException {
// if the MC marked Stale, it means the user requested a purge pool with an immediate option
// so don't allow any work to continue. In this case, we throw XAER_RMFAIL xa error
// which indicates that the resource manager is not ava... | java | public final int getTransactionTimeout() throws XAException {
// if the MC marked Stale, it means the user requested a purge pool with an immediate option
// so don't allow any work to continue. In this case, we throw XAER_RMFAIL xa error
// which indicates that the resource manager is not ava... | [
"public",
"final",
"int",
"getTransactionTimeout",
"(",
")",
"throws",
"XAException",
"{",
"// if the MC marked Stale, it means the user requested a purge pool with an immediate option",
"// so don't allow any work to continue. In this case, we throw XAER_RMFAIL xa error",
"// which indicates... | Obtain the current transaction timeout value set for this XAResource instance. If XAResource.setTransactionTimeout was
not use prior to invoking this method, the return value is the default timeout set for the resource manager; otherwise, the value
used in the previous setTransactionTimeout call is returned.
@return i... | [
"Obtain",
"the",
"current",
"transaction",
"timeout",
"value",
"set",
"for",
"this",
"XAResource",
"instance",
".",
"If",
"XAResource",
".",
"setTransactionTimeout",
"was",
"not",
"use",
"prior",
"to",
"invoking",
"this",
"method",
"the",
"return",
"value",
"is"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbXaResourceImpl.java#L571-L584 |
111,193 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.2/src/com/ibm/ws/microprofile/config12/impl/Config12BuilderImpl.java | Config12BuilderImpl.withConverter | @Override
public <T> ConfigBuilder withConverter(Class<T> type, int priority, Converter<T> converter) {
synchronized (this) {
UserConverter<?> userConverter = UserConverter.newInstance(type, priority, converter);
addUserConverter(userConverter);
}
return this;
} | java | @Override
public <T> ConfigBuilder withConverter(Class<T> type, int priority, Converter<T> converter) {
synchronized (this) {
UserConverter<?> userConverter = UserConverter.newInstance(type, priority, converter);
addUserConverter(userConverter);
}
return this;
} | [
"@",
"Override",
"public",
"<",
"T",
">",
"ConfigBuilder",
"withConverter",
"(",
"Class",
"<",
"T",
">",
"type",
",",
"int",
"priority",
",",
"Converter",
"<",
"T",
">",
"converter",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"UserConverter",
"<",
... | new api method for 1.2 | [
"new",
"api",
"method",
"for",
"1",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.2/src/com/ibm/ws/microprofile/config12/impl/Config12BuilderImpl.java#L37-L44 |
111,194 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/JmsInternalsFactory.java | JmsInternalsFactory.getSharedUtils | public static final JmsSharedUtils getSharedUtils() throws JMSException
{
if (TraceComponent.isAnyTracingEnabled() && tcInt.isEntryEnabled())
SibTr.entry(tcInt, "getSharedUtils");
if (jsuInstance == null)
{
try
{
Class cls =
Class.forName("com.ibm.ws.sib.api.jms.impl... | java | public static final JmsSharedUtils getSharedUtils() throws JMSException
{
if (TraceComponent.isAnyTracingEnabled() && tcInt.isEntryEnabled())
SibTr.entry(tcInt, "getSharedUtils");
if (jsuInstance == null)
{
try
{
Class cls =
Class.forName("com.ibm.ws.sib.api.jms.impl... | [
"public",
"static",
"final",
"JmsSharedUtils",
"getSharedUtils",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tcInt",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tcInt... | Used to obtain the singleton instance of the JmsSharedUtils interface.
@return JmsSharedUtils
@throws JMSException If the shared utils impl class can't be loaded - generates FFDC. | [
"Used",
"to",
"obtain",
"the",
"singleton",
"instance",
"of",
"the",
"JmsSharedUtils",
"interface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/JmsInternalsFactory.java#L63-L108 |
111,195 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInfo.java | JPAPUnitInfo.close | final void close() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "close : " + ivArchivePuId, this);
// First, prevent any further EntityManager factories from being
// created. EMFs may be created for eac... | java | final void close() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "close : " + ivArchivePuId, this);
// First, prevent any further EntityManager factories from being
// created. EMFs may be created for eac... | [
"final",
"void",
"close",
"(",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\... | Close the entity manager factory if it exists and is in open state per JPA Spec section
5.8.1. | [
"Close",
"the",
"entity",
"manager",
"factory",
"if",
"it",
"exists",
"and",
"is",
"in",
"open",
"state",
"per",
"JPA",
"Spec",
"section",
"5",
".",
"8",
".",
"1",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInfo.java#L1010-L1082 |
111,196 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInfo.java | JPAPUnitInfo.classNeedsTransform | private final boolean classNeedsTransform(String className) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "classNeedsTransform : PUID = " + ivArchivePuId + ", class name = " + className); //d454146
}
bo... | java | private final boolean classNeedsTransform(String className) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "classNeedsTransform : PUID = " + ivArchivePuId + ", class name = " + className); //d454146
}
bo... | [
"private",
"final",
"boolean",
"classNeedsTransform",
"(",
"String",
"className",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Determine if the input class needs persistence provider class transformation using
a pre-defined regular expression filter. | [
"Determine",
"if",
"the",
"input",
"class",
"needs",
"persistence",
"provider",
"class",
"transformation",
"using",
"a",
"pre",
"-",
"defined",
"regular",
"expression",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInfo.java#L1178-L1195 |
111,197 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/QueuedMessage.java | QueuedMessage.copyMessageToExceptionDestination | public void copyMessageToExceptionDestination(LocalTransaction tran)
throws SINotPossibleInCurrentConfigurationException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "copyMessageToExceptionDestination", tran);
SIMPMessage msg = getSIM... | java | public void copyMessageToExceptionDestination(LocalTransaction tran)
throws SINotPossibleInCurrentConfigurationException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "copyMessageToExceptionDestination", tran);
SIMPMessage msg = getSIM... | [
"public",
"void",
"copyMessageToExceptionDestination",
"(",
"LocalTransaction",
"tran",
")",
"throws",
"SINotPossibleInCurrentConfigurationException",
",",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isE... | Copy the message to the exception destination
@param tran can be null
@throws SIResourceException
@throws SINotPossibleInCurrentConfigurationException | [
"Copy",
"the",
"message",
"to",
"the",
"exception",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/QueuedMessage.java#L385-L412 |
111,198 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcProxyMethod.java | WSJdbcProxyMethod.isSafe | public static final boolean isSafe(Method meth) {
String fullyQualifiedName = new StringBuilder().append(meth.getDeclaringClass().getName()).append('.').append(meth.getName()).toString();
return !unsafeMethods.contains(meth.getName()) && !unsafeMethods.contains(fullyQualifiedName);
} | java | public static final boolean isSafe(Method meth) {
String fullyQualifiedName = new StringBuilder().append(meth.getDeclaringClass().getName()).append('.').append(meth.getName()).toString();
return !unsafeMethods.contains(meth.getName()) && !unsafeMethods.contains(fullyQualifiedName);
} | [
"public",
"static",
"final",
"boolean",
"isSafe",
"(",
"Method",
"meth",
")",
"{",
"String",
"fullyQualifiedName",
"=",
"new",
"StringBuilder",
"(",
")",
".",
"append",
"(",
"meth",
".",
"getDeclaringClass",
"(",
")",
".",
"getName",
"(",
")",
")",
".",
... | Determines whether it is safe, based on the method name, to invoke the method on
behalf of a dynamic proxy for a JDBC wrapper.
@param meth the method.
@return TRUE if safe. FALSE if not safe. | [
"Determines",
"whether",
"it",
"is",
"safe",
"based",
"on",
"the",
"method",
"name",
"to",
"invoke",
"the",
"method",
"on",
"behalf",
"of",
"a",
"dynamic",
"proxy",
"for",
"a",
"JDBC",
"wrapper",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcProxyMethod.java#L319-L323 |
111,199 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcProxyMethod.java | WSJdbcProxyMethod.isSafeReturnType | static boolean isSafeReturnType(Class<?> type) {
return !ConnectionPoolDataSource.class.isAssignableFrom(type)
&& !CommonDataSource.class.isAssignableFrom(type)
&& !XADataSource.class.isAssignableFrom(type)
&& !DataSource.class.isAssignableFrom(type)
... | java | static boolean isSafeReturnType(Class<?> type) {
return !ConnectionPoolDataSource.class.isAssignableFrom(type)
&& !CommonDataSource.class.isAssignableFrom(type)
&& !XADataSource.class.isAssignableFrom(type)
&& !DataSource.class.isAssignableFrom(type)
... | [
"static",
"boolean",
"isSafeReturnType",
"(",
"Class",
"<",
"?",
">",
"type",
")",
"{",
"return",
"!",
"ConnectionPoolDataSource",
".",
"class",
".",
"isAssignableFrom",
"(",
"type",
")",
"&&",
"!",
"CommonDataSource",
".",
"class",
".",
"isAssignableFrom",
"(... | Determine whether it is safe to return the result of an operation performed by the
underlying implementation from a dynamic JDBC wrapper.
@param type the Java type of a value returned by a method.
@return TRUE if safe. FALSE if not safe. | [
"Determine",
"whether",
"it",
"is",
"safe",
"to",
"return",
"the",
"result",
"of",
"an",
"operation",
"performed",
"by",
"the",
"underlying",
"implementation",
"from",
"a",
"dynamic",
"JDBC",
"wrapper",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcProxyMethod.java#L346-L357 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.