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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70,400 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.createStartupBeans | private void createStartupBeans() throws RuntimeWarning {
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
// d684950
if (EJSPlatformHelper.isZOSCRA()) {
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "createStartupBeans: skipped in adjunct process");
... | java | private void createStartupBeans() throws RuntimeWarning {
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
// d684950
if (EJSPlatformHelper.isZOSCRA()) {
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "createStartupBeans: skipped in adjunct process");
... | [
"private",
"void",
"createStartupBeans",
"(",
")",
"throws",
"RuntimeWarning",
"{",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"// d684950",
"if",
"(",
"EJSPlatformHelper",
".",
"isZOSCRA",
"(",
")",
")",
"{",
"if",... | Creates all startup singleton beans.
@throws RuntimeWarning
if a bean fails to initialize | [
"Creates",
"all",
"startup",
"singleton",
"beans",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L930-L975 |
70,401 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.notifyApplicationEventListeners | private void notifyApplicationEventListeners(Collection<EJBModuleMetaDataImpl> modules, boolean started) throws RuntimeWarning { // F743-26072
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "notifyApplicationEventListeners: ... | java | private void notifyApplicationEventListeners(Collection<EJBModuleMetaDataImpl> modules, boolean started) throws RuntimeWarning { // F743-26072
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "notifyApplicationEventListeners: ... | [
"private",
"void",
"notifyApplicationEventListeners",
"(",
"Collection",
"<",
"EJBModuleMetaDataImpl",
">",
"modules",
",",
"boolean",
"started",
")",
"throws",
"RuntimeWarning",
"{",
"// F743-26072",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTr... | Notifies all application event listeners in the specified modules.
@param modules
the list of modules to notify
@param started
<tt>true</tt> if the application is started, or <tt>false</tt> if the
application is stopping
@throws RuntimeWarning
if any listener throws an exception | [
"Notifies",
"all",
"application",
"event",
"listeners",
"in",
"the",
"specified",
"modules",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L988-L1028 |
70,402 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.addSingletonInitialization | public synchronized void addSingletonInitialization(EJSHome home) {
if (ivStopping) {
throw new EJBStoppedException(home.getJ2EEName().toString());
}
if (ivSingletonInitializations == null) {
ivSingletonInitializations = new LinkedHashSet<EJSHome>();
}
iv... | java | public synchronized void addSingletonInitialization(EJSHome home) {
if (ivStopping) {
throw new EJBStoppedException(home.getJ2EEName().toString());
}
if (ivSingletonInitializations == null) {
ivSingletonInitializations = new LinkedHashSet<EJSHome>();
}
iv... | [
"public",
"synchronized",
"void",
"addSingletonInitialization",
"(",
"EJSHome",
"home",
")",
"{",
"if",
"(",
"ivStopping",
")",
"{",
"throw",
"new",
"EJBStoppedException",
"(",
"home",
".",
"getJ2EEName",
"(",
")",
".",
"toString",
"(",
")",
")",
";",
"}",
... | Record the initialization attempt of a singleton. This method must not be called for
a bean before it is called for each of that bean's dependencies. This method may be
called multiple times for the same bean, but only the first call will have an effect.
@param home
the bean's home
@throws EJBStoppedException
if the a... | [
"Record",
"the",
"initialization",
"attempt",
"of",
"a",
"singleton",
".",
"This",
"method",
"must",
"not",
"be",
"called",
"for",
"a",
"bean",
"before",
"it",
"is",
"called",
"for",
"each",
"of",
"that",
"bean",
"s",
"dependencies",
".",
"This",
"method",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1066-L1075 |
70,403 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.queueOrStartNonPersistentTimerAlarm | public synchronized boolean queueOrStartNonPersistentTimerAlarm(TimerNpImpl timer, EJBModuleMetaDataImpl module) {
if (ivStopping) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "not starting timer alarm after application stop: " + timer);
... | java | public synchronized boolean queueOrStartNonPersistentTimerAlarm(TimerNpImpl timer, EJBModuleMetaDataImpl module) {
if (ivStopping) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "not starting timer alarm after application stop: " + timer);
... | [
"public",
"synchronized",
"boolean",
"queueOrStartNonPersistentTimerAlarm",
"(",
"TimerNpImpl",
"timer",
",",
"EJBModuleMetaDataImpl",
"module",
")",
"{",
"if",
"(",
"ivStopping",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc... | Queues or starts a non-persistent timer alarm, returning an indication of whether or
not the operation was successful.
If the application has not yet started, then the timer is queued and its alarm will
be started after the application is fully started.
If the application has previously been started, but now we are l... | [
"Queues",
"or",
"starts",
"a",
"non",
"-",
"persistent",
"timer",
"alarm",
"returning",
"an",
"indication",
"of",
"whether",
"or",
"not",
"the",
"operation",
"was",
"successful",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1101-L1123 |
70,404 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.beginStopping | private void beginStopping(boolean application, J2EEName j2eeName, Collection<EJBModuleMetaDataImpl> modules) { // F743-26072
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "beginStopping: application=" + application + ", " + j2ee... | java | private void beginStopping(boolean application, J2EEName j2eeName, Collection<EJBModuleMetaDataImpl> modules) { // F743-26072
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "beginStopping: application=" + application + ", " + j2ee... | [
"private",
"void",
"beginStopping",
"(",
"boolean",
"application",
",",
"J2EEName",
"j2eeName",
",",
"Collection",
"<",
"EJBModuleMetaDataImpl",
">",
"modules",
")",
"{",
"// F743-26072",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
... | Notification that the application or a module within the application will begin
stopping stopping. This method should never throw an exception.
@param application
<tt>true</tt> if the application is stopping
@param j2eeName
the J2EEName of the application or module, or <tt>null</tt> if application
is true and J2EEName... | [
"Notification",
"that",
"the",
"application",
"or",
"a",
"module",
"within",
"the",
"application",
"will",
"begin",
"stopping",
"stopping",
".",
"This",
"method",
"should",
"never",
"throw",
"an",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1137-L1185 |
70,405 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.stoppingModule | public void stoppingModule(EJBModuleMetaDataImpl mmd) { // F743-26072
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "stoppingModule: " + mmd.getJ2EEName());
// If the application is stopping (rather than a single module)... | java | public void stoppingModule(EJBModuleMetaDataImpl mmd) { // F743-26072
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "stoppingModule: " + mmd.getJ2EEName());
// If the application is stopping (rather than a single module)... | [
"public",
"void",
"stoppingModule",
"(",
"EJBModuleMetaDataImpl",
"mmd",
")",
"{",
"// F743-26072",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")"... | Notification that a module within this application will begin stopping. This method
should never throw an exception.
@param mmd
the module | [
"Notification",
"that",
"a",
"module",
"within",
"this",
"application",
"will",
"begin",
"stopping",
".",
"This",
"method",
"should",
"never",
"throw",
"an",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1194-L1218 |
70,406 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.stopping | public void stopping() {
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "stopping");
J2EEName j2eeName = ivApplicationMetaData == null ? null : ivApplicationMetaData.getJ2EEName();
beginStopping(true, j2eeName, iv... | java | public void stopping() {
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "stopping");
J2EEName j2eeName = ivApplicationMetaData == null ? null : ivApplicationMetaData.getJ2EEName();
beginStopping(true, j2eeName, iv... | [
"public",
"void",
"stopping",
"(",
")",
"{",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"stoppi... | Notification that the application will begin stopping. | [
"Notification",
"that",
"the",
"application",
"will",
"begin",
"stopping",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1223-L1230 |
70,407 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java | EJBApplicationMetaData.validateVersionedModuleBaseName | void validateVersionedModuleBaseName(String appBaseName, String modBaseName) {
for (EJBModuleMetaDataImpl ejbMMD : ivModules) {
String versionedAppBaseName = ejbMMD.ivVersionedAppBaseName;
if (versionedAppBaseName != null && !versionedAppBaseName.equals(appBaseName)) {
th... | java | void validateVersionedModuleBaseName(String appBaseName, String modBaseName) {
for (EJBModuleMetaDataImpl ejbMMD : ivModules) {
String versionedAppBaseName = ejbMMD.ivVersionedAppBaseName;
if (versionedAppBaseName != null && !versionedAppBaseName.equals(appBaseName)) {
th... | [
"void",
"validateVersionedModuleBaseName",
"(",
"String",
"appBaseName",
",",
"String",
"modBaseName",
")",
"{",
"for",
"(",
"EJBModuleMetaDataImpl",
"ejbMMD",
":",
"ivModules",
")",
"{",
"String",
"versionedAppBaseName",
"=",
"ejbMMD",
".",
"ivVersionedAppBaseName",
... | F54184.1 F54184.2 | [
"F54184",
".",
"1",
"F54184",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBApplicationMetaData.java#L1266-L1278 |
70,408 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaBrowserSession.java | SibRaBrowserSession.next | public SIBusMessage next() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SINotAuthorizedException, SIResourceException, SIErrorException {
checkValid();
return _delegate.next();
} | java | public SIBusMessage next() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SINotAuthorizedException, SIResourceException, SIErrorException {
checkValid();
return _delegate.next();
} | [
"public",
"SIBusMessage",
"next",
"(",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionLostException",
",",
"SINotAuthorizedException",
",",
"SIResour... | Browses the next message. Checks that the session is valid and then
delegates.
@throws SIConnectionUnavailableException
if the session is not valid
@throws SIErrorException
if the delegation fails
@throws SIResourceException
if the delegation fails
@throws SINotAuthorizedException
if the delegation fails
@throws SICon... | [
"Browses",
"the",
"next",
"message",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
"and",
"then",
"delegates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaBrowserSession.java#L95-L101 |
70,409 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaBrowserSession.java | SibRaBrowserSession.reset | public void reset() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SIResourceException, SIErrorException {
checkValid();
_delegate.reset();
} | java | public void reset() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SIResourceException, SIErrorException {
checkValid();
_delegate.reset();
} | [
"public",
"void",
"reset",
"(",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionLostException",
",",
"SIResourceException",
",",
"SIErrorException",
... | Resets the browse cursor. Checks that the session is valid and then
delegates.
@throws SIConnectionUnavailableException
if the session is not valid
@throws SIErrorException
if the delegation fails
@throws SIResourceException
if the delegation fails
@throws SIConnectionLostException
if the delegation fails
@throws SISe... | [
"Resets",
"the",
"browse",
"cursor",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
"and",
"then",
"delegates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaBrowserSession.java#L122-L128 |
70,410 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ws/ejb/portable/EJBMetaDataImpl.java | EJBMetaDataImpl.writeObject | private void writeObject(ObjectOutputStream out) throws IOException
{
try
{
out.defaultWriteObject();
// p113380 - start of change
// write out the header information
out.write(EYECATCHER);
out.writeShort(PLATFORM);
out.writeSh... | java | private void writeObject(ObjectOutputStream out) throws IOException
{
try
{
out.defaultWriteObject();
// p113380 - start of change
// write out the header information
out.write(EYECATCHER);
out.writeShort(PLATFORM);
out.writeSh... | [
"private",
"void",
"writeObject",
"(",
"ObjectOutputStream",
"out",
")",
"throws",
"IOException",
"{",
"try",
"{",
"out",
".",
"defaultWriteObject",
"(",
")",
";",
"// p113380 - start of change",
"// write out the header information",
"out",
".",
"write",
"(",
"EYECAT... | We will implement writeObject in order to controll
the marshalling for this object.
Note, this is overriding the default implementation of
the Serializable interface.
@see java.io.Serializable | [
"We",
"will",
"implement",
"writeObject",
"in",
"order",
"to",
"controll",
"the",
"marshalling",
"for",
"this",
"object",
".",
"Note",
"this",
"is",
"overriding",
"the",
"default",
"implementation",
"of",
"the",
"Serializable",
"interface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ws/ejb/portable/EJBMetaDataImpl.java#L381-L454 |
70,411 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapChannelConstants.java | JFapChannelConstants.segmentToLayout | public static TransmissionLayout segmentToLayout(int segment)
{
TransmissionLayout layout = XMIT_LAYOUT_UNKNOWN;
switch (segment)
{
case 0x00:
layout = XMIT_LAYOUT_UNKNOWN;
break;
case JFapChannelConstants.SEGMENT_HEARTBEAT:
... | java | public static TransmissionLayout segmentToLayout(int segment)
{
TransmissionLayout layout = XMIT_LAYOUT_UNKNOWN;
switch (segment)
{
case 0x00:
layout = XMIT_LAYOUT_UNKNOWN;
break;
case JFapChannelConstants.SEGMENT_HEARTBEAT:
... | [
"public",
"static",
"TransmissionLayout",
"segmentToLayout",
"(",
"int",
"segment",
")",
"{",
"TransmissionLayout",
"layout",
"=",
"XMIT_LAYOUT_UNKNOWN",
";",
"switch",
"(",
"segment",
")",
"{",
"case",
"0x00",
":",
"layout",
"=",
"XMIT_LAYOUT_UNKNOWN",
";",
"brea... | Converts from a segment ID to a layout for the transmission.
@param segment
@return Returns the layout for the segment. | [
"Converts",
"from",
"a",
"segment",
"ID",
"to",
"a",
"layout",
"for",
"the",
"transmission",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapChannelConstants.java#L353-L381 |
70,412 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapChannelConstants.java | JFapChannelConstants.getSegmentName | public static String getSegmentName(int segmentType)
{
String segmentName = "(Unknown segment type)";
segmentName = segValues.get(segmentType);
if (segmentName == null)
segmentName = "(Unknown segment type)";
return segmentName;
} | java | public static String getSegmentName(int segmentType)
{
String segmentName = "(Unknown segment type)";
segmentName = segValues.get(segmentType);
if (segmentName == null)
segmentName = "(Unknown segment type)";
return segmentName;
} | [
"public",
"static",
"String",
"getSegmentName",
"(",
"int",
"segmentType",
")",
"{",
"String",
"segmentName",
"=",
"\"(Unknown segment type)\"",
";",
"segmentName",
"=",
"segValues",
".",
"get",
"(",
"segmentType",
")",
";",
"if",
"(",
"segmentName",
"==",
"null... | This method can be used to return the actual segment
name for a given segment type.
@param segmentType The segment number.
@return Returns the String name of this segment. | [
"This",
"method",
"can",
"be",
"used",
"to",
"return",
"the",
"actual",
"segment",
"name",
"for",
"a",
"given",
"segment",
"type",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapChannelConstants.java#L749-L759 |
70,413 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigUpdater.java | ConfigUpdater.updateConfiguration | private boolean updateConfiguration(EvaluationResult result, ConfigurationInfo info, Collection<ConfigurationInfo> infos,
boolean encourageUpdates) throws ConfigUpdateException {
//encourageUpdates is overruled by metatype declining nested notifications.
encourag... | java | private boolean updateConfiguration(EvaluationResult result, ConfigurationInfo info, Collection<ConfigurationInfo> infos,
boolean encourageUpdates) throws ConfigUpdateException {
//encourageUpdates is overruled by metatype declining nested notifications.
encourag... | [
"private",
"boolean",
"updateConfiguration",
"(",
"EvaluationResult",
"result",
",",
"ConfigurationInfo",
"info",
",",
"Collection",
"<",
"ConfigurationInfo",
">",
"infos",
",",
"boolean",
"encourageUpdates",
")",
"throws",
"ConfigUpdateException",
"{",
"//encourageUpdate... | Recursively updates the configuration in config admin
@param encourageUpdates whether to update the configuration if not discouraged in metatype even with no nested or property updates.
@return true if there were any updates to this element or any nested, unhidden elements or updates encouraged and not hidden. | [
"Recursively",
"updates",
"the",
"configuration",
"in",
"config",
"admin"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigUpdater.java#L206-L287 |
70,414 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigUpdater.java | ConfigUpdater.massageNewConfig | private static Dictionary<String, Object> massageNewConfig(Dictionary<String, Object> oldProps, Dictionary<String, Object> newProps) {
ConfigurationDictionary ret = new ConfigurationDictionary();
if (oldProps != null) {
for (Enumeration<String> keyItr = oldProps.keys(); keyItr.hasMoreElemen... | java | private static Dictionary<String, Object> massageNewConfig(Dictionary<String, Object> oldProps, Dictionary<String, Object> newProps) {
ConfigurationDictionary ret = new ConfigurationDictionary();
if (oldProps != null) {
for (Enumeration<String> keyItr = oldProps.keys(); keyItr.hasMoreElemen... | [
"private",
"static",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"massageNewConfig",
"(",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"oldProps",
",",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"newProps",
")",
"{",
"ConfigurationDictionary",
"... | Return a new config dictionary with initial "hidden" keys and values from
o,
then add all keys and values from n to the new config dictionary and
return.
If returning dictionary is empty, return null instead.
@param o
@param n
@return Dictionary | [
"Return",
"a",
"new",
"config",
"dictionary",
"with",
"initial",
"hidden",
"keys",
"and",
"values",
"from",
"o",
"then",
"add",
"all",
"keys",
"and",
"values",
"from",
"n",
"to",
"the",
"new",
"config",
"dictionary",
"and",
"return",
".",
"If",
"returning"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigUpdater.java#L300-L328 |
70,415 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/buffer/impl/RichByteBufferImpl.java | RichByteBufferImpl.reset | void reset(com.ibm.wsspi.bytebuffer.WsByteBuffer buff, RichByteBufferPool p)
{
this.buffer = buff;
this.pool = p;
} | java | void reset(com.ibm.wsspi.bytebuffer.WsByteBuffer buff, RichByteBufferPool p)
{
this.buffer = buff;
this.pool = p;
} | [
"void",
"reset",
"(",
"com",
".",
"ibm",
".",
"wsspi",
".",
"bytebuffer",
".",
"WsByteBuffer",
"buff",
",",
"RichByteBufferPool",
"p",
")",
"{",
"this",
".",
"buffer",
"=",
"buff",
";",
"this",
".",
"pool",
"=",
"p",
";",
"}"
] | Resets the buffer with a new underlying buffer.
@param buff
@param p | [
"Resets",
"the",
"buffer",
"with",
"a",
"new",
"underlying",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/buffer/impl/RichByteBufferImpl.java#L42-L46 |
70,416 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/FutureShell.java | FutureShell.setDelegate | public synchronized void setDelegate(Future<V> delegate) {
if (delegateHolder.isCancelled()) {
delegate.cancel(mayInterruptWhenCancellingDelegate);
} else {
this.delegate = delegate;
delegateHolder.complete(delegate);
}
} | java | public synchronized void setDelegate(Future<V> delegate) {
if (delegateHolder.isCancelled()) {
delegate.cancel(mayInterruptWhenCancellingDelegate);
} else {
this.delegate = delegate;
delegateHolder.complete(delegate);
}
} | [
"public",
"synchronized",
"void",
"setDelegate",
"(",
"Future",
"<",
"V",
">",
"delegate",
")",
"{",
"if",
"(",
"delegateHolder",
".",
"isCancelled",
"(",
")",
")",
"{",
"delegate",
".",
"cancel",
"(",
"mayInterruptWhenCancellingDelegate",
")",
";",
"}",
"el... | Set the Future to delegate calls to
@param delegate the delegate future | [
"Set",
"the",
"Future",
"to",
"delegate",
"calls",
"to"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/FutureShell.java#L57-L64 |
70,417 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.isUnauthenticated | public boolean isUnauthenticated(Subject subject) {
if (subject == null) {
return true;
}
WSCredential wsCred = getWSCredential(subject);
if (wsCred == null) {
return true;
} else {
return wsCred.isUnauthenticated();
}
} | java | public boolean isUnauthenticated(Subject subject) {
if (subject == null) {
return true;
}
WSCredential wsCred = getWSCredential(subject);
if (wsCred == null) {
return true;
} else {
return wsCred.isUnauthenticated();
}
} | [
"public",
"boolean",
"isUnauthenticated",
"(",
"Subject",
"subject",
")",
"{",
"if",
"(",
"subject",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"WSCredential",
"wsCred",
"=",
"getWSCredential",
"(",
"subject",
")",
";",
"if",
"(",
"wsCred",
"==",
... | Check whether the subject is un-authenticated or not.
@param subject {@code null} is supported.
@return Returns {@code true} if the Subject is either null
or the UNAUTHENTICATED Subject. {@code false} otherwise. | [
"Check",
"whether",
"the",
"subject",
"is",
"un",
"-",
"authenticated",
"or",
"not",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L47-L58 |
70,418 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.getRealm | public String getRealm(Subject subject) throws Exception {
String realm = null;
WSCredential credential = getWSCredential(subject);
if (credential != null) {
realm = credential.getRealmName();
}
return realm;
} | java | public String getRealm(Subject subject) throws Exception {
String realm = null;
WSCredential credential = getWSCredential(subject);
if (credential != null) {
realm = credential.getRealmName();
}
return realm;
} | [
"public",
"String",
"getRealm",
"(",
"Subject",
"subject",
")",
"throws",
"Exception",
"{",
"String",
"realm",
"=",
"null",
";",
"WSCredential",
"credential",
"=",
"getWSCredential",
"(",
"subject",
")",
";",
"if",
"(",
"credential",
"!=",
"null",
")",
"{",
... | Gets the realm from the subjects' WSCredential.
@param subject {@code null} is not supported.
@return | [
"Gets",
"the",
"realm",
"from",
"the",
"subjects",
"WSCredential",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L66-L73 |
70,419 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.getGSSCredentialFromSubject | public static GSSCredential getGSSCredentialFromSubject(final Subject subject) {
if (subject == null) {
return null;
}
GSSCredential gssCredential = AccessController.doPrivileged(new PrivilegedAction<GSSCredential>() {
@Override
public GSSCredential run() {
... | java | public static GSSCredential getGSSCredentialFromSubject(final Subject subject) {
if (subject == null) {
return null;
}
GSSCredential gssCredential = AccessController.doPrivileged(new PrivilegedAction<GSSCredential>() {
@Override
public GSSCredential run() {
... | [
"public",
"static",
"GSSCredential",
"getGSSCredentialFromSubject",
"(",
"final",
"Subject",
"subject",
")",
"{",
"if",
"(",
"subject",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"GSSCredential",
"gssCredential",
"=",
"AccessController",
".",
"doPrivilege... | Gets a GSSCredential from a Subject | [
"Gets",
"a",
"GSSCredential",
"from",
"a",
"Subject"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L154-L181 |
70,420 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.createNewHashtableInSubject | @Sensitive
public Hashtable<String, Object> createNewHashtableInSubject(@Sensitive final Subject subject) {
return AccessController.doPrivileged(new NewHashtablePrivilegedAction(subject));
} | java | @Sensitive
public Hashtable<String, Object> createNewHashtableInSubject(@Sensitive final Subject subject) {
return AccessController.doPrivileged(new NewHashtablePrivilegedAction(subject));
} | [
"@",
"Sensitive",
"public",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"createNewHashtableInSubject",
"(",
"@",
"Sensitive",
"final",
"Subject",
"subject",
")",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"NewHashtablePrivilegedAction",
... | Creates a Hashtable of values in the Subject without tracing the Subject.
@param subject {@code null} is not supported.
@return the hashtable containing the properties. | [
"Creates",
"a",
"Hashtable",
"of",
"values",
"in",
"the",
"Subject",
"without",
"tracing",
"the",
"Subject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L264-L267 |
70,421 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.getSensitiveHashtableFromSubject | @Sensitive
public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject) {
if (System.getSecurityManager() == null) {
return getHashtableFromSubject(subject);
} else {
return AccessController.doPrivileged(new GetHashtablePrivilegedAction(subje... | java | @Sensitive
public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject) {
if (System.getSecurityManager() == null) {
return getHashtableFromSubject(subject);
} else {
return AccessController.doPrivileged(new GetHashtablePrivilegedAction(subje... | [
"@",
"Sensitive",
"public",
"Hashtable",
"<",
"String",
",",
"?",
">",
"getSensitiveHashtableFromSubject",
"(",
"@",
"Sensitive",
"final",
"Subject",
"subject",
")",
"{",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"==",
"null",
")",
"{",
"retu... | Gets a Hashtable of values from the Subject without tracing the Subject or hashtable.
@param subject {@code null} is not supported.
@return the hashtable containing the properties. | [
"Gets",
"a",
"Hashtable",
"of",
"values",
"from",
"the",
"Subject",
"without",
"tracing",
"the",
"Subject",
"or",
"hashtable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L298-L305 |
70,422 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java | SubjectHelper.getSensitiveHashtableFromSubject | @Sensitive
public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject, @Sensitive final String[] properties) {
return AccessController.doPrivileged(new PrivilegedAction<Hashtable<String, ?>>() {
@Override
public Hashtable<String, ?> run() {
... | java | @Sensitive
public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject, @Sensitive final String[] properties) {
return AccessController.doPrivileged(new PrivilegedAction<Hashtable<String, ?>>() {
@Override
public Hashtable<String, ?> run() {
... | [
"@",
"Sensitive",
"public",
"Hashtable",
"<",
"String",
",",
"?",
">",
"getSensitiveHashtableFromSubject",
"(",
"@",
"Sensitive",
"final",
"Subject",
"subject",
",",
"@",
"Sensitive",
"final",
"String",
"[",
"]",
"properties",
")",
"{",
"return",
"AccessControll... | Gets a Hashtable of values from the Subject, but do not trace the hashtable
@param subject {@code null} is not supported.
@param properties The properties to get.
@return the hashtable containing the properties. | [
"Gets",
"a",
"Hashtable",
"of",
"values",
"from",
"the",
"Subject",
"but",
"do",
"not",
"trace",
"the",
"hashtable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/ws/security/authentication/utility/SubjectHelper.java#L350-L376 |
70,423 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java | CommsLightTrace.traceMessageIds | public static void traceMessageIds(TraceComponent callersTrace, String action, SIMessageHandle[] messageHandles)
{
if ((light_tc.isDebugEnabled() || callersTrace.isDebugEnabled())
&& messageHandles != null) {
// Build our trace string
StringBuffer trcBuffer = new StringBuffer();
t... | java | public static void traceMessageIds(TraceComponent callersTrace, String action, SIMessageHandle[] messageHandles)
{
if ((light_tc.isDebugEnabled() || callersTrace.isDebugEnabled())
&& messageHandles != null) {
// Build our trace string
StringBuffer trcBuffer = new StringBuffer();
t... | [
"public",
"static",
"void",
"traceMessageIds",
"(",
"TraceComponent",
"callersTrace",
",",
"String",
"action",
",",
"SIMessageHandle",
"[",
"]",
"messageHandles",
")",
"{",
"if",
"(",
"(",
"light_tc",
".",
"isDebugEnabled",
"(",
")",
"||",
"callersTrace",
".",
... | Allow tracing of messages and transaction when deleting
@param callersTrace The trace component of the caller
@param action A string (no spaces) provided by the caller to prefix the keyword included in the trace line
@param messageHandles The messages handles to trace | [
"Allow",
"tracing",
"of",
"messages",
"and",
"transaction",
"when",
"deleting"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java#L100-L124 |
70,424 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java | CommsLightTrace.traceTransaction | public static void traceTransaction(TraceComponent callersTrace, String action, Object transaction, int commsId, int commsFlags)
{
if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) {
// Build the trace string
String traceText = action + ": " + transaction +
" CommsId:" + co... | java | public static void traceTransaction(TraceComponent callersTrace, String action, Object transaction, int commsId, int commsFlags)
{
if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) {
// Build the trace string
String traceText = action + ": " + transaction +
" CommsId:" + co... | [
"public",
"static",
"void",
"traceTransaction",
"(",
"TraceComponent",
"callersTrace",
",",
"String",
"action",
",",
"Object",
"transaction",
",",
"int",
"commsId",
",",
"int",
"commsFlags",
")",
"{",
"if",
"(",
"light_tc",
".",
"isDebugEnabled",
"(",
")",
"||... | Trace a transaction associated with an action.
@param callersTrace The trace component of the caller
@param action A string (no spaces) provided by the caller to prefix the keyword included in the trace line
@param transaction An optional transaction associated with the action being performed on the message
@param comm... | [
"Trace",
"a",
"transaction",
"associated",
"with",
"an",
"action",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java#L135-L150 |
70,425 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java | CommsLightTrace.traceException | public static void traceException(TraceComponent callersTrace, Throwable ex)
{
if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) {
// Find XA completion code if one exists, as this isn't in a normal dump
String xaErrStr = null;
if (ex instanceof XAException) {
XAExce... | java | public static void traceException(TraceComponent callersTrace, Throwable ex)
{
if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) {
// Find XA completion code if one exists, as this isn't in a normal dump
String xaErrStr = null;
if (ex instanceof XAException) {
XAExce... | [
"public",
"static",
"void",
"traceException",
"(",
"TraceComponent",
"callersTrace",
",",
"Throwable",
"ex",
")",
"{",
"if",
"(",
"light_tc",
".",
"isDebugEnabled",
"(",
")",
"||",
"callersTrace",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"// Find XA completion... | Trace an exception.
@param callersTrace The trace component of the caller
@param ex The exception | [
"Trace",
"an",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java#L157-L178 |
70,426 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java | CommsLightTrace.minimalToString | public static String minimalToString(Object object)
{
return object.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(object));
} | java | public static String minimalToString(Object object)
{
return object.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(object));
} | [
"public",
"static",
"String",
"minimalToString",
"(",
"Object",
"object",
")",
"{",
"return",
"object",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\"@\"",
"+",
"Integer",
".",
"toHexString",
"(",
"System",
".",
"identityHashCode",
"(",
"obj... | Util to prevent full dump of the conversation in this class, as that
will print too much data if trace of this class is turned on to
get transaction and msgid information | [
"Util",
"to",
"prevent",
"full",
"dump",
"of",
"the",
"conversation",
"in",
"this",
"class",
"as",
"that",
"will",
"print",
"too",
"much",
"data",
"if",
"trace",
"of",
"this",
"class",
"is",
"turned",
"on",
"to",
"get",
"transaction",
"and",
"msgid",
"in... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java#L185-L188 |
70,427 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java | CommsLightTrace.msgToString | public static String msgToString(SIBusMessage message)
{
if (message == null) return STRING_NULL;
return message + "[" + message.getSystemMessageId() + "]";
} | java | public static String msgToString(SIBusMessage message)
{
if (message == null) return STRING_NULL;
return message + "[" + message.getSystemMessageId() + "]";
} | [
"public",
"static",
"String",
"msgToString",
"(",
"SIBusMessage",
"message",
")",
"{",
"if",
"(",
"message",
"==",
"null",
")",
"return",
"STRING_NULL",
";",
"return",
"message",
"+",
"\"[\"",
"+",
"message",
".",
"getSystemMessageId",
"(",
")",
"+",
"\"]\""... | Util to trace the System Message ID of a message along with the default toString | [
"Util",
"to",
"trace",
"the",
"System",
"Message",
"ID",
"of",
"a",
"message",
"along",
"with",
"the",
"default",
"toString"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsLightTrace.java#L193-L197 |
70,428 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyRuntimeTransformer.java | LibertyRuntimeTransformer.retransformClass | private final static void retransformClass(Class<?> clazz) {
if (detailedTransformTrace && tc.isEntryEnabled())
Tr.entry(tc, "retransformClass", clazz);
try {
instrumentation.retransformClasses(clazz);
} catch (Throwable t) {
Tr.error(tc, "INSTRUMENTATION_TRA... | java | private final static void retransformClass(Class<?> clazz) {
if (detailedTransformTrace && tc.isEntryEnabled())
Tr.entry(tc, "retransformClass", clazz);
try {
instrumentation.retransformClasses(clazz);
} catch (Throwable t) {
Tr.error(tc, "INSTRUMENTATION_TRA... | [
"private",
"final",
"static",
"void",
"retransformClass",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"if",
"(",
"detailedTransformTrace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"retransformClass\"",
","... | Ask the JVM to retransform the class that has recently been enabled for
trace. This class will explicitly call the class loader to load and
initialize the class to work around an IBM JDK issue with hot code replace
during class initialization.
@param clazz the class that needs to be instrumented with entry/exit trace | [
"Ask",
"the",
"JVM",
"to",
"retransform",
"the",
"class",
"that",
"has",
"recently",
"been",
"enabled",
"for",
"trace",
".",
"This",
"class",
"will",
"explicitly",
"call",
"the",
"class",
"loader",
"to",
"load",
"and",
"initialize",
"the",
"class",
"to",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyRuntimeTransformer.java#L245-L257 |
70,429 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaProducerSession.java | SibRaProducerSession.send | public void send(final SIBusMessage msg, final SITransaction tran)
throws SISessionDroppedException, SIConnectionDroppedException,
SISessionUnavailableException, SIConnectionUnavailableException,
SIConnectionLostException, SILimitExceededException,
SINotAuthorizedExceptio... | java | public void send(final SIBusMessage msg, final SITransaction tran)
throws SISessionDroppedException, SIConnectionDroppedException,
SISessionUnavailableException, SIConnectionUnavailableException,
SIConnectionLostException, SILimitExceededException,
SINotAuthorizedExceptio... | [
"public",
"void",
"send",
"(",
"final",
"SIBusMessage",
"msg",
",",
"final",
"SITransaction",
"tran",
")",
"throws",
"SISessionDroppedException",
",",
"SIConnectionDroppedException",
",",
"SISessionUnavailableException",
",",
"SIConnectionUnavailableException",
",",
"SIConn... | Sends a message. Checks that the session is valid. Maps the transaction
parameter before delegating.
@param msg
the message to send
@param tran
the transaction to send the message under
@throws SIConnectionUnavailableException
if the connection is not valid
@throws SINotPossibleInCurrentConfigurationException
if the d... | [
"Sends",
"a",
"message",
".",
"Checks",
"that",
"the",
"session",
"is",
"valid",
".",
"Maps",
"the",
"transaction",
"parameter",
"before",
"delegating",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaProducerSession.java#L109-L121 |
70,430 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/SocketIOChannel.java | SocketIOChannel.attemptReadFromSocket | protected IOResult attemptReadFromSocket(TCPBaseRequestContext readReq, boolean fromSelector) throws IOException {
IOResult rc = IOResult.NOT_COMPLETE;
TCPReadRequestContextImpl req = (TCPReadRequestContextImpl) readReq;
TCPConnLink conn = req.getTCPConnLink();
long dataRead = 0;
... | java | protected IOResult attemptReadFromSocket(TCPBaseRequestContext readReq, boolean fromSelector) throws IOException {
IOResult rc = IOResult.NOT_COMPLETE;
TCPReadRequestContextImpl req = (TCPReadRequestContextImpl) readReq;
TCPConnLink conn = req.getTCPConnLink();
long dataRead = 0;
... | [
"protected",
"IOResult",
"attemptReadFromSocket",
"(",
"TCPBaseRequestContext",
"readReq",
",",
"boolean",
"fromSelector",
")",
"throws",
"IOException",
"{",
"IOResult",
"rc",
"=",
"IOResult",
".",
"NOT_COMPLETE",
";",
"TCPReadRequestContextImpl",
"req",
"=",
"(",
"TC... | Attempt to read for the socket.
@param readReq
@param fromSelector
@return IOResult
@throws IOException | [
"Attempt",
"to",
"read",
"for",
"the",
"socket",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/SocketIOChannel.java#L117-L179 |
70,431 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/SocketIOChannel.java | SocketIOChannel.attemptWriteToSocket | protected IOResult attemptWriteToSocket(TCPBaseRequestContext req) throws IOException {
IOResult rc = IOResult.NOT_COMPLETE;
WsByteBuffer wsBuffArray[] = req.getBuffers();
long bytesWritten = attemptWriteToSocketUsingNIO(req, wsBuffArray);
req.setLastIOAmt(bytesWritten);
if (... | java | protected IOResult attemptWriteToSocket(TCPBaseRequestContext req) throws IOException {
IOResult rc = IOResult.NOT_COMPLETE;
WsByteBuffer wsBuffArray[] = req.getBuffers();
long bytesWritten = attemptWriteToSocketUsingNIO(req, wsBuffArray);
req.setLastIOAmt(bytesWritten);
if (... | [
"protected",
"IOResult",
"attemptWriteToSocket",
"(",
"TCPBaseRequestContext",
"req",
")",
"throws",
"IOException",
"{",
"IOResult",
"rc",
"=",
"IOResult",
".",
"NOT_COMPLETE",
";",
"WsByteBuffer",
"wsBuffArray",
"[",
"]",
"=",
"req",
".",
"getBuffers",
"(",
")",
... | Attempt to write information stored in the active buffers to the network.
@param req
@return IOResult
@throws IOException | [
"Attempt",
"to",
"write",
"information",
"stored",
"in",
"the",
"active",
"buffers",
"to",
"the",
"network",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/SocketIOChannel.java#L193-L244 |
70,432 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java | JaspiServiceImpl.getServerResourceAbsolutePath | static String getServerResourceAbsolutePath(String resourcePath) {
String path = null;
File f = new File(resourcePath);
if (f.isAbsolute()) {
path = resourcePath;
} else {
WsLocationAdmin wla = locationService.getServiceWithException();
if (wla != null... | java | static String getServerResourceAbsolutePath(String resourcePath) {
String path = null;
File f = new File(resourcePath);
if (f.isAbsolute()) {
path = resourcePath;
} else {
WsLocationAdmin wla = locationService.getServiceWithException();
if (wla != null... | [
"static",
"String",
"getServerResourceAbsolutePath",
"(",
"String",
"resourcePath",
")",
"{",
"String",
"path",
"=",
"null",
";",
"File",
"f",
"=",
"new",
"File",
"(",
"resourcePath",
")",
";",
"if",
"(",
"f",
".",
"isAbsolute",
"(",
")",
")",
"{",
"path... | Return the absolute path of the given resource path relative to the
server config dir. If the given resource path is already absolute
then just return it. If the location admin service is not available
then return null.
@param resourcePath path to resource
@return absolute path or null | [
"Return",
"the",
"absolute",
"path",
"of",
"the",
"given",
"resource",
"path",
"relative",
"to",
"the",
"server",
"config",
"dir",
".",
"If",
"the",
"given",
"resource",
"path",
"is",
"already",
"absolute",
"then",
"just",
"return",
"it",
".",
"If",
"the",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java#L199-L210 |
70,433 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java | JaspiServiceImpl.getAuthConfigProvider | private AuthConfigProvider getAuthConfigProvider(String appContext) {
AuthConfigProvider provider = null;
AuthConfigFactory providerFactory = getAuthConfigFactory();
if (providerFactory != null) {
if (providerConfigModified &&
providerFactory instanceof ProviderRegist... | java | private AuthConfigProvider getAuthConfigProvider(String appContext) {
AuthConfigProvider provider = null;
AuthConfigFactory providerFactory = getAuthConfigFactory();
if (providerFactory != null) {
if (providerConfigModified &&
providerFactory instanceof ProviderRegist... | [
"private",
"AuthConfigProvider",
"getAuthConfigProvider",
"(",
"String",
"appContext",
")",
"{",
"AuthConfigProvider",
"provider",
"=",
"null",
";",
"AuthConfigFactory",
"providerFactory",
"=",
"getAuthConfigFactory",
"(",
")",
";",
"if",
"(",
"providerFactory",
"!=",
... | Some comment why we're doing this | [
"Some",
"comment",
"why",
"we",
"re",
"doing",
"this"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java#L507-L519 |
70,434 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java | JaspiServiceImpl.doHashTableLogin | protected Subject doHashTableLogin(Subject clientSubject, JaspiRequest jaspiRequest) throws WSLoginFailedException {
Subject authenticatedSubject = null;
final Hashtable<String, Object> hashTable = getCustomCredentials(clientSubject);
String unauthenticatedSubjectString = UNAUTHENTICATED_ID;
... | java | protected Subject doHashTableLogin(Subject clientSubject, JaspiRequest jaspiRequest) throws WSLoginFailedException {
Subject authenticatedSubject = null;
final Hashtable<String, Object> hashTable = getCustomCredentials(clientSubject);
String unauthenticatedSubjectString = UNAUTHENTICATED_ID;
... | [
"protected",
"Subject",
"doHashTableLogin",
"(",
"Subject",
"clientSubject",
",",
"JaspiRequest",
"jaspiRequest",
")",
"throws",
"WSLoginFailedException",
"{",
"Subject",
"authenticatedSubject",
"=",
"null",
";",
"final",
"Hashtable",
"<",
"String",
",",
"Object",
">"... | Create a WAS Subject using the HashTable obtained from the JASPI provider
@param clientSubject Subject containing the JASPI HashTable
@param jaspiRequest
@return the WAS Subject
@throws WSLoginFailedException | [
"Create",
"a",
"WAS",
"Subject",
"using",
"the",
"HashTable",
"obtained",
"from",
"the",
"JASPI",
"provider"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiServiceImpl.java#L760-L828 |
70,435 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java | Root.getContexts | public List<com.ibm.wsspi.security.wim.model.Context> getContexts() {
if (contexts == null) {
contexts = new ArrayList<com.ibm.wsspi.security.wim.model.Context>();
}
return this.contexts;
} | java | public List<com.ibm.wsspi.security.wim.model.Context> getContexts() {
if (contexts == null) {
contexts = new ArrayList<com.ibm.wsspi.security.wim.model.Context>();
}
return this.contexts;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"Context",
">",
"getContexts",
"(",
")",
"{",
"if",
"(",
"contexts",
"==",
"null",
")",
"{",
"contexts",
"=",
"new",
"ArrayList",
"<",
"com",
".... | Gets the value of the contexts property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the contexts property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"contexts",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java#L113-L118 |
70,436 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java | Root.getEntities | public List<com.ibm.wsspi.security.wim.model.Entity> getEntities() {
if (entities == null) {
entities = new ArrayList<com.ibm.wsspi.security.wim.model.Entity>();
}
return this.entities;
} | java | public List<com.ibm.wsspi.security.wim.model.Entity> getEntities() {
if (entities == null) {
entities = new ArrayList<com.ibm.wsspi.security.wim.model.Entity>();
}
return this.entities;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"Entity",
">",
"getEntities",
"(",
")",
"{",
"if",
"(",
"entities",
"==",
"null",
")",
"{",
"entities",
"=",
"new",
"ArrayList",
"<",
"com",
"."... | Gets the value of the entities property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the entities property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"entities",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java#L150-L155 |
70,437 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java | Root.getControls | public List<com.ibm.wsspi.security.wim.model.Control> getControls() {
if (controls == null) {
controls = new ArrayList<com.ibm.wsspi.security.wim.model.Control>();
}
return this.controls;
} | java | public List<com.ibm.wsspi.security.wim.model.Control> getControls() {
if (controls == null) {
controls = new ArrayList<com.ibm.wsspi.security.wim.model.Control>();
}
return this.controls;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"Control",
">",
"getControls",
"(",
")",
"{",
"if",
"(",
"controls",
"==",
"null",
")",
"{",
"controls",
"=",
"new",
"ArrayList",
"<",
"com",
".... | Gets the value of the controls property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the controls property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"controls",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Root.java#L187-L192 |
70,438 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PartialTopicMatch.java | PartialTopicMatch.skipForward | private int skipForward(char[] chars, int start, int length) {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "skipForward", new Object[]{chars,new Integer(start),
new Integer(length)});
int ans = length;
for (int i = 0; i < length; i++)
if (chars[start+i] == MatchSpace.SUBTOPIC_SEPARATO... | java | private int skipForward(char[] chars, int start, int length) {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "skipForward", new Object[]{chars,new Integer(start),
new Integer(length)});
int ans = length;
for (int i = 0; i < length; i++)
if (chars[start+i] == MatchSpace.SUBTOPIC_SEPARATO... | [
"private",
"int",
"skipForward",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"start",
",",
"int",
"length",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"skipForward\"",
",",
... | Skip forward to next separator | [
"Skip",
"forward",
"to",
"next",
"separator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PartialTopicMatch.java#L118-L131 |
70,439 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PartialTopicMatch.java | PartialTopicMatch.get | void get(
char[] chars,
int start,
int length,
boolean invert,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
SearchResults result)
throws MatchingException, BadMessageFormatMatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "get", new Object[]{c... | java | void get(
char[] chars,
int start,
int length,
boolean invert,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
SearchResults result)
throws MatchingException, BadMessageFormatMatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "get", new Object[]{c... | [
"void",
"get",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"start",
",",
"int",
"length",
",",
"boolean",
"invert",
",",
"MatchSpaceKey",
"msg",
",",
"EvalCache",
"cache",
",",
"Object",
"contextValue",
",",
"SearchResults",
"result",
")",
"throws",
"Match... | Override get to rule out NONWILD_MARKER | [
"Override",
"get",
"to",
"rule",
"out",
"NONWILD_MARKER"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/PartialTopicMatch.java#L150-L167 |
70,440 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java | FATHelper.reloadApplications | public static void reloadApplications(LibertyServer server, final Set<String> appIdsToReload) throws Exception {
ServerConfiguration config = server.getServerConfiguration().clone();
/*
* Get the apps to remove.
*/
ConfigElementList<Application> toRemove = new ConfigElementLis... | java | public static void reloadApplications(LibertyServer server, final Set<String> appIdsToReload) throws Exception {
ServerConfiguration config = server.getServerConfiguration().clone();
/*
* Get the apps to remove.
*/
ConfigElementList<Application> toRemove = new ConfigElementLis... | [
"public",
"static",
"void",
"reloadApplications",
"(",
"LibertyServer",
"server",
",",
"final",
"Set",
"<",
"String",
">",
"appIdsToReload",
")",
"throws",
"Exception",
"{",
"ServerConfiguration",
"config",
"=",
"server",
".",
"getServerConfiguration",
"(",
")",
"... | Reload select applications.
@throws Exception If there was an error reloading the applications for some unforeseen reason. | [
"Reload",
"select",
"applications",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java#L31-L50 |
70,441 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java | FATHelper.updateConfigDynamically | public static void updateConfigDynamically(LibertyServer server, ServerConfiguration config, boolean waitForAppToStart) throws Exception {
resetMarksInLogs(server);
server.updateServerConfiguration(config);
server.waitForStringInLogUsingMark("CWWKG001[7-8]I");
if (waitForAppToStart) {
... | java | public static void updateConfigDynamically(LibertyServer server, ServerConfiguration config, boolean waitForAppToStart) throws Exception {
resetMarksInLogs(server);
server.updateServerConfiguration(config);
server.waitForStringInLogUsingMark("CWWKG001[7-8]I");
if (waitForAppToStart) {
... | [
"public",
"static",
"void",
"updateConfigDynamically",
"(",
"LibertyServer",
"server",
",",
"ServerConfiguration",
"config",
",",
"boolean",
"waitForAppToStart",
")",
"throws",
"Exception",
"{",
"resetMarksInLogs",
"(",
"server",
")",
";",
"server",
".",
"updateServer... | This method will the reset the log and trace marks for log and trace searches, update the
configuration and then wait for the server to re-initialize. Optionally it will then wait for the application to start.
@param server The server to update.
@param config The configuration to use.
@param waitForAppToStart Wait for... | [
"This",
"method",
"will",
"the",
"reset",
"the",
"log",
"and",
"trace",
"marks",
"for",
"log",
"and",
"trace",
"searches",
"update",
"the",
"configuration",
"and",
"then",
"wait",
"for",
"the",
"server",
"to",
"re",
"-",
"initialize",
".",
"Optionally",
"i... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java#L61-L68 |
70,442 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java | FATHelper.resetMarksInLogs | public static void resetMarksInLogs(LibertyServer server) throws Exception {
server.setMarkToEndOfLog(server.getDefaultLogFile());
server.setMarkToEndOfLog(server.getMostRecentTraceFile());
} | java | public static void resetMarksInLogs(LibertyServer server) throws Exception {
server.setMarkToEndOfLog(server.getDefaultLogFile());
server.setMarkToEndOfLog(server.getMostRecentTraceFile());
} | [
"public",
"static",
"void",
"resetMarksInLogs",
"(",
"LibertyServer",
"server",
")",
"throws",
"Exception",
"{",
"server",
".",
"setMarkToEndOfLog",
"(",
"server",
".",
"getDefaultLogFile",
"(",
")",
")",
";",
"server",
".",
"setMarkToEndOfLog",
"(",
"server",
"... | Reset the marks in all Liberty logs.
@param server The server for the logs to reset the marks.
@throws Exception If there was an error resetting the marks. | [
"Reset",
"the",
"marks",
"in",
"all",
"Liberty",
"logs",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/FATHelper.java#L76-L79 |
70,443 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtCatchMethodAdapter.java | ProbeAtCatchMethodAdapter.onHandlerEntry | private void onHandlerEntry() {
if (enabled) {
Type exceptionType = handlers.get(handlerPendingInstruction);
// Clear the pending instruction flag
handlerPendingInstruction = null;
// Filter the interested down to this exception
Set<ProbeListener> fi... | java | private void onHandlerEntry() {
if (enabled) {
Type exceptionType = handlers.get(handlerPendingInstruction);
// Clear the pending instruction flag
handlerPendingInstruction = null;
// Filter the interested down to this exception
Set<ProbeListener> fi... | [
"private",
"void",
"onHandlerEntry",
"(",
")",
"{",
"if",
"(",
"enabled",
")",
"{",
"Type",
"exceptionType",
"=",
"handlers",
".",
"get",
"(",
"handlerPendingInstruction",
")",
";",
"// Clear the pending instruction flag",
"handlerPendingInstruction",
"=",
"null",
"... | Generate the code required to fire a probe out of an exception
handler. | [
"Generate",
"the",
"code",
"required",
"to",
"fire",
"a",
"probe",
"out",
"of",
"an",
"exception",
"handler",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtCatchMethodAdapter.java#L123-L171 |
70,444 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/FileLock.java | FileLock.getFileLock | public static FileLock getFileLock(java.io.RandomAccessFile file, String fileName) throws java.io.IOException
{
return (FileLock) Utils.getImpl("com.ibm.ws.objectManager.utils.FileLockImpl",
new Class[] { java.io.RandomAccessFile.class, String.class },
... | java | public static FileLock getFileLock(java.io.RandomAccessFile file, String fileName) throws java.io.IOException
{
return (FileLock) Utils.getImpl("com.ibm.ws.objectManager.utils.FileLockImpl",
new Class[] { java.io.RandomAccessFile.class, String.class },
... | [
"public",
"static",
"FileLock",
"getFileLock",
"(",
"java",
".",
"io",
".",
"RandomAccessFile",
"file",
",",
"String",
"fileName",
")",
"throws",
"java",
".",
"io",
".",
"IOException",
"{",
"return",
"(",
"FileLock",
")",
"Utils",
".",
"getImpl",
"(",
"\"c... | Create a platform specific FileLock instance.
@param file to be locked. The file must be already open.
@param fileName of the file.
@return FileLock for the file.
@throws java.io.IOException | [
"Create",
"a",
"platform",
"specific",
"FileLock",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/FileLock.java#L33-L38 |
70,445 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/ViewPoolProcessor.java | ViewPoolProcessor.initialize | public static void initialize(FacesContext context)
{
if (context.isProjectStage(ProjectStage.Production))
{
boolean initialize = true;
String elMode = WebConfigParamUtils.getStringInitParameter(
context.getExternalContext(),
Fa... | java | public static void initialize(FacesContext context)
{
if (context.isProjectStage(ProjectStage.Production))
{
boolean initialize = true;
String elMode = WebConfigParamUtils.getStringInitParameter(
context.getExternalContext(),
Fa... | [
"public",
"static",
"void",
"initialize",
"(",
"FacesContext",
"context",
")",
"{",
"if",
"(",
"context",
".",
"isProjectStage",
"(",
"ProjectStage",
".",
"Production",
")",
")",
"{",
"boolean",
"initialize",
"=",
"true",
";",
"String",
"elMode",
"=",
"WebCo... | This method should be called at startup to decide if a view processor should be
provided or not to the runtime.
@param context | [
"This",
"method",
"should",
"be",
"called",
"at",
"startup",
"to",
"decide",
"if",
"a",
"view",
"processor",
"should",
"be",
"provided",
"or",
"not",
"to",
"the",
"runtime",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/ViewPoolProcessor.java#L162-L212 |
70,446 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/ViewPoolProcessor.java | ViewPoolProcessor.clearTransientAndNonFaceletComponents | private void clearTransientAndNonFaceletComponents(final FacesContext context, final UIComponent component)
{
//Scan children
int childCount = component.getChildCount();
if (childCount > 0)
{
for (int i = 0; i < childCount; i++)
{
UIComponent c... | java | private void clearTransientAndNonFaceletComponents(final FacesContext context, final UIComponent component)
{
//Scan children
int childCount = component.getChildCount();
if (childCount > 0)
{
for (int i = 0; i < childCount; i++)
{
UIComponent c... | [
"private",
"void",
"clearTransientAndNonFaceletComponents",
"(",
"final",
"FacesContext",
"context",
",",
"final",
"UIComponent",
"component",
")",
"{",
"//Scan children",
"int",
"childCount",
"=",
"component",
".",
"getChildCount",
"(",
")",
";",
"if",
"(",
"childC... | Clear all transient components not created by facelets algorithm. In this way,
we ensure the component tree does not have any changes done after markInitialState.
@param context
@param component | [
"Clear",
"all",
"transient",
"components",
"not",
"created",
"by",
"facelets",
"algorithm",
".",
"In",
"this",
"way",
"we",
"ensure",
"the",
"component",
"tree",
"does",
"not",
"have",
"any",
"changes",
"done",
"after",
"markInitialState",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/ViewPoolProcessor.java#L712-L759 |
70,447 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction.cdi/src/com/ibm/tx/jta/cdi/TransactionContext.java | TransactionContext.destroy | @Override
public void destroy() {
if (tc.isEntryEnabled())
Tr.entry(tc, "destroy", this);
// check the TSR is active - otherwise we can trigger exceptions when we
// try to get data out of it.
if (tsr.getTransactionKey() != null) {
final Map<String, InstanceA... | java | @Override
public void destroy() {
if (tc.isEntryEnabled())
Tr.entry(tc, "destroy", this);
// check the TSR is active - otherwise we can trigger exceptions when we
// try to get data out of it.
if (tsr.getTransactionKey() != null) {
final Map<String, InstanceA... | [
"@",
"Override",
"public",
"void",
"destroy",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"destroy\"",
",",
"this",
")",
";",
"// check the TSR is active - otherwise we can trigger exceptions when w... | Destroy the entire context. This causes @PreDestroy annotated methods to be
called on all the bean instances that this scope has created. | [
"Destroy",
"the",
"entire",
"context",
".",
"This",
"causes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction.cdi/src/com/ibm/tx/jta/cdi/TransactionContext.java#L186-L216 |
70,448 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl.doPrePhaseActions | @Override
public void doPrePhaseActions(FacesContext facesContext)
{
if (!_flashScopeDisabled)
{
final PhaseId currentPhaseId = facesContext.getCurrentPhaseId();
if (PhaseId.RESTORE_VIEW.equals(currentPhaseId))
{
// restore the redirec... | java | @Override
public void doPrePhaseActions(FacesContext facesContext)
{
if (!_flashScopeDisabled)
{
final PhaseId currentPhaseId = facesContext.getCurrentPhaseId();
if (PhaseId.RESTORE_VIEW.equals(currentPhaseId))
{
// restore the redirec... | [
"@",
"Override",
"public",
"void",
"doPrePhaseActions",
"(",
"FacesContext",
"facesContext",
")",
"{",
"if",
"(",
"!",
"_flashScopeDisabled",
")",
"{",
"final",
"PhaseId",
"currentPhaseId",
"=",
"facesContext",
".",
"getCurrentPhaseId",
"(",
")",
";",
"if",
"(",... | Used to restore the redirect value and the FacesMessages of the previous
request and to manage the flashMap tokens for this request before phase
restore view starts. | [
"Used",
"to",
"restore",
"the",
"redirect",
"value",
"and",
"the",
"FacesMessages",
"of",
"the",
"previous",
"request",
"and",
"to",
"manage",
"the",
"flashMap",
"tokens",
"for",
"this",
"request",
"before",
"phase",
"restore",
"view",
"starts",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L211-L233 |
70,449 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl.isRedirect | @Override
public boolean isRedirect()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
boolean thisRedirect = _isRedirectTrueOnThisRequest(facesContext);
boolean prevRedirect = _isRedirectTrueOnPreviousRequest(facesContext);
boolean executePhase = !PhaseId.RENDER_... | java | @Override
public boolean isRedirect()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
boolean thisRedirect = _isRedirectTrueOnThisRequest(facesContext);
boolean prevRedirect = _isRedirectTrueOnPreviousRequest(facesContext);
boolean executePhase = !PhaseId.RENDER_... | [
"@",
"Override",
"public",
"boolean",
"isRedirect",
"(",
")",
"{",
"FacesContext",
"facesContext",
"=",
"FacesContext",
".",
"getCurrentInstance",
"(",
")",
";",
"boolean",
"thisRedirect",
"=",
"_isRedirectTrueOnThisRequest",
"(",
"facesContext",
")",
";",
"boolean"... | Return the value of this property for the flash for this session.
This must be false unless:
- setRedirect(boolean) was called for the current lifecycle traversal
with true as the argument.
- The current lifecycle traversal for this session is in the "execute"
phase and the previous traversal had setRedirect(boolean) ... | [
"Return",
"the",
"value",
"of",
"this",
"property",
"for",
"the",
"flash",
"for",
"this",
"session",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L288-L297 |
70,450 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl.keep | @Override
public void keep(String key)
{
_checkFlashScopeDisabled();
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
Object value = requestMap.get(key);
// if the k... | java | @Override
public void keep(String key)
{
_checkFlashScopeDisabled();
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
Object value = requestMap.get(key);
// if the k... | [
"@",
"Override",
"public",
"void",
"keep",
"(",
"String",
"key",
")",
"{",
"_checkFlashScopeDisabled",
"(",
")",
";",
"FacesContext",
"facesContext",
"=",
"FacesContext",
".",
"getCurrentInstance",
"(",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"re... | Take a value from the requestMap, or if it does not exist from the
execute FlashMap, and put it on the render FlashMap, so it is visible on
the next request. | [
"Take",
"a",
"value",
"from",
"the",
"requestMap",
"or",
"if",
"it",
"does",
"not",
"exist",
"from",
"the",
"execute",
"FlashMap",
"and",
"put",
"it",
"on",
"the",
"render",
"FlashMap",
"so",
"it",
"is",
"visible",
"on",
"the",
"next",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L344-L374 |
70,451 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl.putNow | @Override
public void putNow(String key, Object value)
{
_checkFlashScopeDisabled();
FacesContext.getCurrentInstance().getExternalContext()
.getRequestMap().put(key, value);
} | java | @Override
public void putNow(String key, Object value)
{
_checkFlashScopeDisabled();
FacesContext.getCurrentInstance().getExternalContext()
.getRequestMap().put(key, value);
} | [
"@",
"Override",
"public",
"void",
"putNow",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"_checkFlashScopeDisabled",
"(",
")",
";",
"FacesContext",
".",
"getCurrentInstance",
"(",
")",
".",
"getExternalContext",
"(",
")",
".",
"getRequestMap",
"(",... | This is just an alias for the request scope map. | [
"This",
"is",
"just",
"an",
"alias",
"for",
"the",
"request",
"scope",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L379-L385 |
70,452 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl.setKeepMessages | @Override
public void setKeepMessages(boolean keepMessages)
{
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
Map<String, Object> requestMap = externalContext.getRequestMap();
requestMap.put(FLASH... | java | @Override
public void setKeepMessages(boolean keepMessages)
{
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
Map<String, Object> requestMap = externalContext.getRequestMap();
requestMap.put(FLASH... | [
"@",
"Override",
"public",
"void",
"setKeepMessages",
"(",
"boolean",
"keepMessages",
")",
"{",
"FacesContext",
"facesContext",
"=",
"FacesContext",
".",
"getCurrentInstance",
"(",
")",
";",
"ExternalContext",
"externalContext",
"=",
"facesContext",
".",
"getExternalC... | If this property is true, the messages should be kept for the next
request, no matter if it is a normal postback case or a POST-
REDIRECT-GET case.
Note that we don't have to store this value for the next request
(like setRedirect()), because we will know if it was true on the
next request, if we can find any stored m... | [
"If",
"this",
"property",
"is",
"true",
"the",
"messages",
"should",
"be",
"kept",
"for",
"the",
"next",
"request",
"no",
"matter",
"if",
"it",
"is",
"a",
"normal",
"postback",
"case",
"or",
"a",
"POST",
"-",
"REDIRECT",
"-",
"GET",
"case",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L412-L419 |
70,453 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._restoreMessages | @SuppressWarnings("unchecked")
private void _restoreMessages(FacesContext facesContext)
{
List<MessageEntry> messageList = (List<MessageEntry>)
_getExecuteFlashMap(facesContext).get(FLASH_KEEP_MESSAGES_LIST);
if (messageList != null)
{
Iterator<MessageEntry>... | java | @SuppressWarnings("unchecked")
private void _restoreMessages(FacesContext facesContext)
{
List<MessageEntry> messageList = (List<MessageEntry>)
_getExecuteFlashMap(facesContext).get(FLASH_KEEP_MESSAGES_LIST);
if (messageList != null)
{
Iterator<MessageEntry>... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"void",
"_restoreMessages",
"(",
"FacesContext",
"facesContext",
")",
"{",
"List",
"<",
"MessageEntry",
">",
"messageList",
"=",
"(",
"List",
"<",
"MessageEntry",
">",
")",
"_getExecuteFlashMap",
"(",
... | Restore any saved FacesMessages from the previous request.
Note that we don't need to save the keepMessages value for this request,
because we just have to check if the value for FLASH_KEEP_MESSAGES_LIST exists.
@param facesContext | [
"Restore",
"any",
"saved",
"FacesMessages",
"from",
"the",
"previous",
"request",
".",
"Note",
"that",
"we",
"don",
"t",
"need",
"to",
"save",
"the",
"keepMessages",
"value",
"for",
"this",
"request",
"because",
"we",
"just",
"have",
"to",
"check",
"if",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L725-L744 |
70,454 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._saveRenderFlashMapTokenForNextRequest | private void _saveRenderFlashMapTokenForNextRequest(FacesContext facesContext)
{
ExternalContext externalContext = facesContext.getExternalContext();
String tokenValue = (String) externalContext.getRequestMap().get(FLASH_RENDER_MAP_TOKEN);
ClientWindow clientWindow = externalContext.getClien... | java | private void _saveRenderFlashMapTokenForNextRequest(FacesContext facesContext)
{
ExternalContext externalContext = facesContext.getExternalContext();
String tokenValue = (String) externalContext.getRequestMap().get(FLASH_RENDER_MAP_TOKEN);
ClientWindow clientWindow = externalContext.getClien... | [
"private",
"void",
"_saveRenderFlashMapTokenForNextRequest",
"(",
"FacesContext",
"facesContext",
")",
"{",
"ExternalContext",
"externalContext",
"=",
"facesContext",
".",
"getExternalContext",
"(",
")",
";",
"String",
"tokenValue",
"=",
"(",
"String",
")",
"externalCon... | Take the render map key and store it as a key for the next request.
On the next request we can get it with _getRenderFlashMapTokenFromPreviousRequest().
@param externalContext | [
"Take",
"the",
"render",
"map",
"key",
"and",
"store",
"it",
"as",
"a",
"key",
"for",
"the",
"next",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L752-L786 |
70,455 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._getRenderFlashMapTokenFromPreviousRequest | private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext)
{
ExternalContext externalContext = facesContext.getExternalContext();
String tokenValue = null;
ClientWindow clientWindow = externalContext.getClientWindow();
if (clientWindow != null)
{
... | java | private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext)
{
ExternalContext externalContext = facesContext.getExternalContext();
String tokenValue = null;
ClientWindow clientWindow = externalContext.getClientWindow();
if (clientWindow != null)
{
... | [
"private",
"String",
"_getRenderFlashMapTokenFromPreviousRequest",
"(",
"FacesContext",
"facesContext",
")",
"{",
"ExternalContext",
"externalContext",
"=",
"facesContext",
".",
"getExternalContext",
"(",
")",
";",
"String",
"tokenValue",
"=",
"null",
";",
"ClientWindow",... | Retrieve the map token of the render map from the previous request.
Returns the value of _saveRenderFlashMapTokenForNextRequest() from
the previous request.
@param externalContext
@return | [
"Retrieve",
"the",
"map",
"token",
"of",
"the",
"render",
"map",
"from",
"the",
"previous",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L796-L838 |
70,456 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._getRenderFlashMap | @SuppressWarnings("unchecked")
private Map<String, Object> _getRenderFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equal and point to the same ent... | java | @SuppressWarnings("unchecked")
private Map<String, Object> _getRenderFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equal and point to the same ent... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"Map",
"<",
"String",
",",
"Object",
">",
"_getRenderFlashMap",
"(",
"FacesContext",
"context",
")",
"{",
"// Note that we don't have to synchronize here, because it is no problem",
"// if we create more SubKeyMaps ... | Return the flash map created on this traversal.
This FlashMap will be the execute FlashMap of the next traversal.
Note that it is supposed that FLASH_RENDER_MAP_TOKEN is initialized
before restore view phase (see doPrePhaseActions() for details).
@param context
@return | [
"Return",
"the",
"flash",
"map",
"created",
"on",
"this",
"traversal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L932-L949 |
70,457 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._getExecuteFlashMap | @SuppressWarnings("unchecked")
private Map<String, Object> _getExecuteFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equal and point to the same en... | java | @SuppressWarnings("unchecked")
private Map<String, Object> _getExecuteFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equal and point to the same en... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"Map",
"<",
"String",
",",
"Object",
">",
"_getExecuteFlashMap",
"(",
"FacesContext",
"context",
")",
"{",
"// Note that we don't have to synchronize here, because it is no problem",
"// if we create more SubKeyMaps... | Return the execute Flash Map.
This FlashMap was the render FlashMap of the previous traversal.
@param context
@return | [
"Return",
"the",
"execute",
"Flash",
"Map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L959-L976 |
70,458 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._clearExecuteFlashMap | private void _clearExecuteFlashMap(FacesContext facesContext)
{
Map<String, Object> map = _getExecuteFlashMap(facesContext);
if (!map.isEmpty()) { //RTC 168417 / JIRA MYFACES-3975
//JSF 2.2 invoke PreClearFlashEvent
facesContext.getApplication().publishEvent(facesContext,
... | java | private void _clearExecuteFlashMap(FacesContext facesContext)
{
Map<String, Object> map = _getExecuteFlashMap(facesContext);
if (!map.isEmpty()) { //RTC 168417 / JIRA MYFACES-3975
//JSF 2.2 invoke PreClearFlashEvent
facesContext.getApplication().publishEvent(facesContext,
... | [
"private",
"void",
"_clearExecuteFlashMap",
"(",
"FacesContext",
"facesContext",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
"=",
"_getExecuteFlashMap",
"(",
"facesContext",
")",
";",
"if",
"(",
"!",
"map",
".",
"isEmpty",
"(",
")",
")",
"{"... | Destroy the execute FlashMap, because it is not needed anymore.
@param facesContext | [
"Destroy",
"the",
"execute",
"FlashMap",
"because",
"it",
"is",
"not",
"needed",
"anymore",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L1062-L1080 |
70,459 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._createFlashCookie | private Cookie _createFlashCookie(String name, String value, ExternalContext externalContext)
{
Cookie cookie = new Cookie(name, value);
cookie.setMaxAge(-1);
cookie.setPath(_getCookiePath(externalContext));
cookie.setSecure(externalContext.isSecure());
//cookie.setHttpOnly(... | java | private Cookie _createFlashCookie(String name, String value, ExternalContext externalContext)
{
Cookie cookie = new Cookie(name, value);
cookie.setMaxAge(-1);
cookie.setPath(_getCookiePath(externalContext));
cookie.setSecure(externalContext.isSecure());
//cookie.setHttpOnly(... | [
"private",
"Cookie",
"_createFlashCookie",
"(",
"String",
"name",
",",
"String",
"value",
",",
"ExternalContext",
"externalContext",
")",
"{",
"Cookie",
"cookie",
"=",
"new",
"Cookie",
"(",
"name",
",",
"value",
")",
";",
"cookie",
".",
"setMaxAge",
"(",
"-"... | Creates a Cookie with the given name and value.
In addition, it will be configured with maxAge=-1, the current request path and secure value.
@param name
@param value
@param externalContext
@return | [
"Creates",
"a",
"Cookie",
"with",
"the",
"given",
"name",
"and",
"value",
".",
"In",
"addition",
"it",
"will",
"be",
"configured",
"with",
"maxAge",
"=",
"-",
"1",
"the",
"current",
"request",
"path",
"and",
"secure",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L1177-L1190 |
70,460 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._getCookiePath | private String _getCookiePath(ExternalContext externalContext)
{
String contextPath = externalContext.getRequestContextPath();
if (contextPath == null || "".equals(contextPath))
{
contextPath = "/";
}
return contextPath;
} | java | private String _getCookiePath(ExternalContext externalContext)
{
String contextPath = externalContext.getRequestContextPath();
if (contextPath == null || "".equals(contextPath))
{
contextPath = "/";
}
return contextPath;
} | [
"private",
"String",
"_getCookiePath",
"(",
"ExternalContext",
"externalContext",
")",
"{",
"String",
"contextPath",
"=",
"externalContext",
".",
"getRequestContextPath",
"(",
")",
";",
"if",
"(",
"contextPath",
"==",
"null",
"||",
"\"\"",
".",
"equals",
"(",
"c... | Returns the path for the Flash-Cookies.
@param externalContext
@return | [
"Returns",
"the",
"path",
"for",
"the",
"Flash",
"-",
"Cookies",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L1197-L1207 |
70,461 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java | FlashImpl._convertToBoolean | private Boolean _convertToBoolean(Object value)
{
Boolean booleanValue;
if (value instanceof Boolean)
{
booleanValue = (Boolean) value;
}
else
{
booleanValue = Boolean.parseBoolean(value.toString());
}
return booleanValue;
} | java | private Boolean _convertToBoolean(Object value)
{
Boolean booleanValue;
if (value instanceof Boolean)
{
booleanValue = (Boolean) value;
}
else
{
booleanValue = Boolean.parseBoolean(value.toString());
}
return booleanValue;
} | [
"private",
"Boolean",
"_convertToBoolean",
"(",
"Object",
"value",
")",
"{",
"Boolean",
"booleanValue",
";",
"if",
"(",
"value",
"instanceof",
"Boolean",
")",
"{",
"booleanValue",
"=",
"(",
"Boolean",
")",
"value",
";",
"}",
"else",
"{",
"booleanValue",
"=",... | Convert the Object to a Boolean.
@param value
@return | [
"Convert",
"the",
"Object",
"to",
"a",
"Boolean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/context/flash/FlashImpl.java#L1214-L1226 |
70,462 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/MetatypeUtils.java | MetatypeUtils.evaluateDuration | @FFDCIgnore(NumberFormatException.class)
public static Long evaluateDuration(String strVal, TimeUnit endUnit) {
// If the value is a number, simply return the numeric value as a long
try {
return Long.valueOf(strVal);
} catch (NumberFormatException ex) {
// ignore
... | java | @FFDCIgnore(NumberFormatException.class)
public static Long evaluateDuration(String strVal, TimeUnit endUnit) {
// If the value is a number, simply return the numeric value as a long
try {
return Long.valueOf(strVal);
} catch (NumberFormatException ex) {
// ignore
... | [
"@",
"FFDCIgnore",
"(",
"NumberFormatException",
".",
"class",
")",
"public",
"static",
"Long",
"evaluateDuration",
"(",
"String",
"strVal",
",",
"TimeUnit",
"endUnit",
")",
"{",
"// If the value is a number, simply return the numeric value as a long",
"try",
"{",
"return... | Converts a string value representing a unit of time into a Long value.
@param strVal
A String representing a unit of time.
@param unit
The unit of time that the string value should be converted into
@return Long The value of the string in the desired time unit | [
"Converts",
"a",
"string",
"value",
"representing",
"a",
"unit",
"of",
"time",
"into",
"a",
"Long",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/MetatypeUtils.java#L495-L506 |
70,463 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/MetatypeUtils.java | MetatypeUtils.collapseWhitespace | @Trivial
private static String collapseWhitespace(String value) {
final int length = value.length();
for (int i = 0; i < length; ++i) {
if (isSpace(value.charAt(i))) {
return collapse0(value, i, length);
}
}
return value;
} | java | @Trivial
private static String collapseWhitespace(String value) {
final int length = value.length();
for (int i = 0; i < length; ++i) {
if (isSpace(value.charAt(i))) {
return collapse0(value, i, length);
}
}
return value;
} | [
"@",
"Trivial",
"private",
"static",
"String",
"collapseWhitespace",
"(",
"String",
"value",
")",
"{",
"final",
"int",
"length",
"=",
"value",
".",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"++",
"i",
... | Collapses contiguous sequences of whitespace to a single 0x20.
Leading and trailing whitespace is removed. | [
"Collapses",
"contiguous",
"sequences",
"of",
"whitespace",
"to",
"a",
"single",
"0x20",
".",
"Leading",
"and",
"trailing",
"whitespace",
"is",
"removed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/MetatypeUtils.java#L557-L566 |
70,464 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/jfap/inbound/channel/CommsInboundChain.java | CommsInboundChain.stop | public void stop() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "CommsInboundChain Stop");
//stopchain() first quiesce's(invokes chainQuiesced) depending on the chainQuiesceTimeOut
//Once the chain is quiesced StopChainTask is initiated.Hence we... | java | public void stop() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "CommsInboundChain Stop");
//stopchain() first quiesce's(invokes chainQuiesced) depending on the chainQuiesceTimeOut
//Once the chain is quiesced StopChainTask is initiated.Hence we... | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"CommsInboundChain Stop\"",
")",
";",
"//stopchain() first ... | stop will get called only from de-activate. | [
"stop",
"will",
"get",
"called",
"only",
"from",
"de",
"-",
"activate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/jfap/inbound/channel/CommsInboundChain.java#L139-L162 |
70,465 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/tai/TAIRequestHelper.java | TAIRequestHelper.shouldDeferToJwtSso | private boolean shouldDeferToJwtSso(HttpServletRequest req, MicroProfileJwtConfig config, MicroProfileJwtConfig jwtssoConfig) {
if ((!isJwtSsoFeatureActive(config)) && (jwtssoConfig == null)) {
return false;
}
String hdrValue = req.getHeader(Authorization_Header);
if (tc.isD... | java | private boolean shouldDeferToJwtSso(HttpServletRequest req, MicroProfileJwtConfig config, MicroProfileJwtConfig jwtssoConfig) {
if ((!isJwtSsoFeatureActive(config)) && (jwtssoConfig == null)) {
return false;
}
String hdrValue = req.getHeader(Authorization_Header);
if (tc.isD... | [
"private",
"boolean",
"shouldDeferToJwtSso",
"(",
"HttpServletRequest",
"req",
",",
"MicroProfileJwtConfig",
"config",
",",
"MicroProfileJwtConfig",
"jwtssoConfig",
")",
"{",
"if",
"(",
"(",
"!",
"isJwtSsoFeatureActive",
"(",
"config",
")",
")",
"&&",
"(",
"jwtssoCo... | if we don't have a valid bearer header, and jwtsso is active, we should defer. | [
"if",
"we",
"don",
"t",
"have",
"a",
"valid",
"bearer",
"header",
"and",
"jwtsso",
"is",
"active",
"we",
"should",
"defer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/tai/TAIRequestHelper.java#L106-L118 |
70,466 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.filemonitor/src/com/ibm/ws/kernel/filemonitor/internal/DirectoryUpdateMonitor.java | DirectoryUpdateMonitor.matches | protected boolean matches(File f, boolean isFile) {
if (fileFilter != null) {
if (isFile && directoriesOnly) {
return false;
} else if (!isFile && filesOnly) {
return false;
} else if (fileNameRegex != null) {
Matcher m = fileNa... | java | protected boolean matches(File f, boolean isFile) {
if (fileFilter != null) {
if (isFile && directoriesOnly) {
return false;
} else if (!isFile && filesOnly) {
return false;
} else if (fileNameRegex != null) {
Matcher m = fileNa... | [
"protected",
"boolean",
"matches",
"(",
"File",
"f",
",",
"boolean",
"isFile",
")",
"{",
"if",
"(",
"fileFilter",
"!=",
"null",
")",
"{",
"if",
"(",
"isFile",
"&&",
"directoriesOnly",
")",
"{",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"!",
"is... | Check to see if this is a resource we're monitoring based
on the filter configuration
@param f File (or directory) to match against configured file filters
@param isFile true if this is a file (instead of a directory). This is looked
up once and passed around.
@return true if no filter is configured, or if the file ma... | [
"Check",
"to",
"see",
"if",
"this",
"is",
"a",
"resource",
"we",
"re",
"monitoring",
"based",
"on",
"the",
"filter",
"configuration"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.filemonitor/src/com/ibm/ws/kernel/filemonitor/internal/DirectoryUpdateMonitor.java#L290-L304 |
70,467 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/BiLevelCacheMap.java | BiLevelCacheMap.remove | public Object remove(Object key)
{
synchronized (_cacheL2)
{
if (!_cacheL1.containsKey(key) && !_cacheL2.containsKey(key))
{
// nothing to remove
return null;
}
Object retval;
Map newMap;
synchro... | java | public Object remove(Object key)
{
synchronized (_cacheL2)
{
if (!_cacheL1.containsKey(key) && !_cacheL2.containsKey(key))
{
// nothing to remove
return null;
}
Object retval;
Map newMap;
synchro... | [
"public",
"Object",
"remove",
"(",
"Object",
"key",
")",
"{",
"synchronized",
"(",
"_cacheL2",
")",
"{",
"if",
"(",
"!",
"_cacheL1",
".",
"containsKey",
"(",
"key",
")",
"&&",
"!",
"_cacheL2",
".",
"containsKey",
"(",
"key",
")",
")",
"{",
"// nothing ... | This operation is very expensive. A full copy of the Map is created | [
"This",
"operation",
"is",
"very",
"expensive",
".",
"A",
"full",
"copy",
"of",
"the",
"Map",
"is",
"created"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/BiLevelCacheMap.java#L189-L214 |
70,468 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCWriteCallback.java | HttpOSCWriteCallback.complete | public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Call... | java | public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Call... | [
"public",
"void",
"complete",
"(",
"VirtualConnection",
"vc",
",",
"TCPWriteRequestContext",
"wsc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
... | Called by the TCP channel when the write has finished.
@param vc
@param wsc | [
"Called",
"by",
"the",
"TCP",
"channel",
"when",
"the",
"write",
"has",
"finished",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSCWriteCallback.java#L57-L104 |
70,469 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putString | public synchronized void putString(String item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putString", item);
checkValid();
// A String is presented by a BIT16 denoting the length followed by encoded bytes. If the
// String is null, then a leng... | java | public synchronized void putString(String item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putString", item);
checkValid();
// A String is presented by a BIT16 denoting the length followed by encoded bytes. If the
// String is null, then a leng... | [
"public",
"synchronized",
"void",
"putString",
"(",
"String",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"pu... | Puts a String into the byte buffer encoded in UTF8.
@param item | [
"Puts",
"a",
"String",
"into",
"the",
"byte",
"buffer",
"encoded",
"in",
"UTF8",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L158-L199 |
70,470 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putSIDestinationAddress | public synchronized void putSIDestinationAddress(SIDestinationAddress destAddr, short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSIDestinationAddress", new Object[]{destAddr, Short.valueOf(fapLevel)});
checkValid();
String destName = nul... | java | public synchronized void putSIDestinationAddress(SIDestinationAddress destAddr, short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSIDestinationAddress", new Object[]{destAddr, Short.valueOf(fapLevel)});
checkValid();
String destName = nul... | [
"public",
"synchronized",
"void",
"putSIDestinationAddress",
"(",
"SIDestinationAddress",
"destAddr",
",",
"short",
"fapLevel",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Puts an SIDestinationAddress into the byte buffer.
@param destAddr
@param fapLevel the FAP level of this connection. Used to decide what information to flow down the wire. | [
"Puts",
"an",
"SIDestinationAddress",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L207-L259 |
70,471 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putSelectionCriteria | public synchronized void putSelectionCriteria(SelectionCriteria criteria)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSelectionCriteria", criteria);
checkValid();
String discriminator = null;
String selector = null;
short selectorDomain... | java | public synchronized void putSelectionCriteria(SelectionCriteria criteria)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putSelectionCriteria", criteria);
checkValid();
String discriminator = null;
String selector = null;
short selectorDomain... | [
"public",
"synchronized",
"void",
"putSelectionCriteria",
"(",
"SelectionCriteria",
"criteria",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
"... | Puts a SelectionCriteria object into the byte buffer.
@param criteria | [
"Puts",
"a",
"SelectionCriteria",
"object",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L266-L293 |
70,472 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putXid | public synchronized void putXid(Xid xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putXid", xid);
putInt(xid.getFormatId());
putInt(xid.getGlobalTransactionId().length);
put(xid.getGlobalTransactionId());
putInt(xid.getBranchQualifier().length)... | java | public synchronized void putXid(Xid xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putXid", xid);
putInt(xid.getFormatId());
putInt(xid.getGlobalTransactionId().length);
put(xid.getGlobalTransactionId());
putInt(xid.getBranchQualifier().length)... | [
"public",
"synchronized",
"void",
"putXid",
"(",
"Xid",
"xid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"putXid\"",
",",
"xid",... | Puts an Xid into the Byte Buffer.
@param xid | [
"Puts",
"an",
"Xid",
"into",
"the",
"Byte",
"Buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L300-L311 |
70,473 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putSITransaction | public synchronized void putSITransaction(SITransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSITransaction", transaction);
Transaction commsTx = (Transaction)transaction;
int flags = -1;
if (transaction == null)
{
... | java | public synchronized void putSITransaction(SITransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSITransaction", transaction);
Transaction commsTx = (Transaction)transaction;
int flags = -1;
if (transaction == null)
{
... | [
"public",
"synchronized",
"void",
"putSITransaction",
"(",
"SITransaction",
"transaction",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"... | Puts an SITransaction into the buffer
@param transaction transaction to "serialize" | [
"Puts",
"an",
"SITransaction",
"into",
"the",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L318-L407 |
70,474 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putMessgeWithoutEncode | public int putMessgeWithoutEncode(List<DataSlice> messageParts)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putMessgeWithoutEncode", messageParts);
int messageLength = 0;
// Now we have a list of MessagePart objects. First work out the overall length.
... | java | public int putMessgeWithoutEncode(List<DataSlice> messageParts)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putMessgeWithoutEncode", messageParts);
int messageLength = 0;
// Now we have a list of MessagePart objects. First work out the overall length.
... | [
"public",
"int",
"putMessgeWithoutEncode",
"(",
"List",
"<",
"DataSlice",
">",
"messageParts",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
... | This method is used to put a message into the buffer but assumes that the encode has already
been completed. This may be in the case where we would like to send the message in chunks but
we decide that the message would be better sent as an entire message.
@param messageParts
@return Returns the size of the message th... | [
"This",
"method",
"is",
"used",
"to",
"put",
"a",
"message",
"into",
"the",
"buffer",
"but",
"assumes",
"that",
"the",
"encode",
"has",
"already",
"been",
"completed",
".",
"This",
"may",
"be",
"in",
"the",
"case",
"where",
"we",
"would",
"like",
"to",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L453-L483 |
70,475 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putDataSlice | public synchronized void putDataSlice(DataSlice slice)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putDataSlice", slice);
// First pump in the length
putInt(slice.getLength());
// Now add in the payload
wrap(slice.getBytes(), slice.getOffs... | java | public synchronized void putDataSlice(DataSlice slice)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putDataSlice", slice);
// First pump in the length
putInt(slice.getLength());
// Now add in the payload
wrap(slice.getBytes(), slice.getOffs... | [
"public",
"synchronized",
"void",
"putDataSlice",
"(",
"DataSlice",
"slice",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | This method is used to put a data slice into the buffer. A data slice is usually given to us
by MFP as part of a message and this method can be used to add a single slice into the buffer
so that the message can be sent in multiple transmissions. This is preferable to sending the
message in one job lot because we can al... | [
"This",
"method",
"is",
"used",
"to",
"put",
"a",
"data",
"slice",
"into",
"the",
"buffer",
".",
"A",
"data",
"slice",
"is",
"usually",
"given",
"to",
"us",
"by",
"MFP",
"as",
"part",
"of",
"a",
"message",
"and",
"this",
"method",
"can",
"be",
"used"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L560-L571 |
70,476 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putSIMessageHandles | public synchronized void putSIMessageHandles(SIMessageHandle[] siMsgHandles)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSIMessageHandles", siMsgHandles);
putInt(siMsgHandles.length);
for (int handleIndex = 0; handleIndex < siMsgHandles.length; ++handleI... | java | public synchronized void putSIMessageHandles(SIMessageHandle[] siMsgHandles)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSIMessageHandles", siMsgHandles);
putInt(siMsgHandles.length);
for (int handleIndex = 0; handleIndex < siMsgHandles.length; ++handleI... | [
"public",
"synchronized",
"void",
"putSIMessageHandles",
"(",
"SIMessageHandle",
"[",
"]",
"siMsgHandles",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"("... | Puts the array of message handles into the buffer.
@param siMsgHandles | [
"Puts",
"the",
"array",
"of",
"message",
"handles",
"into",
"the",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L578-L593 |
70,477 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.putException | public synchronized void putException(Throwable throwable, String probeId, Conversation conversation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putException",
new Object[]{throwable, probeId, conversation});
Throw... | java | public synchronized void putException(Throwable throwable, String probeId, Conversation conversation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putException",
new Object[]{throwable, probeId, conversation});
Throw... | [
"public",
"synchronized",
"void",
"putException",
"(",
"Throwable",
"throwable",
",",
"String",
"probeId",
",",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
"... | This method will fill a buffer list with WsByteBuffer's that when put together form a
packet describing an exception and it's linked exceptions. It will traverse down the cause
exceptions until one of them is null.
@param throwable The exception to examine.
@param probeId The probe id (if any) associated with the top ... | [
"This",
"method",
"will",
"fill",
"a",
"buffer",
"list",
"with",
"WsByteBuffer",
"s",
"that",
"when",
"put",
"together",
"form",
"a",
"packet",
"describing",
"an",
"exception",
"and",
"it",
"s",
"linked",
"exceptions",
".",
"It",
"will",
"traverse",
"down",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L606-L684 |
70,478 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getString | public synchronized String getString()
{
checkReleased();
String returningString = null;
// Read the length in
short stringLength = receivedBuffer.getShort();
// Allocate the right amount of space for it
byte[] stringBytes = new byte[stringLength];
// And copy the data in
... | java | public synchronized String getString()
{
checkReleased();
String returningString = null;
// Read the length in
short stringLength = receivedBuffer.getShort();
// Allocate the right amount of space for it
byte[] stringBytes = new byte[stringLength];
// And copy the data in
... | [
"public",
"synchronized",
"String",
"getString",
"(",
")",
"{",
"checkReleased",
"(",
")",
";",
"String",
"returningString",
"=",
"null",
";",
"// Read the length in",
"short",
"stringLength",
"=",
"receivedBuffer",
".",
"getShort",
"(",
")",
";",
"// Allocate the... | Reads a String from the current position in the byte buffer.
@return Returns the String | [
"Reads",
"a",
"String",
"from",
"the",
"current",
"position",
"in",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L724-L769 |
70,479 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getSIDestinationAddress | public synchronized SIDestinationAddress getSIDestinationAddress(short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIDestinationAddress", Short.valueOf(fapLevel)); //469395
checkReleased();
boolean isFromMediation = false;
/*******... | java | public synchronized SIDestinationAddress getSIDestinationAddress(short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIDestinationAddress", Short.valueOf(fapLevel)); //469395
checkReleased();
boolean isFromMediation = false;
/*******... | [
"public",
"synchronized",
"SIDestinationAddress",
"getSIDestinationAddress",
"(",
"short",
"fapLevel",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"thi... | Reads an SIDestinationAddress from the current position in the byte buffer.
@param fapLevel the FAP level of this connection. Used to decide what information has been flowed down the wire.
@return Returns an SIDestinationAddress | [
"Reads",
"an",
"SIDestinationAddress",
"from",
"the",
"current",
"position",
"in",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L778-L873 |
70,480 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getSelectionCriteria | public synchronized SelectionCriteria getSelectionCriteria()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSelectionCriteria"); //469395
checkReleased();
SelectorDomain selectorDomain = SelectorDomain.getSelectorDomain(getShort());
if (TraceCom... | java | public synchronized SelectionCriteria getSelectionCriteria()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSelectionCriteria"); //469395
checkReleased();
SelectorDomain selectorDomain = SelectorDomain.getSelectorDomain(getShort());
if (TraceCom... | [
"public",
"synchronized",
"SelectionCriteria",
"getSelectionCriteria",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"... | Reads a SelectionCriteria from the current position in the byte buffer.
@return Returns a SelectionCriteria | [
"Reads",
"a",
"SelectionCriteria",
"from",
"the",
"current",
"position",
"in",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L880-L910 |
70,481 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getXid | public synchronized Xid getXid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getXid");
checkReleased();
int formatId = getInt();
int glidLength = getInt();
byte[] globalTransactionId = get(glidLength);
int blqfLength = getInt();
byte... | java | public synchronized Xid getXid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getXid");
checkReleased();
int formatId = getInt();
int glidLength = getInt();
byte[] globalTransactionId = get(glidLength);
int blqfLength = getInt();
byte... | [
"public",
"synchronized",
"Xid",
"getXid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getXid\"",
")",
";",
"checkReleased",
... | Reads an Xid from the current position in the buffer.
@return Returns an Xid | [
"Reads",
"an",
"Xid",
"from",
"the",
"current",
"position",
"in",
"the",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L917-L933 |
70,482 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getMessage | public synchronized SIBusMessage getMessage(CommsConnection commsConnection)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessage");
checkReleased();
SIBusMessage mess = null;
// Now build a JsMessage from the return... | java | public synchronized SIBusMessage getMessage(CommsConnection commsConnection)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessage");
checkReleased();
SIBusMessage mess = null;
// Now build a JsMessage from the return... | [
"public",
"synchronized",
"SIBusMessage",
"getMessage",
"(",
"CommsConnection",
"commsConnection",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr"... | Reads an SIBusMessage from the current position in the buffer.
@param commsConnection
@return Returns the message, or null if the message length indicated no message.
@throws SIResourceException | [
"Reads",
"an",
"SIBusMessage",
"from",
"the",
"current",
"position",
"in",
"the",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L944-L1008 |
70,483 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getSIMessageHandles | public synchronized SIMessageHandle[] getSIMessageHandles()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIMessageHandles");
int arrayCount = getInt(); // BIT32 ArrayCount
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... | java | public synchronized SIMessageHandle[] getSIMessageHandles()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIMessageHandles");
int arrayCount = getInt(); // BIT32 ArrayCount
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... | [
"public",
"synchronized",
"SIMessageHandle",
"[",
"]",
"getSIMessageHandles",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Reads some message handles from the buffer.
@return Returns a array of SIMessageHandle objects | [
"Reads",
"some",
"message",
"handles",
"from",
"the",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1060-L1084 |
70,484 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.peekInt | public synchronized int peekInt()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekInt");
checkReleased();
int result = 0;
if (receivedBuffer != null)
{
int currentPosition = receivedBuffer.position();
result = receivedBuf... | java | public synchronized int peekInt()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekInt");
checkReleased();
int result = 0;
if (receivedBuffer != null)
{
int currentPosition = receivedBuffer.position();
result = receivedBuf... | [
"public",
"synchronized",
"int",
"peekInt",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"peekInt\"",
")",
";",
... | This method will peek at the next 4 bytes in the buffer and return the result as an int.
The buffer position will be unchanged by calling this method.
@return Returns the next four bytes as an int. | [
"This",
"method",
"will",
"peek",
"at",
"the",
"next",
"4",
"bytes",
"in",
"the",
"buffer",
"and",
"return",
"the",
"result",
"as",
"an",
"int",
".",
"The",
"buffer",
"position",
"will",
"be",
"unchanged",
"by",
"calling",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1420-L1436 |
70,485 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.peekLong | public synchronized long peekLong()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekLong");
checkReleased();
long result = 0;
if (receivedBuffer != null)
{
int currentPosition = receivedBuffer.position();
result = receive... | java | public synchronized long peekLong()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "peekLong");
checkReleased();
long result = 0;
if (receivedBuffer != null)
{
int currentPosition = receivedBuffer.position();
result = receive... | [
"public",
"synchronized",
"long",
"peekLong",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"peekLong\"",
")",
";"... | This method will peek at the next 8 bytes in the buffer and return the result as a long.
The buffer position will be unchanged by calling this method.
@return Returns the next eight bytes as a long. | [
"This",
"method",
"will",
"peek",
"at",
"the",
"next",
"8",
"bytes",
"in",
"the",
"buffer",
"and",
"return",
"the",
"result",
"as",
"a",
"long",
".",
"The",
"buffer",
"position",
"will",
"be",
"unchanged",
"by",
"calling",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1444-L1460 |
70,486 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.skip | public synchronized void skip(int lengthToSkip)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "skip", lengthToSkip);
checkReleased();
if (receivedBuffer != null)
{
receivedBuffer.position(receivedBuffer.position() + lengthToSkip);
}
... | java | public synchronized void skip(int lengthToSkip)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "skip", lengthToSkip);
checkReleased();
if (receivedBuffer != null)
{
receivedBuffer.position(receivedBuffer.position() + lengthToSkip);
}
... | [
"public",
"synchronized",
"void",
"skip",
"(",
"int",
"lengthToSkip",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"sk... | Skips over the specified number of bytes in the received byte buffer.
@param lengthToSkip | [
"Skips",
"over",
"the",
"specified",
"number",
"of",
"bytes",
"in",
"the",
"received",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1467-L1479 |
70,487 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.rewind | public synchronized void rewind()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rewind");
checkReleased();
if (receivedBuffer != null)
{
receivedBuffer.rewind();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | java | public synchronized void rewind()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rewind");
checkReleased();
if (receivedBuffer != null)
{
receivedBuffer.rewind();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | [
"public",
"synchronized",
"void",
"rewind",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"rewind\"",
")",
";",
... | Rewinds the buffer to the beginning of the received data so that the data can be re-read. | [
"Rewinds",
"the",
"buffer",
"to",
"the",
"beginning",
"of",
"the",
"received",
"data",
"so",
"that",
"the",
"data",
"can",
"be",
"re",
"-",
"read",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1484-L1496 |
70,488 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.encodeFast | public List<DataSlice> encodeFast(AbstractMessage message, CommsConnection commsConnection, Conversation conversation)
throws MessageEncodeFailedException, SIConnectionDroppedException,
IncorrectMessageTypeException, UnsupportedEncodingException, MessageCopyFailedException
{
if (TraceCompone... | java | public List<DataSlice> encodeFast(AbstractMessage message, CommsConnection commsConnection, Conversation conversation)
throws MessageEncodeFailedException, SIConnectionDroppedException,
IncorrectMessageTypeException, UnsupportedEncodingException, MessageCopyFailedException
{
if (TraceCompone... | [
"public",
"List",
"<",
"DataSlice",
">",
"encodeFast",
"(",
"AbstractMessage",
"message",
",",
"CommsConnection",
"commsConnection",
",",
"Conversation",
"conversation",
")",
"throws",
"MessageEncodeFailedException",
",",
"SIConnectionDroppedException",
",",
"IncorrectMessa... | This method actually does the fast encode on a JsMessage message.
@param message The message to encode
@param commsConnection
@param conversation The conversation that the encoded message will be sent
@return Returns a list of MessagePart objects.
@throws SIConnectionDroppedException if the connection has gone at th... | [
"This",
"method",
"actually",
"does",
"the",
"fast",
"encode",
"on",
"a",
"JsMessage",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L1569-L1632 |
70,489 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.calculateEncodedStringLength | public static int calculateEncodedStringLength(String s)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "calculateEncodedStringLength", s);
final int length;
if(s == null)
{
length = 3;
}
else
{
try
{
... | java | public static int calculateEncodedStringLength(String s)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "calculateEncodedStringLength", s);
final int length;
if(s == null)
{
length = 3;
}
else
{
try
{
... | [
"public",
"static",
"int",
"calculateEncodedStringLength",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"calculateE... | Calculates the length in bytes of a String when it is placed inside a CommsByteBuffer via the putString method.
A null String can be passed into this method.
@param s the String to calculate the length of.
@return the number of bytes that the String will take up when encoded. | [
"Calculates",
"the",
"length",
"in",
"bytes",
"of",
"a",
"String",
"when",
"it",
"is",
"placed",
"inside",
"a",
"CommsByteBuffer",
"via",
"the",
"putString",
"method",
".",
"A",
"null",
"String",
"can",
"be",
"passed",
"into",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L2119-L2152 |
70,490 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java | CommsByteBuffer.getBoolean | public synchronized boolean getBoolean()
{
final byte value = get();
if(value == CommsConstants.TRUE_BYTE) return true;
else if(value == CommsConstants.FALSE_BYTE) return false;
else throw new IllegalStateException("Unexpected byte: " + value);
} | java | public synchronized boolean getBoolean()
{
final byte value = get();
if(value == CommsConstants.TRUE_BYTE) return true;
else if(value == CommsConstants.FALSE_BYTE) return false;
else throw new IllegalStateException("Unexpected byte: " + value);
} | [
"public",
"synchronized",
"boolean",
"getBoolean",
"(",
")",
"{",
"final",
"byte",
"value",
"=",
"get",
"(",
")",
";",
"if",
"(",
"value",
"==",
"CommsConstants",
".",
"TRUE_BYTE",
")",
"return",
"true",
";",
"else",
"if",
"(",
"value",
"==",
"CommsConst... | Returns the next value in the buffer interpreted as a boolean. Should only be called when
the next byte in the buffer was written by a call to putBoolean.
@return the next value in the buffer interpreted as a boolean. | [
"Returns",
"the",
"next",
"value",
"in",
"the",
"buffer",
"interpreted",
"as",
"a",
"boolean",
".",
"Should",
"only",
"be",
"called",
"when",
"the",
"next",
"byte",
"in",
"the",
"buffer",
"was",
"written",
"by",
"a",
"call",
"to",
"putBoolean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBuffer.java#L2170-L2176 |
70,491 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java | BootstrapConfig.assertDirectory | protected File assertDirectory(String dirName, String locName) {
File d = new File(dirName);
if (d.isFile())
throw new LocationException("Path must reference a directory", MessageFormat.format(BootstrapConstants.messages.getString("error.specifiedLocation"), locName,
... | java | protected File assertDirectory(String dirName, String locName) {
File d = new File(dirName);
if (d.isFile())
throw new LocationException("Path must reference a directory", MessageFormat.format(BootstrapConstants.messages.getString("error.specifiedLocation"), locName,
... | [
"protected",
"File",
"assertDirectory",
"(",
"String",
"dirName",
",",
"String",
"locName",
")",
"{",
"File",
"d",
"=",
"new",
"File",
"(",
"dirName",
")",
";",
"if",
"(",
"d",
".",
"isFile",
"(",
")",
")",
"throw",
"new",
"LocationException",
"(",
"\"... | Ensure that the given directory either does not yet exists,
or exists as a directory.
@param dirName
Name/path to directory
@param locName
Symbol/location associated with directory
@return File for directory location
@throws LocationException
if dirName references an existing File (isFile). | [
"Ensure",
"that",
"the",
"given",
"directory",
"either",
"does",
"not",
"yet",
"exists",
"or",
"exists",
"as",
"a",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java#L372-L378 |
70,492 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java | BootstrapConfig.substituteSymbols | protected void substituteSymbols(Map<String, String> initProps) {
for (Entry<String, String> entry : initProps.entrySet()) {
Object value = entry.getValue();
if (value instanceof String) {
String strValue = (String) value;
Matcher m = SYMBOL_DEF.matcher(st... | java | protected void substituteSymbols(Map<String, String> initProps) {
for (Entry<String, String> entry : initProps.entrySet()) {
Object value = entry.getValue();
if (value instanceof String) {
String strValue = (String) value;
Matcher m = SYMBOL_DEF.matcher(st... | [
"protected",
"void",
"substituteSymbols",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"initProps",
")",
"{",
"for",
"(",
"Entry",
"<",
"String",
",",
"String",
">",
"entry",
":",
"initProps",
".",
"entrySet",
"(",
")",
")",
"{",
"Object",
"value",
"... | Perform substitution of symbols used in config
@param initProps | [
"Perform",
"substitution",
"of",
"symbols",
"used",
"in",
"config"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java#L748-L765 |
70,493 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java | BootstrapConfig.checkCleanStart | public boolean checkCleanStart() {
String fwClean = get(BootstrapConstants.INITPROP_OSGI_CLEAN);
if (fwClean != null && fwClean.equals(BootstrapConstants.OSGI_CLEAN_VALUE)) {
return true;
}
String osgiClean = get(BootstrapConstants.OSGI_CLEAN);
return Boolean.valueOf... | java | public boolean checkCleanStart() {
String fwClean = get(BootstrapConstants.INITPROP_OSGI_CLEAN);
if (fwClean != null && fwClean.equals(BootstrapConstants.OSGI_CLEAN_VALUE)) {
return true;
}
String osgiClean = get(BootstrapConstants.OSGI_CLEAN);
return Boolean.valueOf... | [
"public",
"boolean",
"checkCleanStart",
"(",
")",
"{",
"String",
"fwClean",
"=",
"get",
"(",
"BootstrapConstants",
".",
"INITPROP_OSGI_CLEAN",
")",
";",
"if",
"(",
"fwClean",
"!=",
"null",
"&&",
"fwClean",
".",
"equals",
"(",
"BootstrapConstants",
".",
"OSGI_C... | Check osgi clean start properties, ensure set correctly for clean start
@see forceCleanStart | [
"Check",
"osgi",
"clean",
"start",
"properties",
"ensure",
"set",
"correctly",
"for",
"clean",
"start"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java#L1065-L1073 |
70,494 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java | BootstrapConfig.generateServerEnv | protected ReturnCode generateServerEnv(boolean generatePassword) {
double jvmLevel;
String s = null;
try {
s = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<String>() {
@Override
public String run() throws Exception {
... | java | protected ReturnCode generateServerEnv(boolean generatePassword) {
double jvmLevel;
String s = null;
try {
s = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<String>() {
@Override
public String run() throws Exception {
... | [
"protected",
"ReturnCode",
"generateServerEnv",
"(",
"boolean",
"generatePassword",
")",
"{",
"double",
"jvmLevel",
";",
"String",
"s",
"=",
"null",
";",
"try",
"{",
"s",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"java",
".",
"security",
".",
... | For Java 8 and newer JVMs, the PermGen command line parameter is no
longer supported. This method checks the Java level and if it is
less than Java 8, it simply returns OK. If it is Java 8 or higher,
this method will attempt to create a server.env file with
@param bootProps
@return | [
"For",
"Java",
"8",
"and",
"newer",
"JVMs",
"the",
"PermGen",
"command",
"line",
"parameter",
"is",
"no",
"longer",
"supported",
".",
"This",
"method",
"checks",
"the",
"Java",
"level",
"and",
"if",
"it",
"is",
"less",
"than",
"Java",
"8",
"it",
"simply"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/BootstrapConfig.java#L1145-L1198 |
70,495 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java | ProbeMethodAdapter.setProbeListeners | protected void setProbeListeners(ProbeImpl probe, Collection<ProbeListener> listeners) {
Set<ProbeListener> enabled = enabledProbes.get(probe);
if (enabled == null) {
enabled = new HashSet<ProbeListener>();
enabledProbes.put(probe, enabled);
}
enabled.addAll(liste... | java | protected void setProbeListeners(ProbeImpl probe, Collection<ProbeListener> listeners) {
Set<ProbeListener> enabled = enabledProbes.get(probe);
if (enabled == null) {
enabled = new HashSet<ProbeListener>();
enabledProbes.put(probe, enabled);
}
enabled.addAll(liste... | [
"protected",
"void",
"setProbeListeners",
"(",
"ProbeImpl",
"probe",
",",
"Collection",
"<",
"ProbeListener",
">",
"listeners",
")",
"{",
"Set",
"<",
"ProbeListener",
">",
"enabled",
"=",
"enabledProbes",
".",
"get",
"(",
"probe",
")",
";",
"if",
"(",
"enabl... | Associate a collection of listeners with the specified probe.
@param probe the injected probe
@param listeners the listeners that will receive events from the
injected probe | [
"Associate",
"a",
"collection",
"of",
"listeners",
"with",
"the",
"specified",
"probe",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java#L216-L223 |
70,496 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java | ProbeMethodAdapter.getProbeListeners | protected Set<ProbeListener> getProbeListeners(ProbeImpl probe) {
Set<ProbeListener> listeners = enabledProbes.get(probe);
if (listeners == null) {
listeners = Collections.emptySet();
}
return listeners;
} | java | protected Set<ProbeListener> getProbeListeners(ProbeImpl probe) {
Set<ProbeListener> listeners = enabledProbes.get(probe);
if (listeners == null) {
listeners = Collections.emptySet();
}
return listeners;
} | [
"protected",
"Set",
"<",
"ProbeListener",
">",
"getProbeListeners",
"(",
"ProbeImpl",
"probe",
")",
"{",
"Set",
"<",
"ProbeListener",
">",
"listeners",
"=",
"enabledProbes",
".",
"get",
"(",
"probe",
")",
";",
"if",
"(",
"listeners",
"==",
"null",
")",
"{"... | Get the set of probe listeners that have been associated with the
specified probe by this adapter.
@param probe the associated probe
@return the set of listeners associated with {@code probe} | [
"Get",
"the",
"set",
"of",
"probe",
"listeners",
"that",
"have",
"been",
"associated",
"with",
"the",
"specified",
"probe",
"by",
"this",
"adapter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java#L242-L248 |
70,497 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java | ProbeMethodAdapter.unbox | protected void unbox(final Type type) {
switch (type.getSort()) {
case Type.BOOLEAN:
visitTypeInsn(CHECKCAST, "java/lang/Boolean");
visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()Z", false);
break;
case Type.BYTE:
... | java | protected void unbox(final Type type) {
switch (type.getSort()) {
case Type.BOOLEAN:
visitTypeInsn(CHECKCAST, "java/lang/Boolean");
visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()Z", false);
break;
case Type.BYTE:
... | [
"protected",
"void",
"unbox",
"(",
"final",
"Type",
"type",
")",
"{",
"switch",
"(",
"type",
".",
"getSort",
"(",
")",
")",
"{",
"case",
"Type",
".",
"BOOLEAN",
":",
"visitTypeInsn",
"(",
"CHECKCAST",
",",
"\"java/lang/Boolean\"",
")",
";",
"visitMethodIns... | Generate the instruction sequence needed to "unbox" the boxed data at
the top of stack.
@param type the <code>Type</code> associated with the unboxed data | [
"Generate",
"the",
"instruction",
"sequence",
"needed",
"to",
"unbox",
"the",
"boxed",
"data",
"at",
"the",
"top",
"of",
"stack",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java#L433-L474 |
70,498 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java | ProbeMethodAdapter.replaceArgsWithArray | void replaceArgsWithArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
createObjectArray(methodArgs.length); // [target] args... array
for (int i = methodArgs.length - 1; i >= 0; i--) {
if (methodArgs[i].getSize() == 2) {
visitInsn(DUP_X2); // [targ... | java | void replaceArgsWithArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
createObjectArray(methodArgs.length); // [target] args... array
for (int i = methodArgs.length - 1; i >= 0; i--) {
if (methodArgs[i].getSize() == 2) {
visitInsn(DUP_X2); // [targ... | [
"void",
"replaceArgsWithArray",
"(",
"String",
"desc",
")",
"{",
"Type",
"[",
"]",
"methodArgs",
"=",
"Type",
".",
"getArgumentTypes",
"(",
"desc",
")",
";",
"createObjectArray",
"(",
"methodArgs",
".",
"length",
")",
";",
"// [target] args... array",
"for",
"... | Create an object array and store the target method arguments in it.
@param desc the target method descriptor | [
"Create",
"an",
"object",
"array",
"and",
"store",
"the",
"target",
"method",
"arguments",
"in",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java#L510-L528 |
70,499 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java | ProbeMethodAdapter.restoreArgsFromArray | void restoreArgsFromArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
for (int i = 0; i < methodArgs.length; i++) { // [target] array
visitInsn(DUP); // [target] args... array array
visitLdcInsn(Integer.valueOf(i)); // [target] args... array array idx
... | java | void restoreArgsFromArray(String desc) {
Type[] methodArgs = Type.getArgumentTypes(desc);
for (int i = 0; i < methodArgs.length; i++) { // [target] array
visitInsn(DUP); // [target] args... array array
visitLdcInsn(Integer.valueOf(i)); // [target] args... array array idx
... | [
"void",
"restoreArgsFromArray",
"(",
"String",
"desc",
")",
"{",
"Type",
"[",
"]",
"methodArgs",
"=",
"Type",
".",
"getArgumentTypes",
"(",
"desc",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"methodArgs",
".",
"length",
";",
"i",
"++"... | Recreate the parameter list for the target method from an Object array
containing the data.
@param desc the target method descriptor | [
"Recreate",
"the",
"parameter",
"list",
"for",
"the",
"target",
"method",
"from",
"an",
"Object",
"array",
"containing",
"the",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeMethodAdapter.java#L536-L551 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.