repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManager.java | SessionManager.getSession | protected Object getSession(String id, int version, boolean isSessionAccess, boolean forceSessionRetrieval, Object xdCorrelator) {
if (isSessionAccess) {
if (version == -1) {
_store.refreshSession(id, xdCorrelator);
} else {
_store.refreshSession(id, versi... | java | protected Object getSession(String id, int version, boolean isSessionAccess, boolean forceSessionRetrieval, Object xdCorrelator) {
if (isSessionAccess) {
if (version == -1) {
_store.refreshSession(id, xdCorrelator);
} else {
_store.refreshSession(id, versi... | [
"protected",
"Object",
"getSession",
"(",
"String",
"id",
",",
"int",
"version",
",",
"boolean",
"isSessionAccess",
",",
"boolean",
"forceSessionRetrieval",
",",
"Object",
"xdCorrelator",
")",
"{",
"if",
"(",
"isSessionAccess",
")",
"{",
"if",
"(",
"version",
... | forceSessionRetrieval can only be true when using applicationSessions | [
"forceSessionRetrieval",
"can",
"only",
"be",
"true",
"when",
"using",
"applicationSessions"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManager.java#L438-L464 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/callback/AuthenticationHelper.java | AuthenticationHelper.copyCredToken | public static byte[] copyCredToken(byte[] credToken) {
if (credToken == null) {
return null;
}
final int LEN = credToken.length;
if (LEN == 0) {
return new byte[LEN];
}
byte[] newCredToken = new byte[LEN];
System.arraycopy(credToken, 0, ... | java | public static byte[] copyCredToken(byte[] credToken) {
if (credToken == null) {
return null;
}
final int LEN = credToken.length;
if (LEN == 0) {
return new byte[LEN];
}
byte[] newCredToken = new byte[LEN];
System.arraycopy(credToken, 0, ... | [
"public",
"static",
"byte",
"[",
"]",
"copyCredToken",
"(",
"byte",
"[",
"]",
"credToken",
")",
"{",
"if",
"(",
"credToken",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"final",
"int",
"LEN",
"=",
"credToken",
".",
"length",
";",
"if",
"(",
... | Create a copy of the specified byte array.
@param credToken
@return A copy of the specified byte array, or null if the input was null. | [
"Create",
"a",
"copy",
"of",
"the",
"specified",
"byte",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/callback/AuthenticationHelper.java#L26-L41 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/callback/AuthenticationHelper.java | AuthenticationHelper.copyCertChain | public static X509Certificate[] copyCertChain(X509Certificate[] certChain) {
if (certChain == null) {
return null;
}
final int LEN = certChain.length;
if (LEN == 0) {
return new X509Certificate[LEN];
}
X509Certificate[] newCertChain = new X509Ce... | java | public static X509Certificate[] copyCertChain(X509Certificate[] certChain) {
if (certChain == null) {
return null;
}
final int LEN = certChain.length;
if (LEN == 0) {
return new X509Certificate[LEN];
}
X509Certificate[] newCertChain = new X509Ce... | [
"public",
"static",
"X509Certificate",
"[",
"]",
"copyCertChain",
"(",
"X509Certificate",
"[",
"]",
"certChain",
")",
"{",
"if",
"(",
"certChain",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"final",
"int",
"LEN",
"=",
"certChain",
".",
"length",
... | Create a copy of the specified cert array.
@param certChain
@return A copy of the specified cert array, or null if the input was null. | [
"Create",
"a",
"copy",
"of",
"the",
"specified",
"cert",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/callback/AuthenticationHelper.java#L49-L64 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/UtilsChainListener.java | UtilsChainListener.waitOnChains | public void waitOnChains(long quiesceTimeout) {
ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework();
int elapsedTime = 0;
if (waitingChainNames.size() > 0 && elapsedTime < quiesceTimeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
... | java | public void waitOnChains(long quiesceTimeout) {
ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework();
int elapsedTime = 0;
if (waitingChainNames.size() > 0 && elapsedTime < quiesceTimeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
... | [
"public",
"void",
"waitOnChains",
"(",
"long",
"quiesceTimeout",
")",
"{",
"ChannelFramework",
"cf",
"=",
"ChannelFrameworkFactory",
".",
"getChannelFramework",
"(",
")",
";",
"int",
"elapsedTime",
"=",
"0",
";",
"if",
"(",
"waitingChainNames",
".",
"size",
"(",... | Poll the list of chains until they're stopped or the quiesce timeout is hit
@param quiesceTimeout | [
"Poll",
"the",
"list",
"of",
"chains",
"until",
"they",
"re",
"stopped",
"or",
"the",
"quiesce",
"timeout",
"is",
"hit"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/UtilsChainListener.java#L53-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java | SchemaManager.closeLink | static void closeLink(CommsConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeLink", conn);
conn.setSchemaSet(null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "closeLink");
} | java | static void closeLink(CommsConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeLink", conn);
conn.setSchemaSet(null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "closeLink");
} | [
"static",
"void",
"closeLink",
"(",
"CommsConnection",
"conn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"closeLink\"",
",",
"conn... | Called when a connection closes. | [
"Called",
"when",
"a",
"connection",
"closes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java#L138-L144 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java | SchemaManager.receiveHandshake | static byte[] receiveHandshake(CommsConnection conn, byte[] data) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveHandshake", conn);
Coder coder = new Coder(data);
conn.setSchemaSet(makeSchemaIdSet(coder));
byte[] ids = makeSchemaIdList(JMF... | java | static byte[] receiveHandshake(CommsConnection conn, byte[] data) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveHandshake", conn);
Coder coder = new Coder(data);
conn.setSchemaSet(makeSchemaIdSet(coder));
byte[] ids = makeSchemaIdList(JMF... | [
"static",
"byte",
"[",
"]",
"receiveHandshake",
"(",
"CommsConnection",
"conn",
",",
"byte",
"[",
"]",
"data",
")",
"throws",
"JMFException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",... | Called when schema ids are received during an initial handshake | [
"Called",
"when",
"schema",
"ids",
"are",
"received",
"during",
"an",
"initial",
"handshake"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java#L147-L156 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java | SchemaManager.receiveSchemas | static void receiveSchemas(CommsConnection conn, byte[] data) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveSchemas", conn);
final SchemaSet ids;
try {
ids = (SchemaSet)conn.getSchemaSet();
if (ids == null) {
if (TraceCom... | java | static void receiveSchemas(CommsConnection conn, byte[] data) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveSchemas", conn);
final SchemaSet ids;
try {
ids = (SchemaSet)conn.getSchemaSet();
if (ids == null) {
if (TraceCom... | [
"static",
"void",
"receiveSchemas",
"(",
"CommsConnection",
"conn",
",",
"byte",
"[",
"]",
"data",
")",
"throws",
"JMFException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr... | Called when schema definitions are received on a connection | [
"Called",
"when",
"schema",
"definitions",
"are",
"received",
"on",
"a",
"connection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java#L159-L179 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java | SchemaManager.sendSchemas | static void sendSchemas(CommsConnection conn, JMFSchema[] schemas)
throws SIConnectionLostException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendSchemas", conn);
// Check if the recepient has all the schemas needed to decode the... | java | static void sendSchemas(CommsConnection conn, JMFSchema[] schemas)
throws SIConnectionLostException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendSchemas", conn);
// Check if the recepient has all the schemas needed to decode the... | [
"static",
"void",
"sendSchemas",
"(",
"CommsConnection",
"conn",
",",
"JMFSchema",
"[",
"]",
"schemas",
")",
"throws",
"SIConnectionLostException",
",",
"SIConnectionUnavailableException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Called when sending a message on a connection to check for and send any missing schemas | [
"Called",
"when",
"sending",
"a",
"message",
"on",
"a",
"connection",
"to",
"check",
"for",
"and",
"send",
"any",
"missing",
"schemas"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java#L182-L317 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java | SchemaManager.addSchemaDefinitions | private static void addSchemaDefinitions(SchemaSet ids, Coder coder) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(tc, "Decoding " + coder.count + "new schema definitions");
// Decode the new schemas and add them to the registry and the list of known
... | java | private static void addSchemaDefinitions(SchemaSet ids, Coder coder) throws JMFException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(tc, "Decoding " + coder.count + "new schema definitions");
// Decode the new schemas and add them to the registry and the list of known
... | [
"private",
"static",
"void",
"addSchemaDefinitions",
"(",
"SchemaSet",
"ids",
",",
"Coder",
"coder",
")",
"throws",
"JMFException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"SibTr... | Add extra incoming schema definitions | [
"Add",
"extra",
"incoming",
"schema",
"definitions"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaManager.java#L320-L335 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/modules/CommonLoginModule.java | CommonLoginModule.cleanUpSubject | public void cleanUpSubject() {
if (temporarySubject != null) {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
@Override
public Object run() {
removeSubjectPrincipals();
removeSubjectPublicCredentials();
... | java | public void cleanUpSubject() {
if (temporarySubject != null) {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
@Override
public Object run() {
removeSubjectPrincipals();
removeSubjectPublicCredentials();
... | [
"public",
"void",
"cleanUpSubject",
"(",
")",
"{",
"if",
"(",
"temporarySubject",
"!=",
"null",
")",
"{",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Object",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"Object",
"run",
... | Common Subject clean up. | [
"Common",
"Subject",
"clean",
"up",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/modules/CommonLoginModule.java#L93-L107 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitSectionImpl.java | RecoverableUnitSectionImpl.payloadWritten | protected void payloadWritten(int payloadSize)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] {this, new Integer(payloadSize)});
// Track the unwritten payload decrease directly. We take no account for this classes header
// values in this figure. The total payload rem... | java | protected void payloadWritten(int payloadSize)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] {this, new Integer(payloadSize)});
// Track the unwritten payload decrease directly. We take no account for this classes header
// values in this figure. The total payload rem... | [
"protected",
"void",
"payloadWritten",
"(",
"int",
"payloadSize",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"payloadWritten\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"new",
"Integ... | Informs the recoverable unit section that previously unwritten data has been
written to disk by one of its data items and no longer needs to be tracked
in the unwritten data field. The recoverable unit must use the supplied
information to track the amount of unwritten active data it holds. This
information must be pass... | [
"Informs",
"the",
"recoverable",
"unit",
"section",
"that",
"previously",
"unwritten",
"data",
"has",
"been",
"written",
"to",
"disk",
"by",
"one",
"of",
"its",
"data",
"items",
"and",
"no",
"longer",
"needs",
"to",
"be",
"tracked",
"in",
"the",
"unwritten",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitSectionImpl.java#L1063-L1086 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitSectionImpl.java | RecoverableUnitSectionImpl.payloadDeleted | protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] {this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize)});
// Track the payload decreases directly. We take no account for this classe... | java | protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] {this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize)});
// Track the payload decreases directly. We take no account for this classe... | [
"protected",
"void",
"payloadDeleted",
"(",
"int",
"totalPayloadSize",
",",
"int",
"unwrittenPayloadSize",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"payloadDeleted\"",
",",
"new",
"Object",
"[",
... | Informs the recoverable unit section that data has been removed. At present this
method is only used by the SingleDataItem class to remove the payload required
for the its data before adding back additional payload back again for the
replacement data data.
The recoverable unit section must use the supplied information... | [
"Informs",
"the",
"recoverable",
"unit",
"section",
"that",
"data",
"has",
"been",
"removed",
".",
"At",
"present",
"this",
"method",
"is",
"only",
"used",
"by",
"the",
"SingleDataItem",
"class",
"to",
"remove",
"the",
"payload",
"required",
"for",
"the",
"i... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitSectionImpl.java#L1136-L1165 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AutomaticTimerBean.java | AutomaticTimerBean.getBeanId | public BeanId getBeanId() {
if (ivBeanId == null) {
ivBeanId = new BeanId(ivBMD.j2eeName, null, false);
}
return ivBeanId;
} | java | public BeanId getBeanId() {
if (ivBeanId == null) {
ivBeanId = new BeanId(ivBMD.j2eeName, null, false);
}
return ivBeanId;
} | [
"public",
"BeanId",
"getBeanId",
"(",
")",
"{",
"if",
"(",
"ivBeanId",
"==",
"null",
")",
"{",
"ivBeanId",
"=",
"new",
"BeanId",
"(",
"ivBMD",
".",
"j2eeName",
",",
"null",
",",
"false",
")",
";",
"}",
"return",
"ivBeanId",
";",
"}"
] | Gets the partially formed BeanId for this bean. The resulting
BeanId will not have a home reference.
@return the partially formed BeanId | [
"Gets",
"the",
"partially",
"formed",
"BeanId",
"for",
"this",
"bean",
".",
"The",
"resulting",
"BeanId",
"will",
"not",
"have",
"a",
"home",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AutomaticTimerBean.java#L127-L132 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/BaseCommandTask.java | BaseCommandTask.promptForText | protected String promptForText(com.ibm.ws.security.audit.reader.utils.ConsoleWrapper stdin, PrintStream stdout) {
return promptForText(stdin, stdout,
"encode.enterText", "encode.reenterText",
"encode.readError", "encode.entriesDidNotMatch");
} | java | protected String promptForText(com.ibm.ws.security.audit.reader.utils.ConsoleWrapper stdin, PrintStream stdout) {
return promptForText(stdin, stdout,
"encode.enterText", "encode.reenterText",
"encode.readError", "encode.entriesDidNotMatch");
} | [
"protected",
"String",
"promptForText",
"(",
"com",
".",
"ibm",
".",
"ws",
".",
"security",
".",
"audit",
".",
"reader",
".",
"utils",
".",
"ConsoleWrapper",
"stdin",
",",
"PrintStream",
"stdout",
")",
"{",
"return",
"promptForText",
"(",
"stdin",
",",
"st... | Prompt the user to enter text to encode.
Prompts twice and compares to ensure it was entered correctly.
@return Entered String | [
"Prompt",
"the",
"user",
"to",
"enter",
"text",
"to",
"encode",
".",
"Prompts",
"twice",
"and",
"compares",
"to",
"ensure",
"it",
"was",
"entered",
"correctly",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/BaseCommandTask.java#L191-L195 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/util/SystemPropertyAction.java | SystemPropertyAction.getPropertyOrNull | public static String getPropertyOrNull(String name) {
try {
return AccessController.doPrivileged(new SystemPropertyAction(name));
} catch (SecurityException ex) {
LOG.log(Level.FINE, "SecurityException raised getting property " + name, ex);
return null;
}
... | java | public static String getPropertyOrNull(String name) {
try {
return AccessController.doPrivileged(new SystemPropertyAction(name));
} catch (SecurityException ex) {
LOG.log(Level.FINE, "SecurityException raised getting property " + name, ex);
return null;
}
... | [
"public",
"static",
"String",
"getPropertyOrNull",
"(",
"String",
"name",
")",
"{",
"try",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"SystemPropertyAction",
"(",
"name",
")",
")",
";",
"}",
"catch",
"(",
"SecurityException",
"ex",
")"... | Get the system property via the AccessController, but if a SecurityException is
raised, just return null;
@param name | [
"Get",
"the",
"system",
"property",
"via",
"the",
"AccessController",
"but",
"if",
"a",
"SecurityException",
"is",
"raised",
"just",
"return",
"null",
";"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/util/SystemPropertyAction.java#L73-L80 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/MatchTarget.java | MatchTarget.duplicate | public MatchTarget duplicate()
{
try
{
return (MatchTarget) clone();
}
catch (CloneNotSupportedException e)
{
// No FFDC Code Needed.
// FFDC driven by wrapper class.
FFDC.processException(cclass,
"com.ibm.ws.sib.matchspace.MatchTarget.duplicate",
e,
... | java | public MatchTarget duplicate()
{
try
{
return (MatchTarget) clone();
}
catch (CloneNotSupportedException e)
{
// No FFDC Code Needed.
// FFDC driven by wrapper class.
FFDC.processException(cclass,
"com.ibm.ws.sib.matchspace.MatchTarget.duplicate",
e,
... | [
"public",
"MatchTarget",
"duplicate",
"(",
")",
"{",
"try",
"{",
"return",
"(",
"MatchTarget",
")",
"clone",
"(",
")",
";",
"}",
"catch",
"(",
"CloneNotSupportedException",
"e",
")",
"{",
"// No FFDC Code Needed.",
"// FFDC driven by wrapper class.",
"FFDC",
".",
... | Creates a clone of this MatchTarget. Override only if the system clone support does
not produce a correct result. | [
"Creates",
"a",
"clone",
"of",
"this",
"MatchTarget",
".",
"Override",
"only",
"if",
"the",
"system",
"clone",
"support",
"does",
"not",
"produce",
"a",
"correct",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/MatchTarget.java#L79-L96 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java | NameSpaceBinderImpl.createBindingObject | @Override
public EJBBinding createBindingObject(HomeRecord hr,
HomeWrapperSet homeSet,
String interfaceName,
int interfaceIndex,
boolean local) {
... | java | @Override
public EJBBinding createBindingObject(HomeRecord hr,
HomeWrapperSet homeSet,
String interfaceName,
int interfaceIndex,
boolean local) {
... | [
"@",
"Override",
"public",
"EJBBinding",
"createBindingObject",
"(",
"HomeRecord",
"hr",
",",
"HomeWrapperSet",
"homeSet",
",",
"String",
"interfaceName",
",",
"int",
"interfaceIndex",
",",
"boolean",
"local",
")",
"{",
"return",
"new",
"EJBBinding",
"(",
"hr",
... | Store the binding information for later use.
@see com.ibm.ws.ejbcontainer.runtime.NameSpaceBinder#createBindingObject(com.ibm.ejs.container.HomeRecord, com.ibm.websphere.csi.HomeWrapperSet, java.lang.String, boolean,
boolean) | [
"Store",
"the",
"binding",
"information",
"for",
"later",
"use",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java#L54-L61 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java | NameSpaceBinderImpl.createJavaBindingObject | @Override
public EJBBinding createJavaBindingObject(HomeRecord hr,
HomeWrapperSet homeSet,
String interfaceName,
int interfaceIndex,
... | java | @Override
public EJBBinding createJavaBindingObject(HomeRecord hr,
HomeWrapperSet homeSet,
String interfaceName,
int interfaceIndex,
... | [
"@",
"Override",
"public",
"EJBBinding",
"createJavaBindingObject",
"(",
"HomeRecord",
"hr",
",",
"HomeWrapperSet",
"homeSet",
",",
"String",
"interfaceName",
",",
"int",
"interfaceIndex",
",",
"boolean",
"local",
",",
"EJBBinding",
"bindingObject",
")",
"{",
"retur... | This method is provided for tWas and is not used for Liberty.
Just return the bindingObject for now. | [
"This",
"method",
"is",
"provided",
"for",
"tWas",
"and",
"is",
"not",
"used",
"for",
"Liberty",
".",
"Just",
"return",
"the",
"bindingObject",
"for",
"now",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/NameSpaceBinderImpl.java#L67-L75 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/PackageDelegateClassLoader.java | PackageDelegateClassLoader.loadClass | @Override
protected Class<?> loadClass(String className, boolean resolve)
throws ClassNotFoundException {
Class<?> loadedClass = null;
synchronized (this) {
loadedClass = findLoadedClass(className);
if (loadedClass == null) {
int index =... | java | @Override
protected Class<?> loadClass(String className, boolean resolve)
throws ClassNotFoundException {
Class<?> loadedClass = null;
synchronized (this) {
loadedClass = findLoadedClass(className);
if (loadedClass == null) {
int index =... | [
"@",
"Override",
"protected",
"Class",
"<",
"?",
">",
"loadClass",
"(",
"String",
"className",
",",
"boolean",
"resolve",
")",
"throws",
"ClassNotFoundException",
"{",
"Class",
"<",
"?",
">",
"loadedClass",
"=",
"null",
";",
"synchronized",
"(",
"this",
")",... | load class from the local classpath first, and the class was not found, load from parent or system classload again. | [
"load",
"class",
"from",
"the",
"local",
"classpath",
"first",
"and",
"the",
"class",
"was",
"not",
"found",
"load",
"from",
"parent",
"or",
"system",
"classload",
"again",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/PackageDelegateClassLoader.java#L30-L65 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509DefaultEntryConverter.java | X509DefaultEntryConverter.getConvertedValue | public DERObject getConvertedValue(
DERObjectIdentifier oid,
String value)
{
if (value.length() != 0 && value.charAt(0) == '#')
{
try
{
return convertHexEncoded(value, 1);
}
catch (IOException e)
... | java | public DERObject getConvertedValue(
DERObjectIdentifier oid,
String value)
{
if (value.length() != 0 && value.charAt(0) == '#')
{
try
{
return convertHexEncoded(value, 1);
}
catch (IOException e)
... | [
"public",
"DERObject",
"getConvertedValue",
"(",
"DERObjectIdentifier",
"oid",
",",
"String",
"value",
")",
"{",
"if",
"(",
"value",
".",
"length",
"(",
")",
"!=",
"0",
"&&",
"value",
".",
"charAt",
"(",
"0",
")",
"==",
"'",
"'",
")",
"{",
"try",
"{"... | Apply default coversion for the given value depending on the oid
and the character range of the value.
@param oid the object identifier for the DN entry
@param value the value associated with it
@return the ASN.1 equivalent for the string value. | [
"Apply",
"default",
"coversion",
"for",
"the",
"given",
"value",
"depending",
"on",
"the",
"oid",
"and",
"the",
"character",
"range",
"of",
"the",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509DefaultEntryConverter.java#L41-L70 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ClassAvailableTransformer.java | ClassAvailableTransformer.transform | @Override
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) throws IllegalClassFormatException {
... | java | @Override
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) throws IllegalClassFormatException {
... | [
"@",
"Override",
"public",
"byte",
"[",
"]",
"transform",
"(",
"ClassLoader",
"loader",
",",
"String",
"className",
",",
"Class",
"<",
"?",
">",
"classBeingRedefined",
",",
"ProtectionDomain",
"protectionDomain",
",",
"byte",
"[",
"]",
"classfileBuffer",
")",
... | Perform necessary transformation to hook static initializers of probe
candidates. | [
"Perform",
"necessary",
"transformation",
"to",
"hook",
"static",
"initializers",
"of",
"probe",
"candidates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ClassAvailableTransformer.java#L78-L96 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.setStoreFileSize | public synchronized void setStoreFileSize(long newMinimumStoreFileSize
, long newMaximumStoreFileSize)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
... | java | public synchronized void setStoreFileSize(long newMinimumStoreFileSize
, long newMaximumStoreFileSize)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
... | [
"public",
"synchronized",
"void",
"setStoreFileSize",
"(",
"long",
"newMinimumStoreFileSize",
",",
"long",
"newMaximumStoreFileSize",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntry... | Sets the size of the store file to the new values.
At least the minimum space is reserved in the file system.
No more than the maximum number of bytes will be used.
Blocks until this has completed.
The initial values used by the ObjecStore are 0 and Long.MAX_VAULE.
The store will attempt to release space as ManagedObje... | [
"Sets",
"the",
"size",
"of",
"the",
"store",
"file",
"to",
"the",
"new",
"values",
".",
"At",
"least",
"the",
"minimum",
"space",
"is",
"reserved",
"in",
"the",
"file",
"system",
".",
"No",
"more",
"than",
"the",
"maximum",
"number",
"of",
"bytes",
"wi... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L287-L354 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.setCachedManagedObjectsSize | public synchronized void setCachedManagedObjectsSize(int cachedManagedObjectsSize)
throws ObjectManagerException
{
this.cachedManagedObjectsSize = cachedManagedObjectsSize;
cachedManagedObjects = new java.lang.ref.SoftReference[cachedManagedObjectsSize];
writeHeader();
... | java | public synchronized void setCachedManagedObjectsSize(int cachedManagedObjectsSize)
throws ObjectManagerException
{
this.cachedManagedObjectsSize = cachedManagedObjectsSize;
cachedManagedObjects = new java.lang.ref.SoftReference[cachedManagedObjectsSize];
writeHeader();
... | [
"public",
"synchronized",
"void",
"setCachedManagedObjectsSize",
"(",
"int",
"cachedManagedObjectsSize",
")",
"throws",
"ObjectManagerException",
"{",
"this",
".",
"cachedManagedObjectsSize",
"=",
"cachedManagedObjectsSize",
";",
"cachedManagedObjects",
"=",
"new",
"java",
... | Causes all curently cached ManagedObjects to be dropped.
@param cachedManagedObjectsSize The cachedManagedObjectsSize to set.
@throws ObjectManagerException | [
"Causes",
"all",
"curently",
"cached",
"ManagedObjects",
"to",
"be",
"dropped",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L370-L377 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.setAllocationAllowed | protected void setAllocationAllowed()
throws ObjectManagerException {
final String methodName = "setAllocationAllowed";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Long(storeFileSizeAllocated),
... | java | protected void setAllocationAllowed()
throws ObjectManagerException {
final String methodName = "setAllocationAllowed";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Long(storeFileSizeAllocated),
... | [
"protected",
"void",
"setAllocationAllowed",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"setAllocationAllowed\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"... | Tests to see if allocation of new Objects should be allowed or not.
Caller must be synchronized on this.
@throws ObjectManagerException | [
"Tests",
"to",
"see",
"if",
"allocation",
"of",
"new",
"Objects",
"should",
"be",
"allowed",
"or",
"not",
".",
"Caller",
"must",
"be",
"synchronized",
"on",
"this",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L421-L514 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.reserve | public final void reserve(int deltaSize, boolean paced)
throws ObjectManagerException
{
final String methodName = "reserve";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodNa... | java | public final void reserve(int deltaSize, boolean paced)
throws ObjectManagerException
{
final String methodName = "reserve";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodNa... | [
"public",
"final",
"void",
"reserve",
"(",
"int",
"deltaSize",
",",
"boolean",
"paced",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"reserve\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"t... | Space accounting.
@see com.ibm.ws.objectManager.ObjectStore#reserve(int,boolean) | [
"Space",
"accounting",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L691-L800 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.simulateFull | public void simulateFull(boolean isFull)
throws ObjectManagerException {
final String methodName = "simulateFull";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Boolean(isFull) });
if (isFull... | java | public void simulateFull(boolean isFull)
throws ObjectManagerException {
final String methodName = "simulateFull";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Boolean(isFull) });
if (isFull... | [
"public",
"void",
"simulateFull",
"(",
"boolean",
"isFull",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"simulateFull\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled... | When enabled, reserve requests to this ObjectStore will throw ObjectStoreFullException.
@param isFull true subsequent reservations throw ObjectStoreFullException. if false subsequent reservations may
succeed.
@throws ObjectManagerException | [
"When",
"enabled",
"reserve",
"requests",
"to",
"this",
"ObjectStore",
"will",
"throw",
"ObjectStoreFullException",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L809-L841 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.flush | public synchronized void flush()
throws ObjectManagerException
{
final String methodName = "flush";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
if (storeSt... | java | public synchronized void flush()
throws ObjectManagerException
{
final String methodName = "flush";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
if (storeSt... | [
"public",
"synchronized",
"void",
"flush",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"flush\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")... | Writes buffered output to hardened storage. Blocks until this has
completed.
@throws ObjectManagerException | [
"Writes",
"buffered",
"output",
"to",
"hardened",
"storage",
".",
"Blocks",
"until",
"this",
"has",
"completed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L1101-L1195 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.updateDirectory | private void updateDirectory()
throws ObjectManagerException
{
final String methodName = "updateDirectory";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
// TODO See... | java | private void updateDirectory()
throws ObjectManagerException
{
final String methodName = "updateDirectory";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
// TODO See... | [
"private",
"void",
"updateDirectory",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"updateDirectory\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
... | Capture the objects we will write and delete.
Update the directory and freeSpaceMap. Do not overwrite any existing data
because we need to have the before and after versions available until we flip
over to the after version when we rewrite the header.
1) Update the directory.
2) Allocate new space for the directory and... | [
"Capture",
"the",
"objects",
"we",
"will",
"write",
"and",
"delete",
".",
"Update",
"the",
"directory",
"and",
"freeSpaceMap",
".",
"Do",
"not",
"overwrite",
"any",
"existing",
"data",
"because",
"we",
"need",
"to",
"have",
"the",
"before",
"and",
"after",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L1210-L1355 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java | AbstractSingleFileObjectStore.allocateSpace | FreeSpace allocateSpace(long lengthRequired)
throws ObjectManagerException
{
final String methodName = "allocateSpace";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
... | java | FreeSpace allocateSpace(long lengthRequired)
throws ObjectManagerException
{
final String methodName = "allocateSpace";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
... | [
"FreeSpace",
"allocateSpace",
"(",
"long",
"lengthRequired",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"allocateSpace\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled... | Allocate space in the file.
@param lengthRequired the number of bytes needed.
@return FreeSpace giving the byte address that the buffer can be written at. The actual
length allocated may be greater than the size requested.
@throws ObjectManagerException | [
"Allocate",
"space",
"in",
"the",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractSingleFileObjectStore.java#L1365-L1466 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getFeatureDefinitions | public Map<String, ProvisioningFeatureDefinition> getFeatureDefinitions(String productName) {
if (productName.equals(CORE_PRODUCT_NAME)) {
return getCoreProductFeatureDefinitions();
} else if (productName.equals(USR_PRODUCT_EXT_NAME)) {
return getUsrProductFeatureDefinitions();
... | java | public Map<String, ProvisioningFeatureDefinition> getFeatureDefinitions(String productName) {
if (productName.equals(CORE_PRODUCT_NAME)) {
return getCoreProductFeatureDefinitions();
} else if (productName.equals(USR_PRODUCT_EXT_NAME)) {
return getUsrProductFeatureDefinitions();
... | [
"public",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"getFeatureDefinitions",
"(",
"String",
"productName",
")",
"{",
"if",
"(",
"productName",
".",
"equals",
"(",
"CORE_PRODUCT_NAME",
")",
")",
"{",
"return",
"getCoreProductFeatureDefinitions",
... | Retrieves a map of features definitions associated with the specified product name.
@param productName The product name whose feature definitions to return.
@return The feature definitions associated with the input product name. | [
"Retrieves",
"a",
"map",
"of",
"features",
"definitions",
"associated",
"with",
"the",
"specified",
"product",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L79-L87 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getCoreFeatureDefinitionsExceptPlatform | public Map<String, ProvisioningFeatureDefinition> getCoreFeatureDefinitionsExceptPlatform() {
Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>();
File featureDir = getCoreFeatureDir();
//the feature directory may not exist if the packaged s... | java | public Map<String, ProvisioningFeatureDefinition> getCoreFeatureDefinitionsExceptPlatform() {
Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>();
File featureDir = getCoreFeatureDir();
//the feature directory may not exist if the packaged s... | [
"public",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"getCoreFeatureDefinitionsExceptPlatform",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"features",
"=",
"new",
"TreeMap",
"<",
"String",
",",
"ProvisioningFe... | This API for install used only. | [
"This",
"API",
"for",
"install",
"used",
"only",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L90-L120 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getCoreProductFeatureDefinitions | private Map<String, ProvisioningFeatureDefinition> getCoreProductFeatureDefinitions() {
Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>();
File featureDir = getCoreFeatureDir();
//the feature directory may not exist if the packaged server ... | java | private Map<String, ProvisioningFeatureDefinition> getCoreProductFeatureDefinitions() {
Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>();
File featureDir = getCoreFeatureDir();
//the feature directory may not exist if the packaged server ... | [
"private",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"getCoreProductFeatureDefinitions",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"features",
"=",
"new",
"TreeMap",
"<",
"String",
",",
"ProvisioningFeatureD... | Retrieves a Map of Liberty core features.
@return A Map of LIberty core features. | [
"Retrieves",
"a",
"Map",
"of",
"Liberty",
"core",
"features",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L231-L279 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getUsrProductFeatureDefinitions | private Map<String, ProvisioningFeatureDefinition> getUsrProductFeatureDefinitions() {
Map<String, ProvisioningFeatureDefinition> features = null;
File userDir = Utils.getUserDir();
if (userDir != null && userDir.exists()) {
File userFeatureDir = new File(userDir, USER_FEATURE_DIR);
... | java | private Map<String, ProvisioningFeatureDefinition> getUsrProductFeatureDefinitions() {
Map<String, ProvisioningFeatureDefinition> features = null;
File userDir = Utils.getUserDir();
if (userDir != null && userDir.exists()) {
File userFeatureDir = new File(userDir, USER_FEATURE_DIR);
... | [
"private",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"getUsrProductFeatureDefinitions",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ProvisioningFeatureDefinition",
">",
"features",
"=",
"null",
";",
"File",
"userDir",
"=",
"Utils",
".",
"getU... | Retrieves a Map of feature definitions in default usr product extension location
@return Null if the user directory cannot be found. An empty map if the features manifests cannot
be found. A Map of product extension features if all goes well. | [
"Retrieves",
"a",
"Map",
"of",
"feature",
"definitions",
"in",
"default",
"usr",
"product",
"extension",
"location"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L287-L313 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getProdFeatureLocation | public String getProdFeatureLocation(String productName) {
String location = null;
if (productName.equals(CORE_PRODUCT_NAME)) {
location = Utils.getInstallDir().getAbsolutePath();
} else if (productName.equals(USR_PRODUCT_EXT_NAME)) {
location = Utils.getUserDir().getAbso... | java | public String getProdFeatureLocation(String productName) {
String location = null;
if (productName.equals(CORE_PRODUCT_NAME)) {
location = Utils.getInstallDir().getAbsolutePath();
} else if (productName.equals(USR_PRODUCT_EXT_NAME)) {
location = Utils.getUserDir().getAbso... | [
"public",
"String",
"getProdFeatureLocation",
"(",
"String",
"productName",
")",
"{",
"String",
"location",
"=",
"null",
";",
"if",
"(",
"productName",
".",
"equals",
"(",
"CORE_PRODUCT_NAME",
")",
")",
"{",
"location",
"=",
"Utils",
".",
"getInstallDir",
"(",... | Retrieves the location of the specified product name.
@param productName The product name.
@return The location of the specified product installation. | [
"Retrieves",
"the",
"location",
"of",
"the",
"specified",
"product",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L400-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getProdFeatureId | public String getProdFeatureId(String productName) {
String productId = null;
if (!productName.equals(CORE_PRODUCT_NAME) && !productName.equals(USR_PRODUCT_EXT_NAME)) {
readProductExtFeatureLocations();
if (productExtNameInfoMap.containsKey(productName)) {
product... | java | public String getProdFeatureId(String productName) {
String productId = null;
if (!productName.equals(CORE_PRODUCT_NAME) && !productName.equals(USR_PRODUCT_EXT_NAME)) {
readProductExtFeatureLocations();
if (productExtNameInfoMap.containsKey(productName)) {
product... | [
"public",
"String",
"getProdFeatureId",
"(",
"String",
"productName",
")",
"{",
"String",
"productId",
"=",
"null",
";",
"if",
"(",
"!",
"productName",
".",
"equals",
"(",
"CORE_PRODUCT_NAME",
")",
"&&",
"!",
"productName",
".",
"equals",
"(",
"USR_PRODUCT_EXT... | Retrieves the ID of the specified product name.
@param productName The product name.
@return The Id of the specified product installation. | [
"Retrieves",
"the",
"ID",
"of",
"the",
"specified",
"product",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L422-L432 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getCoreFeatureDir | public File getCoreFeatureDir() {
File featureDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
featureDir = new File(installDir, FEATURE_DIR);
}
if (featureDir == null) {
throw new RuntimeException("Feature Directory not fou... | java | public File getCoreFeatureDir() {
File featureDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
featureDir = new File(installDir, FEATURE_DIR);
}
if (featureDir == null) {
throw new RuntimeException("Feature Directory not fou... | [
"public",
"File",
"getCoreFeatureDir",
"(",
")",
"{",
"File",
"featureDir",
"=",
"null",
";",
"File",
"installDir",
"=",
"Utils",
".",
"getInstallDir",
"(",
")",
";",
"if",
"(",
"installDir",
"!=",
"null",
")",
"{",
"featureDir",
"=",
"new",
"File",
"(",... | Retrieves the Liberty core features directory.
@return The Liberty core features directory | [
"Retrieves",
"the",
"Liberty",
"core",
"features",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L439-L452 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getCorePlatformDir | public File getCorePlatformDir() {
File platformDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
platformDir = new File(installDir, PLATFORM_DIR);
}
if (platformDir == null) {
throw new RuntimeException("Platform Directory n... | java | public File getCorePlatformDir() {
File platformDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
platformDir = new File(installDir, PLATFORM_DIR);
}
if (platformDir == null) {
throw new RuntimeException("Platform Directory n... | [
"public",
"File",
"getCorePlatformDir",
"(",
")",
"{",
"File",
"platformDir",
"=",
"null",
";",
"File",
"installDir",
"=",
"Utils",
".",
"getInstallDir",
"(",
")",
";",
"if",
"(",
"installDir",
"!=",
"null",
")",
"{",
"platformDir",
"=",
"new",
"File",
"... | Retrieves the Liberty core platform directory.
@return The Liberty core platform directory | [
"Retrieves",
"the",
"Liberty",
"core",
"platform",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L459-L472 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getCoreAssetDir | public File getCoreAssetDir() {
File assetDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
assetDir = new File(installDir, ASSET_DIR);
}
if (assetDir == null) {
throw new RuntimeException("Asset Directory not found");
... | java | public File getCoreAssetDir() {
File assetDir = null;
File installDir = Utils.getInstallDir();
if (installDir != null) {
assetDir = new File(installDir, ASSET_DIR);
}
if (assetDir == null) {
throw new RuntimeException("Asset Directory not found");
... | [
"public",
"File",
"getCoreAssetDir",
"(",
")",
"{",
"File",
"assetDir",
"=",
"null",
";",
"File",
"installDir",
"=",
"Utils",
".",
"getInstallDir",
"(",
")",
";",
"if",
"(",
"installDir",
"!=",
"null",
")",
"{",
"assetDir",
"=",
"new",
"File",
"(",
"in... | Retrieves the Liberty core assets directory.
@return The Liberty core assets directory | [
"Retrieves",
"the",
"Liberty",
"core",
"assets",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L479-L489 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java | ManifestFileProcessor.getBundleRepository | public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) {
return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository();
} | java | public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) {
return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository();
} | [
"public",
"ContentBasedLocalBundleRepository",
"getBundleRepository",
"(",
"String",
"featureName",
",",
"WsLocationAdmin",
"locService",
")",
"{",
"return",
"BundleRepositoryRegistry",
".",
"getRepositoryHolder",
"(",
"featureName",
")",
".",
"getBundleRepository",
"(",
")... | Get bundle repository
@param locService
a location service
@param msgs
true if messages should be output to the log, false otherwise.
@return a bundle repository | [
"Get",
"bundle",
"repository"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L502-L504 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/helpers/HttpHeaderHelper.java | HttpHeaderHelper.mapCharset | @FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class})
public static String mapCharset(String enc, String deflt) {
if (enc == null) {
return deflt;
}
//older versions of tomcat don't properly parse ContentType headers with stuff
//after charse... | java | @FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class})
public static String mapCharset(String enc, String deflt) {
if (enc == null) {
return deflt;
}
//older versions of tomcat don't properly parse ContentType headers with stuff
//after charse... | [
"@",
"FFDCIgnore",
"(",
"{",
"IllegalCharsetNameException",
".",
"class",
",",
"UnsupportedCharsetException",
".",
"class",
"}",
")",
"public",
"static",
"String",
"mapCharset",
"(",
"String",
"enc",
",",
"String",
"deflt",
")",
"{",
"if",
"(",
"enc",
"==",
... | into something that is actually supported by Java and the Stax parsers and such. | [
"into",
"something",
"that",
"is",
"actually",
"supported",
"by",
"Java",
"and",
"the",
"Stax",
"parsers",
"and",
"such",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/helpers/HttpHeaderHelper.java#L108-L140 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java | GetUserSecurityCustomLDAP.setUp | @BeforeClass
public static void setUp() throws Exception {
// Add LDAP variables to bootstrap properties file
LDAPUtils.addLDAPVariables(server);
Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)");
server.copyFileToLibertyInstallRoot("lib/fea... | java | @BeforeClass
public static void setUp() throws Exception {
// Add LDAP variables to bootstrap properties file
LDAPUtils.addLDAPVariables(server);
Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)");
server.copyFileToLibertyInstallRoot("lib/fea... | [
"@",
"BeforeClass",
"public",
"static",
"void",
"setUp",
"(",
")",
"throws",
"Exception",
"{",
"// Add LDAP variables to bootstrap properties file",
"LDAPUtils",
".",
"addLDAPVariables",
"(",
"server",
")",
";",
"Log",
".",
"info",
"(",
"c",
",",
"\"setUp\"",
",",... | Updates the sample, which is expected to be at the hard-coded path.
If this test is failing, check this path is correct. | [
"Updates",
"the",
"sample",
"which",
"is",
"expected",
"to",
"be",
"at",
"the",
"hard",
"-",
"coded",
"path",
".",
"If",
"this",
"test",
"is",
"failing",
"check",
"this",
"path",
"is",
"correct",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java#L46-L70 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java | GetUserSecurityCustomLDAP.getUserSecurityName | @Test
public void getUserSecurityName() throws Exception {
String user = "vmmtestuser";
String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com";
Log.info(c, "getUserSecurityName", "Checking with a valid user.");
LDAPFatUtils.assertDNsEqual("User security n... | java | @Test
public void getUserSecurityName() throws Exception {
String user = "vmmtestuser";
String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com";
Log.info(c, "getUserSecurityName", "Checking with a valid user.");
LDAPFatUtils.assertDNsEqual("User security n... | [
"@",
"Test",
"public",
"void",
"getUserSecurityName",
"(",
")",
"throws",
"Exception",
"{",
"String",
"user",
"=",
"\"vmmtestuser\"",
";",
"String",
"securityName",
"=",
"\"cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com\"",
";",
"Log",
".",
"info",
"(",
"c... | Hit the test servlet to see if getUserSecurityName works when supplied with a valid user
With the configured server.xml, make sure we don't get a ClassCastException.
See Issue 981. | [
"Hit",
"the",
"test",
"servlet",
"to",
"see",
"if",
"getUserSecurityName",
"works",
"when",
"supplied",
"with",
"a",
"valid",
"user"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java#L98-L105 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/ee7/HttpInputStreamEE7.java | HttpInputStreamEE7.initialRead | public void initialRead() {
try {
this.buffer = this.isc.getRequestBodyBuffer();
if (null != this.buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Buffer returned from getRequestBodyBuffer : " + this.buffer);
... | java | public void initialRead() {
try {
this.buffer = this.isc.getRequestBodyBuffer();
if (null != this.buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Buffer returned from getRequestBodyBuffer : " + this.buffer);
... | [
"public",
"void",
"initialRead",
"(",
")",
"{",
"try",
"{",
"this",
".",
"buffer",
"=",
"this",
".",
"isc",
".",
"getRequestBodyBuffer",
"(",
")",
";",
"if",
"(",
"null",
"!=",
"this",
".",
"buffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAny... | with the current set of data | [
"with",
"the",
"current",
"set",
"of",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/ee7/HttpInputStreamEE7.java#L57-L72 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java | EncodeTask.encode | private String encode(PrintStream stderr, String plaintext, String encodingType,
Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException {
String ret = null;
try {
ret = PasswordUtil.encode(plaintext, encodingType... | java | private String encode(PrintStream stderr, String plaintext, String encodingType,
Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException {
String ret = null;
try {
ret = PasswordUtil.encode(plaintext, encodingType... | [
"private",
"String",
"encode",
"(",
"PrintStream",
"stderr",
",",
"String",
"plaintext",
",",
"String",
"encodingType",
",",
"Map",
"<",
"String",
",",
"String",
">",
"properties",
")",
"throws",
"InvalidPasswordEncodingException",
",",
"UnsupportedCryptoAlgorithmExce... | Handle encoding of the plaintext provided. Capture any
Exceptions and print the stack trace.
@param plaintext
@param encodingType
@param encodingKey
@return ciphertext
@throws InvalidPasswordEncodingException
@throws UnsupportedCryptoAlgorithmException | [
"Handle",
"encoding",
"of",
"the",
"plaintext",
"provided",
".",
"Capture",
"any",
"Exceptions",
"and",
"print",
"the",
"stack",
"trace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java#L100-L113 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java | EncodeTask.getDescription | protected String getDescription(JSONArray customInfoArray) {
StringBuffer sb = new StringBuffer();
sb.append(getMessage("encode.option-custom.encryption"));
for (int i = 0; i < customInfoArray.size(); i++) {
JSONObject customInfo = (JSONObject) customInfoArray.get(i);
Str... | java | protected String getDescription(JSONArray customInfoArray) {
StringBuffer sb = new StringBuffer();
sb.append(getMessage("encode.option-custom.encryption"));
for (int i = 0; i < customInfoArray.size(); i++) {
JSONObject customInfo = (JSONObject) customInfoArray.get(i);
Str... | [
"protected",
"String",
"getDescription",
"(",
"JSONArray",
"customInfoArray",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"sb",
".",
"append",
"(",
"getMessage",
"(",
"\"encode.option-custom.encryption\"",
")",
")",
";",
"for",
"("... | Returns the message string of the custom encryption information.
@param customInfoArray JSONArray which contains the list of custom encryption information. Null is not expected. | [
"Returns",
"the",
"message",
"string",
"of",
"the",
"custom",
"encryption",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java#L216-L228 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java | IfixParser.extractFiles | private void extractFiles(ArtifactMetadata artifactMetadata) throws RepositoryArchiveIOException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveException {
_readmePayload = artifactMetadata.getFileWithExtension(".txt");
if (_readmePayload == null) {
throw new RepositoryArchiveEn... | java | private void extractFiles(ArtifactMetadata artifactMetadata) throws RepositoryArchiveIOException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveException {
_readmePayload = artifactMetadata.getFileWithExtension(".txt");
if (_readmePayload == null) {
throw new RepositoryArchiveEn... | [
"private",
"void",
"extractFiles",
"(",
"ArtifactMetadata",
"artifactMetadata",
")",
"throws",
"RepositoryArchiveIOException",
",",
"RepositoryArchiveEntryNotFoundException",
",",
"RepositoryArchiveException",
"{",
"_readmePayload",
"=",
"artifactMetadata",
".",
"getFileWithExten... | Extract the files from the zip
@param zip
@throws RepositoryArchiveIOException
@throws RepositoryArchiveException
@throws RepositoryArchiveEntryNotFoundException | [
"Extract",
"the",
"files",
"from",
"the",
"zip"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L125-L133 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java | IfixParser.getFixId | private String getFixId(IFixInfo iFixInfo, ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException {
// check for null input
if (null == iFixInfo) {
throw new RepositoryArchiveInvalidEntryException("Null XML object provided", xmlInfo.getSourceArchive(), xmlInfo.getSe... | java | private String getFixId(IFixInfo iFixInfo, ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException {
// check for null input
if (null == iFixInfo) {
throw new RepositoryArchiveInvalidEntryException("Null XML object provided", xmlInfo.getSourceArchive(), xmlInfo.getSe... | [
"private",
"String",
"getFixId",
"(",
"IFixInfo",
"iFixInfo",
",",
"ExtractedFileInformation",
"xmlInfo",
")",
"throws",
"RepositoryArchiveInvalidEntryException",
"{",
"// check for null input",
"if",
"(",
"null",
"==",
"iFixInfo",
")",
"{",
"throw",
"new",
"RepositoryA... | Get the ID of the iFix from the Java representation of the iFix XML
@param iFixInfo
@param xmlInfo
@return A String containing the iFix ID
@throws RepositoryArchiveInvalidEntryException | [
"Get",
"the",
"ID",
"of",
"the",
"iFix",
"from",
"the",
"Java",
"representation",
"of",
"the",
"iFix",
"XML"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L143-L152 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java | IfixParser.getProvides | private List<String> getProvides(IFixInfo iFixInfo, ParserBase.ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException {
// check for null input
if (null == iFixInfo) {
throw new RepositoryArchiveInvalidEntryException("Null document provided", xmlInfo.getSourceArchiv... | java | private List<String> getProvides(IFixInfo iFixInfo, ParserBase.ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException {
// check for null input
if (null == iFixInfo) {
throw new RepositoryArchiveInvalidEntryException("Null document provided", xmlInfo.getSourceArchiv... | [
"private",
"List",
"<",
"String",
">",
"getProvides",
"(",
"IFixInfo",
"iFixInfo",
",",
"ParserBase",
".",
"ExtractedFileInformation",
"xmlInfo",
")",
"throws",
"RepositoryArchiveInvalidEntryException",
"{",
"// check for null input",
"if",
"(",
"null",
"==",
"iFixInfo"... | Get a list of the APARs fixed by this iFix
@param iFixInfo
@return The list of fixed APARs
@throws MassiveInvalidXmlException | [
"Get",
"a",
"list",
"of",
"the",
"APARs",
"fixed",
"by",
"this",
"iFix"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L161-L187 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java | IfixParser.parseManifestForAppliesTo | private String parseManifestForAppliesTo(File file) throws RepositoryArchiveIOException {
Manifest mf = null;
try (JarFile jar = new JarFile(file)) {
try {
mf = jar.getManifest();
} catch (IOException ioe) {
throw new RepositoryArchiveIOException(... | java | private String parseManifestForAppliesTo(File file) throws RepositoryArchiveIOException {
Manifest mf = null;
try (JarFile jar = new JarFile(file)) {
try {
mf = jar.getManifest();
} catch (IOException ioe) {
throw new RepositoryArchiveIOException(... | [
"private",
"String",
"parseManifestForAppliesTo",
"(",
"File",
"file",
")",
"throws",
"RepositoryArchiveIOException",
"{",
"Manifest",
"mf",
"=",
"null",
";",
"try",
"(",
"JarFile",
"jar",
"=",
"new",
"JarFile",
"(",
"file",
")",
")",
"{",
"try",
"{",
"mf",
... | Looks at the manifest file, extracting info and putting the info into the supplied asset
@param jar The jar file containing the manifest
@param ass The asset to put meta data into
@return ManifestInfo
@throws RepositoryArchiveIOException | [
"Looks",
"at",
"the",
"manifest",
"file",
"extracting",
"info",
"and",
"putting",
"the",
"info",
"into",
"the",
"supplied",
"asset"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L197-L226 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.bytesToInt | public static int bytesToInt(byte[] bytes, int offset) {
return ((bytes[offset + 3] & 0xFF) << 0) + ((bytes[offset + 2] & 0xFF) << 8)
+ ((bytes[offset + 1] & 0xFF) << 16) + ((bytes[offset + 0] & 0xFF) << 24);
} | java | public static int bytesToInt(byte[] bytes, int offset) {
return ((bytes[offset + 3] & 0xFF) << 0) + ((bytes[offset + 2] & 0xFF) << 8)
+ ((bytes[offset + 1] & 0xFF) << 16) + ((bytes[offset + 0] & 0xFF) << 24);
} | [
"public",
"static",
"int",
"bytesToInt",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"return",
"(",
"(",
"bytes",
"[",
"offset",
"+",
"3",
"]",
"&",
"0xFF",
")",
"<<",
"0",
")",
"+",
"(",
"(",
"bytes",
"[",
"offset",
"+",
"2... | A utility method to convert the int from the byte array to an int.
@param bytes
The byte array containing the int.
@param offset
The index at which the int is located.
@return The int value. | [
"A",
"utility",
"method",
"to",
"convert",
"the",
"int",
"from",
"the",
"byte",
"array",
"to",
"an",
"int",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L33-L36 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.bytesToShort | public static short bytesToShort(byte[] bytes, int offset) {
short result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (short) ((result) << 8);
result |= (bytes[i] & 0x00FF);
}
return result;
} | java | public static short bytesToShort(byte[] bytes, int offset) {
short result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (short) ((result) << 8);
result |= (bytes[i] & 0x00FF);
}
return result;
} | [
"public",
"static",
"short",
"bytesToShort",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"short",
"result",
"=",
"0x0",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
";",
"i",
"<",
"offset",
"+",
"2",
";",
"++",
"i",
")",
"{",
... | A utility method to convert the short from the byte array to a short.
@param bytes
The byte array containing the short.
@param offset
The index at which the short is located.
@return The short value. | [
"A",
"utility",
"method",
"to",
"convert",
"the",
"short",
"from",
"the",
"byte",
"array",
"to",
"a",
"short",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L47-L54 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.bytesToLong | public static long bytesToLong(byte[] bytes, int offset) {
long result = 0x0;
for (int i = offset; i < offset + 8; ++i) {
result = result << 8;
result |= (bytes[i] & 0x00000000000000FFl);
}
return result;
} | java | public static long bytesToLong(byte[] bytes, int offset) {
long result = 0x0;
for (int i = offset; i < offset + 8; ++i) {
result = result << 8;
result |= (bytes[i] & 0x00000000000000FFl);
}
return result;
} | [
"public",
"static",
"long",
"bytesToLong",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"long",
"result",
"=",
"0x0",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
";",
"i",
"<",
"offset",
"+",
"8",
";",
"++",
"i",
")",
"{",
"r... | A utility method to convert the long from the byte array to a long.
@param bytes
The byte array containing the long.
@param offset
The index at which the long is located.
@return The long value. | [
"A",
"utility",
"method",
"to",
"convert",
"the",
"long",
"from",
"the",
"byte",
"array",
"to",
"a",
"long",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L65-L72 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.bytesToChar | public static char bytesToChar(byte[] bytes, int offset) {
char result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (char) ((result) << 8);
result |= (bytes[i] & 0x00FF);
}
return result;
} | java | public static char bytesToChar(byte[] bytes, int offset) {
char result = 0x0;
for (int i = offset; i < offset + 2; ++i) {
result = (char) ((result) << 8);
result |= (bytes[i] & 0x00FF);
}
return result;
} | [
"public",
"static",
"char",
"bytesToChar",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"char",
"result",
"=",
"0x0",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
";",
"i",
"<",
"offset",
"+",
"2",
";",
"++",
"i",
")",
"{",
"r... | A utility method to convert the char from the byte array to a char.
@param bytes
The byte array containing the char.
@param offset
The index at which the char is located.
@return The char value. | [
"A",
"utility",
"method",
"to",
"convert",
"the",
"char",
"from",
"the",
"byte",
"array",
"to",
"a",
"char",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L83-L90 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.intToBytes | public static void intToBytes(int value, byte[] bytes, int offset) {
bytes[offset + 3] = (byte) (value >>> 0);
bytes[offset + 2] = (byte) (value >>> 8);
bytes[offset + 1] = (byte) (value >>> 16);
bytes[offset + 0] = (byte) (value >>> 24);
} | java | public static void intToBytes(int value, byte[] bytes, int offset) {
bytes[offset + 3] = (byte) (value >>> 0);
bytes[offset + 2] = (byte) (value >>> 8);
bytes[offset + 1] = (byte) (value >>> 16);
bytes[offset + 0] = (byte) (value >>> 24);
} | [
"public",
"static",
"void",
"intToBytes",
"(",
"int",
"value",
",",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"bytes",
"[",
"offset",
"+",
"3",
"]",
"=",
"(",
"byte",
")",
"(",
"value",
">>>",
"0",
")",
";",
"bytes",
"[",
"offset... | A utility method to convert an int into bytes in an array.
@param value
An int.
@param bytes
The byte array to which the int should be copied.
@param offset
The index where the int should start. | [
"A",
"utility",
"method",
"to",
"convert",
"an",
"int",
"into",
"bytes",
"in",
"an",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L109-L114 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.shortToBytes | public static void shortToBytes(short value, byte[] bytes, int offset) {
for (int i = offset + 1; i >= offset; --i) {
bytes[i] = (byte) value;
value = (short) ((value) >> 8);
}
} | java | public static void shortToBytes(short value, byte[] bytes, int offset) {
for (int i = offset + 1; i >= offset; --i) {
bytes[i] = (byte) value;
value = (short) ((value) >> 8);
}
} | [
"public",
"static",
"void",
"shortToBytes",
"(",
"short",
"value",
",",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"offset",
"+",
"1",
";",
"i",
">=",
"offset",
";",
"--",
"i",
")",
"{",
"bytes",
"[",
... | A utility method to convert a short into bytes in an array.
@param value
A short.
@param bytes
The byte array to which the short should be copied.
@param offset
The index where the short should start. | [
"A",
"utility",
"method",
"to",
"convert",
"a",
"short",
"into",
"bytes",
"in",
"an",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L126-L131 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.longToBytes | public static void longToBytes(long value, byte[] bytes, int offset) {
for (int i = offset + 7; i >= offset; --i) {
bytes[i] = (byte) value;
value = value >> 8;
}
} | java | public static void longToBytes(long value, byte[] bytes, int offset) {
for (int i = offset + 7; i >= offset; --i) {
bytes[i] = (byte) value;
value = value >> 8;
}
} | [
"public",
"static",
"void",
"longToBytes",
"(",
"long",
"value",
",",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"offset",
"+",
"7",
";",
"i",
">=",
"offset",
";",
"--",
"i",
")",
"{",
"bytes",
"[",
... | A utility method to convert the long into bytes in an array.
@param value
The long.
@param bytes
The byte array to which the long should be copied.
@param offset
The index where the long should start. | [
"A",
"utility",
"method",
"to",
"convert",
"the",
"long",
"into",
"bytes",
"in",
"an",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L143-L148 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.varIntBytesToLong | public static long varIntBytesToLong(byte[] bytes, int offset) {
int shift = 0;
long result = 0;
while (shift < 64) {
final byte b = bytes[offset++];
result |= (long)(b & 0x7F) << shift;
if ((b & 0x80) == 0) {
return result;
}
... | java | public static long varIntBytesToLong(byte[] bytes, int offset) {
int shift = 0;
long result = 0;
while (shift < 64) {
final byte b = bytes[offset++];
result |= (long)(b & 0x7F) << shift;
if ((b & 0x80) == 0) {
return result;
}
... | [
"public",
"static",
"long",
"varIntBytesToLong",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"int",
"shift",
"=",
"0",
";",
"long",
"result",
"=",
"0",
";",
"while",
"(",
"shift",
"<",
"64",
")",
"{",
"final",
"byte",
"b",
"=",
... | Reads a long from the byte array in the Varint format.
@param bytes - byte buffer to read
@param offset - the offset within the bytes buffer to start reading
@return - returns the long value | [
"Reads",
"a",
"long",
"from",
"the",
"byte",
"array",
"in",
"the",
"Varint",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L156-L168 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.varIntBytesToInt | public static int varIntBytesToInt(byte[] bytes, int offset) {
byte tmp = bytes[offset++];
if (tmp >= 0) {
return tmp;
}
int result = tmp & 0x7f;
if ((tmp = bytes[offset++]) >= 0) {
result |= tmp << 7;
} else {
result |= (tmp & 0x7f) <... | java | public static int varIntBytesToInt(byte[] bytes, int offset) {
byte tmp = bytes[offset++];
if (tmp >= 0) {
return tmp;
}
int result = tmp & 0x7f;
if ((tmp = bytes[offset++]) >= 0) {
result |= tmp << 7;
} else {
result |= (tmp & 0x7f) <... | [
"public",
"static",
"int",
"varIntBytesToInt",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"byte",
"tmp",
"=",
"bytes",
"[",
"offset",
"++",
"]",
";",
"if",
"(",
"tmp",
">=",
"0",
")",
"{",
"return",
"tmp",
";",
"}",
"int",
"r... | Reads an int from the byte array in the Varint format.
@param bytes - byte buffer to read
@param offset - the offset within the bytes buffer to start reading
@return - returns the int value | [
"Reads",
"an",
"int",
"from",
"the",
"byte",
"array",
"in",
"the",
"Varint",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L176-L211 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.writeLongAsVarIntBytes | public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) {
int pos = offest;
while (true) {
if ((v & ~0x7FL) == 0) {
bytes[pos++] = ((byte)v);
return pos;
} else {
bytes[pos++] = (byte)((v & 0x7F) | 0x80);
... | java | public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) {
int pos = offest;
while (true) {
if ((v & ~0x7FL) == 0) {
bytes[pos++] = ((byte)v);
return pos;
} else {
bytes[pos++] = (byte)((v & 0x7F) | 0x80);
... | [
"public",
"static",
"int",
"writeLongAsVarIntBytes",
"(",
"long",
"v",
",",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offest",
")",
"{",
"int",
"pos",
"=",
"offest",
";",
"while",
"(",
"true",
")",
"{",
"if",
"(",
"(",
"v",
"&",
"~",
"0x7F",
"L",
"... | Writes a long to the byte array in the Varint format.
@param v - long value to write to the bytes buffer in the Varint format
@param bytes - byte buffer to write to - must contain enough space for maximum
length which is 10 bytes.
@param offset - the offset within the bytes buffer to start writing
@return - returns the... | [
"Writes",
"a",
"long",
"to",
"the",
"byte",
"array",
"in",
"the",
"Varint",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L221-L233 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.writeIntAsVarIntBytes | public static int writeIntAsVarIntBytes(int intVal, byte[] bytes, int offset) {
int pos = offset;
int v = intVal;
if ((v & ~0x7F) == 0) {
bytes[pos++] = ((byte) v);
return 1 + offset;
}
while (true) {
if ((v & ~0x7F) == 0) {
b... | java | public static int writeIntAsVarIntBytes(int intVal, byte[] bytes, int offset) {
int pos = offset;
int v = intVal;
if ((v & ~0x7F) == 0) {
bytes[pos++] = ((byte) v);
return 1 + offset;
}
while (true) {
if ((v & ~0x7F) == 0) {
b... | [
"public",
"static",
"int",
"writeIntAsVarIntBytes",
"(",
"int",
"intVal",
",",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
")",
"{",
"int",
"pos",
"=",
"offset",
";",
"int",
"v",
"=",
"intVal",
";",
"if",
"(",
"(",
"v",
"&",
"~",
"0x7F",
")",
... | Writes an integer to the byte array in the Varint format.
@param intVal - integer value to write to the bytes buffer in the Varint format
@param bytes - byte buffer to write to - must contain enough space for maximum
length which is 5 bytes.
@param offset - the offset within the bytes buffer to start writing
@return - ... | [
"Writes",
"an",
"integer",
"to",
"the",
"byte",
"array",
"in",
"the",
"Varint",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L244-L262 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java | TypeConversion.limitedBytesToString | public static String limitedBytesToString(byte[] bytes) {
if(bytes.length <= 1000) {
return Arrays.toString(bytes);
} else {
byte[] firstBytes = new byte[1000];
System.arraycopy(bytes, 0, firstBytes, 0, 1000);
return Arrays.toString(firstBytes);
}
... | java | public static String limitedBytesToString(byte[] bytes) {
if(bytes.length <= 1000) {
return Arrays.toString(bytes);
} else {
byte[] firstBytes = new byte[1000];
System.arraycopy(bytes, 0, firstBytes, 0, 1000);
return Arrays.toString(firstBytes);
}
... | [
"public",
"static",
"String",
"limitedBytesToString",
"(",
"byte",
"[",
"]",
"bytes",
")",
"{",
"if",
"(",
"bytes",
".",
"length",
"<=",
"1000",
")",
"{",
"return",
"Arrays",
".",
"toString",
"(",
"bytes",
")",
";",
"}",
"else",
"{",
"byte",
"[",
"]"... | If the byte array length is less than 1000, returns the result of calling Arrays.toString on the
supplied byte array. Otherwise returns the result of calling Arrays.toString on a byte array containing
the first 1000 bytes in the supplied byte array. | [
"If",
"the",
"byte",
"array",
"length",
"is",
"less",
"than",
"1000",
"returns",
"the",
"result",
"of",
"calling",
"Arrays",
".",
"toString",
"on",
"the",
"supplied",
"byte",
"array",
".",
"Otherwise",
"returns",
"the",
"result",
"of",
"calling",
"Arrays",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L269-L277 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/ErrorHelper.java | ErrorHelper.createRESTHandlerJsonException | public static RESTHandlerJsonException createRESTHandlerJsonException(Throwable e, JSONConverter converter, int status) {
try {
//See if we need to fetch a converter
if (converter == null) {
converter = JSONConverter.getConverter();
}
//Create a ne... | java | public static RESTHandlerJsonException createRESTHandlerJsonException(Throwable e, JSONConverter converter, int status) {
try {
//See if we need to fetch a converter
if (converter == null) {
converter = JSONConverter.getConverter();
}
//Create a ne... | [
"public",
"static",
"RESTHandlerJsonException",
"createRESTHandlerJsonException",
"(",
"Throwable",
"e",
",",
"JSONConverter",
"converter",
",",
"int",
"status",
")",
"{",
"try",
"{",
"//See if we need to fetch a converter",
"if",
"(",
"converter",
"==",
"null",
")",
... | This method will recycle the given converter. | [
"This",
"method",
"will",
"recycle",
"the",
"given",
"converter",
"."
] | 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/ErrorHelper.java#L26-L52 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java | VirtualHostMap.notifyStarted | public static synchronized void notifyStarted(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Notify endpoint started: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a... | java | public static synchronized void notifyStarted(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Notify endpoint started: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a... | [
"public",
"static",
"synchronized",
"void",
"notifyStarted",
"(",
"HttpEndpointImpl",
"endpoint",
",",
"String",
"resolvedHostName",
",",
"int",
"port",
",",
"boolean",
"isHttps",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Add an endpoint that has started listening, and notify associated virtual hosts
@param endpoint The HttpEndpointImpl that owns the started chain/listener
@param resolvedHostName A hostname that can be used in messages (based on endpoint configuration, something other than *)
@param port The port the endpoint is listen... | [
"Add",
"an",
"endpoint",
"that",
"has",
"started",
"listening",
"and",
"notify",
"associated",
"virtual",
"hosts"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java#L198-L210 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java | VirtualHostMap.notifyStopped | public static synchronized void notifyStopped(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Notify endpoint stopped: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a... | java | public static synchronized void notifyStopped(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Notify endpoint stopped: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a... | [
"public",
"static",
"synchronized",
"void",
"notifyStopped",
"(",
"HttpEndpointImpl",
"endpoint",
",",
"String",
"resolvedHostName",
",",
"int",
"port",
",",
"boolean",
"isHttps",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Remove a port associated with an endpoint that has stopped listening,
and notify associated virtual hosts.
@param endpoint The HttpEndpointImpl that owns the stopped chain/listener
@param resolvedHostName A hostname that can be used in messages (based on endpoint configuration, something other than *)
@param port The ... | [
"Remove",
"a",
"port",
"associated",
"with",
"an",
"endpoint",
"that",
"has",
"stopped",
"listening",
"and",
"notify",
"associated",
"virtual",
"hosts",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java#L223-L235 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java | PooledWsByteBufferImpl.addWsByteBuffer | public void addWsByteBuffer(WsByteBuffer buffer) {
if (this.allWsByteBuffers == null) {
this.allWsByteBuffers = new Hashtable<WsByteBuffer, WsByteBuffer>();
}
this.allWsByteBuffers.put(buffer, buffer);
} | java | public void addWsByteBuffer(WsByteBuffer buffer) {
if (this.allWsByteBuffers == null) {
this.allWsByteBuffers = new Hashtable<WsByteBuffer, WsByteBuffer>();
}
this.allWsByteBuffers.put(buffer, buffer);
} | [
"public",
"void",
"addWsByteBuffer",
"(",
"WsByteBuffer",
"buffer",
")",
"{",
"if",
"(",
"this",
".",
"allWsByteBuffers",
"==",
"null",
")",
"{",
"this",
".",
"allWsByteBuffers",
"=",
"new",
"Hashtable",
"<",
"WsByteBuffer",
",",
"WsByteBuffer",
">",
"(",
")... | Add a related buffer to the stored list for this instance.
@param buffer | [
"Add",
"a",
"related",
"buffer",
"to",
"the",
"stored",
"list",
"for",
"this",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java#L106-L111 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java | PooledWsByteBufferImpl.addOwner | public void addOwner(String owner) {
if (this.owners == null) {
this.owners = new Hashtable<String, String>();
}
this.owners.put(owner, owner);
} | java | public void addOwner(String owner) {
if (this.owners == null) {
this.owners = new Hashtable<String, String>();
}
this.owners.put(owner, owner);
} | [
"public",
"void",
"addOwner",
"(",
"String",
"owner",
")",
"{",
"if",
"(",
"this",
".",
"owners",
"==",
"null",
")",
"{",
"this",
".",
"owners",
"=",
"new",
"Hashtable",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"}",
"this",
".",
"owners",
... | Add the following owner to the list for this buffer.
@param owner | [
"Add",
"the",
"following",
"owner",
"to",
"the",
"list",
"for",
"this",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java#L127-L132 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputUniqueUserId | public String getInputUniqueUserId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING,
UNIQUE_USER_ID_DEFAULT);
return returnValue;
} | java | public String getInputUniqueUserId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING,
UNIQUE_USER_ID_DEFAULT);
return returnValue;
} | [
"public",
"String",
"getInputUniqueUserId",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_UNIQUE_USER_ID_MAPPING",
",",
"UNIQUE_USER_ID... | Get the input unique user ID mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input unique user ID property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"unique",
"user",
"ID",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L53-L58 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getOutputUniqueUserId | public String getOutputUniqueUserId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING,
UNIQUE_USER_ID_DEFAULT);
return returnValue;
} | java | public String getOutputUniqueUserId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING,
UNIQUE_USER_ID_DEFAULT);
return returnValue;
} | [
"public",
"String",
"getOutputUniqueUserId",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getOutputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_UNIQUE_USER_ID_MAPPING",
",",
"UNIQUE_USER_... | Get the output unique user ID mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The output unique user ID property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"output",
"unique",
"user",
"ID",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L72-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputUserSecurityName | public String getInputUserSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_SECURITY_NAME_MAPPING,
INPUT_USER_SECURITY_NAME_DEFAULT);
return returnVal... | java | public String getInputUserSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_SECURITY_NAME_MAPPING,
INPUT_USER_SECURITY_NAME_DEFAULT);
return returnVal... | [
"public",
"String",
"getInputUserSecurityName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_USER_SECURITY_NAME_MAPPING",
",",
"INPUT_... | Get the input user security name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input user security name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"user",
"security",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L91-L96 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputUserDisplayName | public String getInputUserDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING,
USER_DISPLAY_NAME_DEFAULT);
return returnValue;
} | java | public String getInputUserDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING,
USER_DISPLAY_NAME_DEFAULT);
return returnValue;
} | [
"public",
"String",
"getInputUserDisplayName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_USER_DISPLAY_NAME_MAPPING",
",",
"USER_DIS... | Get the input user display name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input user display name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"user",
"display",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L148-L153 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getOutputUserDisplayName | public String getOutputUserDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING,
USER_DISPLAY_NAME_DEFAULT);
return returnValue;
... | java | public String getOutputUserDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING,
USER_DISPLAY_NAME_DEFAULT);
return returnValue;
... | [
"public",
"String",
"getOutputUserDisplayName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getOutputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_USER_DISPLAY_NAME_MAPPING",
",",
"USER_D... | Get the output user display name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The output user display name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"output",
"user",
"display",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L167-L172 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputUniqueGroupId | public String getInputUniqueGroupId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING,
INPUT_UNIQUE_GROUP_ID_DEFAULT);
return returnValue;
} | java | public String getInputUniqueGroupId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING,
INPUT_UNIQUE_GROUP_ID_DEFAULT);
return returnValue;
} | [
"public",
"String",
"getInputUniqueGroupId",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_UNIQUE_GROUP_ID_MAPPING",
",",
"INPUT_UNIQUE... | Get the input unique group ID mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input unique group ID property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"unique",
"group",
"ID",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L186-L191 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getOutputUniqueGroupId | public String getOutputUniqueGroupId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING,
OUTPUT_UNIQUE_GROUP_ID_DEFAULT);
return returnValue;
... | java | public String getOutputUniqueGroupId(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING,
OUTPUT_UNIQUE_GROUP_ID_DEFAULT);
return returnValue;
... | [
"public",
"String",
"getOutputUniqueGroupId",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getOutputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_UNIQUE_GROUP_ID_MAPPING",
",",
"OUTPUT_UNI... | Get the output unique group ID mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The output unique group ID property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"output",
"unique",
"group",
"ID",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L205-L210 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputGroupSecurityName | public String getInputGroupSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING,
INPUT_GROUP_SECURITY_NAME_DEFAULT);
return return... | java | public String getInputGroupSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING,
INPUT_GROUP_SECURITY_NAME_DEFAULT);
return return... | [
"public",
"String",
"getInputGroupSecurityName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_GROUP_SECURITY_NAME_MAPPING",
",",
"INPU... | Get the input group security name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input group security name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"group",
"security",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L224-L229 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getOutputGroupSecurityName | public String getOutputGroupSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING,
OUTPUT_GROUP_SECURITY_NAME_DEFAULT);
return re... | java | public String getOutputGroupSecurityName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING,
OUTPUT_GROUP_SECURITY_NAME_DEFAULT);
return re... | [
"public",
"String",
"getOutputGroupSecurityName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getOutputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_GROUP_SECURITY_NAME_MAPPING",
",",
"OU... | Get the output group security name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The output group security name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"output",
"group",
"security",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L243-L248 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputGroupDisplayName | public String getInputGroupDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING,
GROUP_DISPLAY_NAME_DEFAULT);
return returnValue;
... | java | public String getInputGroupDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING,
GROUP_DISPLAY_NAME_DEFAULT);
return returnValue;
... | [
"public",
"String",
"getInputGroupDisplayName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getInputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING",
",",
"GROUP_... | Get the input group display name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The input group display name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"input",
"group",
"display",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L262-L267 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getOutputGroupDisplayName | public String getOutputGroupDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING,
GROUP_DISPLAY_NAME_DEFAULT);
return returnValue;... | java | public String getOutputGroupDisplayName(String inputVirtualRealm) {
// initialize the return value
String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING,
GROUP_DISPLAY_NAME_DEFAULT);
return returnValue;... | [
"public",
"String",
"getOutputGroupDisplayName",
"(",
"String",
"inputVirtualRealm",
")",
"{",
"// initialize the return value",
"String",
"returnValue",
"=",
"getOutputMapping",
"(",
"inputVirtualRealm",
",",
"Service",
".",
"CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING",
",",
"GROU... | Get the output group display name mapping for the UserRegistry.
@param inputVirtualRealm Virtual realm to find the mappings.
@return The output group display name property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != ""
@post $return != ""
@post $return != null | [
"Get",
"the",
"output",
"group",
"display",
"name",
"mapping",
"for",
"the",
"UserRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L281-L286 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java | TypeMappings.getInputMapping | @FFDCIgnore(Exception.class)
private String getInputMapping(String inputVirtualRealm, String inputProperty, String inputDefaultProperty) {
String methodName = "getInputMapping";
// initialize the return value
String returnValue = null;
RealmConfig realmConfig = mappingUtils.getCoreC... | java | @FFDCIgnore(Exception.class)
private String getInputMapping(String inputVirtualRealm, String inputProperty, String inputDefaultProperty) {
String methodName = "getInputMapping";
// initialize the return value
String returnValue = null;
RealmConfig realmConfig = mappingUtils.getCoreC... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"private",
"String",
"getInputMapping",
"(",
"String",
"inputVirtualRealm",
",",
"String",
"inputProperty",
",",
"String",
"inputDefaultProperty",
")",
"{",
"String",
"methodName",
"=",
"\"getInputMapping\"",
"... | Get the WIM input property that maps to the UserRegistry input property.
@param inputVirtualRealm Virtual realm to find the mappings.
@param inputProperty String representing the input UserRegistry property.
@return String representing the input WIM property.
@pre inputVirtualRealm != null
@pre inputVirtualRealm != e... | [
"Get",
"the",
"WIM",
"input",
"property",
"that",
"maps",
"to",
"the",
"UserRegistry",
"input",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L304-L327 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SelectItemsUtil.java | _SelectItemsUtil._convertOrCoerceValue | private static Object _convertOrCoerceValue(FacesContext facesContext,
UIComponent uiComponent, Object value, SelectItem selectItem,
Converter converter)
{
Object itemValue = selectItem.getValue();
if (converter != null && itemValue instanceof String)
{
it... | java | private static Object _convertOrCoerceValue(FacesContext facesContext,
UIComponent uiComponent, Object value, SelectItem selectItem,
Converter converter)
{
Object itemValue = selectItem.getValue();
if (converter != null && itemValue instanceof String)
{
it... | [
"private",
"static",
"Object",
"_convertOrCoerceValue",
"(",
"FacesContext",
"facesContext",
",",
"UIComponent",
"uiComponent",
",",
"Object",
"value",
",",
"SelectItem",
"selectItem",
",",
"Converter",
"converter",
")",
"{",
"Object",
"itemValue",
"=",
"selectItem",
... | If converter is available and selectItem.value is String uses getAsObject,
otherwise uses EL type coertion and return result. | [
"If",
"converter",
"is",
"available",
"and",
"selectItem",
".",
"value",
"is",
"String",
"uses",
"getAsObject",
"otherwise",
"uses",
"EL",
"type",
"coertion",
"and",
"return",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SelectItemsUtil.java#L117-L168 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/MessageType.java | MessageType.getMessageType | public final static MessageType getMessageType(Byte aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue.intValue()];
} | java | public final static MessageType getMessageType(Byte aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue.intValue()];
} | [
"public",
"final",
"static",
"MessageType",
"getMessageType",
"(",
"Byte",
"aValue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"SibTr",
".",
"debug",
"(",
"tc",
",",
"\"Va... | Returns the corresponding MessageType for a given Byte.
This method should NOT be called by any code outside the MFP component.
It is only public so that it can be accessed by sub-packages.
@param aValue The Byte for which an MessageType is required.
@return The corresponding MessageType | [
"Returns",
"the",
"corresponding",
"MessageType",
"for",
"a",
"given",
"Byte",
".",
"This",
"method",
"should",
"NOT",
"be",
"called",
"by",
"any",
"code",
"outside",
"the",
"MFP",
"component",
".",
"It",
"is",
"only",
"public",
"so",
"that",
"it",
"can",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/MessageType.java#L88-L91 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java | GBSInsertFringe.balance | void balance(
int kFactor,
NodeStack stack,
GBSNode fpoint,
int fpidx,
int maxBal)
{
/* Get parent of balance point */
GBSNode bparent = stack.node(fpidx - 1);
switch (kFactor)
{
case 2:
balance2(stack, bparent, fpoin... | java | void balance(
int kFactor,
NodeStack stack,
GBSNode fpoint,
int fpidx,
int maxBal)
{
/* Get parent of balance point */
GBSNode bparent = stack.node(fpidx - 1);
switch (kFactor)
{
case 2:
balance2(stack, bparent, fpoin... | [
"void",
"balance",
"(",
"int",
"kFactor",
",",
"NodeStack",
"stack",
",",
"GBSNode",
"fpoint",
",",
"int",
"fpidx",
",",
"int",
"maxBal",
")",
"{",
"/* Get parent of balance point */",
"GBSNode",
"bparent",
"=",
"stack",
".",
"node",
"(",
"fpidx",
"-... | Balance a fringe following the addition of its final node.
@param kFactor The K factor for the tree.
@param stack The stack of nodes through which the insert operation
passed.
@param fpoint The fringe balance point (the top of the fringe).
@param fpidx The index within the stack of fpoint
@param maxBal Maximum allowed... | [
"Balance",
"a",
"fringe",
"following",
"the",
"addition",
"of",
"its",
"final",
"node",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L53-L95 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java | GBSInsertFringe.balance2 | private void balance2(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | java | private void balance2(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | [
"private",
"void",
"balance2",
"(",
"NodeStack",
"stack",
",",
"GBSNode",
"bparent",
",",
"/* Parent of fringe balance point */",
"GBSNode",
"fpoint",
",",
"/* Fringe balance point */",
"int",
"fpidx",
",",
"/* Index within stack of fpoint */",
... | Balance a fringe with a K factor of two.
@param stack The stack of nodes through which the insert operation
passed.
@param bparent The parent of the fringe balance point.
@param fpoint The fringe balance point (the top of the fringe).
@param fpidx The index within the stack of fpoint
@param maxBal Maximum allowed frin... | [
"Balance",
"a",
"fringe",
"with",
"a",
"K",
"factor",
"of",
"two",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L107-L156 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java | GBSInsertFringe.balance4 | private void balance4(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | java | private void balance4(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | [
"private",
"void",
"balance4",
"(",
"NodeStack",
"stack",
",",
"GBSNode",
"bparent",
",",
"/* Parent of fringe balance point */",
"GBSNode",
"fpoint",
",",
"/* Fringe balance point */",
"int",
"fpidx",
",",
"/* Index within stack of fpoint */",
... | Balance a fringe with a K factor of four.
@param stack The stack of nodes through which the insert operation
passed.
@param bparent The parent of the fringe balance point.
@param fpoint The fringe balance point (the top of the fringe).
@param fpidx The index within the stack of fpoint
@param maxBal Maximum allowed fri... | [
"Balance",
"a",
"fringe",
"with",
"a",
"K",
"factor",
"of",
"four",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L168-L238 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java | GBSInsertFringe.balance6 | private void balance6(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | java | private void balance6(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | [
"private",
"void",
"balance6",
"(",
"NodeStack",
"stack",
",",
"GBSNode",
"bparent",
",",
"/* Parent of fringe balance point */",
"GBSNode",
"fpoint",
",",
"/* Fringe balance point */",
"int",
"fpidx",
",",
"/* Index within stack of fpoint */",
... | Balance a fringe with a K factor of six.
@param stack The stack of nodes through which the insert operation
passed.
@param bparent The parent of the fringe balance point.
@param fpoint The fringe balance point (the top of the fringe).
@param fpidx The index within the stack of fpoint
@param maxBal Maximum allowed frin... | [
"Balance",
"a",
"fringe",
"with",
"a",
"K",
"factor",
"of",
"six",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L250-L331 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java | GBSInsertFringe.balance8 | private void balance8(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | java | private void balance8(
NodeStack stack,
GBSNode bparent, /* Parent of fringe balance point */
GBSNode fpoint, /* Fringe balance point */
int fpidx, /* Index within stack of fpoint */
int maxBal) ... | [
"private",
"void",
"balance8",
"(",
"NodeStack",
"stack",
",",
"GBSNode",
"bparent",
",",
"/* Parent of fringe balance point */",
"GBSNode",
"fpoint",
",",
"/* Fringe balance point */",
"int",
"fpidx",
",",
"/* Index within stack of fpoint */",
... | Balance a fringe with a K factor of eight.
@param stack The stack of nodes through which the insert operation
passed.
@param bparent The parent of the fringe balance point.
@param fpoint The fringe balance point (the top of the fringe).
@param fpidx The index within the stack of fpoint
@param maxBal Maximum allowed fr... | [
"Balance",
"a",
"fringe",
"with",
"a",
"K",
"factor",
"of",
"eight",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L343-L440 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java | ContextServiceImpl.setBaseInstance | @Reference(name = BASE_INSTANCE,
service = ContextService.class,
cardinality = ReferenceCardinality.OPTIONAL,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
target = "(id=unbound)")
protected void setBaseInsta... | java | @Reference(name = BASE_INSTANCE,
service = ContextService.class,
cardinality = ReferenceCardinality.OPTIONAL,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
target = "(id=unbound)")
protected void setBaseInsta... | [
"@",
"Reference",
"(",
"name",
"=",
"BASE_INSTANCE",
",",
"service",
"=",
"ContextService",
".",
"class",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"OPTIONAL",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"Referenc... | Declarative Services method for setting the service reference to the base contextService instance.
@param ref reference to the service | [
"Declarative",
"Services",
"method",
"for",
"setting",
"the",
"service",
"reference",
"to",
"the",
"base",
"contextService",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L637-L650 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java | ContextServiceImpl.setThreadContextManager | @Reference(name = THREAD_CONTEXT_MANAGER,
service = WSContextService.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.STATIC,
target = "(component.name=com.ibm.ws.context.manager)")
protected void setThreadContextManager(WSCont... | java | @Reference(name = THREAD_CONTEXT_MANAGER,
service = WSContextService.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.STATIC,
target = "(component.name=com.ibm.ws.context.manager)")
protected void setThreadContextManager(WSCont... | [
"@",
"Reference",
"(",
"name",
"=",
"THREAD_CONTEXT_MANAGER",
",",
"service",
"=",
"WSContextService",
".",
"class",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MANDATORY",
",",
"policy",
"=",
"ReferencePolicy",
".",
"STATIC",
",",
"target",
"=",
"\"(... | Declarative Services method for setting the thread context manager.
@param svc the service | [
"Declarative",
"Services",
"method",
"for",
"setting",
"the",
"thread",
"context",
"manager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L657-L664 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java | ContextServiceImpl.unsetBaseInstance | protected void unsetBaseInstance(ServiceReference<ContextService> ref) {
lock.writeLock().lock();
try {
threadContextConfigurations = null;
} finally {
lock.writeLock().unlock();
}
} | java | protected void unsetBaseInstance(ServiceReference<ContextService> ref) {
lock.writeLock().lock();
try {
threadContextConfigurations = null;
} finally {
lock.writeLock().unlock();
}
} | [
"protected",
"void",
"unsetBaseInstance",
"(",
"ServiceReference",
"<",
"ContextService",
">",
"ref",
")",
"{",
"lock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"threadContextConfigurations",
"=",
"null",
";",
"}",
"finally",
"{",
... | Declarative Services method for unsetting the service reference to the base contextService instance.
@param ref reference to the service | [
"Declarative",
"Services",
"method",
"for",
"unsetting",
"the",
"service",
"reference",
"to",
"the",
"base",
"contextService",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L671-L678 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java | AsyncContextImpl.complete | @Override
public synchronized void complete() {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) {
logger.entering(CLASS_NAME, "complete",this);
}
if (!lockHeldByDifferentThread())
{
//We can't call this or WebConta... | java | @Override
public synchronized void complete() {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) {
logger.entering(CLASS_NAME, "complete",this);
}
if (!lockHeldByDifferentThread())
{
//We can't call this or WebConta... | [
"@",
"Override",
"public",
"synchronized",
"void",
"complete",
"(",
")",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINEST... | we're okay to sync on the scheduling of the complete | [
"we",
"re",
"okay",
"to",
"sync",
"on",
"the",
"scheduling",
"of",
"the",
"complete"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java#L176-L225 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java | AsyncContextImpl.dispatch | @Override
public synchronized void dispatch(ServletContext context, String path) throws IllegalStateException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) {
logger.entering(CLASS_NAME, "dispatch(ctx,path)",new Object [] {this,context,path});
... | java | @Override
public synchronized void dispatch(ServletContext context, String path) throws IllegalStateException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) {
logger.entering(CLASS_NAME, "dispatch(ctx,path)",new Object [] {this,context,path});
... | [
"@",
"Override",
"public",
"synchronized",
"void",
"dispatch",
"(",
"ServletContext",
"context",
",",
"String",
"path",
")",
"throws",
"IllegalStateException",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracing... | we're okay to sync on the scheduling of the dispatch | [
"we",
"re",
"okay",
"to",
"sync",
"on",
"the",
"scheduling",
"of",
"the",
"dispatch"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java#L229-L272 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java | OnePhaseResourceImpl.commit_one_phase | public final void commit_one_phase() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase", _resource);
if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "commit_one_phase", this);
//
// Commit the one-phase resource.
//
try
{
... | java | public final void commit_one_phase() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase", _resource);
if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "commit_one_phase", this);
//
// Commit the one-phase resource.
//
try
{
... | [
"public",
"final",
"void",
"commit_one_phase",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"commit_one_phase\"",
",",
"_resource",
")",
";",
"if",
"(",
"tcSummary",
... | Commit a transaction, using one-phase optimization.
@exception SystemException
an unindentified error has been reported
by the resource manager.
@exception RollbackException | [
"Commit",
"a",
"transaction",
"using",
"one",
"-",
"phase",
"optimization",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L103-L132 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java | OnePhaseResourceImpl.rollback | public final void rollback() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _resource);
if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "rollback", this);
try
{
_resource.rollback(_xid);
// Record the vote.
// _completedCommit defaults ... | java | public final void rollback() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _resource);
if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "rollback", this);
try
{
_resource.rollback(_xid);
// Record the vote.
// _completedCommit defaults ... | [
"public",
"final",
"void",
"rollback",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"rollback\"",
",",
"_resource",
")",
";",
"if",
"(",
"tcSummary",
".",
"isDebugE... | Rollback a transaction.
@exception SystemException
an unindentified error has been reported
by the resource manager | [
"Rollback",
"a",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L141-L167 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java | OnePhaseResourceImpl.forget | public final void forget() throws XAException
{
if (tc.isEntryEnabled())
{
Tr.entry(tc, "forget", _resource);
Tr.exit(tc, "forget");
}
} | java | public final void forget() throws XAException
{
if (tc.isEntryEnabled())
{
Tr.entry(tc, "forget", _resource);
Tr.exit(tc, "forget");
}
} | [
"public",
"final",
"void",
"forget",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"forget\"",
",",
"_resource",
")",
";",
"Tr",
".",
"exit",
"(",
"tc",
","... | The resource manager can forget all knowledge of the transaction.
Only allowed because commit_one_phase may return heuristic | [
"The",
"resource",
"manager",
"can",
"forget",
"all",
"knowledge",
"of",
"the",
"transaction",
".",
"Only",
"allowed",
"because",
"commit_one_phase",
"may",
"return",
"heuristic"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L174-L181 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java | JavaEESecCDIExtension.verifyConfiguration | private void verifyConfiguration() throws DeploymentException {
Map<URL, ModuleMetaData> mmds = getModuleMetaDataMap();
if (mmds != null) {
for (Map.Entry<URL, ModuleMetaData> entry : mmds.entrySet()) {
ModuleMetaData mmd = entry.getValue();
if (mmd instanceof... | java | private void verifyConfiguration() throws DeploymentException {
Map<URL, ModuleMetaData> mmds = getModuleMetaDataMap();
if (mmds != null) {
for (Map.Entry<URL, ModuleMetaData> entry : mmds.entrySet()) {
ModuleMetaData mmd = entry.getValue();
if (mmd instanceof... | [
"private",
"void",
"verifyConfiguration",
"(",
")",
"throws",
"DeploymentException",
"{",
"Map",
"<",
"URL",
",",
"ModuleMetaData",
">",
"mmds",
"=",
"getModuleMetaDataMap",
"(",
")",
";",
"if",
"(",
"mmds",
"!=",
"null",
")",
"{",
"for",
"(",
"Map",
".",
... | make sure that there is one HAM for each modules, and if there is a HAM in a module, make sure there is no login configuration in web.xml. | [
"make",
"sure",
"that",
"there",
"is",
"one",
"HAM",
"for",
"each",
"modules",
"and",
"if",
"there",
"is",
"a",
"HAM",
"in",
"a",
"module",
"make",
"sure",
"there",
"is",
"no",
"login",
"configuration",
"in",
"web",
".",
"xml",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L878-L910 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java | JavaEESecCDIExtension.getModuleFromClass | private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) {
String file = getClassFileLocation(klass);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "File name : " + file);
}
String moduleName = null;
for (Map.Entry<String, ModuleProperties>... | java | private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) {
String file = getClassFileLocation(klass);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "File name : " + file);
}
String moduleName = null;
for (Map.Entry<String, ModuleProperties>... | [
"private",
"String",
"getModuleFromClass",
"(",
"Class",
"<",
"?",
">",
"klass",
",",
"Map",
"<",
"String",
",",
"ModuleProperties",
">",
"moduleMap",
")",
"{",
"String",
"file",
"=",
"getClassFileLocation",
"(",
"klass",
")",
";",
"if",
"(",
"tc",
".",
... | Identify the module name from the class. If the class exists in the jar file, return war file name
if it is located under the war file, otherwise returning jar file name. | [
"Identify",
"the",
"module",
"name",
"from",
"the",
"class",
".",
"If",
"the",
"class",
"exists",
"in",
"the",
"jar",
"file",
"return",
"war",
"file",
"name",
"if",
"it",
"is",
"located",
"under",
"the",
"war",
"file",
"otherwise",
"returning",
"jar",
"f... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L948-L976 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java | JavaEESecCDIExtension.getGlobalLoginBasicProps | private Properties getGlobalLoginBasicProps() throws Exception {
String realm = getWebAppSecurityConfig().getBasicAuthRealmName();
Properties props = new Properties();
if (realm == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "basicAuthenticationMechanismRealmName ... | java | private Properties getGlobalLoginBasicProps() throws Exception {
String realm = getWebAppSecurityConfig().getBasicAuthRealmName();
Properties props = new Properties();
if (realm == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "basicAuthenticationMechanismRealmName ... | [
"private",
"Properties",
"getGlobalLoginBasicProps",
"(",
")",
"throws",
"Exception",
"{",
"String",
"realm",
"=",
"getWebAppSecurityConfig",
"(",
")",
".",
"getBasicAuthRealmName",
"(",
")",
";",
"Properties",
"props",
"=",
"new",
"Properties",
"(",
")",
";",
"... | Returns BasicAuth realm name for container override basic login | [
"Returns",
"BasicAuth",
"realm",
"name",
"for",
"container",
"override",
"basic",
"login"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L981-L995 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java | JavaEESecCDIExtension.getGlobalLoginFormProps | private Properties getGlobalLoginFormProps() throws Exception {
WebAppSecurityConfig webAppSecConfig = getWebAppSecurityConfig();
String loginURL = webAppSecConfig.getLoginFormURL();
String errorURL = webAppSecConfig.getLoginErrorURL();
if (loginURL == null || loginURL.isEmpty()) {
... | java | private Properties getGlobalLoginFormProps() throws Exception {
WebAppSecurityConfig webAppSecConfig = getWebAppSecurityConfig();
String loginURL = webAppSecConfig.getLoginFormURL();
String errorURL = webAppSecConfig.getLoginErrorURL();
if (loginURL == null || loginURL.isEmpty()) {
... | [
"private",
"Properties",
"getGlobalLoginFormProps",
"(",
")",
"throws",
"Exception",
"{",
"WebAppSecurityConfig",
"webAppSecConfig",
"=",
"getWebAppSecurityConfig",
"(",
")",
";",
"String",
"loginURL",
"=",
"webAppSecConfig",
".",
"getLoginFormURL",
"(",
")",
";",
"St... | Returns LoginToContinue properties for container override form login | [
"Returns",
"LoginToContinue",
"properties",
"for",
"container",
"override",
"form",
"login"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L1000-L1044 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestMetadata.java | RequestMetadata.initialize | private void initialize(Map<String, Object> metadata) {
if (metadata == null) {
metadata = new HashMap<String, Object>();
}
metadata.put(REQUEST_ID, generateRequestID());
this.metadata = metadata;
} | java | private void initialize(Map<String, Object> metadata) {
if (metadata == null) {
metadata = new HashMap<String, Object>();
}
metadata.put(REQUEST_ID, generateRequestID());
this.metadata = metadata;
} | [
"private",
"void",
"initialize",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"metadata",
")",
"{",
"if",
"(",
"metadata",
"==",
"null",
")",
"{",
"metadata",
"=",
"new",
"HashMap",
"<",
"String",
",",
"Object",
">",
"(",
")",
";",
"}",
"metadata",... | Generates a new metadata Map if none is given. Generates and adds a
request ID to the metadata.
@param metadata the metadata for a request | [
"Generates",
"a",
"new",
"metadata",
"Map",
"if",
"none",
"is",
"given",
".",
"Generates",
"and",
"adds",
"a",
"request",
"ID",
"to",
"the",
"metadata",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestMetadata.java#L55-L61 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java | ConnectionManagerServiceImpl.addObserver | @Override
public void addObserver(Observer observer) {
super.addObserver(observer);
if (countObservers() > 1) {
super.deleteObserver(observer);
AbstractConnectionFactoryService cfSvc = (AbstractConnectionFactoryService) observer;
Object[] params = new Object[] { C... | java | @Override
public void addObserver(Observer observer) {
super.addObserver(observer);
if (countObservers() > 1) {
super.deleteObserver(observer);
AbstractConnectionFactoryService cfSvc = (AbstractConnectionFactoryService) observer;
Object[] params = new Object[] { C... | [
"@",
"Override",
"public",
"void",
"addObserver",
"(",
"Observer",
"observer",
")",
"{",
"super",
".",
"addObserver",
"(",
"observer",
")",
";",
"if",
"(",
"countObservers",
"(",
")",
">",
"1",
")",
"{",
"super",
".",
"deleteObserver",
"(",
"observer",
"... | Add an observer for this connection manager service.
@param observer ConnectionFactoryService that is using this ConnectionManagerService. | [
"Add",
"an",
"observer",
"for",
"this",
"connection",
"manager",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L163-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java | ConnectionManagerServiceImpl.destroyConnectionFactories | @Override
public void destroyConnectionFactories() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled()) {
final String pmName;
if (pm != null)
pmName = pm.getUniqueId();
else
pmName = "fact... | java | @Override
public void destroyConnectionFactories() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled()) {
final String pmName;
if (pm != null)
pmName = pm.getUniqueId();
else
pmName = "fact... | [
"@",
"Override",
"public",
"void",
"destroyConnectionFactories",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"final",... | Destroy all connection factories that are using this connection manager service.
@param svc the connection factory service.
@throws InstanceNotFoundException
@throws MBeanRegistrationException | [
"Destroy",
"all",
"connection",
"factories",
"that",
"are",
"using",
"this",
"connection",
"manager",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L245-L279 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.