id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
65,300 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/RemoteQPConsumerKeyGroup.java | RemoteQPConsumerKeyGroup.addMember | public void addMember(JSConsumerKey key) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMember", key);
super.addMember(key); // superclass method does most of the work
synchronized (criteriaLock)
{
if (allCriterias != nul... | java | public void addMember(JSConsumerKey key) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addMember", key);
super.addMember(key); // superclass method does most of the work
synchronized (criteriaLock)
{
if (allCriterias != nul... | [
"public",
"void",
"addMember",
"(",
"JSConsumerKey",
"key",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",... | overriding superclass method | [
"overriding",
"superclass",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/RemoteQPConsumerKeyGroup.java#L75-L100 |
65,301 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/wsspi/webcontainer31/WCCustomProperties31.java | WCCustomProperties31.setCustomPropertyVariables | public static void setCustomPropertyVariables() {
UPGRADE_READ_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradereadtimeout", Integer.toString(TCPReadRequestContext.NO_TIMEOUT))).intValue();
UPGRADE_WRITE_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradewritetimeout", Integer.... | java | public static void setCustomPropertyVariables() {
UPGRADE_READ_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradereadtimeout", Integer.toString(TCPReadRequestContext.NO_TIMEOUT))).intValue();
UPGRADE_WRITE_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradewritetimeout", Integer.... | [
"public",
"static",
"void",
"setCustomPropertyVariables",
"(",
")",
"{",
"UPGRADE_READ_TIMEOUT",
"=",
"Integer",
".",
"valueOf",
"(",
"customProps",
".",
"getProperty",
"(",
"\"upgradereadtimeout\"",
",",
"Integer",
".",
"toString",
"(",
"TCPReadRequestContext",
".",
... | The timeout to use when the request has been upgraded and a write is happening | [
"The",
"timeout",
"to",
"use",
"when",
"the",
"request",
"has",
"been",
"upgraded",
"and",
"a",
"write",
"is",
"happening"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/wsspi/webcontainer31/WCCustomProperties31.java#L29-L33 |
65,302 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.registerInvalidations | public void registerInvalidations(String cacheName, Iterator invalidations) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
if (invalidationTableList != null) {
try {
invalidationTableList.readWriteLock.writeLock().lock();
while (invalidations.hasNext()) {
... | java | public void registerInvalidations(String cacheName, Iterator invalidations) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
if (invalidationTableList != null) {
try {
invalidationTableList.readWriteLock.writeLock().lock();
while (invalidations.hasNext()) {
... | [
"public",
"void",
"registerInvalidations",
"(",
"String",
"cacheName",
",",
"Iterator",
"invalidations",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"getInvalidationTableList",
"(",
"cacheName",
")",
";",
"if",
"(",
"invalidationTableList",
"!=",
"n... | This adds id and template invalidations.
@param invalidations
The list of invalidations. This is a Vector of either
InvalidateByIdEvent or InvalidateByTemplateEvent. | [
"This",
"adds",
"id",
"and",
"template",
"invalidations",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L102-L145 |
65,303 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.filterEntry | public CacheEntry filterEntry(String cacheName, CacheEntry cacheEntry) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
return internalFilterEntry(cacheName, invalidationTableList, cacheEntry);
} finally {
... | java | public CacheEntry filterEntry(String cacheName, CacheEntry cacheEntry) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
return internalFilterEntry(cacheName, invalidationTableList, cacheEntry);
} finally {
... | [
"public",
"CacheEntry",
"filterEntry",
"(",
"String",
"cacheName",
",",
"CacheEntry",
"cacheEntry",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"getInvalidationTableList",
"(",
"cacheName",
")",
";",
"try",
"{",
"invalidationTableList",
".",
"readWr... | This ensures the specified CacheEntrys have not been invalidated.
@param cacheEntry The unfiltered CacheEntry.
@return The filtered CacheEntry. | [
"This",
"ensures",
"the",
"specified",
"CacheEntrys",
"have",
"not",
"been",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L153-L162 |
65,304 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.filterEntryList | public ArrayList filterEntryList(String cacheName, ArrayList incomingList) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
Iterator it = incomingList.iterator();
while (it.hasNext()) {
Object obj = it.next... | java | public ArrayList filterEntryList(String cacheName, ArrayList incomingList) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
Iterator it = incomingList.iterator();
while (it.hasNext()) {
Object obj = it.next... | [
"public",
"ArrayList",
"filterEntryList",
"(",
"String",
"cacheName",
",",
"ArrayList",
"incomingList",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"getInvalidationTableList",
"(",
"cacheName",
")",
";",
"try",
"{",
"invalidationTableList",
".",
"re... | This ensures all incoming CacheEntrys have not been invalidated.
@param incomingList The unfiltered list of CacheEntrys.
@return The filtered list of CacheEntrys. | [
"This",
"ensures",
"all",
"incoming",
"CacheEntrys",
"have",
"not",
"been",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L170-L192 |
65,305 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.internalFilterEntry | private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) {
InvalidateByIdEvent idEvent = null;
if (cacheEntry == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");... | java | private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) {
InvalidateByIdEvent idEvent = null;
if (cacheEntry == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");... | [
"private",
"final",
"CacheEntry",
"internalFilterEntry",
"(",
"String",
"cacheName",
",",
"InvalidationTableList",
"invalidationTableList",
",",
"CacheEntry",
"cacheEntry",
")",
"{",
"InvalidateByIdEvent",
"idEvent",
"=",
"null",
";",
"if",
"(",
"cacheEntry",
"==",
"n... | This is a helper method that filters a single CacheEntry.
It is called by the filterEntry and filterEntryList methods.
@param cacheEntry The unfiltered CacheEntry.
@return The filtered CacheEntry. | [
"This",
"is",
"a",
"helper",
"method",
"that",
"filters",
"a",
"single",
"CacheEntry",
".",
"It",
"is",
"called",
"by",
"the",
"filterEntry",
"and",
"filterEntryList",
"methods",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L201-L248 |
65,306 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.filterExternalCacheFragment | public ExternalInvalidation filterExternalCacheFragment(String cacheName, ExternalInvalidation externalCacheFragment) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
return internalFilterExternalCacheFragment(cac... | java | public ExternalInvalidation filterExternalCacheFragment(String cacheName, ExternalInvalidation externalCacheFragment) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
return internalFilterExternalCacheFragment(cac... | [
"public",
"ExternalInvalidation",
"filterExternalCacheFragment",
"(",
"String",
"cacheName",
",",
"ExternalInvalidation",
"externalCacheFragment",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"getInvalidationTableList",
"(",
"cacheName",
")",
";",
"try",
"... | This ensures that the specified ExternalCacheFragment has not
been invalidated.
@param externalCacheFragment The unfiltered ExternalCacheFragment.
@return The filtered ExternalCacheFragment. | [
"This",
"ensures",
"that",
"the",
"specified",
"ExternalCacheFragment",
"has",
"not",
"been",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L256-L264 |
65,307 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.filterExternalCacheFragmentList | public ArrayList filterExternalCacheFragmentList(String cacheName, ArrayList incomingList) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
Iterator it = incomingList.iterator();
while (it.hasNext()) {
Exte... | java | public ArrayList filterExternalCacheFragmentList(String cacheName, ArrayList incomingList) {
InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName);
try {
invalidationTableList.readWriteLock.readLock().lock();
Iterator it = incomingList.iterator();
while (it.hasNext()) {
Exte... | [
"public",
"ArrayList",
"filterExternalCacheFragmentList",
"(",
"String",
"cacheName",
",",
"ArrayList",
"incomingList",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"getInvalidationTableList",
"(",
"cacheName",
")",
";",
"try",
"{",
"invalidationTableLis... | This ensures all incoming ExternalCacheFragments have not been
invalidated.
@param incomingList The unfiltered list of ExternalCacheFragments.
@return The filtered list of ExternalCacheFragments. | [
"This",
"ensures",
"all",
"incoming",
"ExternalCacheFragments",
"have",
"not",
"been",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L273-L293 |
65,308 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.internalFilterExternalCacheFragment | private final ExternalInvalidation internalFilterExternalCacheFragment(String cacheName, InvalidationTableList invalidationTableList, ExternalInvalidation externalCacheFragment) {
if (externalCacheFragment == null) {
return null;
}
long timeStamp = externalCacheFragment.getTimeStamp();
if (collision(invalida... | java | private final ExternalInvalidation internalFilterExternalCacheFragment(String cacheName, InvalidationTableList invalidationTableList, ExternalInvalidation externalCacheFragment) {
if (externalCacheFragment == null) {
return null;
}
long timeStamp = externalCacheFragment.getTimeStamp();
if (collision(invalida... | [
"private",
"final",
"ExternalInvalidation",
"internalFilterExternalCacheFragment",
"(",
"String",
"cacheName",
",",
"InvalidationTableList",
"invalidationTableList",
",",
"ExternalInvalidation",
"externalCacheFragment",
")",
"{",
"if",
"(",
"externalCacheFragment",
"==",
"null"... | This is a helper method that filters a single ExternalCacheFragment.
It is called by the filterExternalCacheFragment and
filterExternalCacheFragmentList methods.
@param externalCacheFragment The unfiltered ExternalCacheFragment.
@return The filtered ExternalCacheFragment. | [
"This",
"is",
"a",
"helper",
"method",
"that",
"filters",
"a",
"single",
"ExternalCacheFragment",
".",
"It",
"is",
"called",
"by",
"the",
"filterExternalCacheFragment",
"and",
"filterExternalCacheFragmentList",
"methods",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L303-L325 |
65,309 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.collision | private final boolean collision(Map<Object, InvalidationEvent> hashtable, Enumeration enumeration, long timeStamp) {
while (enumeration.hasMoreElements()) {
Object key = enumeration.nextElement();
InvalidationEvent invalidationEvent = (InvalidationEvent) hashtable.get(key);
if ((invalidationEvent != null) ... | java | private final boolean collision(Map<Object, InvalidationEvent> hashtable, Enumeration enumeration, long timeStamp) {
while (enumeration.hasMoreElements()) {
Object key = enumeration.nextElement();
InvalidationEvent invalidationEvent = (InvalidationEvent) hashtable.get(key);
if ((invalidationEvent != null) ... | [
"private",
"final",
"boolean",
"collision",
"(",
"Map",
"<",
"Object",
",",
"InvalidationEvent",
">",
"hashtable",
",",
"Enumeration",
"enumeration",
",",
"long",
"timeStamp",
")",
"{",
"while",
"(",
"enumeration",
".",
"hasMoreElements",
"(",
")",
")",
"{",
... | This is a helper method that checks for a collision.
@param hashtable A Hashtable of invalidation events.
@param enumeration An Enumeration of
@return True if there is an item in the enumeration
that is specified in the hashtable such that
the hashtable entry is newer than the timeStamp. | [
"This",
"is",
"a",
"helper",
"method",
"that",
"checks",
"for",
"a",
"collision",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L336-L345 |
65,310 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java | InvalidationAuditDaemon.getInvalidationTableList | private InvalidationTableList getInvalidationTableList(String cacheName) {
InvalidationTableList invalidationTableList = cacheinvalidationTables.get(cacheName);
if (invalidationTableList == null) {
synchronized (this) {
invalidationTableList = new InvalidationTableList();
cacheinvalidationTables.put(c... | java | private InvalidationTableList getInvalidationTableList(String cacheName) {
InvalidationTableList invalidationTableList = cacheinvalidationTables.get(cacheName);
if (invalidationTableList == null) {
synchronized (this) {
invalidationTableList = new InvalidationTableList();
cacheinvalidationTables.put(c... | [
"private",
"InvalidationTableList",
"getInvalidationTableList",
"(",
"String",
"cacheName",
")",
"{",
"InvalidationTableList",
"invalidationTableList",
"=",
"cacheinvalidationTables",
".",
"get",
"(",
"cacheName",
")",
";",
"if",
"(",
"invalidationTableList",
"==",
"null"... | Retrieve the InvalidationTableList by the specified cacheName. | [
"Retrieve",
"the",
"InvalidationTableList",
"by",
"the",
"specified",
"cacheName",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L350-L359 |
65,311 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java | KernelUtils.getBootstrapJar | public static File getBootstrapJar() {
if (launchHome == null) {
if (launchURL == null) {
// How were we launched?
launchURL = getLocationFromClass(KernelUtils.class);
}
launchHome = FileUtils.getFile(launchURL);
}
return launc... | java | public static File getBootstrapJar() {
if (launchHome == null) {
if (launchURL == null) {
// How were we launched?
launchURL = getLocationFromClass(KernelUtils.class);
}
launchHome = FileUtils.getFile(launchURL);
}
return launc... | [
"public",
"static",
"File",
"getBootstrapJar",
"(",
")",
"{",
"if",
"(",
"launchHome",
"==",
"null",
")",
"{",
"if",
"(",
"launchURL",
"==",
"null",
")",
"{",
"// How were we launched?",
"launchURL",
"=",
"getLocationFromClass",
"(",
"KernelUtils",
".",
"class... | The location of the launch jar is only obtained once.
@return a File representing the location of the launching jar | [
"The",
"location",
"of",
"the",
"launch",
"jar",
"is",
"only",
"obtained",
"once",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L62-L72 |
65,312 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java | KernelUtils.getBootstrapLibDir | public static File getBootstrapLibDir() {
if (libDir.get() == null) {
libDir = StaticValue.mutateStaticValue(libDir, new Utils.FileInitializer(getBootstrapJar().getParentFile()));
}
return libDir.get();
} | java | public static File getBootstrapLibDir() {
if (libDir.get() == null) {
libDir = StaticValue.mutateStaticValue(libDir, new Utils.FileInitializer(getBootstrapJar().getParentFile()));
}
return libDir.get();
} | [
"public",
"static",
"File",
"getBootstrapLibDir",
"(",
")",
"{",
"if",
"(",
"libDir",
".",
"get",
"(",
")",
"==",
"null",
")",
"{",
"libDir",
"=",
"StaticValue",
".",
"mutateStaticValue",
"(",
"libDir",
",",
"new",
"Utils",
".",
"FileInitializer",
"(",
"... | The lib dir is the parent of the bootstrap jar
@return a File representing the location of the launching jar | [
"The",
"lib",
"dir",
"is",
"the",
"parent",
"of",
"the",
"bootstrap",
"jar"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L102-L107 |
65,313 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java | KernelUtils.getProperties | public static Properties getProperties(final InputStream is) throws IOException {
Properties p = new Properties();
try {
if (is != null) {
p.load(is);
// Look for "values" and strip the quotes to values
for (Entry<Object, Object> entry : p.en... | java | public static Properties getProperties(final InputStream is) throws IOException {
Properties p = new Properties();
try {
if (is != null) {
p.load(is);
// Look for "values" and strip the quotes to values
for (Entry<Object, Object> entry : p.en... | [
"public",
"static",
"Properties",
"getProperties",
"(",
"final",
"InputStream",
"is",
")",
"throws",
"IOException",
"{",
"Properties",
"p",
"=",
"new",
"Properties",
"(",
")",
";",
"try",
"{",
"if",
"(",
"is",
"!=",
"null",
")",
"{",
"p",
".",
"load",
... | Read properties from input stream. Will close the input stream before
returning.
@param is
InputStream to read properties from
@return Properties object; will be empty if InputStream is null or empty.
@throws LaunchException | [
"Read",
"properties",
"from",
"input",
"stream",
".",
"Will",
"close",
"the",
"input",
"stream",
"before",
"returning",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L128-L149 |
65,314 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java | KernelUtils.getClassFromLine | private static String getClassFromLine(String line) {
line = line.trim();
// Skip commented lines
if (line.length() == 0 || line.startsWith("#"))
return null;
// lop off spaces/tabs/end-of-line-comments
String[] className = line.split("[\\s#]");
if (classNa... | java | private static String getClassFromLine(String line) {
line = line.trim();
// Skip commented lines
if (line.length() == 0 || line.startsWith("#"))
return null;
// lop off spaces/tabs/end-of-line-comments
String[] className = line.split("[\\s#]");
if (classNa... | [
"private",
"static",
"String",
"getClassFromLine",
"(",
"String",
"line",
")",
"{",
"line",
"=",
"line",
".",
"trim",
"(",
")",
";",
"// Skip commented lines",
"if",
"(",
"line",
".",
"length",
"(",
")",
"==",
"0",
"||",
"line",
".",
"startsWith",
"(",
... | Read a service class from the given line. Must ignore whitespace, and
skip comment lines, or end of line comments.
@param line
@return class name (first text on a line not starting with #) or null for
empty/comment lines | [
"Read",
"a",
"service",
"class",
"from",
"the",
"given",
"line",
".",
"Must",
"ignore",
"whitespace",
"and",
"skip",
"comment",
"lines",
"or",
"end",
"of",
"line",
"comments",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L180-L194 |
65,315 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java | ListStatistics.checkSpillLimits | public final void checkSpillLimits()
{
long currentTotal;
long currentSize;
synchronized(this)
{
currentTotal = _countTotal;
currentSize = _countTotalBytes;
}
if (!_spilling)
{
// We are not currently spilling so we need t... | java | public final void checkSpillLimits()
{
long currentTotal;
long currentSize;
synchronized(this)
{
currentTotal = _countTotal;
currentSize = _countTotalBytes;
}
if (!_spilling)
{
// We are not currently spilling so we need t... | [
"public",
"final",
"void",
"checkSpillLimits",
"(",
")",
"{",
"long",
"currentTotal",
";",
"long",
"currentSize",
";",
"synchronized",
"(",
"this",
")",
"{",
"currentTotal",
"=",
"_countTotal",
";",
"currentSize",
"=",
"_countTotalBytes",
";",
"}",
"if",
"(",
... | Instead of just triggering spilling when we have a certain number of
Items on a stream we now have the ability to trigger spilling if the
total size of the Items on a stream goes over a pre-defined limit.
This should allow us to control the memory usage of a stream in a
more intuitive fashion.
For the count limit we u... | [
"Instead",
"of",
"just",
"triggering",
"spilling",
"when",
"we",
"have",
"a",
"certain",
"number",
"of",
"Items",
"on",
"a",
"stream",
"we",
"now",
"have",
"the",
"ability",
"to",
"trigger",
"spilling",
"if",
"the",
"total",
"size",
"of",
"the",
"Items",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java#L121-L181 |
65,316 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java | ListStatistics.updateTotal | public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException
{
boolean doCallback = false;
synchronized(this)
{
// We're only replacing an old size estimation
// with a new one so we do not need to change
// or ... | java | public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException
{
boolean doCallback = false;
synchronized(this)
{
// We're only replacing an old size estimation
// with a new one so we do not need to change
// or ... | [
"public",
"final",
"void",
"updateTotal",
"(",
"int",
"oldSizeInBytes",
",",
"int",
"newSizeInBytes",
")",
"throws",
"SevereMessageStoreException",
"{",
"boolean",
"doCallback",
"=",
"false",
";",
"synchronized",
"(",
"this",
")",
"{",
"// We're only replacing an old ... | once we have the Item available to determine it from. | [
"once",
"we",
"have",
"the",
"Item",
"available",
"to",
"determine",
"it",
"from",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java#L588-L618 |
65,317 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java | CompositeTagAttributeUtils.addUnspecifiedAttributes | public static void addUnspecifiedAttributes(FeatureDescriptor descriptor,
Tag tag, String[] standardAttributesSorted, FaceletContext ctx)
{
for (TagAttribute attribute : tag.getAttributes().getAll())
{
final String name = attribute.getLocalName();
if (Arrays.bina... | java | public static void addUnspecifiedAttributes(FeatureDescriptor descriptor,
Tag tag, String[] standardAttributesSorted, FaceletContext ctx)
{
for (TagAttribute attribute : tag.getAttributes().getAll())
{
final String name = attribute.getLocalName();
if (Arrays.bina... | [
"public",
"static",
"void",
"addUnspecifiedAttributes",
"(",
"FeatureDescriptor",
"descriptor",
",",
"Tag",
"tag",
",",
"String",
"[",
"]",
"standardAttributesSorted",
",",
"FaceletContext",
"ctx",
")",
"{",
"for",
"(",
"TagAttribute",
"attribute",
":",
"tag",
"."... | Adds all attributes from the given Tag which are NOT listed in
standardAttributesSorted as a ValueExpression to the given BeanDescriptor.
NOTE that standardAttributesSorted has to be alphabetically sorted in
order to use binary search.
@param descriptor
@param tag
@param standardAttributesSorted
@param ctx | [
"Adds",
"all",
"attributes",
"from",
"the",
"given",
"Tag",
"which",
"are",
"NOT",
"listed",
"in",
"standardAttributesSorted",
"as",
"a",
"ValueExpression",
"to",
"the",
"given",
"BeanDescriptor",
".",
"NOTE",
"that",
"standardAttributesSorted",
"has",
"to",
"be",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L52-L65 |
65,318 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java | CompositeTagAttributeUtils.containsUnspecifiedAttributes | public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted)
{
for (TagAttribute attribute : tag.getAttributes().getAll())
{
final String name = attribute.getLocalName();
if (Arrays.binarySearch(standardAttributesSorted, name) < 0)
... | java | public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted)
{
for (TagAttribute attribute : tag.getAttributes().getAll())
{
final String name = attribute.getLocalName();
if (Arrays.binarySearch(standardAttributesSorted, name) < 0)
... | [
"public",
"static",
"boolean",
"containsUnspecifiedAttributes",
"(",
"Tag",
"tag",
",",
"String",
"[",
"]",
"standardAttributesSorted",
")",
"{",
"for",
"(",
"TagAttribute",
"attribute",
":",
"tag",
".",
"getAttributes",
"(",
")",
".",
"getAll",
"(",
")",
")",... | Returns true if the given Tag contains attributes that are not
specified in standardAttributesSorted.
NOTE that standardAttributesSorted has to be alphabetically sorted in
order to use binary search.
@param tag
@param standardAttributesSorted
@return | [
"Returns",
"true",
"if",
"the",
"given",
"Tag",
"contains",
"attributes",
"that",
"are",
"not",
"specified",
"in",
"standardAttributesSorted",
".",
"NOTE",
"that",
"standardAttributesSorted",
"has",
"to",
"be",
"alphabetically",
"sorted",
"in",
"order",
"to",
"use... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L76-L87 |
65,319 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java | CompositeTagAttributeUtils.addDevelopmentAttributes | public static void addDevelopmentAttributes(FeatureDescriptor descriptor,
FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription,
TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
{
if (displayName != null)
{
descriptor.setDi... | java | public static void addDevelopmentAttributes(FeatureDescriptor descriptor,
FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription,
TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
{
if (displayName != null)
{
descriptor.setDi... | [
"public",
"static",
"void",
"addDevelopmentAttributes",
"(",
"FeatureDescriptor",
"descriptor",
",",
"FaceletContext",
"ctx",
",",
"TagAttribute",
"displayName",
",",
"TagAttribute",
"shortDescription",
",",
"TagAttribute",
"expert",
",",
"TagAttribute",
"hidden",
",",
... | Applies the "displayName", "shortDescription", "expert", "hidden",
and "preferred" attributes to the BeanDescriptor.
@param descriptor
@param ctx
@param displayName
@param shortDescription
@param expert
@param hidden
@param preferred | [
"Applies",
"the",
"displayName",
"shortDescription",
"expert",
"hidden",
"and",
"preferred",
"attributes",
"to",
"the",
"BeanDescriptor",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L100-L124 |
65,320 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java | CompositeTagAttributeUtils.addDevelopmentAttributesLiteral | public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor,
TagAttribute displayName, TagAttribute shortDescription,
TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
{
if (displayName != null)
{
descriptor.setDisplayName(dis... | java | public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor,
TagAttribute displayName, TagAttribute shortDescription,
TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
{
if (displayName != null)
{
descriptor.setDisplayName(dis... | [
"public",
"static",
"void",
"addDevelopmentAttributesLiteral",
"(",
"FeatureDescriptor",
"descriptor",
",",
"TagAttribute",
"displayName",
",",
"TagAttribute",
"shortDescription",
",",
"TagAttribute",
"expert",
",",
"TagAttribute",
"hidden",
",",
"TagAttribute",
"preferred"... | Applies the "displayName", "shortDescription", "expert", "hidden",
and "preferred" attributes to the BeanDescriptor if they are all literal values.
Thus no FaceletContext is necessary.
@param descriptor
@param displayName
@param shortDescription
@param expert
@param hidden
@param preferred | [
"Applies",
"the",
"displayName",
"shortDescription",
"expert",
"hidden",
"and",
"preferred",
"attributes",
"to",
"the",
"BeanDescriptor",
"if",
"they",
"are",
"all",
"literal",
"values",
".",
"Thus",
"no",
"FaceletContext",
"is",
"necessary",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L137-L161 |
65,321 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java | CompositeTagAttributeUtils.areAttributesLiteral | public static boolean areAttributesLiteral(TagAttribute... attributes)
{
for (TagAttribute attribute : attributes)
{
if (attribute != null && !attribute.isLiteral())
{
// the attribute exists and is not literal
return false;
}
... | java | public static boolean areAttributesLiteral(TagAttribute... attributes)
{
for (TagAttribute attribute : attributes)
{
if (attribute != null && !attribute.isLiteral())
{
// the attribute exists and is not literal
return false;
}
... | [
"public",
"static",
"boolean",
"areAttributesLiteral",
"(",
"TagAttribute",
"...",
"attributes",
")",
"{",
"for",
"(",
"TagAttribute",
"attribute",
":",
"attributes",
")",
"{",
"if",
"(",
"attribute",
"!=",
"null",
"&&",
"!",
"attribute",
".",
"isLiteral",
"("... | Returns true if all specified attributes are either null or literal.
@param attributes | [
"Returns",
"true",
"if",
"all",
"specified",
"attributes",
"are",
"either",
"null",
"or",
"literal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L167-L179 |
65,322 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/resource/BaseResourceHandlerSupport.java | BaseResourceHandlerSupport.calculateFacesServletMapping | protected static FacesServletMapping calculateFacesServletMapping(
String servletPath, String pathInfo)
{
if (pathInfo != null)
{
// If there is a "extra path", it's definitely no extension mapping.
// Now we just have to determine the path which has been specified
... | java | protected static FacesServletMapping calculateFacesServletMapping(
String servletPath, String pathInfo)
{
if (pathInfo != null)
{
// If there is a "extra path", it's definitely no extension mapping.
// Now we just have to determine the path which has been specified
... | [
"protected",
"static",
"FacesServletMapping",
"calculateFacesServletMapping",
"(",
"String",
"servletPath",
",",
"String",
"pathInfo",
")",
"{",
"if",
"(",
"pathInfo",
"!=",
"null",
")",
"{",
"// If there is a \"extra path\", it's definitely no extension mapping.",
"// Now we... | Determines the mapping of the FacesServlet in the web.xml configuration
file. However, there is no need to actually parse this configuration file
as runtime information is sufficient.
@param servletPath The servletPath of the current request
@param pathInfo The pathInfo of the current request
@return the mapping of... | [
"Determines",
"the",
"mapping",
"of",
"the",
"FacesServlet",
"in",
"the",
"web",
".",
"xml",
"configuration",
"file",
".",
"However",
"there",
"is",
"no",
"need",
"to",
"actually",
"parse",
"this",
"configuration",
"file",
"as",
"runtime",
"information",
"is",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/resource/BaseResourceHandlerSupport.java#L190-L224 |
65,323 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.isCDIEnabled | private boolean isCDIEnabled(Collection<WebSphereBeanDeploymentArchive> bdas) {
boolean anyHasBeans = false;
for (WebSphereBeanDeploymentArchive bda : bdas) {
boolean hasBeans = false;
if (bda.getType() != ArchiveType.RUNTIME_EXTENSION) {
hasBeans = isCDIEnabled(... | java | private boolean isCDIEnabled(Collection<WebSphereBeanDeploymentArchive> bdas) {
boolean anyHasBeans = false;
for (WebSphereBeanDeploymentArchive bda : bdas) {
boolean hasBeans = false;
if (bda.getType() != ArchiveType.RUNTIME_EXTENSION) {
hasBeans = isCDIEnabled(... | [
"private",
"boolean",
"isCDIEnabled",
"(",
"Collection",
"<",
"WebSphereBeanDeploymentArchive",
">",
"bdas",
")",
"{",
"boolean",
"anyHasBeans",
"=",
"false",
";",
"for",
"(",
"WebSphereBeanDeploymentArchive",
"bda",
":",
"bdas",
")",
"{",
"boolean",
"hasBeans",
"... | Do any of the specified BDAs, or any of BDAs accessible by them, have any beans
BDAs for Runtime Extensions are ignored
@param bdas
@return
@throws CDIException | [
"Do",
"any",
"of",
"the",
"specified",
"BDAs",
"or",
"any",
"of",
"BDAs",
"accessible",
"by",
"them",
"have",
"any",
"beans"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L202-L217 |
65,324 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.isCDIEnabled | private boolean isCDIEnabled(WebSphereBeanDeploymentArchive bda) {
Boolean hasBeans = cdiStatusMap.get(bda.getId());
if (hasBeans == null) {
//it's enabled if it has beans or it is an extension which could add beans
hasBeans = bda.hasBeans() || bda.isExtension();
//se... | java | private boolean isCDIEnabled(WebSphereBeanDeploymentArchive bda) {
Boolean hasBeans = cdiStatusMap.get(bda.getId());
if (hasBeans == null) {
//it's enabled if it has beans or it is an extension which could add beans
hasBeans = bda.hasBeans() || bda.isExtension();
//se... | [
"private",
"boolean",
"isCDIEnabled",
"(",
"WebSphereBeanDeploymentArchive",
"bda",
")",
"{",
"Boolean",
"hasBeans",
"=",
"cdiStatusMap",
".",
"get",
"(",
"bda",
".",
"getId",
"(",
")",
")",
";",
"if",
"(",
"hasBeans",
"==",
"null",
")",
"{",
"//it's enabled... | Does the specified BDA, or any of BDAs accessible by it, have any beans or it is an extension which could add beans
@param bda the BDA
@return true if the specified BDA, or any of BDAs accessible by it, have any beans | [
"Does",
"the",
"specified",
"BDA",
"or",
"any",
"of",
"BDAs",
"accessible",
"by",
"it",
"have",
"any",
"beans",
"or",
"it",
"is",
"an",
"extension",
"which",
"could",
"add",
"beans"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L225-L240 |
65,325 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.isCDIEnabled | @Override
public boolean isCDIEnabled(String bdaId) {
boolean hasBeans = false;
//the top level isCDIEnabled can fail faster
if (isCDIEnabled()) {
Boolean hasBeansBoolean = cdiStatusMap.get(bdaId);
if (hasBeansBoolean == null) {
WebSphereBeanDeployme... | java | @Override
public boolean isCDIEnabled(String bdaId) {
boolean hasBeans = false;
//the top level isCDIEnabled can fail faster
if (isCDIEnabled()) {
Boolean hasBeansBoolean = cdiStatusMap.get(bdaId);
if (hasBeansBoolean == null) {
WebSphereBeanDeployme... | [
"@",
"Override",
"public",
"boolean",
"isCDIEnabled",
"(",
"String",
"bdaId",
")",
"{",
"boolean",
"hasBeans",
"=",
"false",
";",
"//the top level isCDIEnabled can fail faster",
"if",
"(",
"isCDIEnabled",
"(",
")",
")",
"{",
"Boolean",
"hasBeansBoolean",
"=",
"cdi... | Does the specified BDA, or any of BDAs accessible by it, have any beans or an extension which might add beans.
@param bdaId the id of the BDA
@return true if the specified BDA, or any of BDAs accessible by it, have any beans | [
"Does",
"the",
"specified",
"BDA",
"or",
"any",
"of",
"BDAs",
"accessible",
"by",
"it",
"have",
"any",
"beans",
"or",
"an",
"extension",
"which",
"might",
"add",
"beans",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L248-L272 |
65,326 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.createBDAOntheFly | private BeanDeploymentArchive createBDAOntheFly(Class<?> beanClass) throws CDIException {
//Add the class in one of the bdas if an existing bda share the same classloader as the beanClass
//Otherwise, we need to create a brand new bda and then add the bda to the graph
//when it reaches here, it ... | java | private BeanDeploymentArchive createBDAOntheFly(Class<?> beanClass) throws CDIException {
//Add the class in one of the bdas if an existing bda share the same classloader as the beanClass
//Otherwise, we need to create a brand new bda and then add the bda to the graph
//when it reaches here, it ... | [
"private",
"BeanDeploymentArchive",
"createBDAOntheFly",
"(",
"Class",
"<",
"?",
">",
"beanClass",
")",
"throws",
"CDIException",
"{",
"//Add the class in one of the bdas if an existing bda share the same classloader as the beanClass",
"//Otherwise, we need to create a brand new bda and ... | Create a bda and wire it in the deployment graph
@param beanClass the bean class
@return the newly created bda
@throws CDIException | [
"Create",
"a",
"bda",
"and",
"wire",
"it",
"in",
"the",
"deployment",
"graph"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L327-L342 |
65,327 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.createNewBdaAndMakeWiring | private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) {
try {
OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass);
WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime);
Cla... | java | private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) {
try {
OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass);
WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime);
Cla... | [
"private",
"BeanDeploymentArchive",
"createNewBdaAndMakeWiring",
"(",
"Class",
"<",
"?",
">",
"beanClass",
")",
"{",
"try",
"{",
"OnDemandArchive",
"onDemandArchive",
"=",
"new",
"OnDemandArchive",
"(",
"cdiRuntime",
",",
"application",
",",
"beanClass",
")",
";",
... | Create a new bda and put the beanClass to the bda and then wire this bda in the deployment according to the classloading hierarchy
@param beanClass
@param beanClassCL the beanClass classloader
@return the newly created bda | [
"Create",
"a",
"new",
"bda",
"and",
"put",
"the",
"beanClass",
"to",
"the",
"bda",
"and",
"then",
"wire",
"this",
"bda",
"in",
"the",
"deployment",
"according",
"to",
"the",
"classloading",
"hierarchy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L351-L389 |
65,328 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.findCandidateBDAtoAddThisClass | private BeanDeploymentArchive findCandidateBDAtoAddThisClass(Class<?> beanClass) throws CDIException {
for (WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives()) {
if (wbda.getClassLoader() == beanClass.getClassLoader()) {
wbda.addToBeanClazzes(beanClass);
... | java | private BeanDeploymentArchive findCandidateBDAtoAddThisClass(Class<?> beanClass) throws CDIException {
for (WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives()) {
if (wbda.getClassLoader() == beanClass.getClassLoader()) {
wbda.addToBeanClazzes(beanClass);
... | [
"private",
"BeanDeploymentArchive",
"findCandidateBDAtoAddThisClass",
"(",
"Class",
"<",
"?",
">",
"beanClass",
")",
"throws",
"CDIException",
"{",
"for",
"(",
"WebSphereBeanDeploymentArchive",
"wbda",
":",
"getWebSphereBeanDeploymentArchives",
"(",
")",
")",
"{",
"if",... | Find the bda with the same classloader as the beanClass and then add the beanclasses to it
@param beanClass
@param beanClassCL the beanClass classloader
@return the found bda
@throws CDIException | [
"Find",
"the",
"bda",
"with",
"the",
"same",
"classloader",
"as",
"the",
"beanClass",
"and",
"then",
"add",
"the",
"beanclasses",
"to",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L399-L418 |
65,329 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.makeWiring | private void makeWiring(WebSphereBeanDeploymentArchive wireFromBda, WebSphereBeanDeploymentArchive wireToBda, ClassLoader wireToBdaCL, ClassLoader wireFromBdaCL) {
while (wireFromBdaCL != null) {
if (wireFromBdaCL == wireToBdaCL) {
wireFromBda.addBeanDeploymentArchive(wireToBda);
... | java | private void makeWiring(WebSphereBeanDeploymentArchive wireFromBda, WebSphereBeanDeploymentArchive wireToBda, ClassLoader wireToBdaCL, ClassLoader wireFromBdaCL) {
while (wireFromBdaCL != null) {
if (wireFromBdaCL == wireToBdaCL) {
wireFromBda.addBeanDeploymentArchive(wireToBda);
... | [
"private",
"void",
"makeWiring",
"(",
"WebSphereBeanDeploymentArchive",
"wireFromBda",
",",
"WebSphereBeanDeploymentArchive",
"wireToBda",
",",
"ClassLoader",
"wireToBdaCL",
",",
"ClassLoader",
"wireFromBdaCL",
")",
"{",
"while",
"(",
"wireFromBdaCL",
"!=",
"null",
")",
... | Make a wiring from the wireFromBda to the wireToBda if the wireFromBda's classloader is the descendant of the wireToBda's classloader
@param wireFromBda
@param wireToBda
@param wireToBdaCL
@param wireFromBdaCL | [
"Make",
"a",
"wiring",
"from",
"the",
"wireFromBda",
"to",
"the",
"wireToBda",
"if",
"the",
"wireFromBda",
"s",
"classloader",
"is",
"the",
"descendant",
"of",
"the",
"wireToBda",
"s",
"classloader"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L428-L441 |
65,330 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.addBeanDeploymentArchive | @Override
public void addBeanDeploymentArchive(WebSphereBeanDeploymentArchive bda) throws CDIException {
deploymentDBAs.put(bda.getId(), bda);
extensionClassLoaders.add(bda.getClassLoader());
ArchiveType type = bda.getType();
if (type != ArchiveType.SHARED_LIB &&
type != ... | java | @Override
public void addBeanDeploymentArchive(WebSphereBeanDeploymentArchive bda) throws CDIException {
deploymentDBAs.put(bda.getId(), bda);
extensionClassLoaders.add(bda.getClassLoader());
ArchiveType type = bda.getType();
if (type != ArchiveType.SHARED_LIB &&
type != ... | [
"@",
"Override",
"public",
"void",
"addBeanDeploymentArchive",
"(",
"WebSphereBeanDeploymentArchive",
"bda",
")",
"throws",
"CDIException",
"{",
"deploymentDBAs",
".",
"put",
"(",
"bda",
".",
"getId",
"(",
")",
",",
"bda",
")",
";",
"extensionClassLoaders",
".",
... | Add a BeanDeploymentArchive to this deployment
@param bda the BDA to add
@throws CDIException | [
"Add",
"a",
"BeanDeploymentArchive",
"to",
"this",
"deployment"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L561-L570 |
65,331 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.addBeanDeploymentArchives | @Override
public void addBeanDeploymentArchives(Set<WebSphereBeanDeploymentArchive> bdas) throws CDIException {
for (WebSphereBeanDeploymentArchive bda : bdas) {
addBeanDeploymentArchive(bda);
}
} | java | @Override
public void addBeanDeploymentArchives(Set<WebSphereBeanDeploymentArchive> bdas) throws CDIException {
for (WebSphereBeanDeploymentArchive bda : bdas) {
addBeanDeploymentArchive(bda);
}
} | [
"@",
"Override",
"public",
"void",
"addBeanDeploymentArchives",
"(",
"Set",
"<",
"WebSphereBeanDeploymentArchive",
">",
"bdas",
")",
"throws",
"CDIException",
"{",
"for",
"(",
"WebSphereBeanDeploymentArchive",
"bda",
":",
"bdas",
")",
"{",
"addBeanDeploymentArchive",
... | Add a Set of BDAs to the deployment
@param bdas the BDAs to add
@throws CDIException | [
"Add",
"a",
"Set",
"of",
"BDAs",
"to",
"the",
"deployment"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L578-L583 |
65,332 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.scan | @Override
public void scan() throws CDIException {
Collection<WebSphereBeanDeploymentArchive> allBDAs = new ArrayList<WebSphereBeanDeploymentArchive>(deploymentDBAs.values());
for (WebSphereBeanDeploymentArchive bda : allBDAs) {
bda.scanForBeanDefiningAnnotations(true);
}
... | java | @Override
public void scan() throws CDIException {
Collection<WebSphereBeanDeploymentArchive> allBDAs = new ArrayList<WebSphereBeanDeploymentArchive>(deploymentDBAs.values());
for (WebSphereBeanDeploymentArchive bda : allBDAs) {
bda.scanForBeanDefiningAnnotations(true);
}
... | [
"@",
"Override",
"public",
"void",
"scan",
"(",
")",
"throws",
"CDIException",
"{",
"Collection",
"<",
"WebSphereBeanDeploymentArchive",
">",
"allBDAs",
"=",
"new",
"ArrayList",
"<",
"WebSphereBeanDeploymentArchive",
">",
"(",
"deploymentDBAs",
".",
"values",
"(",
... | Scan all the BDAs in the deployment to see if there are any bean classes.
This method must be called before scanForEjbEndpoints() and before we try to do
any real work with the deployment or the BDAs
@throws CDIException | [
"Scan",
"all",
"the",
"BDAs",
"in",
"the",
"deployment",
"to",
"see",
"if",
"there",
"are",
"any",
"bean",
"classes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L593-L604 |
65,333 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.initializeInjectionServices | @Override
public void initializeInjectionServices() throws CDIException {
Set<ReferenceContext> cdiReferenceContexts = new HashSet<ReferenceContext>();
//first we need to initialize the injection service and collect the reference contexts and the injection classes
for (WebSphereBeanDeploym... | java | @Override
public void initializeInjectionServices() throws CDIException {
Set<ReferenceContext> cdiReferenceContexts = new HashSet<ReferenceContext>();
//first we need to initialize the injection service and collect the reference contexts and the injection classes
for (WebSphereBeanDeploym... | [
"@",
"Override",
"public",
"void",
"initializeInjectionServices",
"(",
")",
"throws",
"CDIException",
"{",
"Set",
"<",
"ReferenceContext",
">",
"cdiReferenceContexts",
"=",
"new",
"HashSet",
"<",
"ReferenceContext",
">",
"(",
")",
";",
"//first we need to initialize t... | Initialize the Resource Injection Service with each BDA's bean classes.
This method must be called after scanForBeans() and scanForEjbEndpoints() but before we try to do
any real work with the deployment or the BDAs
@throws CDIException | [
"Initialize",
"the",
"Resource",
"Injection",
"Service",
"with",
"each",
"BDA",
"s",
"bean",
"classes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L614-L637 |
65,334 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java | WebSphereCDIDeploymentImpl.shutdown | @Override
public void shutdown() {
if (this.bootstrap != null) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
bootstrap.shutdown();
return null;
}
});... | java | @Override
public void shutdown() {
if (this.bootstrap != null) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
bootstrap.shutdown();
return null;
}
});... | [
"@",
"Override",
"public",
"void",
"shutdown",
"(",
")",
"{",
"if",
"(",
"this",
".",
"bootstrap",
"!=",
"null",
")",
"{",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Void",
">",
"(",
")",
"{",
"@",
"Override",
"public"... | Shutdown and clean up the whole deployment. The deployment will not be usable after this call has been made. | [
"Shutdown",
"and",
"clean",
"up",
"the",
"whole",
"deployment",
".",
"The",
"deployment",
"will",
"not",
"be",
"usable",
"after",
"this",
"call",
"has",
"been",
"made",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L642-L664 |
65,335 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/tai/SocialLoginTAI.java | SocialLoginTAI.isConfigValid | boolean isConfigValid(ConvergedClientConfig config) {
boolean valid = true;
String clientId = config.getClientId();
String clientSecret = config.getClientSecret();
String authorizationEndpoint = config.getAuthorizationEndpointUrl();
String jwksUri = config.getJwkEndpointUrl();
... | java | boolean isConfigValid(ConvergedClientConfig config) {
boolean valid = true;
String clientId = config.getClientId();
String clientSecret = config.getClientSecret();
String authorizationEndpoint = config.getAuthorizationEndpointUrl();
String jwksUri = config.getJwkEndpointUrl();
... | [
"boolean",
"isConfigValid",
"(",
"ConvergedClientConfig",
"config",
")",
"{",
"boolean",
"valid",
"=",
"true",
";",
"String",
"clientId",
"=",
"config",
".",
"getClientId",
"(",
")",
";",
"String",
"clientSecret",
"=",
"config",
".",
"getClientSecret",
"(",
")... | Check for some things that will always fail and emit message about bad config.
Do here so 1) classic oidc messages don't change and 2) put error message closer in log to failure.
@param config
@return true if config is valid | [
"Check",
"for",
"some",
"things",
"that",
"will",
"always",
"fail",
"and",
"emit",
"message",
"about",
"bad",
"config",
".",
"Do",
"here",
"so",
"1",
")",
"classic",
"oidc",
"messages",
"don",
"t",
"change",
"and",
"2",
")",
"put",
"error",
"message",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/tai/SocialLoginTAI.java#L550-L580 |
65,336 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.cleanOutBifurcatedMessages | protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[]{new Integer(hashCo... | java | protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[]{new Integer(hashCo... | [
"protected",
"void",
"cleanOutBifurcatedMessages",
"(",
"BifurcatedConsumerSessionImpl",
"owner",
",",
"boolean",
"bumpRedeliveryOnClose",
")",
"throws",
"SIResourceException",
",",
"SISessionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"("... | When a bifurcated consumer is closed all locked messages owned by that consumer must
be unlocked
@param owner
@throws SIResourceException
@throws SISessionDroppedException | [
"When",
"a",
"bifurcated",
"consumer",
"is",
"closed",
"all",
"locked",
"messages",
"owned",
"by",
"that",
"consumer",
"must",
"be",
"unlocked"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L741-L798 |
65,337 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.getNumberOfLockedMessages | protected int getNumberOfLockedMessages()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getNumberOfLockedMessages");
int count = 0;
synchronized(this)
{
LMEMessage message;
message = firstMsg;
while(message != null)
{
count... | java | protected int getNumberOfLockedMessages()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getNumberOfLockedMessages");
int count = 0;
synchronized(this)
{
LMEMessage message;
message = firstMsg;
while(message != null)
{
count... | [
"protected",
"int",
"getNumberOfLockedMessages",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getNumberOfLockedMessages\"",
")",
";... | Return the number of locked messages that are part of this locked message enumeration.
The count will start from thr firstMsg unlike th getRemainingMessageCount which starts
from the currentMsg.
@return the number of locked messages | [
"Return",
"the",
"number",
"of",
"locked",
"messages",
"that",
"are",
"part",
"of",
"this",
"locked",
"message",
"enumeration",
".",
"The",
"count",
"will",
"start",
"from",
"thr",
"firstMsg",
"unlike",
"th",
"getRemainingMessageCount",
"which",
"starts",
"from"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1073-L1095 |
65,338 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.removeMessage | protected void removeMessage(LMEMessage message)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeMessage", new Object[] {new Integer(hashCode()), message, this });
// If this was the message we entered the callback with we need
// to move the start point ba... | java | protected void removeMessage(LMEMessage message)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeMessage", new Object[] {new Integer(hashCode()), message, this });
// If this was the message we entered the callback with we need
// to move the start point ba... | [
"protected",
"void",
"removeMessage",
"(",
"LMEMessage",
"message",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeMessage\"",
","... | Remove a message object from the list
@param message | [
"Remove",
"a",
"message",
"object",
"from",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1755-L1821 |
65,339 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.resetCallbackCursor | protected void resetCallbackCursor() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetCallbackCursor", new Integer(hashCode()));
synchronized(this)
{
unlockAllUnread();
callbackEntryMsg = last... | java | protected void resetCallbackCursor() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetCallbackCursor", new Integer(hashCode()));
synchronized(this)
{
unlockAllUnread();
callbackEntryMsg = last... | [
"protected",
"void",
"resetCallbackCursor",
"(",
")",
"throws",
"SIResourceException",
",",
"SISessionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry"... | This is called when a consumeMessages call has completed, it returns the
LME to a consistent state ready for the next consumeMessages.
This will unlock any messages that were locked on this LME that haven't been read.
@throws SISessionDroppedException | [
"This",
"is",
"called",
"when",
"a",
"consumeMessages",
"call",
"has",
"completed",
"it",
"returns",
"the",
"LME",
"to",
"a",
"consistent",
"state",
"ready",
"for",
"the",
"next",
"consumeMessages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1835-L1853 |
65,340 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.setPropertiesInMessage | final JsMessage setPropertiesInMessage(LMEMessage theMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setPropertiesInMessage", theMessage);
boolean copyMade = false;
// If this is pubsub we share this message with other subscribers so we have
// to... | java | final JsMessage setPropertiesInMessage(LMEMessage theMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setPropertiesInMessage", theMessage);
boolean copyMade = false;
// If this is pubsub we share this message with other subscribers so we have
// to... | [
"final",
"JsMessage",
"setPropertiesInMessage",
"(",
"LMEMessage",
"theMessage",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setPropert... | Sets the redelivered count and the message wait time if required.
Copies the message if required
@param theMessage
@return | [
"Sets",
"the",
"redelivered",
"count",
"and",
"the",
"message",
"wait",
"time",
"if",
"required",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1913-L2009 |
65,341 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.unlockAll | protected void unlockAll(boolean closingSession) throws SIResourceException, SIMPMessageNotLockedException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockAll", new Object[]{new Integer(hashCode()),this});
int unlockedMessages = 0;
... | java | protected void unlockAll(boolean closingSession) throws SIResourceException, SIMPMessageNotLockedException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockAll", new Object[]{new Integer(hashCode()),this});
int unlockedMessages = 0;
... | [
"protected",
"void",
"unlockAll",
"(",
"boolean",
"closingSession",
")",
"throws",
"SIResourceException",
",",
"SIMPMessageNotLockedException",
",",
"SISessionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"... | Unlock all the messages in the list
@throws SISessionDroppedException
@throws SIStoreException | [
"Unlock",
"all",
"the",
"messages",
"in",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L2076-L2186 |
65,342 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java | AbstractLockedMessageEnumeration.unlockAllUnread | private void unlockAllUnread() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockAllUnread", new Object[] { new Integer(hashCode()), this });
int unlockedMessages = 0;
synchronized(this)
{
messa... | java | private void unlockAllUnread() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockAllUnread", new Object[] { new Integer(hashCode()), this });
int unlockedMessages = 0;
synchronized(this)
{
messa... | [
"private",
"void",
"unlockAllUnread",
"(",
")",
"throws",
"SIResourceException",
",",
"SISessionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(... | Method to unlock all messages which haven't been read
@param incrementRedeliveryCount
@throws SISessionDroppedException | [
"Method",
"to",
"unlock",
"all",
"messages",
"which",
"haven",
"t",
"been",
"read"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L2195-L2268 |
65,343 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapView.java | AbstractMapView.containsValue | public boolean containsValue(Token value,
Transaction transaction)
throws ObjectManagerException
{
try {
for (Iterator iterator = entrySet().iterator();;) {
Entry entry = (Entry) iterator.next(transaction);
Toke... | java | public boolean containsValue(Token value,
Transaction transaction)
throws ObjectManagerException
{
try {
for (Iterator iterator = entrySet().iterator();;) {
Entry entry = (Entry) iterator.next(transaction);
Toke... | [
"public",
"boolean",
"containsValue",
"(",
"Token",
"value",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"try",
"{",
"for",
"(",
"Iterator",
"iterator",
"=",
"entrySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
";",
")",... | Determines if the Map contains the Token
@param Token whose presence in this map is to be tested.
@param Transaction which determines visibility of Entries in the Map.
@return Boolean <tt>true</tt> if the map contains at least one mapping to the Token visible to the Transaction.
@exception ObjectManagerException. | [
"Determines",
"if",
"the",
"Map",
"contains",
"the",
"Token"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapView.java#L90-L107 |
65,344 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java | AIStream.countAllMessagesOnStream | public long countAllMessagesOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "countAllMessagesOnStream");
long count=0;
_targetStream.setCursor(0);
// Get the first TickRange
TickRange tr = _targetStream.getNext();
while (tr.endstamp < RangeL... | java | public long countAllMessagesOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "countAllMessagesOnStream");
long count=0;
_targetStream.setCursor(0);
// Get the first TickRange
TickRange tr = _targetStream.getNext();
while (tr.endstamp < RangeL... | [
"public",
"long",
"countAllMessagesOnStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"countAllMessagesOnStream\"",
")",
";",
... | Counts the number of messages in the value state on the stream.
NOTE: this method is not synchronized - the client should protect
against concurrent access.
@return a long for the number of messages in 'value' on the stream. | [
"Counts",
"the",
"number",
"of",
"messages",
"in",
"the",
"value",
"state",
"on",
"the",
"stream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L322-L351 |
65,345 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java | AIStream.incrementUnlockCount | public final void incrementUnlockCount(long tick)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "incrementUnlockCount", Long.valueOf(tick));
_targetStream.setCursor(tick);
TickRange tickRange = _targetStream.getNext();
if (tickRange.type == TickRange.Value)
... | java | public final void incrementUnlockCount(long tick)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "incrementUnlockCount", Long.valueOf(tick));
_targetStream.setCursor(tick);
TickRange tickRange = _targetStream.getNext();
if (tickRange.type == TickRange.Value)
... | [
"public",
"final",
"void",
"incrementUnlockCount",
"(",
"long",
"tick",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"incrementUnlockCo... | sets the unlock count of the value tick's msg.
@param tick The tick in the stream | [
"sets",
"the",
"unlock",
"count",
"of",
"the",
"value",
"tick",
"s",
"msg",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L537-L553 |
65,346 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java | AIStream.processRequestAck | public void processRequestAck(long tick, long dmeVersion)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"processRequestAck",
new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)});
// Only consider non-stale request acks
if (dmeVe... | java | public void processRequestAck(long tick, long dmeVersion)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"processRequestAck",
new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)});
// Only consider non-stale request acks
if (dmeVe... | [
"public",
"void",
"processRequestAck",
"(",
"long",
"tick",
",",
"long",
"dmeVersion",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"... | A ControlRequestAck message tells the RME to slow down its get repetition timeout since we now know that the
DME has received the request. | [
"A",
"ControlRequestAck",
"message",
"tells",
"the",
"RME",
"to",
"slow",
"down",
"its",
"get",
"repetition",
"timeout",
"since",
"we",
"now",
"know",
"that",
"the",
"DME",
"has",
"received",
"the",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1246-L1290 |
65,347 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java | AIStream.processResetRequestAck | public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion));
// Only consider non-stale request acks
if (dmeVersion >= _latestDMEVersion)
... | java | public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion));
// Only consider non-stale request acks
if (dmeVersion >= _latestDMEVersion)
... | [
"public",
"void",
"processResetRequestAck",
"(",
"long",
"dmeVersion",
",",
"SendDispatcher",
"sendDispatcher",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | A ControlResetRequestAck message tells the RME to start re-sending get requests with an eager timeout since
the DME has crashed and recovered. | [
"A",
"ControlResetRequestAck",
"message",
"tells",
"the",
"RME",
"to",
"start",
"re",
"-",
"sending",
"get",
"requests",
"with",
"an",
"eager",
"timeout",
"since",
"the",
"DME",
"has",
"crashed",
"and",
"recovered",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1297-L1314 |
65,348 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java | AIStream.getAnycastInputHandler | public AnycastInputHandler getAnycastInputHandler()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getAnycastInputHandler");
SibTr.exit(tc, "getAnycastInputHandler", _parent);
}
return _parent;
} | java | public AnycastInputHandler getAnycastInputHandler()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getAnycastInputHandler");
SibTr.exit(tc, "getAnycastInputHandler", _parent);
}
return _parent;
} | [
"public",
"AnycastInputHandler",
"getAnycastInputHandler",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getAnycastInputHandler\"... | Returns the AnycastInputHandler associated with this AIStream
@return | [
"Returns",
"the",
"AnycastInputHandler",
"associated",
"with",
"this",
"AIStream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1331-L1339 |
65,349 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java | SibRaEndpointActivation.messagingEngineStarting | public void messagingEngineStarting(final JsMessagingEngine messagingEngine) {
final String methodName = "messagingEngineStarting";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
try {
... | java | public void messagingEngineStarting(final JsMessagingEngine messagingEngine) {
final String methodName = "messagingEngineStarting";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
try {
... | [
"public",
"void",
"messagingEngineStarting",
"(",
"final",
"JsMessagingEngine",
"messagingEngine",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"messagingEngineStarting\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
"."... | Called to indicate that a messaging engine has been started. Adds it to
the set of active messaging engines.
@param messagingEngine
the messaging engine that is starting | [
"Called",
"to",
"indicate",
"that",
"a",
"messaging",
"engine",
"has",
"been",
"started",
".",
"Adds",
"it",
"to",
"the",
"set",
"of",
"active",
"messaging",
"engines",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java#L554-L585 |
65,350 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java | SibRaEndpointActivation.messagingEngineStopping | public void messagingEngineStopping(
final JsMessagingEngine messagingEngine, final int mode) {
final String methodName = "messagingEngineStopping";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, new Object[] {
... | java | public void messagingEngineStopping(
final JsMessagingEngine messagingEngine, final int mode) {
final String methodName = "messagingEngineStopping";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, new Object[] {
... | [
"public",
"void",
"messagingEngineStopping",
"(",
"final",
"JsMessagingEngine",
"messagingEngine",
",",
"final",
"int",
"mode",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"messagingEngineStopping\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Called to indicate that a messaging engine is stopping. Removes it from
the set of active messaging engines and closes any open connection.
@param messagingEngine
the messaging engine that is stopping
@param mode
the stop mode | [
"Called",
"to",
"indicate",
"that",
"a",
"messaging",
"engine",
"is",
"stopping",
".",
"Removes",
"it",
"from",
"the",
"set",
"of",
"active",
"messaging",
"engines",
"and",
"closes",
"any",
"open",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java#L596-L611 |
65,351 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.classNotFound | private SQLException classNotFound(Object interfaceNames, Set<String> packagesSearched, String dsId, Throwable cause) {
if (cause instanceof SQLException)
return (SQLException) cause;
// TODO need an appropriate message when sharedLib is null and classes are loaded from the application
... | java | private SQLException classNotFound(Object interfaceNames, Set<String> packagesSearched, String dsId, Throwable cause) {
if (cause instanceof SQLException)
return (SQLException) cause;
// TODO need an appropriate message when sharedLib is null and classes are loaded from the application
... | [
"private",
"SQLException",
"classNotFound",
"(",
"Object",
"interfaceNames",
",",
"Set",
"<",
"String",
">",
"packagesSearched",
",",
"String",
"dsId",
",",
"Throwable",
"cause",
")",
"{",
"if",
"(",
"cause",
"instanceof",
"SQLException",
")",
"return",
"(",
"... | Returns an exception to raise when the data source class is not found.
@param interfaceNames names of data source interface(s) or java.sql.Driver for which we could not find an implementation class.
@param packagesSearched packages in or beneath which we have searched for data source implementation classes.
@param dsI... | [
"Returns",
"an",
"exception",
"to",
"raise",
"when",
"the",
"data",
"source",
"class",
"is",
"not",
"found",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L206-L221 |
65,352 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.createConnectionPoolDataSource | public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.rea... | java | public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.rea... | [
"public",
"ConnectionPoolDataSource",
"createConnectionPoolDataSource",
"(",
"Properties",
"props",
",",
"String",
"dataSourceID",
")",
"throws",
"SQLException",
"{",
"lock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"!",
"i... | Create a ConnectionPoolDataSource
@param props typed data source properties
@param dataSourceID identifier for the data source config
@return the data source
@throws SQLException if an error occurs | [
"Create",
"a",
"ConnectionPoolDataSource"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L510-L556 |
65,353 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.createDataSource | public DataSource createDataSource(Properties props, String dataSourceID) throws SQLException {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.readLock().unlock();
... | java | public DataSource createDataSource(Properties props, String dataSourceID) throws SQLException {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.readLock().unlock();
... | [
"public",
"DataSource",
"createDataSource",
"(",
"Properties",
"props",
",",
"String",
"dataSourceID",
")",
"throws",
"SQLException",
"{",
"lock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"!",
"isInitialized",
")",
"try... | Create a DataSource
@param props typed data source properties
@param dataSourceID identifier for the data source config
@return the data source
@throws SQLException if an error occurs | [
"Create",
"a",
"DataSource"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L566-L607 |
65,354 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.getDriver | public Object getDriver(String url, Properties props, String dataSourceID) throws Exception {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.readLock().unlock();
... | java | public Object getDriver(String url, Properties props, String dataSourceID) throws Exception {
lock.readLock().lock();
try {
if (!isInitialized)
try {
// Switch to write lock for lazy initialization
lock.readLock().unlock();
... | [
"public",
"Object",
"getDriver",
"(",
"String",
"url",
",",
"Properties",
"props",
",",
"String",
"dataSourceID",
")",
"throws",
"Exception",
"{",
"lock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"!",
"isInitialized",... | Load the Driver instance for the specified URL.
@param url JDBC driver URL.
@return the driver
@throws Exception if an error occurs | [
"Load",
"the",
"Driver",
"instance",
"for",
"the",
"specified",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L667-L703 |
65,355 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.getClasspath | public static Collection<String> getClasspath(Library sharedLib, boolean upperCaseFileNamesOnly) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "getClasspath", sharedLib);
Collection<String> classpath = new LinkedList<Str... | java | public static Collection<String> getClasspath(Library sharedLib, boolean upperCaseFileNamesOnly) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "getClasspath", sharedLib);
Collection<String> classpath = new LinkedList<Str... | [
"public",
"static",
"Collection",
"<",
"String",
">",
"getClasspath",
"(",
"Library",
"sharedLib",
",",
"boolean",
"upperCaseFileNamesOnly",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trac... | Returns a list of file names for the specified library.
@param sharedLib library
@param upperCaseFileNamesOnly indicates whether or not to include file names only (not paths) and to convert the names to all upper case.
@return list of file names for the library. If the library is null, returns an empty list. | [
"Returns",
"a",
"list",
"of",
"file",
"names",
"for",
"the",
"specified",
"library",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L758-L775 |
65,356 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.modified | private void modified(Dictionary<String, ?> newProperties, boolean logMessage) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "modified", newProperties);
boolean replaced = false;
lock.writeLock().lock();
... | java | private void modified(Dictionary<String, ?> newProperties, boolean logMessage) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "modified", newProperties);
boolean replaced = false;
lock.writeLock().lock();
... | [
"private",
"void",
"modified",
"(",
"Dictionary",
"<",
"String",
",",
"?",
">",
"newProperties",
",",
"boolean",
"logMessage",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
... | Clears the configuration of this JDBCDriverService so that it can
lazily initialize with the new configuration on next use.
@param newProperties new properties to use. Can be null if there are no changes to existing properties.
@param logMessage indicates whether or not to log a message about the update. | [
"Clears",
"the",
"configuration",
"of",
"this",
"JDBCDriverService",
"so",
"that",
"it",
"can",
"lazily",
"initialize",
"with",
"the",
"new",
"configuration",
"on",
"next",
"use",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L903-L942 |
65,357 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.setProperty | private static void setProperty(Object obj, PropertyDescriptor pd, String value,
boolean doTraceValue) throws Exception {
Object param = null;
String propName = pd.getName();
if (tc.isDebugEnabled()) {
if("URL".equals(propName) || "url".equals(prop... | java | private static void setProperty(Object obj, PropertyDescriptor pd, String value,
boolean doTraceValue) throws Exception {
Object param = null;
String propName = pd.getName();
if (tc.isDebugEnabled()) {
if("URL".equals(propName) || "url".equals(prop... | [
"private",
"static",
"void",
"setProperty",
"(",
"Object",
"obj",
",",
"PropertyDescriptor",
"pd",
",",
"String",
"value",
",",
"boolean",
"doTraceValue",
")",
"throws",
"Exception",
"{",
"Object",
"param",
"=",
"null",
";",
"String",
"propName",
"=",
"pd",
... | Handles the setting of any property for which a public single-parameter setter exists on
the DataSource and for which the property data type is either a primitive or has a
single-parameter String constructor.
@param obj the Object to set the property on.
@param pd the PropertyDescriptor describing the property to set.... | [
"Handles",
"the",
"setting",
"of",
"any",
"property",
"for",
"which",
"a",
"public",
"single",
"-",
"parameter",
"setter",
"exists",
"on",
"the",
"DataSource",
"and",
"for",
"which",
"the",
"property",
"data",
"type",
"is",
"either",
"a",
"primitive",
"or",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L963-L1014 |
65,358 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.setSharedLib | protected void setSharedLib(Library lib) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setSharedLib", lib);
sharedLib = lib;
} | java | protected void setSharedLib(Library lib) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setSharedLib", lib);
sharedLib = lib;
} | [
"protected",
"void",
"setSharedLib",
"(",
"Library",
"lib",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"this",
",",
"tc",
",",
"\"setSharedLib\"",
... | Declarative Services method for setting the SharedLibrary service
@param lib the service | [
"Declarative",
"Services",
"method",
"for",
"setting",
"the",
"SharedLibrary",
"service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1021-L1025 |
65,359 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.shutdownDerbyEmbedded | private void shutdownDerbyEmbedded() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "shutdownDerbyEmbedded", classloader, embDerbyRefCount);
// Shut down Derby embedded if the reference count drops to 0
if (... | java | private void shutdownDerbyEmbedded() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "shutdownDerbyEmbedded", classloader, embDerbyRefCount);
// Shut down Derby embedded if the reference count drops to 0
if (... | [
"private",
"void",
"shutdownDerbyEmbedded",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"this",... | Shut down the Derby system if the reference count for the class loader drops to 0. | [
"Shut",
"down",
"the",
"Derby",
"system",
"if",
"the",
"reference",
"count",
"for",
"the",
"class",
"loader",
"drops",
"to",
"0",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1030-L1055 |
65,360 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java | JDBCDriverService.unsetSharedLib | protected void unsetSharedLib(Library lib) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "unsetSharedLib", lib);
modified(null, false);
} | java | protected void unsetSharedLib(Library lib) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "unsetSharedLib", lib);
modified(null, false);
} | [
"protected",
"void",
"unsetSharedLib",
"(",
"Library",
"lib",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"this",
",",
"tc",
",",
"\"unsetSharedLib\... | Declarative Services method for unsetting the SharedLibrary service
@param lib the service | [
"Declarative",
"Services",
"method",
"for",
"unsetting",
"the",
"SharedLibrary",
"service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1069-L1073 |
65,361 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMetaDataImpl.java | JmsMetaDataImpl.retrieveManifestData | private static void retrieveManifestData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "retrieveManifestData");
try {
// Set up the defaults that will be overriden if possible.
JmsMetaDataImpl.setProblemDefaults();
... | java | private static void retrieveManifestData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "retrieveManifestData");
try {
// Set up the defaults that will be overriden if possible.
JmsMetaDataImpl.setProblemDefaults();
... | [
"private",
"static",
"void",
"retrieveManifestData",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"retrieveManifestData\"",
")",
"... | This method retrieves the information stored in the jar manifest and uses
it to populate the implementation information to be returned to the user.
If the build level is not available in the manifest, the BuildInfo class
is used to get the value instead. | [
"This",
"method",
"retrieves",
"the",
"information",
"stored",
"in",
"the",
"jar",
"manifest",
"and",
"uses",
"it",
"to",
"populate",
"the",
"implementation",
"information",
"to",
"be",
"returned",
"to",
"the",
"user",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMetaDataImpl.java#L184-L276 |
65,362 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.nextLocked | public SIBusMessage nextLocked()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabl... | java | public SIBusMessage nextLocked()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabl... | [
"public",
"SIBusMessage",
"nextLocked",
"(",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIError... | Returns the next available locked message in the enumeration.
A value of null is returned if there is no next message.
@see com.ibm.wsspi.sib.core.LockedMessageEnumeration#nextLocked() | [
"Returns",
"the",
"next",
"available",
"locked",
"message",
"in",
"the",
"enumeration",
".",
"A",
"value",
"of",
"null",
"is",
"returned",
"if",
"there",
"is",
"no",
"next",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L139-L166 |
65,363 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.unlockCurrent | public void unlockCurrent()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIIncorrectCallException, SIMessageNotLockedException,
... | java | public void unlockCurrent()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIIncorrectCallException, SIMessageNotLockedException,
... | [
"public",
"void",
"unlockCurrent",
"(",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIIncorrectC... | Unlocks the current message.
@see com.ibm.wsspi.sib.core.LockedMessageEnumeration#unlockCurrent() | [
"Unlocks",
"the",
"current",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L173-L207 |
65,364 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.deleteCurrent | public void deleteCurrent(SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIIncorrectCallExce... | java | public void deleteCurrent(SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIIncorrectCallExce... | [
"public",
"void",
"deleteCurrent",
"(",
"SITransaction",
"transaction",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionLo... | Deletes the current message.
@param transaction
@see com.ibm.wsspi.sib.core.LockedMessageEnumeration#deleteCurrent(SITransaction) | [
"Deletes",
"the",
"current",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L216-L278 |
65,365 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.deleteSeen | public void deleteSeen(SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIIncorrectCallExcepti... | java | public void deleteSeen(SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIIncorrectCallExcepti... | [
"public",
"void",
"deleteSeen",
"(",
"SITransaction",
"transaction",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionLostE... | Deletes all messages seen so far.
@param transaction
@see com.ibm.wsspi.sib.core.LockedMessageEnumeration#deleteSeen(SITransaction) | [
"Deletes",
"all",
"messages",
"seen",
"so",
"far",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L286-L356 |
65,366 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.deleteMessages | private void deleteMessages(JsMessage[] messagesToDelete, SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
... | java | private void deleteMessages(JsMessage[] messagesToDelete, SITransaction transaction)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
... | [
"private",
"void",
"deleteMessages",
"(",
"JsMessage",
"[",
"]",
"messagesToDelete",
",",
"SITransaction",
"transaction",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedExceptio... | This private method actually performs the delete by asking the conversation helper
to flow the request across the wire. However, this method does not obtain any locks
required to perform this operation and as such should be called by a method that does
do this.
@param messagesToDelete
@param transaction
@throws SICom... | [
"This",
"private",
"method",
"actually",
"performs",
"the",
"delete",
"by",
"asking",
"the",
"conversation",
"helper",
"to",
"flow",
"the",
"request",
"across",
"the",
"wire",
".",
"However",
"this",
"method",
"does",
"not",
"obtain",
"any",
"locks",
"required... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L371-L407 |
65,367 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.resetCursor | public void resetCursor()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled(... | java | public void resetCursor()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled(... | [
"public",
"void",
"resetCursor",
"(",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIErrorExcepti... | This method will reset the cursor and allow the LME to be traversed again. Note that any
messages that were deleted or unlocked will not be available again. | [
"This",
"method",
"will",
"reset",
"the",
"cursor",
"and",
"allow",
"the",
"LME",
"to",
"be",
"traversed",
"again",
".",
"Note",
"that",
"any",
"messages",
"that",
"were",
"deleted",
"or",
"unlocked",
"will",
"not",
"be",
"available",
"again",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L416-L427 |
65,368 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.getRemainingMessageCount | public int getRemainingMessageCount()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getRemainingMessageCount");
che... | java | public int getRemainingMessageCount()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getRemainingMessageCount");
che... | [
"public",
"int",
"getRemainingMessageCount",
"(",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
... | Returns the amount of messages left in the locked message enumeration.
@return int | [
"Returns",
"the",
"amount",
"of",
"messages",
"left",
"in",
"the",
"locked",
"message",
"enumeration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L435-L446 |
65,369 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.getUnSeenMessageCount | private int getUnSeenMessageCount()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getUnseenMessageCount");
int remain = 0;
for (int x = nextIndex; x < messages.length; x++)
{
if (messages[x] != null) remain++;
}
if... | java | private int getUnSeenMessageCount()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getUnseenMessageCount");
int remain = 0;
for (int x = nextIndex; x < messages.length; x++)
{
if (messages[x] != null) remain++;
}
if... | [
"private",
"int",
"getUnSeenMessageCount",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getUnseenMessageCount\"",
")... | Private method to determine how many messages have not been seen as yet. It does this by
looking at the number of non-null elements from the current item to the end of the array.
@return Returns the number of unseen items. | [
"Private",
"method",
"to",
"determine",
"how",
"many",
"messages",
"have",
"not",
"been",
"seen",
"as",
"yet",
".",
"It",
"does",
"this",
"by",
"looking",
"at",
"the",
"number",
"of",
"non",
"-",
"null",
"elements",
"from",
"the",
"current",
"item",
"to"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L479-L491 |
65,370 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.unlockUnseen | public void unlockUnseen()
throws SIResourceException, SIConnectionDroppedException, SIConnectionLostException, // F247845
SIIncorrectCallException, SIMessageNotLockedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"unlockUnseen");
... | java | public void unlockUnseen()
throws SIResourceException, SIConnectionDroppedException, SIConnectionLostException, // F247845
SIIncorrectCallException, SIMessageNotLockedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"unlockUnseen");
... | [
"public",
"void",
"unlockUnseen",
"(",
")",
"throws",
"SIResourceException",
",",
"SIConnectionDroppedException",
",",
"SIConnectionLostException",
",",
"// F247845",
"SIIncorrectCallException",
",",
"SIMessageNotLockedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isA... | begin F219476.2 | [
"begin",
"F219476",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L499-L540 |
65,371 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.getConsumerSession | public ConsumerSession getConsumerSession()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getConsumerSession"); //... | java | public ConsumerSession getConsumerSession()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getConsumerSession"); //... | [
"public",
"ConsumerSession",
"getConsumerSession",
"(",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | Returns the consumer session this enumeration contains messages
delivered to.
@see com.ibm.wsspi.sib.core.LockedMessageEnumeration#getConsumerSession() | [
"Returns",
"the",
"consumer",
"session",
"this",
"enumeration",
"contains",
"messages",
"delivered",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L550-L559 |
65,372 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java | LockedMessageEnumerationImpl.markInvalid | protected void markInvalid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"markInvalid");
invalid = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,"markInvalid");
} | java | protected void markInvalid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"markInvalid");
invalid = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,"markInvalid");
} | [
"protected",
"void",
"markInvalid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"markInvalid\"",
")",
";",
"inva... | Marks the enumeration as invalid. This is called once the asynchronous
consumer callback returns to ensure that this locked message enumeration
cannot be used from outside the callback. | [
"Marks",
"the",
"enumeration",
"as",
"invalid",
".",
"This",
"is",
"called",
"once",
"the",
"asynchronous",
"consumer",
"callback",
"returns",
"to",
"ensure",
"that",
"this",
"locked",
"message",
"enumeration",
"cannot",
"be",
"used",
"from",
"outside",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L595-L600 |
65,373 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/HTTPSRedirectHandler.java | HTTPSRedirectHandler.shouldRedirectToHttps | public boolean shouldRedirectToHttps(WebRequest webRequest) {
HttpServletRequest req = webRequest.getHttpServletRequest();
return !req.isSecure() && webRequest.isSSLRequired();
} | java | public boolean shouldRedirectToHttps(WebRequest webRequest) {
HttpServletRequest req = webRequest.getHttpServletRequest();
return !req.isSecure() && webRequest.isSSLRequired();
} | [
"public",
"boolean",
"shouldRedirectToHttps",
"(",
"WebRequest",
"webRequest",
")",
"{",
"HttpServletRequest",
"req",
"=",
"webRequest",
".",
"getHttpServletRequest",
"(",
")",
";",
"return",
"!",
"req",
".",
"isSecure",
"(",
")",
"&&",
"webRequest",
".",
"isSSL... | Determines if HTTPS redirect is required for this request.
@param webRequest
@return {@code true} if the request requires SSL but the request is not secure, {@code false} otherwise. | [
"Determines",
"if",
"HTTPS",
"redirect",
"is",
"required",
"for",
"this",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/HTTPSRedirectHandler.java#L34-L37 |
65,374 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/HTTPSRedirectHandler.java | HTTPSRedirectHandler.getHTTPSRedirectWebReply | public WebReply getHTTPSRedirectWebReply(HttpServletRequest req) {
Integer httpsPort = (Integer) SRTServletRequestUtils.getPrivateAttribute(req, "SecurityRedirectPort");
if (httpsPort == null) {
Tr.error(tc, "SSL_PORT_IS_NULL");
// return a 403 if we don't know what the port is
... | java | public WebReply getHTTPSRedirectWebReply(HttpServletRequest req) {
Integer httpsPort = (Integer) SRTServletRequestUtils.getPrivateAttribute(req, "SecurityRedirectPort");
if (httpsPort == null) {
Tr.error(tc, "SSL_PORT_IS_NULL");
// return a 403 if we don't know what the port is
... | [
"public",
"WebReply",
"getHTTPSRedirectWebReply",
"(",
"HttpServletRequest",
"req",
")",
"{",
"Integer",
"httpsPort",
"=",
"(",
"Integer",
")",
"SRTServletRequestUtils",
".",
"getPrivateAttribute",
"(",
"req",
",",
"\"SecurityRedirectPort\"",
")",
";",
"if",
"(",
"h... | Get the new URL for the redirect which contains the https port.
@param req
@return WebReply to the redirect URL, or a 403 is any unexpected behaviour occurs | [
"Get",
"the",
"new",
"URL",
"for",
"the",
"redirect",
"which",
"contains",
"the",
"https",
"port",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/HTTPSRedirectHandler.java#L45-L79 |
65,375 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java | CATMainConsumer.receive | public void receive(int requestNumber,
int tran,
long timeout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receive",
new Object[]
{
... | java | public void receive(int requestNumber,
int tran,
long timeout)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receive",
new Object[]
{
... | [
"public",
"void",
"receive",
"(",
"int",
"requestNumber",
",",
"int",
"tran",
",",
"long",
"timeout",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(... | Performs a receive on this consumer. This is only a valid operation when the
consumer is in synchronous mode. If the sub consumer has not been set up
then this has to be created here.
@param requestNumber The JFAP request.
@param tran The transaction to use.
@param timeout The timeout for the receive. | [
"Performs",
"a",
"receive",
"on",
"this",
"consumer",
".",
"This",
"is",
"only",
"a",
"valid",
"operation",
"when",
"the",
"consumer",
"is",
"in",
"synchronous",
"mode",
".",
"If",
"the",
"sub",
"consumer",
"has",
"not",
"been",
"set",
"up",
"then",
"thi... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java#L420-L440 |
65,376 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java | CATMainConsumer.unsetAsynchConsumerCallback | public void unsetAsynchConsumerCallback(int requestNumber, boolean stoppable) //SIB0115d.comms
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unsetAsynchConsumerCallback", "requestNumber="+requestNumber+",stoppable="+stoppable);
checkNotB... | java | public void unsetAsynchConsumerCallback(int requestNumber, boolean stoppable) //SIB0115d.comms
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unsetAsynchConsumerCallback", "requestNumber="+requestNumber+",stoppable="+stoppable);
checkNotB... | [
"public",
"void",
"unsetAsynchConsumerCallback",
"(",
"int",
"requestNumber",
",",
"boolean",
"stoppable",
")",
"//SIB0115d.comms",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | This method will unset the asynch consumer callback. This means that the
client has requested that the session should be converted from asynchronous to
synchronous and so the sub consumer must be changed
@param requestNumber | [
"This",
"method",
"will",
"unset",
"the",
"asynch",
"consumer",
"callback",
".",
"This",
"means",
"that",
"the",
"client",
"has",
"requested",
"that",
"the",
"session",
"should",
"be",
"converted",
"from",
"asynchronous",
"to",
"synchronous",
"and",
"so",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java#L594-L608 |
65,377 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java | CATMainConsumer.start | public void start(int requestNumber, boolean deliverImmediately, boolean sendReply, SendListener sendListener) { //471642
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start",
new Object[]{requestNumber, deliverImmediately,sendRepl... | java | public void start(int requestNumber, boolean deliverImmediately, boolean sendReply, SendListener sendListener) { //471642
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start",
new Object[]{requestNumber, deliverImmediately,sendRepl... | [
"public",
"void",
"start",
"(",
"int",
"requestNumber",
",",
"boolean",
"deliverImmediately",
",",
"boolean",
"sendReply",
",",
"SendListener",
"sendListener",
")",
"{",
"//471642",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
"... | Start the consumer
@param requestNumber The request number which replies should be sent to.
@param deliverImmediately Whether we should deliver on this thread if we can.
@param sendReply Whether a reply is needed for this flow
@param sendListener A send listener that will be notified when the start reply is sent | [
"Start",
"the",
"consumer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java#L618-L625 |
65,378 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java | CATMainConsumer.setBifurcatedSession | public void setBifurcatedSession(BifurcatedConsumerSession sess)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBifurcatedSession", sess);
subConsumer = new CATBifurcatedConsumer(this, sess);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl... | java | public void setBifurcatedSession(BifurcatedConsumerSession sess)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBifurcatedSession", sess);
subConsumer = new CATBifurcatedConsumer(this, sess);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl... | [
"public",
"void",
"setBifurcatedSession",
"(",
"BifurcatedConsumerSession",
"sess",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | This method will put the main consumer into bifurcated mode.
@param sess The bifurcated session. | [
"This",
"method",
"will",
"put",
"the",
"main",
"consumer",
"into",
"bifurcated",
"mode",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATMainConsumer.java#L1124-L1131 |
65,379 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/AsyncBulkheadStateImpl.java | AsyncBulkheadStateImpl.tryRunNext | private void tryRunNext() {
while (runningSemaphore.tryAcquire()) {
ExecutionTask execution = queue.poll();
if (execution != null) {
// Note: we've removed the execution from the queue so we're committed to running it
// if we fail to do so for any reason,... | java | private void tryRunNext() {
while (runningSemaphore.tryAcquire()) {
ExecutionTask execution = queue.poll();
if (execution != null) {
// Note: we've removed the execution from the queue so we're committed to running it
// if we fail to do so for any reason,... | [
"private",
"void",
"tryRunNext",
"(",
")",
"{",
"while",
"(",
"runningSemaphore",
".",
"tryAcquire",
"(",
")",
")",
"{",
"ExecutionTask",
"execution",
"=",
"queue",
".",
"poll",
"(",
")",
";",
"if",
"(",
"execution",
"!=",
"null",
")",
"{",
"// Note: we'... | Attempt to run any queued executions | [
"Attempt",
"to",
"run",
"any",
"queued",
"executions"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/AsyncBulkheadStateImpl.java#L73-L91 |
65,380 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.removeExpirable | public final boolean removeExpirable(Expirable expirable) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "removeExpirable",
"objId="
+ (expirable == null ? "null" : St... | java | public final boolean removeExpirable(Expirable expirable) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "removeExpirable",
"objId="
+ (expirable == null ? "null" : St... | [
"public",
"final",
"boolean",
"removeExpirable",
"(",
"Expirable",
"expirable",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
... | Remove an Expirable reference for an item from the expiry index.
@param expirable the Expirable item for which a reference is to be removed from the expiry index.
@return true if the reference was removed from the index, false otherwise.
@throws SevereMessageStoreException | [
"Remove",
"an",
"Expirable",
"reference",
"for",
"an",
"item",
"from",
"the",
"expiry",
"index",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L198-L238 |
65,381 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.start | public final void start(long expiryInterval, JsMessagingEngine jsme) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start", "interval=" + expiryInterval + " indexSize=" + expiryIndex.size());
messagingEngine = jsme;
... | java | public final void start(long expiryInterval, JsMessagingEngine jsme) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start", "interval=" + expiryInterval + " indexSize=" + expiryIndex.size());
messagingEngine = jsme;
... | [
"public",
"final",
"void",
"start",
"(",
"long",
"expiryInterval",
",",
"JsMessagingEngine",
"jsme",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Start the expiry daemon.
@param expiryInterval An interval in milliseconds which may be set via
a custom property and if zero or more will be used to override the
default expiry interval which was set when the Expirer was created.
@throws SevereMessageStoreException | [
"Start",
"the",
"expiry",
"daemon",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L258-L332 |
65,382 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.stop | public final void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop");
synchronized (lockObject)
{
addEnabled = false; // Prevent further expirables being added
if (runEnabled)
{
runEnabl... | java | public final void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop");
synchronized (lockObject)
{
addEnabled = false; // Prevent further expirables being added
if (runEnabled)
{
runEnabl... | [
"public",
"final",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"stop\"",
")",
";",
"synchroniz... | Stop the expiry daemon. | [
"Stop",
"the",
"expiry",
"daemon",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L337-L357 |
65,383 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.remove | private final boolean remove(ExpirableReference expirableRef, boolean expired)
{
boolean reply = expiryIndex.remove();
if (reply)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Removed ("+ (expired ? "expired" : "gone")+ ")"+ " ET="+ expirable... | java | private final boolean remove(ExpirableReference expirableRef, boolean expired)
{
boolean reply = expiryIndex.remove();
if (reply)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Removed ("+ (expired ? "expired" : "gone")+ ")"+ " ET="+ expirable... | [
"private",
"final",
"boolean",
"remove",
"(",
"ExpirableReference",
"expirableRef",
",",
"boolean",
"expired",
")",
"{",
"boolean",
"reply",
"=",
"expiryIndex",
".",
"remove",
"(",
")",
";",
"if",
"(",
"reply",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"... | Remove the expirable reference from the expiry index. This will remove the
current entry pointed-to by the iterator.
@param expirableRef our reference to the expirable
@param expired true if the item is being removed after expiry, false if being
removed because it is no longer in store. Used for diagnostics only.
@re... | [
"Remove",
"the",
"expirable",
"reference",
"from",
"the",
"expiry",
"index",
".",
"This",
"will",
"remove",
"the",
"current",
"entry",
"pointed",
"-",
"to",
"by",
"the",
"iterator",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L600-L613 |
65,384 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.saveStartTime | private int saveStartTime(long time)
{
int indexUsed = diagIndex;
alarmTime[diagIndex++] = time;
if (diagIndex >= MAX_DIAG_LOG)
{
diagIndex = 0;
}
return indexUsed;
} | java | private int saveStartTime(long time)
{
int indexUsed = diagIndex;
alarmTime[diagIndex++] = time;
if (diagIndex >= MAX_DIAG_LOG)
{
diagIndex = 0;
}
return indexUsed;
} | [
"private",
"int",
"saveStartTime",
"(",
"long",
"time",
")",
"{",
"int",
"indexUsed",
"=",
"diagIndex",
";",
"alarmTime",
"[",
"diagIndex",
"++",
"]",
"=",
"time",
";",
"if",
"(",
"diagIndex",
">=",
"MAX_DIAG_LOG",
")",
"{",
"diagIndex",
"=",
"0",
";",
... | Keep last n expiry cycle start times for diagnostic dump.
@param time the time this cycle started.
@return the log index used for this entry. | [
"Keep",
"last",
"n",
"expiry",
"cycle",
"start",
"times",
"for",
"diagnostic",
"dump",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L620-L629 |
65,385 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java | Expirer.scheduleAlarm | private void scheduleAlarm(long timeOut)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "scheduleAlarm timeOut=" + timeOut);
// NB PM27294 implementation now means you cannot decrease the the timeOut if an alarm is already scheduled.
// This... | java | private void scheduleAlarm(long timeOut)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "scheduleAlarm timeOut=" + timeOut);
// NB PM27294 implementation now means you cannot decrease the the timeOut if an alarm is already scheduled.
// This... | [
"private",
"void",
"scheduleAlarm",
"(",
"long",
"timeOut",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"scheduleAlarm ... | Schedule the next alarm. Callers of this method would typically hold lockObject already.
@param timeOut the interval for the alarm. | [
"Schedule",
"the",
"next",
"alarm",
".",
"Callers",
"of",
"this",
"method",
"would",
"typically",
"hold",
"lockObject",
"already",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/expiry/Expirer.java#L635-L653 |
65,386 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.reset | public void reset() {
expirationTimeFlag = UNSET;
inactivityFlag = UNSET;
idFlag = UNSET;
priorityFlag = UNSET;
sharingPolicyFlag = UNSET;
lock = UNSET;
id = null;
timeLimit = -1;
inactivity = -1;
expirationTime = -1;
validatorExpirationTime = -1;
priority = -1;
shari... | java | public void reset() {
expirationTimeFlag = UNSET;
inactivityFlag = UNSET;
idFlag = UNSET;
priorityFlag = UNSET;
sharingPolicyFlag = UNSET;
lock = UNSET;
id = null;
timeLimit = -1;
inactivity = -1;
expirationTime = -1;
validatorExpirationTime = -1;
priority = -1;
shari... | [
"public",
"void",
"reset",
"(",
")",
"{",
"expirationTimeFlag",
"=",
"UNSET",
";",
"inactivityFlag",
"=",
"UNSET",
";",
"idFlag",
"=",
"UNSET",
";",
"priorityFlag",
"=",
"UNSET",
";",
"sharingPolicyFlag",
"=",
"UNSET",
";",
"lock",
"=",
"UNSET",
";",
"id",... | resets this EntryInfo for reuse
@ibm-private-in-use | [
"resets",
"this",
"EntryInfo",
"for",
"reuse"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L222-L245 |
65,387 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.setId | public void setId(Object id) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
/*if (idFlag == SET) {
if (tc.isDebugEnabled()) Tr.debug(tc, "Illegal State: tried to set id to "+id+
", but id was already set to "+this.id );
throw new IllegalStateException("i... | java | public void setId(Object id) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
/*if (idFlag == SET) {
if (tc.isDebugEnabled()) Tr.debug(tc, "Illegal State: tried to set id to "+id+
", but id was already set to "+this.id );
throw new IllegalStateException("i... | [
"public",
"void",
"setId",
"(",
"Object",
"id",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"/*if (idFlag == SET) {\n\t\t if (tc.isDebugEnabled()) Tr.debug(tc, \"Illegal Stat... | This sets the id variable.
@param id The cache id.
@ibm-private-in-use | [
"This",
"sets",
"the",
"id",
"variable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L276-L289 |
65,388 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.setSharingPolicy | public void setSharingPolicy(int sharingPolicy) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
sharingPolicyFlag = SET;
this.sharingPolicy = sharingPolicy;
if ((sharingPolicy != NOT_SHARED) && (sharingPolicy != SHARED_PUSH) && (sharingPolicy != SHARED_PULL) && (sharingP... | java | public void setSharingPolicy(int sharingPolicy) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
sharingPolicyFlag = SET;
this.sharingPolicy = sharingPolicy;
if ((sharingPolicy != NOT_SHARED) && (sharingPolicy != SHARED_PUSH) && (sharingPolicy != SHARED_PULL) && (sharingP... | [
"public",
"void",
"setSharingPolicy",
"(",
"int",
"sharingPolicy",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"sharingPolicyFlag",
"=",
"SET",
";",
"this",
".",
... | This sets the sharing policy in the sharingPolicy variable.
Included for forward compatibility with distributed caches.
@param The new sharing policy.
@ibm-private-in-use | [
"This",
"sets",
"the",
"sharing",
"policy",
"in",
"the",
"sharingPolicy",
"variable",
".",
"Included",
"for",
"forward",
"compatibility",
"with",
"distributed",
"caches",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L362-L371 |
65,389 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.setTimeLimit | public void setTimeLimit(int timeLimit) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
expirationTimeFlag = SET;
this.timeLimit = timeLimit;
if (timeLimit > 0) {
long ttlmsec = ((long)timeLimit) * 1000;
expirationTime = ttlmsec + System.currentTimeMillis()... | java | public void setTimeLimit(int timeLimit) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
expirationTimeFlag = SET;
this.timeLimit = timeLimit;
if (timeLimit > 0) {
long ttlmsec = ((long)timeLimit) * 1000;
expirationTime = ttlmsec + System.currentTimeMillis()... | [
"public",
"void",
"setTimeLimit",
"(",
"int",
"timeLimit",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"expirationTimeFlag",
"=",
"SET",
";",
"this",
".",
"timeLi... | This sets the time limit in the timeLimit variable. Once an entry is cached,
it will remain in the cache for this many seconds
@param timeLimit This time limit.
@ibm-private-in-use | [
"This",
"sets",
"the",
"time",
"limit",
"in",
"the",
"timeLimit",
"variable",
".",
"Once",
"an",
"entry",
"is",
"cached",
"it",
"will",
"remain",
"in",
"the",
"cache",
"for",
"this",
"many",
"seconds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L448-L458 |
65,390 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.getInactivity | public int getInactivity() { // CPF-Inactivity
if (com.ibm.ws.cache.TimeLimitDaemon.UNIT_TEST_INACTIVITY) {
System.out.println("EntryInfo.getInactivity() "+inactivity);
}
return inactivity;
} | java | public int getInactivity() { // CPF-Inactivity
if (com.ibm.ws.cache.TimeLimitDaemon.UNIT_TEST_INACTIVITY) {
System.out.println("EntryInfo.getInactivity() "+inactivity);
}
return inactivity;
} | [
"public",
"int",
"getInactivity",
"(",
")",
"{",
"// CPF-Inactivity",
"if",
"(",
"com",
".",
"ibm",
".",
"ws",
".",
"cache",
".",
"TimeLimitDaemon",
".",
"UNIT_TEST_INACTIVITY",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"EntryInfo.getInactivity() ... | This gets the inactivity timer for this cache entry.
@return the inactivity timer for this cache entry.
@ibm-private-in-use | [
"This",
"gets",
"the",
"inactivity",
"timer",
"for",
"this",
"cache",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L465-L470 |
65,391 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.setInactivity | public void setInactivity(int inactivity) { // CPF-Inactivity
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
inactivityFlag = SET;
this.inactivity = inactivity; // Seconds
if (com.ibm.ws.cache.TimeLimitDaemon.UNIT_TEST_INACTIVITY) {
System.out... | java | public void setInactivity(int inactivity) { // CPF-Inactivity
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
inactivityFlag = SET;
this.inactivity = inactivity; // Seconds
if (com.ibm.ws.cache.TimeLimitDaemon.UNIT_TEST_INACTIVITY) {
System.out... | [
"public",
"void",
"setInactivity",
"(",
"int",
"inactivity",
")",
"{",
"// CPF-Inactivity",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"inactivityFlag",
"=",
"SET",
";",
"th... | This sets the inactivity timer variable. Once an entry is cached,
it will remain in the cache for this many seconds if not accessed.
@param inactivity This inactivity timer.
@ibm-private-in-use | [
"This",
"sets",
"the",
"inactivity",
"timer",
"variable",
".",
"Once",
"an",
"entry",
"is",
"cached",
"it",
"will",
"remain",
"in",
"the",
"cache",
"for",
"this",
"many",
"seconds",
"if",
"not",
"accessed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L479-L488 |
65,392 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.setExpirationTime | public void setExpirationTime(long expirationTime) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
expirationTimeFlag = SET;
this.expirationTime = expirationTime;
this.timeLimit = (int) ((expirationTime - System.currentTimeMillis()) / 1000L);
} | java | public void setExpirationTime(long expirationTime) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
expirationTimeFlag = SET;
this.expirationTime = expirationTime;
this.timeLimit = (int) ((expirationTime - System.currentTimeMillis()) / 1000L);
} | [
"public",
"void",
"setExpirationTime",
"(",
"long",
"expirationTime",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"expirationTimeFlag",
"=",
"SET",
";",
"this",
"."... | This sets the expirationTime variable.
@param The new expiration time.
@ibm-private-in-use | [
"This",
"sets",
"the",
"expirationTime",
"variable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L506-L513 |
65,393 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.addTemplate | public void addTemplate(String template) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (template != null && !template.equals("")) {
templates.add(template);
}
} | java | public void addTemplate(String template) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (template != null && !template.equals("")) {
templates.add(template);
}
} | [
"public",
"void",
"addTemplate",
"(",
"String",
"template",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"if",
"(",
"template",
"!=",
"null",
"&&",
"!",
"templat... | This adds a template name to the templates variable.
@param template The new template name.
@ibm-private-in-use | [
"This",
"adds",
"a",
"template",
"name",
"to",
"the",
"templates",
"variable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L597-L604 |
65,394 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.addDataId | public void addDataId(Object dataId) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (dataId != null && !dataId.equals("")) {
dataIds.add(dataId);
}
} | java | public void addDataId(Object dataId) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (dataId != null && !dataId.equals("")) {
dataIds.add(dataId);
}
} | [
"public",
"void",
"addDataId",
"(",
"Object",
"dataId",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"if",
"(",
"dataId",
"!=",
"null",
"&&",
"!",
"dataId",
".... | This unions a new data id into the dataIds variable.
@param dataId The new data id.
@ibm-private-in-use | [
"This",
"unions",
"a",
"new",
"data",
"id",
"into",
"the",
"dataIds",
"variable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L632-L639 |
65,395 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java | EntryInfo.addAlias | public void addAlias(Object alias) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (alias != null && !alias.equals("")) {
aliasList.add(alias);
}
} | java | public void addAlias(Object alias) {
if (lock == SET) {
throw new IllegalStateException("EntryInfo is locked");
}
if (alias != null && !alias.equals("")) {
aliasList.add(alias);
}
} | [
"public",
"void",
"addAlias",
"(",
"Object",
"alias",
")",
"{",
"if",
"(",
"lock",
"==",
"SET",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"EntryInfo is locked\"",
")",
";",
"}",
"if",
"(",
"alias",
"!=",
"null",
"&&",
"!",
"alias",
".",
... | This unions a new alias into the aliasList variable.
@param alias The new alias.
@ibm-private-in-use | [
"This",
"unions",
"a",
"new",
"alias",
"into",
"the",
"aliasList",
"variable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/EntryInfo.java#L713-L720 |
65,396 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/Activator.java | Activator.shutdownFramework | @FFDCIgnore(Exception.class)
protected final void shutdownFramework() {
try {
Bundle bundle = context.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
// Exception could happen here if bundle c... | java | @FFDCIgnore(Exception.class)
protected final void shutdownFramework() {
try {
Bundle bundle = context.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
// Exception could happen here if bundle c... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"protected",
"final",
"void",
"shutdownFramework",
"(",
")",
"{",
"try",
"{",
"Bundle",
"bundle",
"=",
"context",
".",
"getBundle",
"(",
"Constants",
".",
"SYSTEM_BUNDLE_LOCATION",
")",
";",
"if",
"(",
... | When an error occurs during startup,
then this method is used to stop the root bundle thus bringing down the
OSGi framework. | [
"When",
"an",
"error",
"occurs",
"during",
"startup",
"then",
"this",
"method",
"is",
"used",
"to",
"stop",
"the",
"root",
"bundle",
"thus",
"bringing",
"down",
"the",
"OSGi",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/Activator.java#L107-L118 |
65,397 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/RoutingPathList.java | RoutingPathList.getNames | List<String> getNames() {
if (addrList == null)
return jmfNames;
// Create a readonly list that extracts the 'names' information from the main list
return new AbstractList<String>() {
public int size() {
return addrList.size();
}
public String get(int index) {
... | java | List<String> getNames() {
if (addrList == null)
return jmfNames;
// Create a readonly list that extracts the 'names' information from the main list
return new AbstractList<String>() {
public int size() {
return addrList.size();
}
public String get(int index) {
... | [
"List",
"<",
"String",
">",
"getNames",
"(",
")",
"{",
"if",
"(",
"addrList",
"==",
"null",
")",
"return",
"jmfNames",
";",
"// Create a readonly list that extracts the 'names' information from the main list",
"return",
"new",
"AbstractList",
"<",
"String",
">",
"(",
... | measurements may show otherwise. | [
"measurements",
"may",
"show",
"otherwise",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/RoutingPathList.java#L128-L141 |
65,398 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/converter/JSONConverter.java | JSONConverter.readInt | public int readInt(InputStream in) throws ConversionException, IOException {
JSONArray json = parseArray(in);
if (json.size() != 1) {
throwConversionException("readInt() expects one item in the array: [ Integer ].", json);
}
return readIntInternal(json.get(0));
} | java | public int readInt(InputStream in) throws ConversionException, IOException {
JSONArray json = parseArray(in);
if (json.size() != 1) {
throwConversionException("readInt() expects one item in the array: [ Integer ].", json);
}
return readIntInternal(json.get(0));
} | [
"public",
"int",
"readInt",
"(",
"InputStream",
"in",
")",
"throws",
"ConversionException",
",",
"IOException",
"{",
"JSONArray",
"json",
"=",
"parseArray",
"(",
"in",
")",
";",
"if",
"(",
"json",
".",
"size",
"(",
")",
"!=",
"1",
")",
"{",
"throwConvers... | Decode a JSON document to retrieve an integer value.
@param in The stream to read JSON from
@return The decoded integer value
@throws ConversionException If JSON uses unexpected structure/format
@throws IOException If an I/O error occurs or if JSON is ill-formed.
@see #writeInt(OutputStream, int) | [
"Decode",
"a",
"JSON",
"document",
"to",
"retrieve",
"an",
"integer",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/converter/JSONConverter.java#L697-L703 |
65,399 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/converter/JSONConverter.java | JSONConverter.readBoolean | public boolean readBoolean(InputStream in) throws ConversionException, IOException {
JSONArray json = parseArray(in);
if (json.size() != 1) {
throwConversionException("readBoolean() expects one item in the array: [ true | false ].", json);
}
return readBooleanInternal(json.ge... | java | public boolean readBoolean(InputStream in) throws ConversionException, IOException {
JSONArray json = parseArray(in);
if (json.size() != 1) {
throwConversionException("readBoolean() expects one item in the array: [ true | false ].", json);
}
return readBooleanInternal(json.ge... | [
"public",
"boolean",
"readBoolean",
"(",
"InputStream",
"in",
")",
"throws",
"ConversionException",
",",
"IOException",
"{",
"JSONArray",
"json",
"=",
"parseArray",
"(",
"in",
")",
";",
"if",
"(",
"json",
".",
"size",
"(",
")",
"!=",
"1",
")",
"{",
"thro... | Decode a JSON document to retrieve an boolean value.
@param in The stream to read JSON from
@return The decoded boolean value
@throws ConversionException If JSON uses unexpected structure/format
@throws IOException If an I/O error occurs or if JSON is ill-formed.
@see #writeInt(OutputStream, int) | [
"Decode",
"a",
"JSON",
"document",
"to",
"retrieve",
"an",
"boolean",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/converter/JSONConverter.java#L729-L735 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.