id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
111,200 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DiskCacheSizeInfo.java | DiskCacheSizeInfo.reset | public synchronized void reset() {
final String methodName = "reset()";
this.currentDataGB = 1;
if (this.currentDependencyIdGB > 0) {
this.currentDependencyIdGB = 1;
}
if (this.currentTemplateGB > 0) {
this.currentTemplateGB = 1;
}
if (this... | java | public synchronized void reset() {
final String methodName = "reset()";
this.currentDataGB = 1;
if (this.currentDependencyIdGB > 0) {
this.currentDependencyIdGB = 1;
}
if (this.currentTemplateGB > 0) {
this.currentTemplateGB = 1;
}
if (this... | [
"public",
"synchronized",
"void",
"reset",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"reset()\"",
";",
"this",
".",
"currentDataGB",
"=",
"1",
";",
"if",
"(",
"this",
".",
"currentDependencyIdGB",
">",
"0",
")",
"{",
"this",
".",
"currentDepen... | Call this method to reset the disk cache size info after disk clear | [
"Call",
"this",
"method",
"to",
"reset",
"the",
"disk",
"cache",
"size",
"info",
"after",
"disk",
"clear"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DiskCacheSizeInfo.java#L160-L175 |
111,201 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.setChainStartRetryInterval | public void setChainStartRetryInterval(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting chain start retry interval [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_CHAIN_S... | java | public void setChainStartRetryInterval(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting chain start retry interval [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_CHAIN_S... | [
"public",
"void",
"setChainStartRetryInterval",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Setting chain s... | Setter method for the interval of time between chain restart attempts.
@param value
@throws NumberFormatException
if the value is not a number or is less than zero | [
"Setter",
"method",
"for",
"the",
"interval",
"of",
"time",
"between",
"chain",
"restart",
"attempts",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L250-L268 |
111,202 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.setChainStartRetryAttempts | public void setChainStartRetryAttempts(Object value) throws NumberFormatException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting chain start retry attempts [" + value + "]");
}
try {
int num = MetatypeUtils.parseInteger(PROPERTY... | java | public void setChainStartRetryAttempts(Object value) throws NumberFormatException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting chain start retry attempts [" + value + "]");
}
try {
int num = MetatypeUtils.parseInteger(PROPERTY... | [
"public",
"void",
"setChainStartRetryAttempts",
"(",
"Object",
"value",
")",
"throws",
"NumberFormatException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"... | Setter method for the number of chain restart attempts.
@param value
@throws NumberFormatException
if the value is not a number or is less than zero | [
"Setter",
"method",
"for",
"the",
"number",
"of",
"chain",
"restart",
"attempts",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L277-L295 |
111,203 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.setDefaultChainQuiesceTimeout | public void setDefaultChainQuiesceTimeout(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting default chain quiesce timeout [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_C... | java | public void setDefaultChainQuiesceTimeout(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting default chain quiesce timeout [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_C... | [
"public",
"void",
"setDefaultChainQuiesceTimeout",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Setting defa... | Set the default chain quiesce timeout property from config.
@param value | [
"Set",
"the",
"default",
"chain",
"quiesce",
"timeout",
"property",
"from",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L302-L320 |
111,204 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.setMissingConfigWarning | public void setMissingConfigWarning(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting missing config warning delay to [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_MISSI... | java | public void setMissingConfigWarning(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Setting missing config warning delay to [" + value + "]");
}
try {
long num = MetatypeUtils.parseLong(PROPERTY_CONFIG_ALIAS, PROPERTY_MISSI... | [
"public",
"void",
"setMissingConfigWarning",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Setting missing co... | Set the custom property for the delay before warning about missing
configuration values.
@param value | [
"Set",
"the",
"custom",
"property",
"for",
"the",
"delay",
"before",
"warning",
"about",
"missing",
"configuration",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L328-L342 |
111,205 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.stringForMap | public static String stringForMap(Map<Object, Object> map) {
StringBuilder sbOutput = new StringBuilder();
if (map == null) {
sbOutput.append("\tNULL");
} else {
for (Entry<Object, Object> entry : map.entrySet()) {
sbOutput.append('\t').append(entry).appen... | java | public static String stringForMap(Map<Object, Object> map) {
StringBuilder sbOutput = new StringBuilder();
if (map == null) {
sbOutput.append("\tNULL");
} else {
for (Entry<Object, Object> entry : map.entrySet()) {
sbOutput.append('\t').append(entry).appen... | [
"public",
"static",
"String",
"stringForMap",
"(",
"Map",
"<",
"Object",
",",
"Object",
">",
"map",
")",
"{",
"StringBuilder",
"sbOutput",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"map",
"==",
"null",
")",
"{",
"sbOutput",
".",
"append",
... | Utility method to extract a string representing the contents of a map.
This is currently used by various methods as part of debug tracing.
@param map
@return string representing contents of Map | [
"Utility",
"method",
"to",
"extract",
"a",
"string",
"representing",
"the",
"contents",
"of",
"a",
"map",
".",
"This",
"is",
"currently",
"used",
"by",
"various",
"methods",
"as",
"part",
"of",
"debug",
"tracing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L700-L710 |
111,206 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.findOrCreateChannelFactoryData | public synchronized ChannelFactoryDataImpl findOrCreateChannelFactoryData(Class<?> type) throws ChannelFactoryException {
ChannelFactoryDataImpl cfd = channelFactories.get(type);
if (cfd == null) {
ChannelFactory cf = getChannelFactoryInternal(type, false);
Class<?>[] deviceInf =... | java | public synchronized ChannelFactoryDataImpl findOrCreateChannelFactoryData(Class<?> type) throws ChannelFactoryException {
ChannelFactoryDataImpl cfd = channelFactories.get(type);
if (cfd == null) {
ChannelFactory cf = getChannelFactoryInternal(type, false);
Class<?>[] deviceInf =... | [
"public",
"synchronized",
"ChannelFactoryDataImpl",
"findOrCreateChannelFactoryData",
"(",
"Class",
"<",
"?",
">",
"type",
")",
"throws",
"ChannelFactoryException",
"{",
"ChannelFactoryDataImpl",
"cfd",
"=",
"channelFactories",
".",
"get",
"(",
"type",
")",
";",
"if",... | is needed outside of this package. | [
"is",
"needed",
"outside",
"of",
"this",
"package",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L751-L771 |
111,207 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getChannelFactoryInternal | public synchronized ChannelFactory getChannelFactoryInternal(Class<?> type, boolean isPersistent) throws ChannelFactoryException {
if (type == null) {
throw new InvalidChannelFactoryException("ChannelFactory type is null");
}
ChannelFactory factory = null;
ChannelFactoryData... | java | public synchronized ChannelFactory getChannelFactoryInternal(Class<?> type, boolean isPersistent) throws ChannelFactoryException {
if (type == null) {
throw new InvalidChannelFactoryException("ChannelFactory type is null");
}
ChannelFactory factory = null;
ChannelFactoryData... | [
"public",
"synchronized",
"ChannelFactory",
"getChannelFactoryInternal",
"(",
"Class",
"<",
"?",
">",
"type",
",",
"boolean",
"isPersistent",
")",
"throws",
"ChannelFactoryException",
"{",
"if",
"(",
"type",
"==",
"null",
")",
"{",
"throw",
"new",
"InvalidChannelF... | This method will do the real work of accessing a channel factory. Note,
multiple
methods in this class call into this method, some of which are
synchronized. According
to the input parameters, the factory that is returned may or may not be
persisted
in the framework. In some cases, like simple channel adds, there is no... | [
"This",
"method",
"will",
"do",
"the",
"real",
"work",
"of",
"accessing",
"a",
"channel",
"factory",
".",
"Note",
"multiple",
"methods",
"in",
"this",
"class",
"call",
"into",
"this",
"method",
"some",
"of",
"which",
"are",
"synchronized",
".",
"According",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L794-L826 |
111,208 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.addChannelInternal | private ChannelData addChannelInternal(String channelName, Class<?> factoryType, Map<Object, Object> inputPropertyBag, int weight) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addChannelInternal: channelName=" + channelName + ", factoryTy... | java | private ChannelData addChannelInternal(String channelName, Class<?> factoryType, Map<Object, Object> inputPropertyBag, int weight) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addChannelInternal: channelName=" + channelName + ", factoryTy... | [
"private",
"ChannelData",
"addChannelInternal",
"(",
"String",
"channelName",
",",
"Class",
"<",
"?",
">",
"factoryType",
",",
"Map",
"<",
"Object",
",",
"Object",
">",
"inputPropertyBag",
",",
"int",
"weight",
")",
"throws",
"ChannelException",
"{",
"if",
"("... | This method does the work of adding a channel data object to the
framework. It is called internally by both the addInbound and
addOutbound channel methods.
@param channelName
@param factoryType
@param inputPropertyBag
@param weight
@return channel data object resulting from the add.
@throws ChannelException | [
"This",
"method",
"does",
"the",
"work",
"of",
"adding",
"a",
"channel",
"data",
"object",
"to",
"the",
"framework",
".",
"It",
"is",
"called",
"internally",
"by",
"both",
"the",
"addInbound",
"and",
"addOutbound",
"channel",
"methods",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L901-L936 |
111,209 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.updateRunningChannels | private void updateRunningChannels(ChannelDataImpl channelData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "updateRunningChannels");
}
Channel channel = null;
ChannelContainer channelContainer = null;
Iterator<ChildChannelDataImp... | java | private void updateRunningChannels(ChannelDataImpl channelData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "updateRunningChannels");
}
Channel channel = null;
ChannelContainer channelContainer = null;
Iterator<ChildChannelDataImp... | [
"private",
"void",
"updateRunningChannels",
"(",
"ChannelDataImpl",
"channelData",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"upda... | Update all running channels using the input channel data.
@param channelData
(parent) | [
"Update",
"all",
"running",
"channels",
"using",
"the",
"input",
"channel",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L1115-L1133 |
111,210 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.initChannelInChain | private boolean initChannelInChain(Channel channel, Chain chain) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "initChannelInChain");
}
// No need to check parameters since this is called from internal only.
String c... | java | private boolean initChannelInChain(Channel channel, Chain chain) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "initChannelInChain");
}
// No need to check parameters since this is called from internal only.
String c... | [
"private",
"boolean",
"initChannelInChain",
"(",
"Channel",
"channel",
",",
"Chain",
"chain",
")",
"throws",
"ChannelException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr"... | This method won't actually call the init method of the channel
implemenation unless the channel is uninitialized. If the channel
doesn't exist in the runtime yet, it will be put in here. The channel
in the runtime will then be updated with a reference to the input chain.
This method is invoked from the chain implementa... | [
"This",
"method",
"won",
"t",
"actually",
"call",
"the",
"init",
"method",
"of",
"the",
"channel",
"implemenation",
"unless",
"the",
"channel",
"is",
"uninitialized",
".",
"If",
"the",
"channel",
"doesn",
"t",
"exist",
"in",
"the",
"runtime",
"yet",
"it",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L1282-L1340 |
111,211 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.startChannelInChain | private boolean startChannelInChain(Channel targetChannel, Chain chain) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "startChannelInChain");
}
// No need to check parameters since this is called from internal only.
... | java | private boolean startChannelInChain(Channel targetChannel, Chain chain) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "startChannelInChain");
}
// No need to check parameters since this is called from internal only.
... | [
"private",
"boolean",
"startChannelInChain",
"(",
"Channel",
"targetChannel",
",",
"Chain",
"chain",
")",
"throws",
"ChannelException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",... | Start the input channel. While it isn't needed yet, the chain from which
the start is coming from is in the parameter list. This method will only
be called from the chain implementation. Regardless of what chains are
referenced by the channel, if the state is initialized or quiesced, then
the channel will be started.
... | [
"Start",
"the",
"input",
"channel",
".",
"While",
"it",
"isn",
"t",
"needed",
"yet",
"the",
"chain",
"from",
"which",
"the",
"start",
"is",
"coming",
"from",
"is",
"in",
"the",
"parameter",
"list",
".",
"This",
"method",
"will",
"only",
"be",
"called",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L1357-L1404 |
111,212 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.disableChannelInChain | private boolean disableChannelInChain(Channel targetChannel, Chain chain) throws ChannelException, ChainException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "disableChannelInChain");
}
String channelName = targetChannel.getName();
if (Tr... | java | private boolean disableChannelInChain(Channel targetChannel, Chain chain) throws ChannelException, ChainException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "disableChannelInChain");
}
String channelName = targetChannel.getName();
if (Tr... | [
"private",
"boolean",
"disableChannelInChain",
"(",
"Channel",
"targetChannel",
",",
"Chain",
"chain",
")",
"throws",
"ChannelException",
",",
"ChainException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled"... | This method is done in preparation for stopping a channel. It pull's its
discriminator from the device side channel's discrimination process in the
chain.
@param targetChannel
being stopped
@param chain
the channel is in
@return if the channel was disabled
@throws ChannelException
@throws ChainException | [
"This",
"method",
"is",
"done",
"in",
"preparation",
"for",
"stopping",
"a",
"channel",
".",
"It",
"pull",
"s",
"its",
"discriminator",
"from",
"the",
"device",
"side",
"channel",
"s",
"discrimination",
"process",
"in",
"the",
"chain",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L1419-L1465 |
111,213 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.removeChainInternal | private synchronized void removeChainInternal(ChainData chaindata) {
String chainName = chaindata.getName();
ChainData[] chains = null;
for (String groupName : chainGroups.keySet()) {
chains = chainGroups.get(groupName).getChains();
int j = 0;
for (; j < chain... | java | private synchronized void removeChainInternal(ChainData chaindata) {
String chainName = chaindata.getName();
ChainData[] chains = null;
for (String groupName : chainGroups.keySet()) {
chains = chainGroups.get(groupName).getChains();
int j = 0;
for (; j < chain... | [
"private",
"synchronized",
"void",
"removeChainInternal",
"(",
"ChainData",
"chaindata",
")",
"{",
"String",
"chainName",
"=",
"chaindata",
".",
"getName",
"(",
")",
";",
"ChainData",
"[",
"]",
"chains",
"=",
"null",
";",
"for",
"(",
"String",
"groupName",
"... | Remove the chain from the framework and disconnect it from any groups
that contain it.
@param chaindata | [
"Remove",
"the",
"chain",
"from",
"the",
"framework",
"and",
"disconnect",
"it",
"from",
"any",
"groups",
"that",
"contain",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L1891-L1925 |
111,214 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.cleanChildRefsInParent | private void cleanChildRefsInParent(ChannelData channelDataArray[], boolean childrenNew[]) {
ChildChannelDataImpl child = null;
// Clean up the already child refs in the parent.
for (int i = 0; i < channelDataArray.length; i++) {
if (childrenNew[i] == true) {
child = ... | java | private void cleanChildRefsInParent(ChannelData channelDataArray[], boolean childrenNew[]) {
ChildChannelDataImpl child = null;
// Clean up the already child refs in the parent.
for (int i = 0; i < channelDataArray.length; i++) {
if (childrenNew[i] == true) {
child = ... | [
"private",
"void",
"cleanChildRefsInParent",
"(",
"ChannelData",
"channelDataArray",
"[",
"]",
",",
"boolean",
"childrenNew",
"[",
"]",
")",
"{",
"ChildChannelDataImpl",
"child",
"=",
"null",
";",
"// Clean up the already child refs in the parent.",
"for",
"(",
"int",
... | This is a helper function. The same logic needs to be done in multiple
places so
this method was written to break it out. It will be called in times when an
exception
occurred during the construction of a chain. It cleans up some of the
objects that
were lined up ahead of time.
@param channelDataArray
@param childrenN... | [
"This",
"is",
"a",
"helper",
"function",
".",
"The",
"same",
"logic",
"needs",
"to",
"be",
"done",
"in",
"multiple",
"places",
"so",
"this",
"method",
"was",
"written",
"to",
"break",
"it",
"out",
".",
"It",
"will",
"be",
"called",
"in",
"times",
"when... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L2508-L2517 |
111,215 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.destroyChainInternal | public synchronized void destroyChainInternal(Chain chain) throws ChannelException, ChainException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "destroyChainInternal: " + chain.getName());
}
if (RuntimeState.INITIALIZED.equals(chain.getState())) {... | java | public synchronized void destroyChainInternal(Chain chain) throws ChannelException, ChainException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "destroyChainInternal: " + chain.getName());
}
if (RuntimeState.INITIALIZED.equals(chain.getState())) {... | [
"public",
"synchronized",
"void",
"destroyChainInternal",
"(",
"Chain",
"chain",
")",
"throws",
"ChannelException",
",",
"ChainException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"... | This method destroys both inbound and outbound chains..
@param chain
@throws ChannelException
@throws ChainException | [
"This",
"method",
"destroys",
"both",
"inbound",
"and",
"outbound",
"chains",
".."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L3170-L3203 |
111,216 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.retryChainStart | protected void retryChainStart(ChainData chainData, Exception e) {
// Do nothing in the core implementation. This method is overloaded in the
// service.
// 7/16/04 CAL - this prevents a dependency on the Alarm Manager and
// channelfw.service
FFDCFilter.processException(e, getCl... | java | protected void retryChainStart(ChainData chainData, Exception e) {
// Do nothing in the core implementation. This method is overloaded in the
// service.
// 7/16/04 CAL - this prevents a dependency on the Alarm Manager and
// channelfw.service
FFDCFilter.processException(e, getCl... | [
"protected",
"void",
"retryChainStart",
"(",
"ChainData",
"chainData",
",",
"Exception",
"e",
")",
"{",
"// Do nothing in the core implementation. This method is overloaded in the",
"// service.",
"// 7/16/04 CAL - this prevents a dependency on the Alarm Manager and",
"// channelfw.servi... | This method is called when an initial attempt to start a chain has
failed due to a particular type of exception, RetryableChannelException,
indicating that a retry may enable the chain to be started. This could
result from something like a device side channel having bind problems
since a socket from a previous chain st... | [
"This",
"method",
"is",
"called",
"when",
"an",
"initial",
"attempt",
"to",
"start",
"a",
"chain",
"has",
"failed",
"due",
"to",
"a",
"particular",
"type",
"of",
"exception",
"RetryableChannelException",
"indicating",
"that",
"a",
"retry",
"may",
"enable",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L3762-L3770 |
111,217 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getRunningChain | public synchronized Chain getRunningChain(String chainName) {
Chain chain = null;
if (null != chainName) {
chain = this.chainRunningMap.get(chainName);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getRunningChain: " + chainNam... | java | public synchronized Chain getRunningChain(String chainName) {
Chain chain = null;
if (null != chainName) {
chain = this.chainRunningMap.get(chainName);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getRunningChain: " + chainNam... | [
"public",
"synchronized",
"Chain",
"getRunningChain",
"(",
"String",
"chainName",
")",
"{",
"Chain",
"chain",
"=",
"null",
";",
"if",
"(",
"null",
"!=",
"chainName",
")",
"{",
"chain",
"=",
"this",
".",
"chainRunningMap",
".",
"get",
"(",
"chainName",
")",... | Fetch the input chain from the runtime.
@param chainName
@return chain requested, or null if not found. | [
"Fetch",
"the",
"input",
"chain",
"from",
"the",
"runtime",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4028-L4037 |
111,218 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getRunningChannel | public synchronized Channel getRunningChannel(String inputChannelName, Chain chain) {
if (inputChannelName == null || chain == null) {
return null;
}
Channel channel = null;
// Ensure the chain is running.
if (null != this.chainRunningMap.get(chain.getName())) {
... | java | public synchronized Channel getRunningChannel(String inputChannelName, Chain chain) {
if (inputChannelName == null || chain == null) {
return null;
}
Channel channel = null;
// Ensure the chain is running.
if (null != this.chainRunningMap.get(chain.getName())) {
... | [
"public",
"synchronized",
"Channel",
"getRunningChannel",
"(",
"String",
"inputChannelName",
",",
"Chain",
"chain",
")",
"{",
"if",
"(",
"inputChannelName",
"==",
"null",
"||",
"chain",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"Channel",
"channel",
... | Fetch the input channel from the runtime.
@param inputChannelName
of the (parent) channel requested.
@param chain
in which channel is running.
@return Channel requested, or null if not found. | [
"Fetch",
"the",
"input",
"channel",
"from",
"the",
"runtime",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4048-L4065 |
111,219 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getChannelState | public synchronized RuntimeState getChannelState(String channelName, Chain chain) {
RuntimeState state = null;
Channel channel = getRunningChannel(channelName, chain);
if (channel != null) {
ChannelContainer channelContainer = this.channelRunningMap.get(channel.getName());
... | java | public synchronized RuntimeState getChannelState(String channelName, Chain chain) {
RuntimeState state = null;
Channel channel = getRunningChannel(channelName, chain);
if (channel != null) {
ChannelContainer channelContainer = this.channelRunningMap.get(channel.getName());
... | [
"public",
"synchronized",
"RuntimeState",
"getChannelState",
"(",
"String",
"channelName",
",",
"Chain",
"chain",
")",
"{",
"RuntimeState",
"state",
"=",
"null",
";",
"Channel",
"channel",
"=",
"getRunningChannel",
"(",
"channelName",
",",
"chain",
")",
";",
"if... | Return the state of the input runtime channel.
@param channelName
@param chain
that includes this channel
@return state of channel, or -1 if the channel cannot be found. | [
"Return",
"the",
"state",
"of",
"the",
"input",
"runtime",
"channel",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4075-L4089 |
111,220 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.setChannelState | private synchronized void setChannelState(String channelName, RuntimeState state) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setChannelState channelName=" + channelName + ", state=" + state.ordinal);
}
if (null != channelName) {
Cha... | java | private synchronized void setChannelState(String channelName, RuntimeState state) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setChannelState channelName=" + channelName + ", state=" + state.ordinal);
}
if (null != channelName) {
Cha... | [
"private",
"synchronized",
"void",
"setChannelState",
"(",
"String",
"channelName",
",",
"RuntimeState",
"state",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"... | Set the channel state of a given channel.
@param channelName
@param state | [
"Set",
"the",
"channel",
"state",
"of",
"a",
"given",
"channel",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4097-L4107 |
111,221 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.doesChannelReferenceChain | public synchronized boolean doesChannelReferenceChain(String channelName, String chainName) {
boolean foundRef = false;
Chain chain = this.chainRunningMap.get(chainName);
if (chain != null) {
ChannelData channelsData[] = chain.getChannelsData();
ChildChannelDataImpl child... | java | public synchronized boolean doesChannelReferenceChain(String channelName, String chainName) {
boolean foundRef = false;
Chain chain = this.chainRunningMap.get(chainName);
if (chain != null) {
ChannelData channelsData[] = chain.getChannelsData();
ChildChannelDataImpl child... | [
"public",
"synchronized",
"boolean",
"doesChannelReferenceChain",
"(",
"String",
"channelName",
",",
"String",
"chainName",
")",
"{",
"boolean",
"foundRef",
"=",
"false",
";",
"Chain",
"chain",
"=",
"this",
".",
"chainRunningMap",
".",
"get",
"(",
"chainName",
"... | Determine if a channel references a chain in the runtime config.
@param channelName
@param chainName
@return boolean true if channel is referenced by chain, false otherwise | [
"Determine",
"if",
"a",
"channel",
"references",
"a",
"chain",
"in",
"the",
"runtime",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4116-L4134 |
111,222 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getNumStartedChainsUsingChannel | public synchronized int getNumStartedChainsUsingChannel(String channelName) {
int numStartedChains = 0;
ChannelContainer channelContainer = this.channelRunningMap.get(channelName);
if (null != channelContainer) {
for (Chain chain : channelContainer.getChainMap().values()) {
... | java | public synchronized int getNumStartedChainsUsingChannel(String channelName) {
int numStartedChains = 0;
ChannelContainer channelContainer = this.channelRunningMap.get(channelName);
if (null != channelContainer) {
for (Chain chain : channelContainer.getChainMap().values()) {
... | [
"public",
"synchronized",
"int",
"getNumStartedChainsUsingChannel",
"(",
"String",
"channelName",
")",
"{",
"int",
"numStartedChains",
"=",
"0",
";",
"ChannelContainer",
"channelContainer",
"=",
"this",
".",
"channelRunningMap",
".",
"get",
"(",
"channelName",
")",
... | Get the number of chains that are currently using this channel in the
runtime
which are in the STARTED state.
@param channelName
@return number of chains in STARTED state | [
"Get",
"the",
"number",
"of",
"chains",
"that",
"are",
"currently",
"using",
"this",
"channel",
"in",
"the",
"runtime",
"which",
"are",
"in",
"the",
"STARTED",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4144-L4158 |
111,223 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.createChannelData | protected ChannelData createChannelData(String name, Class<?> factoryClass, Map<Object, Object> properties, int weight) {
return new ChannelDataImpl(name, factoryClass, properties, weight, this);
} | java | protected ChannelData createChannelData(String name, Class<?> factoryClass, Map<Object, Object> properties, int weight) {
return new ChannelDataImpl(name, factoryClass, properties, weight, this);
} | [
"protected",
"ChannelData",
"createChannelData",
"(",
"String",
"name",
",",
"Class",
"<",
"?",
">",
"factoryClass",
",",
"Map",
"<",
"Object",
",",
"Object",
">",
"properties",
",",
"int",
"weight",
")",
"{",
"return",
"new",
"ChannelDataImpl",
"(",
"name",... | Create a new ChannelData Object.
@param name
@param factoryClass
@param properties
@param weight
@return ChannelData | [
"Create",
"a",
"new",
"ChannelData",
"Object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4275-L4278 |
111,224 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.createChainData | protected ChainData createChainData(String name, FlowType type, ChannelData[] channels, Map<Object, Object> properties) throws IncoherentChainException {
return new ChainDataImpl(name, type, channels, properties);
} | java | protected ChainData createChainData(String name, FlowType type, ChannelData[] channels, Map<Object, Object> properties) throws IncoherentChainException {
return new ChainDataImpl(name, type, channels, properties);
} | [
"protected",
"ChainData",
"createChainData",
"(",
"String",
"name",
",",
"FlowType",
"type",
",",
"ChannelData",
"[",
"]",
"channels",
",",
"Map",
"<",
"Object",
",",
"Object",
">",
"properties",
")",
"throws",
"IncoherentChainException",
"{",
"return",
"new",
... | Create a new ChainData object.
@param name
@param type
@param channels
@return ChainData
@throws IncoherentChainException | [
"Create",
"a",
"new",
"ChainData",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4289-L4292 |
111,225 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.registerFactories | @Override
public void registerFactories(ChannelFactoryProvider provider) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Register factory provider; " + provider.getClass().getName());
}
synchronized (this.factories) {
for (Entry<Stri... | java | @Override
public void registerFactories(ChannelFactoryProvider provider) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Register factory provider; " + provider.getClass().getName());
}
synchronized (this.factories) {
for (Entry<Stri... | [
"@",
"Override",
"public",
"void",
"registerFactories",
"(",
"ChannelFactoryProvider",
"provider",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"t... | Set a factory provider.
@param provider | [
"Set",
"a",
"factory",
"provider",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4569-L4591 |
111,226 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.deregisterFactories | @Override
public void deregisterFactories(ChannelFactoryProvider provider) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing factory provider; " + provider.getClass().getName());
}
for (Entry<String, Class<? extends ChannelFactory>> entry... | java | @Override
public void deregisterFactories(ChannelFactoryProvider provider) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing factory provider; " + provider.getClass().getName());
}
for (Entry<String, Class<? extends ChannelFactory>> entry... | [
"@",
"Override",
"public",
"void",
"deregisterFactories",
"(",
"ChannelFactoryProvider",
"provider",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
... | Remove a factory provider.
@param provider | [
"Remove",
"a",
"factory",
"provider",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4598-L4608 |
111,227 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.getVhost | public List<String> getVhost(String address, String port) {
if (null == address || null == port) {
return null;
}
int portnum = Integer.parseInt(port);
List<EndPointInfo> eps = EndPointMgrImpl.getRef().getEndPoints(address, portnum);
List<String> rc = new ArrayList<St... | java | public List<String> getVhost(String address, String port) {
if (null == address || null == port) {
return null;
}
int portnum = Integer.parseInt(port);
List<EndPointInfo> eps = EndPointMgrImpl.getRef().getEndPoints(address, portnum);
List<String> rc = new ArrayList<St... | [
"public",
"List",
"<",
"String",
">",
"getVhost",
"(",
"String",
"address",
",",
"String",
"port",
")",
"{",
"if",
"(",
"null",
"==",
"address",
"||",
"null",
"==",
"port",
")",
"{",
"return",
"null",
";",
"}",
"int",
"portnum",
"=",
"Integer",
".",
... | Find the appropriate virtual host list for the provided
address and port target.
@param address
@param port
@return List<String>, never null but might be empty | [
"Find",
"the",
"appropriate",
"virtual",
"host",
"list",
"for",
"the",
"provided",
"address",
"and",
"port",
"target",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4902-L4913 |
111,228 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.createOutboundChain | public ChainData createOutboundChain(CFEndPoint endpoint) throws ChannelFrameworkException {
List<OutboundChannelDefinition> defs = endpoint.getOutboundChannelDefs();
String namelist[] = new String[defs.size()];
int i = 0;
for (OutboundChannelDefinition def : defs) {
namelist... | java | public ChainData createOutboundChain(CFEndPoint endpoint) throws ChannelFrameworkException {
List<OutboundChannelDefinition> defs = endpoint.getOutboundChannelDefs();
String namelist[] = new String[defs.size()];
int i = 0;
for (OutboundChannelDefinition def : defs) {
namelist... | [
"public",
"ChainData",
"createOutboundChain",
"(",
"CFEndPoint",
"endpoint",
")",
"throws",
"ChannelFrameworkException",
"{",
"List",
"<",
"OutboundChannelDefinition",
">",
"defs",
"=",
"endpoint",
".",
"getOutboundChannelDefs",
"(",
")",
";",
"String",
"namelist",
"[... | Create a new outbound chain based on the provided endpoint definition.
@param endpoint
@return ChainData
@throws ChannelFrameworkException | [
"Create",
"a",
"new",
"outbound",
"chain",
"based",
"on",
"the",
"provided",
"endpoint",
"definition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L4922-L4932 |
111,229 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.propertiesIncluded | private boolean propertiesIncluded(Map<Object, Object> inputMap, Map<Object, Object> existingMap) {
if (inputMap == null) {
// If no properties are specified, then success.
return true;
} else if (existingMap == null || inputMap.size() > existingMap.size()) {
// If pr... | java | private boolean propertiesIncluded(Map<Object, Object> inputMap, Map<Object, Object> existingMap) {
if (inputMap == null) {
// If no properties are specified, then success.
return true;
} else if (existingMap == null || inputMap.size() > existingMap.size()) {
// If pr... | [
"private",
"boolean",
"propertiesIncluded",
"(",
"Map",
"<",
"Object",
",",
"Object",
">",
"inputMap",
",",
"Map",
"<",
"Object",
",",
"Object",
">",
"existingMap",
")",
"{",
"if",
"(",
"inputMap",
"==",
"null",
")",
"{",
"// If no properties are specified, th... | This method returns whether all the properties in the first Map are in
the second Map.
@param inputMap
of properties to search for.
@param existingMap
of properties to search in.
@return true if all properties of first Map are found in second Map | [
"This",
"method",
"returns",
"whether",
"all",
"the",
"properties",
"in",
"the",
"first",
"Map",
"are",
"in",
"the",
"second",
"Map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L5054-L5073 |
111,230 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java | ChannelFrameworkImpl.prepareEndPoint | public void prepareEndPoint(CFEndPointImpl endpoint) throws ChannelFrameworkException {
if (null == endpoint.getOutboundChainData()) {
VirtualConnectionFactory vcf = getOutboundVCFactory(endpoint.getOutboundChannelDefs());
endpoint.setOutboundVCFactory(vcf);
endpoint.setOutbo... | java | public void prepareEndPoint(CFEndPointImpl endpoint) throws ChannelFrameworkException {
if (null == endpoint.getOutboundChainData()) {
VirtualConnectionFactory vcf = getOutboundVCFactory(endpoint.getOutboundChannelDefs());
endpoint.setOutboundVCFactory(vcf);
endpoint.setOutbo... | [
"public",
"void",
"prepareEndPoint",
"(",
"CFEndPointImpl",
"endpoint",
")",
"throws",
"ChannelFrameworkException",
"{",
"if",
"(",
"null",
"==",
"endpoint",
".",
"getOutboundChainData",
"(",
")",
")",
"{",
"VirtualConnectionFactory",
"vcf",
"=",
"getOutboundVCFactory... | Prepare the factory and the chain for the provided endpoint.
@param endpoint
@throws ChannelFrameworkException | [
"Prepare",
"the",
"factory",
"and",
"the",
"chain",
"for",
"the",
"provided",
"endpoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChannelFrameworkImpl.java#L5081-L5087 |
111,231 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDynacache.java | HTODDynacache.updateExpirationTime | public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
final String methodName = "updateExpirationTime()";
int returnCode = NO_EXCEPTION;
Exception diskException = null;
// update the disk entry header only... | java | public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
final String methodName = "updateExpirationTime()";
int returnCode = NO_EXCEPTION;
Exception diskException = null;
// update the disk entry header only... | [
"public",
"int",
"updateExpirationTime",
"(",
"Object",
"id",
",",
"long",
"oldExpirationTime",
",",
"int",
"size",
",",
"long",
"newExpirationTime",
",",
"long",
"newValidatorExpirationTime",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"updateExpirationTime()\"... | Since the real expiration time does not change, the GC will be updated. | [
"Since",
"the",
"real",
"expiration",
"time",
"does",
"not",
"change",
"the",
"GC",
"will",
"be",
"updated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDynacache.java#L1625-L1668 |
111,232 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDynacache.java | HTODDynacache.isCacheIdInAuxDepIdTable | public boolean isCacheIdInAuxDepIdTable(Object id) {
if (delayOffload) {
if (!this.disableDependencyId) {
return this.auxDataDependencyTable.containsCacheId(id);
} else {
return false;
}
} else {
return false;
}
... | java | public boolean isCacheIdInAuxDepIdTable(Object id) {
if (delayOffload) {
if (!this.disableDependencyId) {
return this.auxDataDependencyTable.containsCacheId(id);
} else {
return false;
}
} else {
return false;
}
... | [
"public",
"boolean",
"isCacheIdInAuxDepIdTable",
"(",
"Object",
"id",
")",
"{",
"if",
"(",
"delayOffload",
")",
"{",
"if",
"(",
"!",
"this",
".",
"disableDependencyId",
")",
"{",
"return",
"this",
".",
"auxDataDependencyTable",
".",
"containsCacheId",
"(",
"id... | Return a boolean to indicate whether the specified cache id exists in the aux dependency table | [
"Return",
"a",
"boolean",
"to",
"indicate",
"whether",
"the",
"specified",
"cache",
"id",
"exists",
"in",
"the",
"aux",
"dependency",
"table"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDynacache.java#L3445-L3455 |
111,233 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.getOriginalException | public Throwable getOriginalException() throws ExceptionInstantiationException {
Throwable prevEx = null;
if (previousExceptionInfo != null) {
prevEx = previousExceptionInfo.getOriginalException();
if (prevEx == null) {
prevEx = getPreviousException();
... | java | public Throwable getOriginalException() throws ExceptionInstantiationException {
Throwable prevEx = null;
if (previousExceptionInfo != null) {
prevEx = previousExceptionInfo.getOriginalException();
if (prevEx == null) {
prevEx = getPreviousException();
... | [
"public",
"Throwable",
"getOriginalException",
"(",
")",
"throws",
"ExceptionInstantiationException",
"{",
"Throwable",
"prevEx",
"=",
"null",
";",
"if",
"(",
"previousExceptionInfo",
"!=",
"null",
")",
"{",
"prevEx",
"=",
"previousExceptionInfo",
".",
"getOriginalExc... | Get the original exception in a possible chain of exceptions.
If no previous exceptions have been chained, null will be returned.
@exception com.ibm.websphere.exception.ExceptionInstantiationException
An exception occurred while trying to instantiate an exception object.
If this exception is thrown, the relevant infor... | [
"Get",
"the",
"original",
"exception",
"in",
"a",
"possible",
"chain",
"of",
"exceptions",
".",
"If",
"no",
"previous",
"exceptions",
"have",
"been",
"chained",
"null",
"will",
"be",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L406-L415 |
111,234 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.getPreviousException | public Throwable getPreviousException() throws ExceptionInstantiationException {
Throwable ex = null;
if (previousExceptionObject != null)
return previousExceptionObject;
if (previousException != null) {
try {
final ByteArrayInputStream bais = new ByteArra... | java | public Throwable getPreviousException() throws ExceptionInstantiationException {
Throwable ex = null;
if (previousExceptionObject != null)
return previousExceptionObject;
if (previousException != null) {
try {
final ByteArrayInputStream bais = new ByteArra... | [
"public",
"Throwable",
"getPreviousException",
"(",
")",
"throws",
"ExceptionInstantiationException",
"{",
"Throwable",
"ex",
"=",
"null",
";",
"if",
"(",
"previousExceptionObject",
"!=",
"null",
")",
"return",
"previousExceptionObject",
";",
"if",
"(",
"previousExcep... | Retrieves the previous exception
@exception com.ibm.websphere.exception.ExceptionInstantiationException
An exception occurred while trying to instantiate an exception object.
If this exception is thrown, the relevant information can be retrieved
by using the getPreviousExceptionInfo() method.
@return java.lang.Throw... | [
"Retrieves",
"the",
"previous",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L428-L449 |
111,235 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.setExceptionInfo | private void setExceptionInfo(DistributedExceptionEnabled e) {
if (e != null) {
setClassName(e.getClass().getName());
}
currentException = e;
} | java | private void setExceptionInfo(DistributedExceptionEnabled e) {
if (e != null) {
setClassName(e.getClass().getName());
}
currentException = e;
} | [
"private",
"void",
"setExceptionInfo",
"(",
"DistributedExceptionEnabled",
"e",
")",
"{",
"if",
"(",
"e",
"!=",
"null",
")",
"{",
"setClassName",
"(",
"e",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"}",
"currentException",
"=",
"e",
... | Set the exceptionInfo attribute
@param newExceptionInfo com.ibm.websphere.exception.DistributedExceptionInfo | [
"Set",
"the",
"exceptionInfo",
"attribute"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L641-L646 |
111,236 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.setLocalizationInfo | public void setLocalizationInfo(String resourceBundleName, String resourceKey, Object[] formatArguments) {
this.resourceBundleName = resourceBundleName;
this.resourceKey = resourceKey;
this.formatArguments = formatArguments;
} | java | public void setLocalizationInfo(String resourceBundleName, String resourceKey, Object[] formatArguments) {
this.resourceBundleName = resourceBundleName;
this.resourceKey = resourceKey;
this.formatArguments = formatArguments;
} | [
"public",
"void",
"setLocalizationInfo",
"(",
"String",
"resourceBundleName",
",",
"String",
"resourceKey",
",",
"Object",
"[",
"]",
"formatArguments",
")",
"{",
"this",
".",
"resourceBundleName",
"=",
"resourceBundleName",
";",
"this",
".",
"resourceKey",
"=",
"r... | FOR WEBSPHERE INTERNAL USE ONLY
Set the localization information.
@param resourceBundleName java.lang.String
@param resourceKey java.lang.String
@param arguments java.lang.Object[] | [
"FOR",
"WEBSPHERE",
"INTERNAL",
"USE",
"ONLY",
"Set",
"the",
"localization",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L689-L693 |
111,237 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.serializePreviousException | private void serializePreviousException() {
try {
final ByteArrayOutputStream bas = new ByteArrayOutputStream();
ObjectOutputStream oos = (ObjectOutputStream) AccessController.doPrivileged(new PrivilegedExceptionAction() {
@Override
public Object run() thr... | java | private void serializePreviousException() {
try {
final ByteArrayOutputStream bas = new ByteArrayOutputStream();
ObjectOutputStream oos = (ObjectOutputStream) AccessController.doPrivileged(new PrivilegedExceptionAction() {
@Override
public Object run() thr... | [
"private",
"void",
"serializePreviousException",
"(",
")",
"{",
"try",
"{",
"final",
"ByteArrayOutputStream",
"bas",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"ObjectOutputStream",
"oos",
"=",
"(",
"ObjectOutputStream",
")",
"AccessController",
".",
"doPri... | Set the previous exception attribute. The exception will be
converted to a byte array, so that an unmarshall exception will
not be thrown if the exception doesn't exist on the client or on
an intermediate server.
@param exception java.lang.Throwable | [
"Set",
"the",
"previous",
"exception",
"attribute",
".",
"The",
"exception",
"will",
"be",
"converted",
"to",
"a",
"byte",
"array",
"so",
"that",
"an",
"unmarshall",
"exception",
"will",
"not",
"be",
"thrown",
"if",
"the",
"exception",
"doesn",
"t",
"exist",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L712-L728 |
111,238 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.setPreviousExceptionInfo | private void setPreviousExceptionInfo(Throwable previousException) {
if (previousException instanceof com.ibm.websphere.exception.DistributedExceptionEnabled) {
previousExceptionInfo = ((DistributedExceptionEnabled) previousException).getExceptionInfo();
} else {
previousExceptio... | java | private void setPreviousExceptionInfo(Throwable previousException) {
if (previousException instanceof com.ibm.websphere.exception.DistributedExceptionEnabled) {
previousExceptionInfo = ((DistributedExceptionEnabled) previousException).getExceptionInfo();
} else {
previousExceptio... | [
"private",
"void",
"setPreviousExceptionInfo",
"(",
"Throwable",
"previousException",
")",
"{",
"if",
"(",
"previousException",
"instanceof",
"com",
".",
"ibm",
".",
"websphere",
".",
"exception",
".",
"DistributedExceptionEnabled",
")",
"{",
"previousExceptionInfo",
... | Set the previous exception info object.
@param newPreviousExceptionInfo com.ibm.websphere.exception.DistributedExceptionInfo | [
"Set",
"the",
"previous",
"exception",
"info",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L735-L741 |
111,239 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java | DistributedExceptionInfo.setStackTrace | private void setStackTrace(Throwable e) {
// Convert stack trace to a String
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
stackTrace = sw.toString();
setLineSeparator(getLineSeparatorProperty());
} | java | private void setStackTrace(Throwable e) {
// Convert stack trace to a String
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
stackTrace = sw.toString();
setLineSeparator(getLineSeparatorProperty());
} | [
"private",
"void",
"setStackTrace",
"(",
"Throwable",
"e",
")",
"{",
"// Convert stack trace to a String",
"StringWriter",
"sw",
"=",
"new",
"StringWriter",
"(",
")",
";",
"PrintWriter",
"pw",
"=",
"new",
"PrintWriter",
"(",
"sw",
")",
";",
"e",
".",
"printSta... | Set the stack trace
@param newStackTrace java.lang.String | [
"Set",
"the",
"stack",
"trace"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/exception/DistributedExceptionInfo.java#L757-L764 |
111,240 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/schemagen/internal/SchemaWriter.java | SchemaWriter.processOCDAttributes | private void processOCDAttributes(String currDefId, AttributeDefinition[] attrDefs, Map<String, AttributeDefinition> requiredAttributes,
Map<String, AttributeDefinition> optionalAttributes, Map<String, ExtendedAttributeDefinition> attributeMap,
... | java | private void processOCDAttributes(String currDefId, AttributeDefinition[] attrDefs, Map<String, AttributeDefinition> requiredAttributes,
Map<String, AttributeDefinition> optionalAttributes, Map<String, ExtendedAttributeDefinition> attributeMap,
... | [
"private",
"void",
"processOCDAttributes",
"(",
"String",
"currDefId",
",",
"AttributeDefinition",
"[",
"]",
"attrDefs",
",",
"Map",
"<",
"String",
",",
"AttributeDefinition",
">",
"requiredAttributes",
",",
"Map",
"<",
"String",
",",
"AttributeDefinition",
">",
"... | This method takes a set of Attribute Definitions and processes them against an existing Map of attributes.
@param currDefId - A String containing the id of the ObjectClassDefinition that we're processing.
@param attrDefs - The Attribute Definitions of the ObjectClassDefinition that we're processing
@param currentAttri... | [
"This",
"method",
"takes",
"a",
"set",
"of",
"Attribute",
"Definitions",
"and",
"processes",
"them",
"against",
"an",
"existing",
"Map",
"of",
"attributes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/schemagen/internal/SchemaWriter.java#L527-L593 |
111,241 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/AbstractConfigAccessorBuilder.java | AbstractConfigAccessorBuilder.generatePropertyNameList | public static List<String> generatePropertyNameList(String propertyName, List<String> suffixValues) {
List<String> propertyNames = new ArrayList<>();
int suffixes = suffixValues.size();
if (suffixes > 0) {
//starting values for the counter based on the number of suffixes
... | java | public static List<String> generatePropertyNameList(String propertyName, List<String> suffixValues) {
List<String> propertyNames = new ArrayList<>();
int suffixes = suffixValues.size();
if (suffixes > 0) {
//starting values for the counter based on the number of suffixes
... | [
"public",
"static",
"List",
"<",
"String",
">",
"generatePropertyNameList",
"(",
"String",
"propertyName",
",",
"List",
"<",
"String",
">",
"suffixValues",
")",
"{",
"List",
"<",
"String",
">",
"propertyNames",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
... | This method uses a binary count down to append suffixes to a base propertyName.
e.g.
if there are 4 suffixes then the counter starts at 15 (1111) which would mean that all of the suffixes are applied in order.
The counter then drops to 14 (1110) which would mean all but the last suffix are applied.... and so on until ... | [
"This",
"method",
"uses",
"a",
"binary",
"count",
"down",
"to",
"append",
"suffixes",
"to",
"a",
"base",
"propertyName",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/AbstractConfigAccessorBuilder.java#L151-L184 |
111,242 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/SSLComponent.java | SSLComponent.unsetKeyStore | protected synchronized void unsetKeyStore(KeystoreConfig config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing keystore: " + config.getId());
}
keystoreIdMap.remove(config.getId());
keystorePidMap.remove(config.getPid());
... | java | protected synchronized void unsetKeyStore(KeystoreConfig config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing keystore: " + config.getId());
}
keystoreIdMap.remove(config.getId());
keystorePidMap.remove(config.getPid());
... | [
"protected",
"synchronized",
"void",
"unsetKeyStore",
"(",
"KeystoreConfig",
"config",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"... | Method will be called for each KeyStoreConfigService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered KeyStoreConfigService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"KeyStoreConfigService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/SSLComponent.java#L188-L205 |
111,243 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/SSLComponent.java | SSLComponent.unsetRepertoire | protected synchronized void unsetRepertoire(RepertoireConfigService config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing repertoire: " + config.getAlias());
}
repertoireMap.remove(config.getAlias());
repertoirePIDMap.remove(confi... | java | protected synchronized void unsetRepertoire(RepertoireConfigService config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Removing repertoire: " + config.getAlias());
}
repertoireMap.remove(config.getAlias());
repertoirePIDMap.remove(confi... | [
"protected",
"synchronized",
"void",
"unsetRepertoire",
"(",
"RepertoireConfigService",
"config",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",... | Method will be called for each RepertoireConfigService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param config RepertoireConfigService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"RepertoireConfigService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/SSLComponent.java#L258-L267 |
111,244 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ManagedObjectInputStream.java | ManagedObjectInputStream.resolveObject | protected Object resolveObject(Object objectToResolve) {
final String methodName = "resolveObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
new Object[] { object... | java | protected Object resolveObject(Object objectToResolve) {
final String methodName = "resolveObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
new Object[] { object... | [
"protected",
"Object",
"resolveObject",
"(",
"Object",
"objectToResolve",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"resolveObject\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
... | Resolve any Token to an existing instance of the Token representing a ManagedObject if there is one already in
memory. | [
"Resolve",
"any",
"Token",
"to",
"an",
"existing",
"instance",
"of",
"the",
"Token",
"representing",
"a",
"ManagedObject",
"if",
"there",
"is",
"one",
"already",
"in",
"memory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ManagedObjectInputStream.java#L99-L119 |
111,245 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/ute/UTEHelperFactory.java | UTEHelperFactory.getHelperInstance | public static synchronized UTEHelper getHelperInstance()
throws java.lang.IllegalStateException
{
if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "getHelperInstance");
// ************** CHECK TO SEE IF IT IS ENABLED *******************
try
{
// Initialise the test env flag from... | java | public static synchronized UTEHelper getHelperInstance()
throws java.lang.IllegalStateException
{
if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "getHelperInstance");
// ************** CHECK TO SEE IF IT IS ENABLED *******************
try
{
// Initialise the test env flag from... | [
"public",
"static",
"synchronized",
"UTEHelper",
"getHelperInstance",
"(",
")",
"throws",
"java",
".",
"lang",
".",
"IllegalStateException",
"{",
"if",
"(",
"tcInt",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tcInt",
",",
"\"getHelperIn... | This method is used to return an instance of the UTEHelper.
@return UTEHelper
@throws IllegalStateException if called when the JMS Test environment is not enabled. | [
"This",
"method",
"is",
"used",
"to",
"return",
"an",
"instance",
"of",
"the",
"UTEHelper",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/ute/UTEHelperFactory.java#L72-L141 |
111,246 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/LinkedList.java | LinkedList.insertLinkBefore | public final synchronized void insertLinkBefore(Link insertLink, Link followingLink) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(
this,
tc,
"insertLinkBefore",
new long[] { insertLink.getSequence(), ... | java | public final synchronized void insertLinkBefore(Link insertLink, Link followingLink) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(
this,
tc,
"insertLinkBefore",
new long[] { insertLink.getSequence(), ... | [
"public",
"final",
"synchronized",
"void",
"insertLinkBefore",
"(",
"Link",
"insertLink",
",",
"Link",
"followingLink",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",... | Insert the specified link into the list.
@param insertLink link to be inserted
@param followingLink link before which the
insertLink is inserted. | [
"Insert",
"the",
"specified",
"link",
"into",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/LinkedList.java#L139-L154 |
111,247 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java | ConnectorModuleMetaDataImpl.getDefaultInstancesXML | String getDefaultInstancesXML(String alias) throws Exception {
StringBuilder xml = new StringBuilder(200).append("\r\n<server>\r\n");
String extendsPid = (String) config.get(SOURCE_PID);
if ((extendsPid != null) && (extendsPid.startsWith("com.ibm.ws.jca.resourceAdapter"))) {
// com... | java | String getDefaultInstancesXML(String alias) throws Exception {
StringBuilder xml = new StringBuilder(200).append("\r\n<server>\r\n");
String extendsPid = (String) config.get(SOURCE_PID);
if ((extendsPid != null) && (extendsPid.startsWith("com.ibm.ws.jca.resourceAdapter"))) {
// com... | [
"String",
"getDefaultInstancesXML",
"(",
"String",
"alias",
")",
"throws",
"Exception",
"{",
"StringBuilder",
"xml",
"=",
"new",
"StringBuilder",
"(",
"200",
")",
".",
"append",
"(",
"\"\\r\\n<server>\\r\\n\"",
")",
";",
"String",
"extendsPid",
"=",
"(",
"String... | Get the server.xml snippet that specifies default instances for the resource adapter.
For standalone resource adapters,
<server>
. <resourceAdapter id="{ra.config.id}">
. . <properties.MyAdapter/>
. </resourceAdapter>
</server>
For resource adapters embedded in applications (if a resourceAdapter config element exists... | [
"Get",
"the",
"server",
".",
"xml",
"snippet",
"that",
"specifies",
"default",
"instances",
"for",
"the",
"resource",
"adapter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java#L177-L212 |
111,248 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java | ConnectorModuleMetaDataImpl.get | private Object get(String name) {
if (isEmbedded)
return embeddedRAConfig == null ? null : embeddedRAConfig.get(name);
else
return config.get(name);
} | java | private Object get(String name) {
if (isEmbedded)
return embeddedRAConfig == null ? null : embeddedRAConfig.get(name);
else
return config.get(name);
} | [
"private",
"Object",
"get",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"isEmbedded",
")",
"return",
"embeddedRAConfig",
"==",
"null",
"?",
"null",
":",
"embeddedRAConfig",
".",
"get",
"(",
"name",
")",
";",
"else",
"return",
"config",
".",
"get",
"(",
... | Returns the value of a configured property of the resourceAdapter element.
@param name property name.
@return the value of a configured property of the resourceAdapter element. | [
"Returns",
"the",
"value",
"of",
"a",
"configured",
"property",
"of",
"the",
"resourceAdapter",
"element",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java#L270-L275 |
111,249 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java | ConnectorModuleMetaDataImpl.getConfigForEmbeddedResourceAdapter | private final Dictionary<String, Object> getConfigForEmbeddedResourceAdapter() throws UnableToAdaptException {
BundleContext bundleContext = Utils.priv.getBundleContext(FrameworkUtil.getBundle(getClass()));
ServiceReference<ConfigurationAdmin> configAdminRef = Utils.priv.getServiceReference(bundleContex... | java | private final Dictionary<String, Object> getConfigForEmbeddedResourceAdapter() throws UnableToAdaptException {
BundleContext bundleContext = Utils.priv.getBundleContext(FrameworkUtil.getBundle(getClass()));
ServiceReference<ConfigurationAdmin> configAdminRef = Utils.priv.getServiceReference(bundleContex... | [
"private",
"final",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"getConfigForEmbeddedResourceAdapter",
"(",
")",
"throws",
"UnableToAdaptException",
"{",
"BundleContext",
"bundleContext",
"=",
"Utils",
".",
"priv",
".",
"getBundleContext",
"(",
"FrameworkUtil",
"... | Returns configured properties for an embedded resource adapter, if any, by matching the id.
@return configured properties for an embedded resource adapter, if any. | [
"Returns",
"configured",
"properties",
"for",
"an",
"embedded",
"resource",
"adapter",
"if",
"any",
"by",
"matching",
"the",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleMetaDataImpl.java#L291-L317 |
111,250 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java | ServerTransportReceiveListener.errorOccurred | @Override
public void errorOccurred(SIConnectionLostException exception, // F174602
int segmentType,
int requestNumber,
int priority,
Conversation conversation) {
if (TraceComponent.isAnyT... | java | @Override
public void errorOccurred(SIConnectionLostException exception, // F174602
int segmentType,
int requestNumber,
int priority,
Conversation conversation) {
if (TraceComponent.isAnyT... | [
"@",
"Override",
"public",
"void",
"errorOccurred",
"(",
"SIConnectionLostException",
"exception",
",",
"// F174602",
"int",
"segmentType",
",",
"int",
"requestNumber",
",",
"int",
"priority",
",",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent... | This method is called by the JFAP channel when it detects a serious error.
At this point we should spit out all the info we have and close the connection
to the ME. This will ensure that the ME realises that we have died and
shutdown any resources we own accordingly.
@param exception
@param segmentType
@param requestN... | [
"This",
"method",
"is",
"called",
"by",
"the",
"JFAP",
"channel",
"when",
"it",
"detects",
"a",
"serious",
"error",
".",
"At",
"this",
"point",
"we",
"should",
"spit",
"out",
"all",
"the",
"info",
"we",
"have",
"and",
"close",
"the",
"connection",
"to",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java#L622-L670 |
111,251 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java | ServerTransportReceiveListener.closeConnection | @Override
public void closeConnection(Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "closeConnection");
try {
conversation.close();
} catch (SIException e) {
FFDCFilter.processException... | java | @Override
public void closeConnection(Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "closeConnection");
try {
conversation.close();
} catch (SIException e) {
FFDCFilter.processException... | [
"@",
"Override",
"public",
"void",
"closeConnection",
"(",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",... | This method is called in extreme cases where the connection needs to be closed right away
without any mucking around. Cases such as this is where the initial handshake has failed.
@param conversation The conversation that needs to be closed down.
@see com.ibm.ws.sib.comms.server.CommonServerReceiveListener#closeConne... | [
"This",
"method",
"is",
"called",
"in",
"extreme",
"cases",
"where",
"the",
"connection",
"needs",
"to",
"be",
"closed",
"right",
"away",
"without",
"any",
"mucking",
"around",
".",
"Cases",
"such",
"as",
"this",
"is",
"where",
"the",
"initial",
"handshake",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java#L758-L777 |
111,252 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java | ServerTransportReceiveListener.rcvTRMExchange | private void rcvTRMExchange(CommsByteBuffer request, Conversation conversation, int requestNumber,
boolean allocatedFromBufferPool, boolean partOfExchange) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "rcvTRMExchange",
... | java | private void rcvTRMExchange(CommsByteBuffer request, Conversation conversation, int requestNumber,
boolean allocatedFromBufferPool, boolean partOfExchange) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "rcvTRMExchange",
... | [
"private",
"void",
"rcvTRMExchange",
"(",
"CommsByteBuffer",
"request",
",",
"Conversation",
"conversation",
",",
"int",
"requestNumber",
",",
"boolean",
"allocatedFromBufferPool",
",",
"boolean",
"partOfExchange",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTra... | Pass information from TRM on the client to TRM on the server. This will only be called by
comms when it receives a segment indicating that TRM has passed a WsByteBuffer of information
to be passed along to TRM.
@param request
@param conversation
@param requestNumber
@param allocatedFromBufferPool
@param partOfExchange | [
"Pass",
"information",
"from",
"TRM",
"on",
"the",
"client",
"to",
"TRM",
"on",
"the",
"server",
".",
"This",
"will",
"only",
"be",
"called",
"by",
"comms",
"when",
"it",
"receives",
"a",
"segment",
"indicating",
"that",
"TRM",
"has",
"passed",
"a",
"WsB... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java#L1215-L1298 |
111,253 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java | ServerTransportReceiveListener.rcvMFPRequestSchema | private void rcvMFPRequestSchema(CommsByteBuffer request, Conversation conversation, int requestNumber,
int segmentId, boolean allocatedFromBufferPool,
boolean partOfExchange) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... | java | private void rcvMFPRequestSchema(CommsByteBuffer request, Conversation conversation, int requestNumber,
int segmentId, boolean allocatedFromBufferPool,
boolean partOfExchange) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... | [
"private",
"void",
"rcvMFPRequestSchema",
"(",
"CommsByteBuffer",
"request",
",",
"Conversation",
"conversation",
",",
"int",
"requestNumber",
",",
"int",
"segmentId",
",",
"boolean",
"allocatedFromBufferPool",
",",
"boolean",
"partOfExchange",
")",
"{",
"if",
"(",
... | This gets called when the server receives a request from the client about an MFP schema. In
this case we pass the call off to MFP and return any result they give us.
@param request
@param conversation
@param requestNumber
@param segmentId
@param allocatedFromBufferPool
@param partOfExchange | [
"This",
"gets",
"called",
"when",
"the",
"server",
"receives",
"a",
"request",
"from",
"the",
"client",
"about",
"an",
"MFP",
"schema",
".",
"In",
"this",
"case",
"we",
"pass",
"the",
"call",
"off",
"to",
"MFP",
"and",
"return",
"any",
"result",
"they",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java#L1444-L1524 |
111,254 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java | ServerTransportReceiveListener.attachConnectionListener | private void attachConnectionListener(Conversation conversation, SICoreConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "attachConnectionListener",
new Object[]
{
convers... | java | private void attachConnectionListener(Conversation conversation, SICoreConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "attachConnectionListener",
new Object[]
{
convers... | [
"private",
"void",
"attachConnectionListener",
"(",
"Conversation",
"conversation",
",",
"SICoreConnection",
"conn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | Helper method used to register the SICoreConnection with the connection listener.
@param conversation
@param conn | [
"Helper",
"method",
"used",
"to",
"register",
"the",
"SICoreConnection",
"with",
"the",
"connection",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportReceiveListener.java#L1631-L1665 |
111,255 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java | AbstractJspModC.setOptions | public void setOptions(JspToolsOptionsMap options) {
if (logger!=null) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINEST)){
logger.logp(Level.FINEST, CLASS_NAME,"setOptions", "setOptions is called");
}
}
this.optionO... | java | public void setOptions(JspToolsOptionsMap options) {
if (logger!=null) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINEST)){
logger.logp(Level.FINEST, CLASS_NAME,"setOptions", "setOptions is called");
}
}
this.optionO... | [
"public",
"void",
"setOptions",
"(",
"JspToolsOptionsMap",
"options",
")",
"{",
"if",
"(",
"logger",
"!=",
"null",
")",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger"... | reg 2007-12-18 I don't think this code every gets called | [
"reg",
"2007",
"-",
"12",
"-",
"18",
"I",
"don",
"t",
"think",
"this",
"code",
"every",
"gets",
"called"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java#L1659-L1666 |
111,256 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java | AbstractJspModC.isSearchClasspathForResources | public boolean isSearchClasspathForResources() {
if (logger!=null)
logger.logp(Level.INFO, CLASS_NAME,"isSearchClasspathForResources", "searchClasspathForResources: {"+searchClasspathForResources+"]");
return searchClasspathForResources;
} | java | public boolean isSearchClasspathForResources() {
if (logger!=null)
logger.logp(Level.INFO, CLASS_NAME,"isSearchClasspathForResources", "searchClasspathForResources: {"+searchClasspathForResources+"]");
return searchClasspathForResources;
} | [
"public",
"boolean",
"isSearchClasspathForResources",
"(",
")",
"{",
"if",
"(",
"logger",
"!=",
"null",
")",
"logger",
".",
"logp",
"(",
"Level",
".",
"INFO",
",",
"CLASS_NAME",
",",
"\"isSearchClasspathForResources\"",
",",
"\"searchClasspathForResources: {\"",
"+"... | defect 201520 - begin | [
"defect",
"201520",
"-",
"begin"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java#L1732-L1736 |
111,257 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2/src/com/ibm/ws/security/csiv2/server/AuthenticatorImpl.java | AuthenticatorImpl.authenticate | @Override
public Subject authenticate(String assertedUser) throws AuthenticationException {
AuthenticateUserHelper authHelper = new AuthenticateUserHelper();
return authHelper.authenticateUser(authenticationService, assertedUser, jaasEntryName);
} | java | @Override
public Subject authenticate(String assertedUser) throws AuthenticationException {
AuthenticateUserHelper authHelper = new AuthenticateUserHelper();
return authHelper.authenticateUser(authenticationService, assertedUser, jaasEntryName);
} | [
"@",
"Override",
"public",
"Subject",
"authenticate",
"(",
"String",
"assertedUser",
")",
"throws",
"AuthenticationException",
"{",
"AuthenticateUserHelper",
"authHelper",
"=",
"new",
"AuthenticateUserHelper",
"(",
")",
";",
"return",
"authHelper",
".",
"authenticateUse... | Authenticate with asserted user.
@param assertedUser
@return The authenticated subject.
@throws AuthenticationException | [
"Authenticate",
"with",
"asserted",
"user",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2/src/com/ibm/ws/security/csiv2/server/AuthenticatorImpl.java#L69-L73 |
111,258 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/taglib/UIComponentELTagBase.java | UIComponentELTagBase.release | public void release()
{
super.release();
_forceId = null;
_forceIdIndex = null;
_value = null;
_converter = null;
_javascriptLocation = null;
_imageLocation = null;
_styleLocation = null;
} | java | public void release()
{
super.release();
_forceId = null;
_forceIdIndex = null;
_value = null;
_converter = null;
_javascriptLocation = null;
_imageLocation = null;
_styleLocation = null;
} | [
"public",
"void",
"release",
"(",
")",
"{",
"super",
".",
"release",
"(",
")",
";",
"_forceId",
"=",
"null",
";",
"_forceIdIndex",
"=",
"null",
";",
"_value",
"=",
"null",
";",
"_converter",
"=",
"null",
";",
"_javascriptLocation",
"=",
"null",
";",
"_... | attributes id, rendered and binding are handled by UIComponentTag | [
"attributes",
"id",
"rendered",
"and",
"binding",
"are",
"handled",
"by",
"UIComponentTag"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/taglib/UIComponentELTagBase.java#L48-L61 |
111,259 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/taglib/UIComponentELTagBase.java | UIComponentELTagBase.setIntegerProperty | protected void setIntegerProperty(UIComponent component, String propName,
ValueExpression value)
{
UIComponentELTagUtils.setIntegerProperty(component, propName, value);
} | java | protected void setIntegerProperty(UIComponent component, String propName,
ValueExpression value)
{
UIComponentELTagUtils.setIntegerProperty(component, propName, value);
} | [
"protected",
"void",
"setIntegerProperty",
"(",
"UIComponent",
"component",
",",
"String",
"propName",
",",
"ValueExpression",
"value",
")",
"{",
"UIComponentELTagUtils",
".",
"setIntegerProperty",
"(",
"component",
",",
"propName",
",",
"value",
")",
";",
"}"
] | sub class helpers | [
"sub",
"class",
"helpers"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/taglib/UIComponentELTagBase.java#L162-L166 |
111,260 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.giveMessageToConsumer | private boolean giveMessageToConsumer(
SIMPMessage msg,
TransactionCommon tran,
DispatchableConsumerPoint consumerPoint,
boolean storedByCD)
{
... | java | private boolean giveMessageToConsumer(
SIMPMessage msg,
TransactionCommon tran,
DispatchableConsumerPoint consumerPoint,
boolean storedByCD)
{
... | [
"private",
"boolean",
"giveMessageToConsumer",
"(",
"SIMPMessage",
"msg",
",",
"TransactionCommon",
"tran",
",",
"DispatchableConsumerPoint",
"consumerPoint",
",",
"boolean",
"storedByCD",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&... | Actually hand the message on to a consumerPoint. This is where no-local and
exception destination processing is done.
@param msg The message being delivered
@param tran The transaction being used
@param consumerPoint The consumer point to give the message to
@param storedByCD true if the message is stored on the CD's ... | [
"Actually",
"hand",
"the",
"message",
"on",
"to",
"a",
"consumerPoint",
".",
"This",
"is",
"where",
"no",
"-",
"local",
"and",
"exception",
"destination",
"processing",
"is",
"done",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L743-L769 |
111,261 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.put | @Override
public boolean put(
SIMPMessage msg,
TransactionCommon tran,
InputHandlerStore inputHandlerStore,
boolean storedByIH) throws SIDiscriminatorSyntaxException, SIResourceException
{
if (TraceComponent.isAn... | java | @Override
public boolean put(
SIMPMessage msg,
TransactionCommon tran,
InputHandlerStore inputHandlerStore,
boolean storedByIH) throws SIDiscriminatorSyntaxException, SIResourceException
{
if (TraceComponent.isAn... | [
"@",
"Override",
"public",
"boolean",
"put",
"(",
"SIMPMessage",
"msg",
",",
"TransactionCommon",
"tran",
",",
"InputHandlerStore",
"inputHandlerStore",
",",
"boolean",
"storedByIH",
")",
"throws",
"SIDiscriminatorSyntaxException",
",",
"SIResourceException",
"{",
"if",... | Put a message on this ConsumerDispatcher for delivery to consumers.
@param msg The message to be delivered
@param tran The transaction to be used (must at least have an autocommit transaction)
@param inputHandlerStore The input handler putting this message
@param storedByIH true if the message has already been stored ... | [
"Put",
"a",
"message",
"on",
"this",
"ConsumerDispatcher",
"for",
"delivery",
"to",
"consumers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L781-L874 |
111,262 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.isDurable | @Override
public boolean isDurable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isDurable");
final boolean dur = (_isPubSub && dispatcherState.isDurable());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | @Override
public boolean isDurable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isDurable");
final boolean dur = (_isPubSub && dispatcherState.isDurable());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"@",
"Override",
"public",
"boolean",
"isDurable",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isDurable\"",
")",
";",
"fina... | Returns whether this consumerDispatcher is being used for a durable subscription.
@return false if not pubsub or not durable. | [
"Returns",
"whether",
"this",
"consumerDispatcher",
"is",
"being",
"used",
"for",
"a",
"durable",
"subscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1407-L1419 |
111,263 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.newReadyConsumer | @Override
public long newReadyConsumer(JSConsumerKey consumerKey, boolean bSelector)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "newReadyConsumer",
new Object[] { consumerKey, Boolean.valueOf(bSelector) });
// If this is... | java | @Override
public long newReadyConsumer(JSConsumerKey consumerKey, boolean bSelector)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "newReadyConsumer",
new Object[] { consumerKey, Boolean.valueOf(bSelector) });
// If this is... | [
"@",
"Override",
"public",
"long",
"newReadyConsumer",
"(",
"JSConsumerKey",
"consumerKey",
",",
"boolean",
"bSelector",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
"."... | Add a ready consumer into our ready 'lists'
@param consumerKey - handle to the ready consumer
@param bSelector - consumer has a selector or not
@return readyConsumerVersion | [
"Add",
"a",
"ready",
"consumer",
"into",
"our",
"ready",
"lists"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1428-L1464 |
111,264 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.removeReadyConsumer | @Override
public void removeReadyConsumer(JSConsumerKey consumerKey, boolean bSelector)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeReadyConsumer",
new Object[] { consumerKey, Boolean.valueOf(bSelector) });
if (co... | java | @Override
public void removeReadyConsumer(JSConsumerKey consumerKey, boolean bSelector)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeReadyConsumer",
new Object[] { consumerKey, Boolean.valueOf(bSelector) });
if (co... | [
"@",
"Override",
"public",
"void",
"removeReadyConsumer",
"(",
"JSConsumerKey",
"consumerKey",
",",
"boolean",
"bSelector",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Remove the ready consumer from our ready 'lists'
@param consumerKey - handle to the ready consumer
@param bSelector - consumer has a selector or not | [
"Remove",
"the",
"ready",
"consumer",
"from",
"our",
"ready",
"lists"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1472-L1533 |
111,265 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.initialiseTransactionSet | private boolean initialiseTransactionSet() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseTransactionSet");
boolean suspend = false;
// Always start with an empty set.
transactionSet = new HashSet... | java | private boolean initialiseTransactionSet() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseTransactionSet");
boolean suspend = false;
// Always start with an empty set.
transactionSet = new HashSet... | [
"private",
"boolean",
"initialiseTransactionSet",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"ini... | Initialise the transaction map for semi-ordered consumers.
This occurs when a consumer with ignoreInitialIndoubts set
to false is attaching.
Briefly, we track all transactions that this consumer receives
under. | [
"Initialise",
"the",
"transaction",
"map",
"for",
"semi",
"-",
"ordered",
"consumers",
".",
"This",
"occurs",
"when",
"a",
"consumer",
"with",
"ignoreInitialIndoubts",
"set",
"to",
"false",
"is",
"attaching",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1748-L1800 |
111,266 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.detachConsumerPoint | @Override
public void detachConsumerPoint(ConsumerKey consumerKey) throws SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "detachConsumerPoint", consumerKey);
// if p2p then we must... | java | @Override
public void detachConsumerPoint(ConsumerKey consumerKey) throws SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "detachConsumerPoint", consumerKey);
// if p2p then we must... | [
"@",
"Override",
"public",
"void",
"detachConsumerPoint",
"(",
"ConsumerKey",
"consumerKey",
")",
"throws",
"SIResourceException",
",",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".... | Detach a consumer point from this CD.
@param consumerKey The ConsumerKey object of the consumer point
being detached | [
"Detach",
"a",
"consumer",
"point",
"from",
"this",
"CD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1808-L1905 |
111,267 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.createConsumerKey | protected ConsumerKey createConsumerKey(
DispatchableConsumerPoint consumerPoint,
SelectionCriteria criteria,
SIBUuid12 connectionUuid,
boolean ... | java | protected ConsumerKey createConsumerKey(
DispatchableConsumerPoint consumerPoint,
SelectionCriteria criteria,
SIBUuid12 connectionUuid,
boolean ... | [
"protected",
"ConsumerKey",
"createConsumerKey",
"(",
"DispatchableConsumerPoint",
"consumerPoint",
",",
"SelectionCriteria",
"criteria",
",",
"SIBUuid12",
"connectionUuid",
",",
"boolean",
"readAhead",
",",
"boolean",
"forwardScanning",
",",
"JSConsumerSet",
"consumerSet",
... | Helper methods to create a ConsumerKey. Can be overridden by subclasses
@param consumerPoint
@param getCursor
@param selector
@param connectionUuid
@return | [
"Helper",
"methods",
"to",
"create",
"a",
"ConsumerKey",
".",
"Can",
"be",
"overridden",
"by",
"subclasses"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1916-L1947 |
111,268 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.hasConsumersAttached | public boolean hasConsumersAttached()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "hasConsumersAttached");
//Does the consumer list have any elements? If so return true, else false
boolean hasConsumersAttached = (getConsumerCount() > 0);
... | java | public boolean hasConsumersAttached()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "hasConsumersAttached");
//Does the consumer list have any elements? If so return true, else false
boolean hasConsumersAttached = (getConsumerCount() > 0);
... | [
"public",
"boolean",
"hasConsumersAttached",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"hasConsumersAttached\"",
")",
";",
"//D... | Returns true if this consumerDispatcher currently has consumers attached to
it.
@return boolean | [
"Returns",
"true",
"if",
"this",
"consumerDispatcher",
"currently",
"has",
"consumers",
"attached",
"to",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L1974-L1986 |
111,269 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.getConsumerPoints | @Override
public List<DispatchableKey> getConsumerPoints()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerPoints");
SibTr.exit(tc, "getConsumerPoints", consumerPoints);
}
return (List<DispatchableKey>) cons... | java | @Override
public List<DispatchableKey> getConsumerPoints()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerPoints");
SibTr.exit(tc, "getConsumerPoints", consumerPoints);
}
return (List<DispatchableKey>) cons... | [
"@",
"Override",
"public",
"List",
"<",
"DispatchableKey",
">",
"getConsumerPoints",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
... | This list is cloned to stop illegal access to the ConsumerPoints
controlled by this ConsumerDispatcher
@return | [
"This",
"list",
"is",
"cloned",
"to",
"stop",
"illegal",
"access",
"to",
"the",
"ConsumerPoints",
"controlled",
"by",
"this",
"ConsumerDispatcher"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2020-L2029 |
111,270 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.deleteConsumerDispatcher | public void deleteConsumerDispatcher(
boolean callProxyCode)
throws SIRollbackException, SIConnectionLostException, SIResourceException,
SIErrorException, SINotPossibleInCurrentConfigurationException
//throws SIResourceException, SIN... | java | public void deleteConsumerDispatcher(
boolean callProxyCode)
throws SIRollbackException, SIConnectionLostException, SIResourceException,
SIErrorException, SINotPossibleInCurrentConfigurationException
//throws SIResourceException, SIN... | [
"public",
"void",
"deleteConsumerDispatcher",
"(",
"boolean",
"callProxyCode",
")",
"throws",
"SIRollbackException",
",",
"SIConnectionLostException",
",",
"SIResourceException",
",",
"SIErrorException",
",",
"SINotPossibleInCurrentConfigurationException",
"//throws SIResourceExcep... | Attempts to dereference this consumerDispatcher. Will throw exception if consumers are
attached. If succesful, the consumerDispatcher reference will be removed from the destination
and the consumerDispatcher will be removed from the matchspace.
@param callProxyCode Whether the proxy code should be called at all! | [
"Attempts",
"to",
"dereference",
"this",
"consumerDispatcher",
".",
"Will",
"throw",
"exception",
"if",
"consumers",
"are",
"attached",
".",
"If",
"succesful",
"the",
"consumerDispatcher",
"reference",
"will",
"be",
"removed",
"from",
"the",
"destination",
"and",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2038-L2109 |
111,271 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.setIsInMatchSpace | public void setIsInMatchSpace(boolean inMatchSpace)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setIsInMatchSpace", Boolean.valueOf(inMatchSpace));
isInMatchSpace = inMatchSpace;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | java | public void setIsInMatchSpace(boolean inMatchSpace)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setIsInMatchSpace", Boolean.valueOf(inMatchSpace));
isInMatchSpace = inMatchSpace;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | [
"public",
"void",
"setIsInMatchSpace",
"(",
"boolean",
"inMatchSpace",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setIsInMatchSpace\""... | Updates to state that the subscription is in the MatchSpace. | [
"Updates",
"to",
"state",
"that",
"the",
"subscription",
"is",
"in",
"the",
"MatchSpace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2680-L2687 |
111,272 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.isInMatchSpace | public boolean isInMatchSpace()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isInMatchSpace");
SibTr.exit(tc, "isInMatchSpace", Boolean.valueOf(isInMatchSpace));
}
return isInMatchSpace;
} | java | public boolean isInMatchSpace()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isInMatchSpace");
SibTr.exit(tc, "isInMatchSpace", Boolean.valueOf(isInMatchSpace));
}
return isInMatchSpace;
} | [
"public",
"boolean",
"isInMatchSpace",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isInMatchSpace\"",
")",
";",
"SibTr",
... | Indicates whether a subscription associated with the ConsumerDispatcher has
been stored in the MatchSpace.
@return isInMatchSpace | [
"Indicates",
"whether",
"a",
"subscription",
"associated",
"with",
"the",
"ConsumerDispatcher",
"has",
"been",
"stored",
"in",
"the",
"MatchSpace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2695-L2704 |
111,273 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.isLocked | @Override
public boolean isLocked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isLocked");
final boolean isLocked = (state == SIMPState.LOCKED);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(... | java | @Override
public boolean isLocked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isLocked");
final boolean isLocked = (state == SIMPState.LOCKED);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(... | [
"@",
"Override",
"public",
"boolean",
"isLocked",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isLocked\"",
")",
";",
"final"... | Method isLocked.
@return boolean
<p>Returns true if the ConsumerDispatchers state is "LOCKED"</p> | [
"Method",
"isLocked",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2712-L2724 |
111,274 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.getReferenceStream | public ReferenceStream getReferenceStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getReferenceStream");
SibTr.exit(tc, "getReferenceStream", subscriptionItemStream);
}
return subscriptionItemStream;
} | java | public ReferenceStream getReferenceStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getReferenceStream");
SibTr.exit(tc, "getReferenceStream", subscriptionItemStream);
}
return subscriptionItemStream;
} | [
"public",
"ReferenceStream",
"getReferenceStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getReferenceStream\"",
")",
... | Returns the subscription.
@return ReferenceStream | [
"Returns",
"the",
"subscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2743-L2751 |
111,275 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.getItemStream | public ItemStream getItemStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getItemStream");
SibTr.exit(tc, "getItemStream", itemStream);
}
return itemStream;
} | java | public ItemStream getItemStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getItemStream");
SibTr.exit(tc, "getItemStream", itemStream);
}
return itemStream;
} | [
"public",
"ItemStream",
"getItemStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getItemStream\"",
")",
";",
"SibTr",... | Returns the p-to-p ItemStream.
@return ReferenceStream | [
"Returns",
"the",
"p",
"-",
"to",
"-",
"p",
"ItemStream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2758-L2766 |
111,276 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.getReceiveAllowedThread | private synchronized ReceiveAllowedThread getReceiveAllowedThread(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getReceiveAllowedThread", destinationHandler);
if (_receiveAllowedThread == null)
{
... | java | private synchronized ReceiveAllowedThread getReceiveAllowedThread(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getReceiveAllowedThread", destinationHandler);
if (_receiveAllowedThread == null)
{
... | [
"private",
"synchronized",
"ReceiveAllowedThread",
"getReceiveAllowedThread",
"(",
"DestinationHandler",
"destinationHandler",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | Checks if there is a ReceiveAllowedThread already running. If there is it will mark the
thread to indicate that a rerun has been requested.
If not, a new ReceiveAllowedThread is created and returned.
@param destinationHandler | [
"Checks",
"if",
"there",
"is",
"a",
"ReceiveAllowedThread",
"already",
"running",
".",
"If",
"there",
"is",
"it",
"will",
"mark",
"the",
"thread",
"to",
"indicate",
"that",
"a",
"rerun",
"has",
"been",
"requested",
".",
"If",
"not",
"a",
"new",
"ReceiveAll... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2943-L2961 |
111,277 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.deleteReceiveAllowedThread | private synchronized boolean deleteReceiveAllowedThread()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteReceiveAllowedThread");
if (_receiveAllowedThread.isMarkedForUpdate())
{
if (TraceComponent.isAnyTracingEnabled() && tc... | java | private synchronized boolean deleteReceiveAllowedThread()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteReceiveAllowedThread");
if (_receiveAllowedThread.isMarkedForUpdate())
{
if (TraceComponent.isAnyTracingEnabled() && tc... | [
"private",
"synchronized",
"boolean",
"deleteReceiveAllowedThread",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"deleteReceiveAllowed... | Checks to see if another update has occured to the ReceiveAllowedState.
If it has it returns false to indicate that another run is required of the
thread, otherwise it deletes this instance of the receiveAllowedThread by setting
the reference to null | [
"Checks",
"to",
"see",
"if",
"another",
"update",
"has",
"occured",
"to",
"the",
"ReceiveAllowedState",
".",
"If",
"it",
"has",
"it",
"returns",
"false",
"to",
"indicate",
"that",
"another",
"run",
"is",
"required",
"of",
"the",
"thread",
"otherwise",
"it",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L2969-L2986 |
111,278 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java | ConsumerDispatcher.searchMatchSpace | private void searchMatchSpace(
SIMPMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entr... | java | private void searchMatchSpace(
SIMPMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entr... | [
"private",
"void",
"searchMatchSpace",
"(",
"SIMPMessage",
"msg",
",",
"MessageProcessorSearchResults",
"searchResults",
")",
"throws",
"SIDiscriminatorSyntaxException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEna... | Search the MatchSpace for a specific consumer
@param msg
@param searchResults
@return
@throws SIDiscriminatorSyntaxException | [
"Search",
"the",
"MatchSpace",
"for",
"a",
"specific",
"consumer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerDispatcher.java#L3701-L3732 |
111,279 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigElement.java | ConfigElement.addAttribute | public void addAttribute(String name, String value) {
checkType(name, String.class);
attributes.put(name, value);
} | java | public void addAttribute(String name, String value) {
checkType(name, String.class);
attributes.put(name, value);
} | [
"public",
"void",
"addAttribute",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"checkType",
"(",
"name",
",",
"String",
".",
"class",
")",
";",
"attributes",
".",
"put",
"(",
"name",
",",
"value",
")",
";",
"}"
] | Add a single-valued attribute. | [
"Add",
"a",
"single",
"-",
"valued",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigElement.java#L193-L196 |
111,280 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigElement.java | ConfigElement.addCollectionAttribute | public void addCollectionAttribute(String name, Object value) {
List<Object> attributeValues = getCollectionAttribute(name);
attributeValues.add(value);
} | java | public void addCollectionAttribute(String name, Object value) {
List<Object> attributeValues = getCollectionAttribute(name);
attributeValues.add(value);
} | [
"public",
"void",
"addCollectionAttribute",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"List",
"<",
"Object",
">",
"attributeValues",
"=",
"getCollectionAttribute",
"(",
"name",
")",
";",
"attributeValues",
".",
"add",
"(",
"value",
")",
";",
"... | Add a multi-valued attribute. | [
"Add",
"a",
"multi",
"-",
"valued",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigElement.java#L201-L204 |
111,281 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ModuleMetaDataAccessorImpl.java | ModuleMetaDataAccessorImpl.beginContext | public Object beginContext(Map<URL, ModuleMetaData> mmdi) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (mmdi != null && !mmdi.isEmpty())
Tr.debug(tc, "begin context " + mmdi.values().iterator().next().getJ2EEName());
else
Tr.debu... | java | public Object beginContext(Map<URL, ModuleMetaData> mmdi) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (mmdi != null && !mmdi.isEmpty())
Tr.debug(tc, "begin context " + mmdi.values().iterator().next().getJ2EEName());
else
Tr.debu... | [
"public",
"Object",
"beginContext",
"(",
"Map",
"<",
"URL",
",",
"ModuleMetaData",
">",
"mmdi",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"if",
"(",
"mmdi",
"!=",
... | Begin the context for the map of ModuleMetaData provided.
@param Map<URL, ModuleMetaData> It Must not be null. Tr.error will be logged if it is null.
@return Previous Object, which was on the stack. It can be null. | [
"Begin",
"the",
"context",
"for",
"the",
"map",
"of",
"ModuleMetaData",
"provided",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ModuleMetaDataAccessorImpl.java#L67-L76 |
111,282 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java | CertMappingKeyManager.setCustomProperties | public void setCustomProperties(Properties customProperties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "setCustomProperties", customProperties);
this.customProperties = customProperties;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEna... | java | public void setCustomProperties(Properties customProperties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "setCustomProperties", customProperties);
this.customProperties = customProperties;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEna... | [
"public",
"void",
"setCustomProperties",
"(",
"Properties",
"customProperties",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setCustomPrope... | Method called by WebSphere Application Server runtime to set the custom
properties configured for the custom KeyManager.
@param customProperties
- contains the custom properties configured. | [
"Method",
"called",
"by",
"WebSphere",
"Application",
"Server",
"runtime",
"to",
"set",
"the",
"custom",
"properties",
"configured",
"for",
"the",
"custom",
"KeyManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java#L150-L158 |
111,283 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java | CertMappingKeyManager.getProperty | public String getProperty(final String name) {
String property = null;
if (customProperties != null) {
property = customProperties.getProperty(name);
}
if (property == null) {
property = SSLConfigManager.getInstance().getGlobalProperty(name);
}
r... | java | public String getProperty(final String name) {
String property = null;
if (customProperties != null) {
property = customProperties.getProperty(name);
}
if (property == null) {
property = SSLConfigManager.getInstance().getGlobalProperty(name);
}
r... | [
"public",
"String",
"getProperty",
"(",
"final",
"String",
"name",
")",
"{",
"String",
"property",
"=",
"null",
";",
"if",
"(",
"customProperties",
"!=",
"null",
")",
"{",
"property",
"=",
"customProperties",
".",
"getProperty",
"(",
"name",
")",
";",
"}",... | Obtain the value for a named property. Search first the custom properties,
then the System properties, and then the global properties
@param name
@return String | [
"Obtain",
"the",
"value",
"for",
"a",
"named",
"property",
".",
"Search",
"first",
"the",
"custom",
"properties",
"then",
"the",
"System",
"properties",
"and",
"then",
"the",
"global",
"properties"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java#L228-L239 |
111,284 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java | CertMappingKeyManager.parseSSLCertFile | private void parseSSLCertFile() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "parseSSLCertFile");
}
String fileName = null;
String lineRead = null;
BufferedReader bufferReader = null;
// Obtain Default Cert Label
... | java | private void parseSSLCertFile() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "parseSSLCertFile");
}
String fileName = null;
String lineRead = null;
BufferedReader bufferReader = null;
// Obtain Default Cert Label
... | [
"private",
"void",
"parseSSLCertFile",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"parseSSLCertFile\"",
")",
";",
"}",
"St... | Parse Server SSL Certificate Mapping File. | [
"Parse",
"Server",
"SSL",
"Certificate",
"Mapping",
"File",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java#L244-L287 |
111,285 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java | CertMappingKeyManager.extractSSLServerCert | private void extractSSLServerCert(String lineRead) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "extractSSLServerCert: " + lineRead);
}
String tmpString;
String certLabelString;
String ipAddressString;
// Verify if string... | java | private void extractSSLServerCert(String lineRead) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "extractSSLServerCert: " + lineRead);
}
String tmpString;
String certLabelString;
String ipAddressString;
// Verify if string... | [
"private",
"void",
"extractSSLServerCert",
"(",
"String",
"lineRead",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"extractSSLServerC... | This method finds the certificate and associated ip and save cache this
pair. | [
"This",
"method",
"finds",
"the",
"certificate",
"and",
"associated",
"ip",
"and",
"save",
"cache",
"this",
"pair",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/CertMappingKeyManager.java#L293-L326 |
111,286 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.bundleChanged | @Override
public void bundleChanged(BundleEvent event) {
switch (event.getType()) {
case BundleEvent.INSTALLED:
processBundle(event.getBundle());
break;
case BundleEvent.UNINSTALLED:
// TODO: remove entries? how do i know if this bundl... | java | @Override
public void bundleChanged(BundleEvent event) {
switch (event.getType()) {
case BundleEvent.INSTALLED:
processBundle(event.getBundle());
break;
case BundleEvent.UNINSTALLED:
// TODO: remove entries? how do i know if this bundl... | [
"@",
"Override",
"public",
"void",
"bundleChanged",
"(",
"BundleEvent",
"event",
")",
"{",
"switch",
"(",
"event",
".",
"getType",
"(",
")",
")",
"{",
"case",
"BundleEvent",
".",
"INSTALLED",
":",
"processBundle",
"(",
"event",
".",
"getBundle",
"(",
")",
... | The BundleListener interface. Invoked by OSGI whenever a Bundle changes state. | [
"The",
"BundleListener",
"interface",
".",
"Invoked",
"by",
"OSGI",
"whenever",
"a",
"Bundle",
"changes",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L150-L160 |
111,287 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.setWsLogHandler | protected void setWsLogHandler(ServiceReference<WsLogHandler> ref) {
getMessageRouter().setWsLogHandler((String) ref.getProperty("id"), bundleContext.getService(ref));
} | java | protected void setWsLogHandler(ServiceReference<WsLogHandler> ref) {
getMessageRouter().setWsLogHandler((String) ref.getProperty("id"), bundleContext.getService(ref));
} | [
"protected",
"void",
"setWsLogHandler",
"(",
"ServiceReference",
"<",
"WsLogHandler",
">",
"ref",
")",
"{",
"getMessageRouter",
"(",
")",
".",
"setWsLogHandler",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"\"id\"",
")",
",",
"bundleContext",
".",... | Add the WsLogHandler ref. 1 or more LogHandlers may be set.
This method is called from the ServiceListener. | [
"Add",
"the",
"WsLogHandler",
"ref",
".",
"1",
"or",
"more",
"LogHandlers",
"may",
"be",
"set",
".",
"This",
"method",
"is",
"called",
"from",
"the",
"ServiceListener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L182-L184 |
111,288 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.processInitialWsLogHandlerServices | @SuppressWarnings("unchecked")
protected void processInitialWsLogHandlerServices() throws InvalidSyntaxException {
ServiceReference<WsLogHandler>[] servRefs = (ServiceReference<WsLogHandler>[])
bundleContext.getServiceReferences(WsLogHandler.class.getName(), null);
if (servR... | java | @SuppressWarnings("unchecked")
protected void processInitialWsLogHandlerServices() throws InvalidSyntaxException {
ServiceReference<WsLogHandler>[] servRefs = (ServiceReference<WsLogHandler>[])
bundleContext.getServiceReferences(WsLogHandler.class.getName(), null);
if (servR... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"void",
"processInitialWsLogHandlerServices",
"(",
")",
"throws",
"InvalidSyntaxException",
"{",
"ServiceReference",
"<",
"WsLogHandler",
">",
"[",
"]",
"servRefs",
"=",
"(",
"ServiceReference",
"<",
"Ws... | Search for and add any WsLogHandler ServiceReferences that were already started
by the time we registered our ServiceListener. | [
"Search",
"for",
"and",
"add",
"any",
"WsLogHandler",
"ServiceReferences",
"that",
"were",
"already",
"started",
"by",
"the",
"time",
"we",
"registered",
"our",
"ServiceListener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L214-L224 |
111,289 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.processBundle | protected void processBundle(Bundle bundle) {
Properties props = readMessageRouterProps(bundle);
if (props != null) {
msgRouter.modified(props);
}
} | java | protected void processBundle(Bundle bundle) {
Properties props = readMessageRouterProps(bundle);
if (props != null) {
msgRouter.modified(props);
}
} | [
"protected",
"void",
"processBundle",
"(",
"Bundle",
"bundle",
")",
"{",
"Properties",
"props",
"=",
"readMessageRouterProps",
"(",
"bundle",
")",
";",
"if",
"(",
"props",
"!=",
"null",
")",
"{",
"msgRouter",
".",
"modified",
"(",
"props",
")",
";",
"}",
... | Read and parse the bundle's MessageRouter.properties file, if one exists. | [
"Read",
"and",
"parse",
"the",
"bundle",
"s",
"MessageRouter",
".",
"properties",
"file",
"if",
"one",
"exists",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L241-L247 |
111,290 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.readMessageRouterProps | protected Properties readMessageRouterProps(Bundle bundle) {
Properties props = null;
// Use getEntry to load the file instead of getResource, since
// getResource will cause the bundle to resolve itself, which
// we don't want to do.
final String mrpFileName = "/META-INF/Messa... | java | protected Properties readMessageRouterProps(Bundle bundle) {
Properties props = null;
// Use getEntry to load the file instead of getResource, since
// getResource will cause the bundle to resolve itself, which
// we don't want to do.
final String mrpFileName = "/META-INF/Messa... | [
"protected",
"Properties",
"readMessageRouterProps",
"(",
"Bundle",
"bundle",
")",
"{",
"Properties",
"props",
"=",
"null",
";",
"// Use getEntry to load the file instead of getResource, since",
"// getResource will cause the bundle to resolve itself, which ",
"// we don't want to do."... | Read the MessageRouter.properties file from the given Bundle.
@param bundle The Bundle from which to read the properties file.
@return A Properties object containing the file contents. | [
"Read",
"the",
"MessageRouter",
".",
"properties",
"file",
"from",
"the",
"given",
"Bundle",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L256-L275 |
111,291 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.stop | public void stop() {
if (msgRouter != null) {
TrConfigurator.unsetMessageRouter(msgRouter);
}
if (configListener != null) {
configListener.unregister();
}
} | java | public void stop() {
if (msgRouter != null) {
TrConfigurator.unsetMessageRouter(msgRouter);
}
if (configListener != null) {
configListener.unregister();
}
} | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"msgRouter",
"!=",
"null",
")",
"{",
"TrConfigurator",
".",
"unsetMessageRouter",
"(",
"msgRouter",
")",
";",
"}",
"if",
"(",
"configListener",
"!=",
"null",
")",
"{",
"configListener",
".",
"unregister",... | The bundle is stopping. Inform the TrConfigurator, who in turn will inform
the TrService. Unregister the config listener service. | [
"The",
"bundle",
"is",
"stopping",
".",
"Inform",
"the",
"TrConfigurator",
"who",
"in",
"turn",
"will",
"inform",
"the",
"TrService",
".",
"Unregister",
"the",
"config",
"listener",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L324-L331 |
111,292 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java | MessageRouterConfigurator.updateMessageListForHandler | public void updateMessageListForHandler(String msgIds, String handlerId) {
if (msgIds == null) {
return; // Should never happen, but avoid NPEs
}
String[] msgStr = msgIds.split(",");
ArrayList<String> newMsgList = new ArrayList<String>(Arrays.asList(msgStr));
newMsgL... | java | public void updateMessageListForHandler(String msgIds, String handlerId) {
if (msgIds == null) {
return; // Should never happen, but avoid NPEs
}
String[] msgStr = msgIds.split(",");
ArrayList<String> newMsgList = new ArrayList<String>(Arrays.asList(msgStr));
newMsgL... | [
"public",
"void",
"updateMessageListForHandler",
"(",
"String",
"msgIds",
",",
"String",
"handlerId",
")",
"{",
"if",
"(",
"msgIds",
"==",
"null",
")",
"{",
"return",
";",
"// Should never happen, but avoid NPEs",
"}",
"String",
"[",
"]",
"msgStr",
"=",
"msgIds"... | Compare the incoming list of message IDs to be associated with the given handler,
adding and removing as needed to match the new config.
@param msgIds
@param handlerId | [
"Compare",
"the",
"incoming",
"list",
"of",
"message",
"IDs",
"to",
"be",
"associated",
"with",
"the",
"given",
"handler",
"adding",
"and",
"removing",
"as",
"needed",
"to",
"match",
"the",
"new",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/MessageRouterConfigurator.java#L340-L391 |
111,293 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/model/ResultSetDataModel.java | ResultSetDataModel.getRowData | @Override
public Map<String,Object> getRowData()
{
if (_resultSet == null)
{
return null;
}
else if (!isRowAvailable())
{
throw new IllegalArgumentException(
"the requested row is not available in the ResultSet - you have scrolled b... | java | @Override
public Map<String,Object> getRowData()
{
if (_resultSet == null)
{
return null;
}
else if (!isRowAvailable())
{
throw new IllegalArgumentException(
"the requested row is not available in the ResultSet - you have scrolled b... | [
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getRowData",
"(",
")",
"{",
"if",
"(",
"_resultSet",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",
"!",
"isRowAvailable",
"(",
")",
")",
"{",
"throw",
"n... | Get the actual data of this row wrapped into a map. The specification is very strict about what has to be
returned from here, so check the spec before modifying anything here. | [
"Get",
"the",
"actual",
"data",
"of",
"this",
"row",
"wrapped",
"into",
"a",
"map",
".",
"The",
"specification",
"is",
"very",
"strict",
"about",
"what",
"has",
"to",
"be",
"returned",
"from",
"here",
"so",
"check",
"the",
"spec",
"before",
"modifying",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/model/ResultSetDataModel.java#L85-L106 |
111,294 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java | ConcurrentHashMap.get | public final Object get(Object key)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass,
"get",
"key=" + key + "Object");
java.util.Map subMap = getSubMap(key);
Object returnValue;
synchr... | java | public final Object get(Object key)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass,
"get",
"key=" + key + "Object");
java.util.Map subMap = getSubMap(key);
Object returnValue;
synchr... | [
"public",
"final",
"Object",
"get",
"(",
"Object",
"key",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"get\"",
",",... | Retrieve an object from the map based on its key.
@param key for the Object to be removed.
@return Object matching the key. | [
"Retrieve",
"an",
"object",
"from",
"the",
"map",
"based",
"on",
"its",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java#L122-L140 |
111,295 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java | ConcurrentHashMap.putIfAbsent | public final Object putIfAbsent(Object key,
Object value)
{
Object foundObject = null;
java.util.Map subMap = getSubMap(key);
synchronized (subMap) {
foundObject = subMap.get(key);
if (foundObject == null)
subMap.put... | java | public final Object putIfAbsent(Object key,
Object value)
{
Object foundObject = null;
java.util.Map subMap = getSubMap(key);
synchronized (subMap) {
foundObject = subMap.get(key);
if (foundObject == null)
subMap.put... | [
"public",
"final",
"Object",
"putIfAbsent",
"(",
"Object",
"key",
",",
"Object",
"value",
")",
"{",
"Object",
"foundObject",
"=",
"null",
";",
"java",
".",
"util",
".",
"Map",
"subMap",
"=",
"getSubMap",
"(",
"key",
")",
";",
"synchronized",
"(",
"subMap... | Add an object to the subset of the Map, if there is no Object
represented by the key.
@param key of the Object to be inserted into the map.
@param value to b einserted if there is no Object alreay matching the key.
@return the Object occupying the key or null if there is none.
@see java.util.concurrent.ConcurrentHash... | [
"Add",
"an",
"object",
"to",
"the",
"subset",
"of",
"the",
"Map",
"if",
"there",
"is",
"no",
"Object",
"represented",
"by",
"the",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java#L171-L191 |
111,296 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java | ConcurrentHashMap.removeOne | public final Object removeOne()
{
// Avoid locking the whole Map by looking at the subMaps indivdually starting at a
// random point in the sequence.
int index = new java.util.Random(Thread.currentThread().hashCode()).nextInt(subMaps.length);
int firstIndex = index;
Object re... | java | public final Object removeOne()
{
// Avoid locking the whole Map by looking at the subMaps indivdually starting at a
// random point in the sequence.
int index = new java.util.Random(Thread.currentThread().hashCode()).nextInt(subMaps.length);
int firstIndex = index;
Object re... | [
"public",
"final",
"Object",
"removeOne",
"(",
")",
"{",
"// Avoid locking the whole Map by looking at the subMaps indivdually starting at a",
"// random point in the sequence.",
"int",
"index",
"=",
"new",
"java",
".",
"util",
".",
"Random",
"(",
"Thread",
".",
"currentThr... | Remove any singe element from the map.
@return Object the removed Object or null. | [
"Remove",
"any",
"singe",
"element",
"from",
"the",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java#L211-L237 |
111,297 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java | ConcurrentHashMap.clear | public final long clear(long numberToClear)
{
long numberRemainingToClear = numberToClear;
// Avoid locking the Map by looking at the subMaps indivdually starting at a
// random point in the sequence, so as not to disturb the distribution.
int index = new java.util.Random(Thread.curr... | java | public final long clear(long numberToClear)
{
long numberRemainingToClear = numberToClear;
// Avoid locking the Map by looking at the subMaps indivdually starting at a
// random point in the sequence, so as not to disturb the distribution.
int index = new java.util.Random(Thread.curr... | [
"public",
"final",
"long",
"clear",
"(",
"long",
"numberToClear",
")",
"{",
"long",
"numberRemainingToClear",
"=",
"numberToClear",
";",
"// Avoid locking the Map by looking at the subMaps indivdually starting at a",
"// random point in the sequence, so as not to disturb the distributi... | Clear up to a specified number of elements from the the map.
@param numberToClear the count of elements to clear.
@return long the actual number cleared which is the
lesser of size() or numberToClear. | [
"Clear",
"up",
"to",
"a",
"specified",
"number",
"of",
"elements",
"from",
"the",
"the",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java#L255-L282 |
111,298 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java | ConcurrentHashMap.size | public int size()
{
int count = 0;
if (subMaps != null)
{
for (int i = 0; i < subMaps.length; i++)
{
count += subMaps[i].size();
}
}
return count;
} | java | public int size()
{
int count = 0;
if (subMaps != null)
{
for (int i = 0; i < subMaps.length; i++)
{
count += subMaps[i].size();
}
}
return count;
} | [
"public",
"int",
"size",
"(",
")",
"{",
"int",
"count",
"=",
"0",
";",
"if",
"(",
"subMaps",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"subMaps",
".",
"length",
";",
"i",
"++",
")",
"{",
"count",
"+=",
"subMaps"... | This is a more performant implementation of this method than that
found in AbstractMap. It simply iterates over the array of subMaps
and adds together their sizes
@return The number of elements in this ConcurrentHashMap | [
"This",
"is",
"a",
"more",
"performant",
"implementation",
"of",
"this",
"method",
"than",
"that",
"found",
"in",
"AbstractMap",
".",
"It",
"simply",
"iterates",
"over",
"the",
"array",
"of",
"subMaps",
"and",
"adds",
"together",
"their",
"sizes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentHashMap.java#L292-L304 |
111,299 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/managedobject/CDIEJBManagedObjectFactoryImpl.java | CDIEJBManagedObjectFactoryImpl.createContext | @Override
public ManagedObjectContext createContext() {
Bean<T> bean = null;
EjbDescriptor<T> ejbDescriptor = getEjbDescriptor();
//in the case of an MDB, the bean should be null, in which case the creational context will be non-contextual
if (!ejbDescriptor.isMessageDriven()) {
... | java | @Override
public ManagedObjectContext createContext() {
Bean<T> bean = null;
EjbDescriptor<T> ejbDescriptor = getEjbDescriptor();
//in the case of an MDB, the bean should be null, in which case the creational context will be non-contextual
if (!ejbDescriptor.isMessageDriven()) {
... | [
"@",
"Override",
"public",
"ManagedObjectContext",
"createContext",
"(",
")",
"{",
"Bean",
"<",
"T",
">",
"bean",
"=",
"null",
";",
"EjbDescriptor",
"<",
"T",
">",
"ejbDescriptor",
"=",
"getEjbDescriptor",
"(",
")",
";",
"//in the case of an MDB, the bean should b... | This version creates a ManagedObjectContext which contains a CreationalContext for an EJB. | [
"This",
"version",
"creates",
"a",
"ManagedObjectContext",
"which",
"contains",
"a",
"CreationalContext",
"for",
"an",
"EJB",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/managedobject/CDIEJBManagedObjectFactoryImpl.java#L74-L90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.