id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
65,500
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getUserRegistry
public UserRegistry getUserRegistry() { SibTr.entry(tc, CLASS_NAME + "getUserRegistry"); UserRegistry userRegistry = null; if (getSecurityService() != null) { UserRegistryService userRegistryService = securityService .getUserRegistryService(); ...
java
public UserRegistry getUserRegistry() { SibTr.entry(tc, CLASS_NAME + "getUserRegistry"); UserRegistry userRegistry = null; if (getSecurityService() != null) { UserRegistryService userRegistryService = securityService .getUserRegistryService(); ...
[ "public", "UserRegistry", "getUserRegistry", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getUserRegistry\"", ")", ";", "UserRegistry", "userRegistry", "=", "null", ";", "if", "(", "getSecurityService", "(", ")", "!=", "null", ...
Get User Registry from the Liberty Security component @return UserRegistry
[ "Get", "User", "Registry", "from", "the", "Liberty", "Security", "component" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L282-L308
65,501
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.populateDestinationPermissions
private void populateDestinationPermissions() { SibTr.entry(tc, CLASS_NAME + "populateDestinationPermissions", properties); pids.clear(); String[] roles = (String[]) properties .get(MessagingSecurityConstants.ROLE); initializeMaps(); if (roles != null) { ...
java
private void populateDestinationPermissions() { SibTr.entry(tc, CLASS_NAME + "populateDestinationPermissions", properties); pids.clear(); String[] roles = (String[]) properties .get(MessagingSecurityConstants.ROLE); initializeMaps(); if (roles != null) { ...
[ "private", "void", "populateDestinationPermissions", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"populateDestinationPermissions\"", ",", "properties", ")", ";", "pids", ".", "clear", "(", ")", ";", "String", "[", "]", "roles", ...
Populate the DestinationPermissions map with the destination and there access list
[ "Populate", "the", "DestinationPermissions", "map", "with", "the", "destination", "and", "there", "access", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L334-L370
65,502
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getDictionaryObject
private Dictionary<String, Object> getDictionaryObject(String input) { SibTr.entry(tc, CLASS_NAME + "getDictionaryObject", input); Dictionary<String, Object> dictionary = null; Configuration config = null; try { pids.add(input); config = configAdmin.getConfigurat...
java
private Dictionary<String, Object> getDictionaryObject(String input) { SibTr.entry(tc, CLASS_NAME + "getDictionaryObject", input); Dictionary<String, Object> dictionary = null; Configuration config = null; try { pids.add(input); config = configAdmin.getConfigurat...
[ "private", "Dictionary", "<", "String", ",", "Object", ">", "getDictionaryObject", "(", "String", "input", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getDictionaryObject\"", ",", "input", ")", ";", "Dictionary", "<", "String", ","...
Get the Dictionary object for the given String @param input @return
[ "Get", "the", "Dictionary", "object", "for", "the", "given", "String" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L600-L619
65,503
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.printDestinationPermissions
private void printDestinationPermissions(Map<String, ?> destinationPermissions) { Set<String> destinations = destinationPermissions.keySet(); for (String destination : destinations) { SibTr.debug(tc, CLASS_NAME + " Destination: " + destination); Permission permission = (Permissio...
java
private void printDestinationPermissions(Map<String, ?> destinationPermissions) { Set<String> destinations = destinationPermissions.keySet(); for (String destination : destinations) { SibTr.debug(tc, CLASS_NAME + " Destination: " + destination); Permission permission = (Permissio...
[ "private", "void", "printDestinationPermissions", "(", "Map", "<", "String", ",", "?", ">", "destinationPermissions", ")", "{", "Set", "<", "String", ">", "destinations", "=", "destinationPermissions", ".", "keySet", "(", ")", ";", "for", "(", "String", "desti...
Print the Destination Permissions, it will be used for debugging purpose
[ "Print", "the", "Destination", "Permissions", "it", "will", "be", "used", "for", "debugging", "purpose" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L624-L643
65,504
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/processor/RecoveryProcessorFactory.java
RecoveryProcessorFactory.getInstance
public static final RecoveryProcessor getInstance() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getInstance"); } if (_processor == null) { try { Class c = Class.forName("com.ibm.ws.sib.processor.impl.RecoveryProcessorImpl"); _processor = (RecoveryProcessor) c.newInstance(); ...
java
public static final RecoveryProcessor getInstance() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getInstance"); } if (_processor == null) { try { Class c = Class.forName("com.ibm.ws.sib.processor.impl.RecoveryProcessorImpl"); _processor = (RecoveryProcessor) c.newInstance(); ...
[ "public", "static", "final", "RecoveryProcessor", "getInstance", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getInstance\"", ")", ";", "}", "if", "(", "_processor", "==", "null", ...
Returns a reference to the singleton RecoveryProcessor. @return reference to the singleton RecoveryProcessor.
[ "Returns", "a", "reference", "to", "the", "singleton", "RecoveryProcessor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/processor/RecoveryProcessorFactory.java#L37-L59
65,505
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.init
protected void init(int code, String phrase, boolean isError) { this.myPhrase = phrase; this.myPhraseBytes = HttpChannelUtils.getEnglishBytes(phrase); this.myIntCode = code; if (isError) { this.myError = new HttpError(code, this.myPhrase); } initSpecialArrays(...
java
protected void init(int code, String phrase, boolean isError) { this.myPhrase = phrase; this.myPhraseBytes = HttpChannelUtils.getEnglishBytes(phrase); this.myIntCode = code; if (isError) { this.myError = new HttpError(code, this.myPhrase); } initSpecialArrays(...
[ "protected", "void", "init", "(", "int", "code", ",", "String", "phrase", ",", "boolean", "isError", ")", "{", "this", ".", "myPhrase", "=", "phrase", ";", "this", ".", "myPhraseBytes", "=", "HttpChannelUtils", ".", "getEnglishBytes", "(", "phrase", ")", "...
Initialize this status code with the input information. @param code @param phrase @param isError
[ "Initialize", "this", "status", "code", "with", "the", "input", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L182-L191
65,506
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.makeUndefinedValue
public static StatusCodes makeUndefinedValue(int value) { StatusCodes code = new StatusCodes(StatusCodes.UNDEF); code.name = Integer.toString(value); code.byteArray = HttpChannelUtils.getEnglishBytes(code.getName()); code.myIntCode = value; code.initSpecialArrays(); code....
java
public static StatusCodes makeUndefinedValue(int value) { StatusCodes code = new StatusCodes(StatusCodes.UNDEF); code.name = Integer.toString(value); code.byteArray = HttpChannelUtils.getEnglishBytes(code.getName()); code.myIntCode = value; code.initSpecialArrays(); code....
[ "public", "static", "StatusCodes", "makeUndefinedValue", "(", "int", "value", ")", "{", "StatusCodes", "code", "=", "new", "StatusCodes", "(", "StatusCodes", ".", "UNDEF", ")", ";", "code", ".", "name", "=", "Integer", ".", "toString", "(", "value", ")", "...
Make a new "Undefined" enumerated value with the given input. @param value @return StatusCodes
[ "Make", "a", "new", "Undefined", "enumerated", "value", "with", "the", "given", "input", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L199-L209
65,507
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.initSpecialArrays
protected void initSpecialArrays() { int len = getByteArray().length; // set up the "status code + SPACE + default reason phrase" this.bytesWithPhrase = new byte[len + 1 + this.myPhraseBytes.length]; System.arraycopy(getByteArray(), 0, this.bytesWithPhrase, 0, len); this.bytesWit...
java
protected void initSpecialArrays() { int len = getByteArray().length; // set up the "status code + SPACE + default reason phrase" this.bytesWithPhrase = new byte[len + 1 + this.myPhraseBytes.length]; System.arraycopy(getByteArray(), 0, this.bytesWithPhrase, 0, len); this.bytesWit...
[ "protected", "void", "initSpecialArrays", "(", ")", "{", "int", "len", "=", "getByteArray", "(", ")", ".", "length", ";", "// set up the \"status code + SPACE + default reason phrase\"", "this", ".", "bytesWithPhrase", "=", "new", "byte", "[", "len", "+", "1", "+"...
Initialize the special arrays.
[ "Initialize", "the", "special", "arrays", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L223-L230
65,508
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.getByOrdinal
public static StatusCodes getByOrdinal(int i) { if (0 > i || i >= MAX_CODE) { throw new IndexOutOfBoundsException("Index " + i + " is out of bounds"); } return statusCodes[i]; }
java
public static StatusCodes getByOrdinal(int i) { if (0 > i || i >= MAX_CODE) { throw new IndexOutOfBoundsException("Index " + i + " is out of bounds"); } return statusCodes[i]; }
[ "public", "static", "StatusCodes", "getByOrdinal", "(", "int", "i", ")", "{", "if", "(", "0", ">", "i", "||", "i", ">=", "MAX_CODE", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"Index \"", "+", "i", "+", "\" is out of bounds\"", ")", ";",...
Query the enumerated value that exists with the specified ordinal value. @param i @return StatusCodes
[ "Query", "the", "enumerated", "value", "that", "exists", "with", "the", "specified", "ordinal", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L249-L254
65,509
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/BundleRepositoryRegistry.java
BundleRepositoryRegistry.addBundleRepository
public synchronized static void addBundleRepository(String installDir, String featureType) { BundleRepositoryHolder bundleRepositoryHolder = new BundleRepositoryHolder(installDir, cacheServerName, featureType); if (!repositoryHolders.containsKey(featureType)) repositoryHolders.put(featureTy...
java
public synchronized static void addBundleRepository(String installDir, String featureType) { BundleRepositoryHolder bundleRepositoryHolder = new BundleRepositoryHolder(installDir, cacheServerName, featureType); if (!repositoryHolders.containsKey(featureType)) repositoryHolders.put(featureTy...
[ "public", "synchronized", "static", "void", "addBundleRepository", "(", "String", "installDir", ",", "String", "featureType", ")", "{", "BundleRepositoryHolder", "bundleRepositoryHolder", "=", "new", "BundleRepositoryHolder", "(", "installDir", ",", "cacheServerName", ","...
Add a bundle repository to the map if one for that feature type has not already been added. @param installDir The install location for the repository. This can vary, i.e. product extensions. @param featureType The "name" for this repository. "" for default, "usr" for the user extension, etc.
[ "Add", "a", "bundle", "repository", "to", "the", "map", "if", "one", "for", "that", "feature", "type", "has", "not", "already", "been", "added", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/BundleRepositoryRegistry.java#L68-L73
65,510
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java
OrderedJSONObject.put
public Object put(Object key, Object value) { if (null == key) throw new IllegalArgumentException("key must not be null"); if (!(key instanceof String)) throw new IllegalArgumentException("key must be a String"); if (!isValidObject(value)) { if (value != null) ...
java
public Object put(Object key, Object value) { if (null == key) throw new IllegalArgumentException("key must not be null"); if (!(key instanceof String)) throw new IllegalArgumentException("key must be a String"); if (!isValidObject(value)) { if (value != null) ...
[ "public", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "if", "(", "null", "==", "key", ")", "throw", "new", "IllegalArgumentException", "(", "\"key must not be null\"", ")", ";", "if", "(", "!", "(", "key", "instanceof", "String...
Method to put a JSON'able object into the instance. Note that the order of initial puts controls the order of serialization. Meaning that the first time an item is put into the object determines is position of serialization. Subsequent puts with the same key replace the existing entry value and leave serialization po...
[ "Method", "to", "put", "a", "JSON", "able", "object", "into", "the", "instance", ".", "Note", "that", "the", "order", "of", "initial", "puts", "controls", "the", "order", "of", "serialization", ".", "Meaning", "that", "the", "first", "time", "an", "item", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java#L109-L134
65,511
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java
OrderedJSONObject.remove
public Object remove(Object key) { Object retVal = null; if (null == key) throw new IllegalArgumentException("key must not be null"); if (this.containsKey(key)) { retVal = super.remove(key); for (int i = 0; i < this.order.size(); i++) { ...
java
public Object remove(Object key) { Object retVal = null; if (null == key) throw new IllegalArgumentException("key must not be null"); if (this.containsKey(key)) { retVal = super.remove(key); for (int i = 0; i < this.order.size(); i++) { ...
[ "public", "Object", "remove", "(", "Object", "key", ")", "{", "Object", "retVal", "=", "null", ";", "if", "(", "null", "==", "key", ")", "throw", "new", "IllegalArgumentException", "(", "\"key must not be null\"", ")", ";", "if", "(", "this", ".", "contain...
Method to remove an entry from the OrderedJSONObject instance. @see java.util.HashMap#remove(java.lang.Object)
[ "Method", "to", "remove", "an", "entry", "from", "the", "OrderedJSONObject", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java#L140-L160
65,512
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/CpuInfo.java
CpuInfo.getAvailableProcessorsFromFilesystem
private static int getAvailableProcessorsFromFilesystem() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); Double availableProcessorsDouble = null; int availableProcessorsInt = -1; //Check for docker files String periodFileLocation = File.separator + "sys" + File.sep...
java
private static int getAvailableProcessorsFromFilesystem() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); Double availableProcessorsDouble = null; int availableProcessorsInt = -1; //Check for docker files String periodFileLocation = File.separator + "sys" + File.sep...
[ "private", "static", "int", "getAvailableProcessorsFromFilesystem", "(", ")", "{", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "Double", "availableProcessorsDouble", "=", "null", ";", "int", "availableProcessorsInt", "=", ...
utility below parses cpu limits info from Docker files
[ "utility", "below", "parses", "cpu", "limits", "info", "from", "Docker", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/CpuInfo.java#L150-L200
65,513
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllEntryProbeExtensions
public static void processAllEntryProbeExtensions(Event event, RequestContext requestContext) { if (event == requestContext.getRootEvent()) { // Add the request to Active Request list requestContext.setRequestContextIndex(activeRequests.add(requestContext)); } List<ProbeExtension> probeExtnList = RequestP...
java
public static void processAllEntryProbeExtensions(Event event, RequestContext requestContext) { if (event == requestContext.getRootEvent()) { // Add the request to Active Request list requestContext.setRequestContextIndex(activeRequests.add(requestContext)); } List<ProbeExtension> probeExtnList = RequestP...
[ "public", "static", "void", "processAllEntryProbeExtensions", "(", "Event", "event", ",", "RequestContext", "requestContext", ")", "{", "if", "(", "event", "==", "requestContext", ".", "getRootEvent", "(", ")", ")", "{", "// Add the request to Active Request list", "r...
Iterate through all the probe extensions and process all the entry method of the available probe extension @param event : Event for which the probe extensions to be processed. @param requestContext : Request context for the active request.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "all", "the", "entry", "method", "of", "the", "available", "probe", "extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L124-L157
65,514
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllExitProbeExtensions
public static void processAllExitProbeExtensions(Event event, RequestContext requestContext) { List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ // Exit enabled?? ...
java
public static void processAllExitProbeExtensions(Event event, RequestContext requestContext) { List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ // Exit enabled?? ...
[ "public", "static", "void", "processAllExitProbeExtensions", "(", "Event", "event", ",", "RequestContext", "requestContext", ")", "{", "List", "<", "ProbeExtension", ">", "probeExtnList", "=", "RequestProbeService", ".", "getProbeExtensions", "(", ")", ";", "for", "...
Iterate through all the probe extensions and process all the exit method of the available probe extension @param event : Event for which the probe extensions to be processed. @param requestContext : Request context for the active request.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "all", "the", "exit", "method", "of", "the", "available", "probe", "extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L168-L213
65,515
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllCounterProbeExtensions
public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe extension is interested in ...
java
public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe extension is interested in ...
[ "public", "static", "void", "processAllCounterProbeExtensions", "(", "Event", "event", ")", "{", "List", "<", "ProbeExtension", ">", "probeExtnList", "=", "RequestProbeService", ".", "getProbeExtensions", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "...
Iterate through all the probe extensions and process the counter methods of interested probe extensions @param event : Event for which the probe extensions to be processed.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "the", "counter", "methods", "of", "interested", "probe", "extensions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L222-L242
65,516
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.setSecurityService
@Reference(name = KEY_SECURITY_SERVICE, policy = ReferencePolicy.DYNAMIC) protected void setSecurityService(SecurityService securitysvc) { securityService = securitysvc; }
java
@Reference(name = KEY_SECURITY_SERVICE, policy = ReferencePolicy.DYNAMIC) protected void setSecurityService(SecurityService securitysvc) { securityService = securitysvc; }
[ "@", "Reference", "(", "name", "=", "KEY_SECURITY_SERVICE", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ")", "protected", "void", "setSecurityService", "(", "SecurityService", "securitysvc", ")", "{", "securityService", "=", "securitysvc", ";", "}" ]
serviceReferences are bad, avoid and do this instead.
[ "serviceReferences", "are", "bad", "avoid", "and", "do", "this", "instead", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L73-L76
65,517
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.getUserName
public static String getUserName() throws Exception { Subject subject = getRunAsSubjectInternal(); if (subject == null) { return null; } Set<Principal> principals = subject.getPrincipals(); Iterator<Principal> principalsIterator = principals.iterator(); if (pr...
java
public static String getUserName() throws Exception { Subject subject = getRunAsSubjectInternal(); if (subject == null) { return null; } Set<Principal> principals = subject.getPrincipals(); Iterator<Principal> principalsIterator = principals.iterator(); if (pr...
[ "public", "static", "String", "getUserName", "(", ")", "throws", "Exception", "{", "Subject", "subject", "=", "getRunAsSubjectInternal", "(", ")", ";", "if", "(", "subject", "==", "null", ")", "{", "return", "null", ";", "}", "Set", "<", "Principal", ">", ...
Gets the username from the principal of the subject. @return @throws WSSecurityException
[ "Gets", "the", "username", "from", "the", "principal", "of", "the", "subject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L157-L169
65,518
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.pushSubject
public static synchronized boolean pushSubject(String username) { if (securityService == null || username == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "returning false because user or securityService is null," + " user= " + username + " secsvc= " + secur...
java
public static synchronized boolean pushSubject(String username) { if (securityService == null || username == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "returning false because user or securityService is null," + " user= " + username + " secsvc= " + secur...
[ "public", "static", "synchronized", "boolean", "pushSubject", "(", "String", "username", ")", "{", "if", "(", "securityService", "==", "null", "||", "username", "==", "null", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", "."...
Authenticate the username, create it's Subject and push it on to the thread. It's up to the caller to save off the prior subject and make sure it gets restored, and guard against any threading issues. @param username @return true if successful
[ "Authenticate", "the", "username", "create", "it", "s", "Subject", "and", "push", "it", "on", "to", "the", "thread", ".", "It", "s", "up", "to", "the", "caller", "to", "save", "off", "the", "prior", "subject", "and", "make", "sure", "it", "gets", "rest...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L253-L286
65,519
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.setRunAsSubject
public static synchronized boolean setRunAsSubject(Subject subj) { Subject before = null; try { before = getRunAsSubject(); final Subject fsubj = subj; AccessController.doPrivileged( new PrivilegedExceptionAction<Object>() { ...
java
public static synchronized boolean setRunAsSubject(Subject subj) { Subject before = null; try { before = getRunAsSubject(); final Subject fsubj = subj; AccessController.doPrivileged( new PrivilegedExceptionAction<Object>() { ...
[ "public", "static", "synchronized", "boolean", "setRunAsSubject", "(", "Subject", "subj", ")", "{", "Subject", "before", "=", "null", ";", "try", "{", "before", "=", "getRunAsSubject", "(", ")", ";", "final", "Subject", "fsubj", "=", "subj", ";", "AccessCont...
set the runAsSubject. Contain any exceptions with FFDC. @param subj - the subject to push onto the thread. @return true if successful
[ "set", "the", "runAsSubject", ".", "Contain", "any", "exceptions", "with", "FFDC", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L295-L322
65,520
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TopicWildcardTranslation.java
TopicWildcardTranslation.getInstance
public static TopicWildcardTranslation getInstance() throws Exception { if (tcInt.isEntryEnabled()) Tr.entry(tcInt, "getInstance"); if (twt == null) { try { Class cls = Class.forName(UtConstants.TWT_FACTORY_CLASS); twt = (TopicWildcardTranslation) cls.newInstance(); ...
java
public static TopicWildcardTranslation getInstance() throws Exception { if (tcInt.isEntryEnabled()) Tr.entry(tcInt, "getInstance"); if (twt == null) { try { Class cls = Class.forName(UtConstants.TWT_FACTORY_CLASS); twt = (TopicWildcardTranslation) cls.newInstance(); ...
[ "public", "static", "TopicWildcardTranslation", "getInstance", "(", ")", "throws", "Exception", "{", "if", "(", "tcInt", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tcInt", ",", "\"getInstance\"", ")", ";", "if", "(", "twt", "==", "null...
Obtain the singleton instance of the wildcard mapping class. @return TopicWildcardTranslation singleton object @throws Exception If it was not possible to instantiate the implementation class
[ "Obtain", "the", "singleton", "instance", "of", "the", "wildcard", "mapping", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TopicWildcardTranslation.java#L41-L67
65,521
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/model/FilterVersion.java
FilterVersion.getFilterRange
public static VersionRange getFilterRange(FilterVersion minVersion, FilterVersion maxVersion) { VersionRange vr = null; Version vmin = minVersion == null ? Version.emptyVersion : new Version(minVersion.getValue()); Version vmax = maxVersion == null ? null : new Version(maxVersion.getValue()); ...
java
public static VersionRange getFilterRange(FilterVersion minVersion, FilterVersion maxVersion) { VersionRange vr = null; Version vmin = minVersion == null ? Version.emptyVersion : new Version(minVersion.getValue()); Version vmax = maxVersion == null ? null : new Version(maxVersion.getValue()); ...
[ "public", "static", "VersionRange", "getFilterRange", "(", "FilterVersion", "minVersion", ",", "FilterVersion", "maxVersion", ")", "{", "VersionRange", "vr", "=", "null", ";", "Version", "vmin", "=", "minVersion", "==", "null", "?", "Version", ".", "emptyVersion",...
This method creates a version range from the supplied min and max FilterVersion @param minVersion The min version in the range. Can be null, if so treated as {@link Version#emptyVersion} @param maxVersion The max version. Can be null, null in a version range is treated as infinite @return A version range object repres...
[ "This", "method", "creates", "a", "version", "range", "from", "the", "supplied", "min", "and", "max", "FilterVersion" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/model/FilterVersion.java#L111-L119
65,522
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java
FileLogSet.update
public boolean update(File directory, String fileName, String fileExtension, int maxFiles) { this.maxFiles = maxFiles; boolean updateLocation = !directory.equals(this.directory) || !fileName.equals(this.fileName) || !fileExtension.equals(this.fileExtension); if (updateLocation) { th...
java
public boolean update(File directory, String fileName, String fileExtension, int maxFiles) { this.maxFiles = maxFiles; boolean updateLocation = !directory.equals(this.directory) || !fileName.equals(this.fileName) || !fileExtension.equals(this.fileExtension); if (updateLocation) { th...
[ "public", "boolean", "update", "(", "File", "directory", ",", "String", "fileName", ",", "String", "fileExtension", ",", "int", "maxFiles", ")", "{", "this", ".", "maxFiles", "=", "maxFiles", ";", "boolean", "updateLocation", "=", "!", "directory", ".", "equ...
Updates the configuration for this set of logs. @param directory the log directory @param fileName the file base name (e.g., "messages") @param fileExtension the file extension (e.g., ".log") @param maxFiles the maximum number of files, or 0 for unlimited @return true if the directory, name, or extension changed
[ "Updates", "the", "configuration", "for", "this", "set", "of", "logs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java#L126-L177
65,523
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java
FileLogSet.addFile
private void addFile(int index, String file) { if (maxFiles > 0) { int numFiles = files.size(); int maxDateFiles = getMaxDateFiles(); // If there is no max or we have fewer than max, then we're done. if (maxDateFiles <= 0 || numFiles < maxDateFiles) { ...
java
private void addFile(int index, String file) { if (maxFiles > 0) { int numFiles = files.size(); int maxDateFiles = getMaxDateFiles(); // If there is no max or we have fewer than max, then we're done. if (maxDateFiles <= 0 || numFiles < maxDateFiles) { ...
[ "private", "void", "addFile", "(", "int", "index", ",", "String", "file", ")", "{", "if", "(", "maxFiles", ">", "0", ")", "{", "int", "numFiles", "=", "files", ".", "size", "(", ")", ";", "int", "maxDateFiles", "=", "getMaxDateFiles", "(", ")", ";", ...
Adds a file name to the files list at the specified index. If adding this file would cause the number of files to exceed the maximum, remove all files after the specified index, and then remove the oldest files until the number is reduced to the maximum. @param index the index in the files list to insert the file @par...
[ "Adds", "a", "file", "name", "to", "the", "files", "list", "at", "the", "specified", "index", ".", "If", "adding", "this", "file", "would", "cause", "the", "number", "of", "files", "to", "exceed", "the", "maximum", "remove", "all", "files", "after", "the...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java#L387-L411
65,524
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.instantiateMessage
protected JsJmsMessage instantiateMessage() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateMessage"); // Create a new message object. JsJmsMessage newMsg = jmfact.createJmsMessage(); messageClass = CLASS_...
java
protected JsJmsMessage instantiateMessage() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateMessage"); // Create a new message object. JsJmsMessage newMsg = jmfact.createJmsMessage(); messageClass = CLASS_...
[ "protected", "JsJmsMessage", "instantiateMessage", "(", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
This method carries out the instantiation of the MFP message object for this JMS message class. The method is overridden by subclasses to instantiate the correct subclass and carry out any reference setting required. It is safe to assume by this point that the jmfact reference has been initialized, otherwise you would...
[ "This", "method", "carries", "out", "the", "instantiation", "of", "the", "MFP", "message", "object", "for", "this", "JMS", "message", "class", ".", "The", "method", "is", "overridden", "by", "subclasses", "to", "instantiate", "the", "correct", "subclass", "and...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1668-L1682
65,525
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.getMsgReference
protected JsJmsMessage getMsgReference() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getMsgReference"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getMsgReference", msg);...
java
protected JsJmsMessage getMsgReference() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getMsgReference"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getMsgReference", msg);...
[ "protected", "JsJmsMessage", "getMsgReference", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Get a Jetstream message representing the content of this JMS message. Used during the sending of messages. @return a Jetstream message which can be used to represent this message. @throws JMSException if a problem arises during the transformation of the JMS message to a Jetstream message.
[ "Get", "a", "Jetstream", "message", "representing", "the", "content", "of", "this", "JMS", "message", ".", "Used", "during", "the", "sending", "of", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1692-L1698
65,526
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.setDestReference
protected void setDestReference(Destination d) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestReference", d); dest = d; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setDestReference"); ...
java
protected void setDestReference(Destination d) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestReference", d); dest = d; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setDestReference"); ...
[ "protected", "void", "setDestReference", "(", "Destination", "d", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setDestR...
Update the destination cache reference without setting any data into the core message. @param d
[ "Update", "the", "destination", "cache", "reference", "without", "setting", "any", "data", "into", "the", "core", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1722-L1728
65,527
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkBodyWriteable
protected void checkBodyWriteable(String callingMethodName) throws JMSException { if (bodyReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
java
protected void checkBodyWriteable(String callingMethodName) throws JMSException { if (bodyReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
[ "protected", "void", "checkBodyWriteable", "(", "String", "callingMethodName", ")", "throws", "JMSException", "{", "if", "(", "bodyReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotWriteableException", ")", "JmsErrorUtils", ".", "newThrowable",...
If the message body is read-only, throw a MessageNotWriteableException.
[ "If", "the", "message", "body", "is", "read", "-", "only", "throw", "a", "MessageNotWriteableException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1733-L1741
65,528
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkBodyReadable
protected void checkBodyReadable(String callingMethodName) throws MessageNotReadableException { if (!bodyReadOnly) { throw (javax.jms.MessageNotReadableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotReadableException.class, ...
java
protected void checkBodyReadable(String callingMethodName) throws MessageNotReadableException { if (!bodyReadOnly) { throw (javax.jms.MessageNotReadableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotReadableException.class, ...
[ "protected", "void", "checkBodyReadable", "(", "String", "callingMethodName", ")", "throws", "MessageNotReadableException", "{", "if", "(", "!", "bodyReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotReadableException", ")", "JmsErrorUtils", "....
If the message body is write-only, throw a MessageNotReadableException.
[ "If", "the", "message", "body", "is", "write", "-", "only", "throw", "a", "MessageNotReadableException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1746-L1755
65,529
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkPropertiesWriteable
protected void checkPropertiesWriteable(String callingMethodName) throws JMSException { if (propertiesReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
java
protected void checkPropertiesWriteable(String callingMethodName) throws JMSException { if (propertiesReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
[ "protected", "void", "checkPropertiesWriteable", "(", "String", "callingMethodName", ")", "throws", "JMSException", "{", "if", "(", "propertiesReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotWriteableException", ")", "JmsErrorUtils", ".", "ne...
If the message properties are read-only, throw a MessageNotWriteableException.
[ "If", "the", "message", "properties", "are", "read", "-", "only", "throw", "a", "MessageNotWriteableException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1760-L1768
65,530
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.getReliability
public Reliability getReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReliability"); Reliability r = msg.getReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "get...
java
public Reliability getReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReliability"); Reliability r = msg.getReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "get...
[ "public", "Reliability", "getReliability", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getReliability\"", ")", ";...
This method retrieves the underlying reliability that is set for this message. The outgoing value can also be determined by examining the persistence and NPM properties, however inbound cannot be found in this way. @return Reliablity
[ "This", "method", "retrieves", "the", "underlying", "reliability", "that", "is", "set", "for", "this", "message", ".", "The", "outgoing", "value", "can", "also", "be", "determined", "by", "examining", "the", "persistence", "and", "NPM", "properties", "however", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1778-L1785
65,531
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.setBodyReadOnly
protected void setBodyReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBodyReadOnly"); bodyReadOnly = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setBodyReadOnly"); ...
java
protected void setBodyReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBodyReadOnly"); bodyReadOnly = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setBodyReadOnly"); ...
[ "protected", "void", "setBodyReadOnly", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setBodyReadOnly\"", ")", ";",...
Mark the body of the message as read only. Needed for the reset methods of Bytes and Stream messages.
[ "Mark", "the", "body", "of", "the", "message", "as", "read", "only", ".", "Needed", "for", "the", "reset", "methods", "of", "Bytes", "and", "Stream", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1872-L1878
65,532
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.clearLocalProperties
void clearLocalProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearLocalProperties"); if (locallyStoredPropertyValues != null) locallyStoredPropertyValues.clear(); // d255144 Also clear the local version of the mess...
java
void clearLocalProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearLocalProperties"); if (locallyStoredPropertyValues != null) locallyStoredPropertyValues.clear(); // d255144 Also clear the local version of the mess...
[ "void", "clearLocalProperties", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"clearLocalProperties\"", ")", ";", "i...
Clear special case properties held in this message. Invoked at send time.
[ "Clear", "special", "case", "properties", "held", "in", "this", "message", ".", "Invoked", "at", "send", "time", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1887-L1898
65,533
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.invalidateToStringCache
void invalidateToStringCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invalidateToStringCache"); // Invalidate the toString cache. cachedToString = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
void invalidateToStringCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invalidateToStringCache"); // Invalidate the toString cache. cachedToString = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "void", "invalidateToStringCache", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"invalidateToStringCache\"", ")", ";"...
Called by the sendMessage method of JmsMsgProducerImpl in order to invalidate the toString of the message when we send it.
[ "Called", "by", "the", "sendMessage", "method", "of", "JmsMsgProducerImpl", "in", "order", "to", "invalidate", "the", "toString", "of", "the", "message", "when", "we", "send", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1904-L1913
65,534
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkPropName
static void checkPropName(String name, String callingMethodName) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkPropName", new Object[] { name, callingMethodName }); if ((name == null) || ("".equals(name))) { ...
java
static void checkPropName(String name, String callingMethodName) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkPropName", new Object[] { name, callingMethodName }); if ((name == null) || ("".equals(name))) { ...
[ "static", "void", "checkPropName", "(", "String", "name", ",", "String", "callingMethodName", ")", "throws", "IllegalArgumentException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Si...
This method checks the property name to see whether it is null or empty, and throws an IllegalArgumentException if it is. Note that this is used from MapMessage for the body, as well as from this class for the header.
[ "This", "method", "checks", "the", "property", "name", "to", "see", "whether", "it", "is", "null", "or", "empty", "and", "throws", "an", "IllegalArgumentException", "if", "it", "is", ".", "Note", "that", "this", "is", "used", "from", "MapMessage", "for", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java#L1939-L1955
65,535
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java
DatabaseManager.getDatabasePlatformClassName
public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vendorNameAndVersion = null; ...
java
public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vendorNameAndVersion = null; ...
[ "public", "String", "getDatabasePlatformClassName", "(", "PUInfoImpl", "pui", ")", "{", "SessionLog", "traceLogger", "=", "new", "TraceLog", "(", ")", ";", "Properties", "properties", "=", "pui", ".", "getProperties", "(", ")", ";", "String", "productName", "=",...
Returns the EclipseLink database platform class name based on the properties passed in or by detecting it through the connection, if one is available.
[ "Returns", "the", "EclipseLink", "database", "platform", "class", "name", "based", "on", "the", "properties", "passed", "in", "or", "by", "detecting", "it", "through", "the", "connection", "if", "one", "is", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java#L140-L167
65,536
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java
DatabaseManager.supportsUnicodeStaticCheck
@FFDCIgnore(SQLException.class) private Boolean supportsUnicodeStaticCheck(DataSource ds) { Boolean res = null; try { Connection conn = ds.getConnection(); String product = null; try { DatabaseMetaData dmd = conn.getMetaData(); prod...
java
@FFDCIgnore(SQLException.class) private Boolean supportsUnicodeStaticCheck(DataSource ds) { Boolean res = null; try { Connection conn = ds.getConnection(); String product = null; try { DatabaseMetaData dmd = conn.getMetaData(); prod...
[ "@", "FFDCIgnore", "(", "SQLException", ".", "class", ")", "private", "Boolean", "supportsUnicodeStaticCheck", "(", "DataSource", "ds", ")", "{", "Boolean", "res", "=", "null", ";", "try", "{", "Connection", "conn", "=", "ds", ".", "getConnection", "(", ")",...
Consults the static collections contained within this class and attempts to determine whether the provided DataSource supports unicode. @return True if ds supports unicode. False if ds doesn't support unicode. null if unknown.
[ "Consults", "the", "static", "collections", "contained", "within", "this", "class", "and", "attempts", "to", "determine", "whether", "the", "provided", "DataSource", "supports", "unicode", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java#L175-L213
65,537
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authorization.java
Authorization.setMessagingAuthorizationService
public void setMessagingAuthorizationService( MessagingAuthorizationService messagingAuthorizationService) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthorizationService", messagingAuthorizationService); this.messagingAuthorizationService = messagingAu...
java
public void setMessagingAuthorizationService( MessagingAuthorizationService messagingAuthorizationService) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthorizationService", messagingAuthorizationService); this.messagingAuthorizationService = messagingAu...
[ "public", "void", "setMessagingAuthorizationService", "(", "MessagingAuthorizationService", "messagingAuthorizationService", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"setMessagingAuthorizationService\"", ",", "messagingAuthorizationService", ")", ...
Set the Messaging Authorization Service @param messagingAuthorizationService MessagingAuthorization is set to Null when MessagingSecurity is disabled
[ "Set", "the", "Messaging", "Authorization", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authorization.java#L201-L208
65,538
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/AppDefinedResourceFactory.java
AppDefinedResourceFactory.destroy
@Override public void destroy() throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "destroy", id); tracker.close(); StringBuilder filter = new StringBuilder(FilterUtils.createPropertyFilter...
java
@Override public void destroy() throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "destroy", id); tracker.close(); StringBuilder filter = new StringBuilder(FilterUtils.createPropertyFilter...
[ "@", "Override", "public", "void", "destroy", "(", ")", "throws", "Exception", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ...
Destroy this application-defined resource by removing its configuration and the configuration of all other services that were created for it. @throws Exception if an error occurs.
[ "Destroy", "this", "application", "-", "defined", "resource", "by", "removing", "its", "configuration", "and", "the", "configuration", "of", "all", "other", "services", "that", "were", "created", "for", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/AppDefinedResourceFactory.java#L125-L140
65,539
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.addMPDestinationChangeListener
public void addMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.add(destin...
java
public void addMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.add(destin...
[ "public", "void", "addMPDestinationChangeListener", "(", "MPDestinationChangeListener", "destinationChangeListener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
This method is used internal to MP only and is used to register additional destination change listeners that are need as well as the main MP listener registered at startup. Adding a destinationLocationChangeListener will not override an existing one but will add to a list of ones that will be called. @param destinati...
[ "This", "method", "is", "used", "internal", "to", "MP", "only", "and", "is", "used", "to", "register", "additional", "destination", "change", "listeners", "that", "are", "need", "as", "well", "as", "the", "main", "MP", "listener", "registered", "at", "startu...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L264-L274
65,540
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.removeMPDestinationChangeListener
public void removeMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.remo...
java
public void removeMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.remo...
[ "public", "void", "removeMPDestinationChangeListener", "(", "MPDestinationChangeListener", "destinationChangeListener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry"...
This method is used internal to MP only and is used to remove a destination change listener that was registered. This method will only remove a destinationLocationChangeListener that was registered via addMPDestinationChangeListener @param destinationLocationChangeListener
[ "This", "method", "is", "used", "internal", "to", "MP", "only", "and", "is", "used", "to", "remove", "a", "destination", "change", "listener", "that", "was", "registered", ".", "This", "method", "will", "only", "remove", "a", "destinationLocationChangeListener",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L283-L293
65,541
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.getDestinationLocalitySet
private Set getDestinationLocalitySet (BaseDestinationHandler destinationHandler, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestinationLocalitySet", new Object[]{destinationHandler, capability}); // Check if the localisat...
java
private Set getDestinationLocalitySet (BaseDestinationHandler destinationHandler, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestinationLocalitySet", new Object[]{destinationHandler, capability}); // Check if the localisat...
[ "private", "Set", "getDestinationLocalitySet", "(", "BaseDestinationHandler", "destinationHandler", ",", "Capability", "capability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr...
Retrieve the Locality Set defined in Admin. @param destinationHandler @param capability @return
[ "Retrieve", "the", "Locality", "Set", "defined", "in", "Admin", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L302-L330
65,542
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.cleanupDestination
private void cleanupDestination(PtoPMessageItemStream ptoPMessageItemStream, BaseDestinationHandler destinationHandler, SIBUuid8 meUuid, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private void cleanupDestination(PtoPMessageItemStream ptoPMessageItemStream, BaseDestinationHandler destinationHandler, SIBUuid8 meUuid, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "void", "cleanupDestination", "(", "PtoPMessageItemStream", "ptoPMessageItemStream", ",", "BaseDestinationHandler", "destinationHandler", ",", "SIBUuid8", "meUuid", ",", "Capability", "capability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled"...
Cleanup destinations unknown to both WLM and WCCM. @param ptoPMessageItemStream @param destinationHandler @param meUuid @param capability
[ "Cleanup", "destinations", "unknown", "to", "both", "WLM", "and", "WCCM", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L340-L367
65,543
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.compareToAparList
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) { // console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]"); // console.printlnInfoMessage("Installed IFixes [ " +...
java
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) { // console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]"); // console.printlnInfoMessage("Installed IFixes [ " +...
[ "private", "void", "compareToAparList", "(", "ExecutionContext", "context", ",", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "installedIFixes", ",", "File", "wlpInstallationDirectory", ")", "{", "// console.printlnInf...
Compares the current install to a list of APARs in the console arguments @param context @param console @param wlpInstallationDirectory @param installedIFixes
[ "Compares", "the", "current", "install", "to", "a", "list", "of", "APARs", "in", "the", "console", "arguments" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L131-L193
65,544
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.compareToInstallLocation
private void compareToInstallLocation(ExecutionContext context, CommandConsole console, Map<String, Set<String>> aparToIFixMap, File wlpInstallationDirectory) { String installToCompareToLocation = context.getOptionValue(INSTALL_LOCATION_TO_COMPARE_TO_OPTION); File installToCompareToFile = new File(insta...
java
private void compareToInstallLocation(ExecutionContext context, CommandConsole console, Map<String, Set<String>> aparToIFixMap, File wlpInstallationDirectory) { String installToCompareToLocation = context.getOptionValue(INSTALL_LOCATION_TO_COMPARE_TO_OPTION); File installToCompareToFile = new File(insta...
[ "private", "void", "compareToInstallLocation", "(", "ExecutionContext", "context", ",", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "aparToIFixMap", ",", "File", "wlpInstallationDirectory", ")", "{", "String", "inst...
Compares the current install to one supplied in the console arguments @param context @param console @param wlpInstallationDirectory @param installedIFixes
[ "Compares", "the", "current", "install", "to", "one", "supplied", "in", "the", "console", "arguments" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L203-L251
65,545
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.printAparIFixInfo
private void printAparIFixInfo(CommandConsole console, Map<String, Set<String>> aparToIFixMap) { for (Map.Entry<String, Set<String>> aparIFixInfo : aparToIFixMap.entrySet()) { console.printlnInfoMessage(getMessage("compare.ifix.apar.info", aparIFixInfo.getKey(), aparIFixInfo.getValue())); } ...
java
private void printAparIFixInfo(CommandConsole console, Map<String, Set<String>> aparToIFixMap) { for (Map.Entry<String, Set<String>> aparIFixInfo : aparToIFixMap.entrySet()) { console.printlnInfoMessage(getMessage("compare.ifix.apar.info", aparIFixInfo.getKey(), aparIFixInfo.getValue())); } ...
[ "private", "void", "printAparIFixInfo", "(", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "aparToIFixMap", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "Set", "<", "String", ">", ">", "a...
This will print the map of APARs to iFixes by giving a line to each APAR listing which iFixes it is in @param console The console to print to @param aparToIFixMap The map to print
[ "This", "will", "print", "the", "map", "of", "APARs", "to", "iFixes", "by", "giving", "a", "line", "to", "each", "APAR", "listing", "which", "iFixes", "it", "is", "in" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L259-L263
65,546
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.getProductVersion
private Version getProductVersion(File wlpInstallationDirectory) throws VersionParsingException { // First get the properties Map<String, ProductInfo> productProperties = VersionUtils.getAllProductInfo(wlpInstallationDirectory); // Get the properties for WAS ProductInfo wasProperties = ...
java
private Version getProductVersion(File wlpInstallationDirectory) throws VersionParsingException { // First get the properties Map<String, ProductInfo> productProperties = VersionUtils.getAllProductInfo(wlpInstallationDirectory); // Get the properties for WAS ProductInfo wasProperties = ...
[ "private", "Version", "getProductVersion", "(", "File", "wlpInstallationDirectory", ")", "throws", "VersionParsingException", "{", "// First get the properties", "Map", "<", "String", ",", "ProductInfo", ">", "productProperties", "=", "VersionUtils", ".", "getAllProductInfo...
Gets the product version from the properties file for the "com.ibm.websphere.appserver" product @param wlpInstallationDirectory @return The product version as parsed by the OSGi {@link Version} class @throws VersionParsingException
[ "Gets", "the", "product", "version", "from", "the", "properties", "file", "for", "the", "com", ".", "ibm", ".", "websphere", ".", "appserver", "product" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L368-L381
65,547
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.readLine
private String readLine(InputStream stream) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); return reader.readLine(); }
java
private String readLine(InputStream stream) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); return reader.readLine(); }
[ "private", "String", "readLine", "(", "InputStream", "stream", ")", "throws", "IOException", "{", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "stream", ")", ")", ";", "return", "reader", ".", "readLine", "(", ...
This will read a single line from the input stream as a string. @param stream The stream to read @return The line that was read @throws IOException If there was a problem reading the line
[ "This", "will", "read", "a", "single", "line", "from", "the", "input", "stream", "as", "a", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L732-L735
65,548
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/SingleThreadModelServlet.java
SingleThreadModelServlet.service
public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException { try { TimedServletPoolElement e = _pool.getNextElement(); e.getServlet().service(req, resp); _pool.returnElement(e); _pool.removeExpiredElements();...
java
public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException { try { TimedServletPoolElement e = _pool.getNextElement(); e.getServlet().service(req, resp); _pool.returnElement(e); _pool.removeExpiredElements();...
[ "public", "void", "service", "(", "ServletRequest", "req", ",", "ServletResponse", "resp", ")", "throws", "ServletException", ",", "IOException", "{", "try", "{", "TimedServletPoolElement", "e", "=", "_pool", ".", "getNextElement", "(", ")", ";", "e", ".", "ge...
Overloaded by subclasses to perform the servlet's request handling operation.
[ "Overloaded", "by", "subclasses", "to", "perform", "the", "servlet", "s", "request", "handling", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/SingleThreadModelServlet.java#L116-L131
65,549
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.find
public ModuleItem find(String name) { if (children == null) return null; else return (ModuleItem) children.get(name); /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != ...
java
public ModuleItem find(String name) { if (children == null) return null; else return (ModuleItem) children.get(name); /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != ...
[ "public", "ModuleItem", "find", "(", "String", "name", ")", "{", "if", "(", "children", "==", "null", ")", "return", "null", ";", "else", "return", "(", "ModuleItem", ")", "children", ".", "get", "(", "name", ")", ";", "/*\n * for(int i=0; i<children...
Find an immediate child
[ "Find", "an", "immediate", "child" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L65-L83
65,550
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.find
public ModuleItem find(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); if (item == null) return null; if (index == path.length - 1) return item; ...
java
public ModuleItem find(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); if (item == null) return null; if (index == path.length - 1) return item; ...
[ "public", "ModuleItem", "find", "(", "String", "[", "]", "path", ",", "int", "index", ")", "{", "if", "(", "path", "==", "null", ")", "return", "null", ";", "if", "(", "path", ".", "length", "==", "0", ")", "return", "this", ";", "ModuleItem", "ite...
Find a child in the subtree - do it recursively
[ "Find", "a", "child", "in", "the", "subtree", "-", "do", "it", "recursively" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L86-L101
65,551
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.add
public synchronized ModuleItem add(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); // custom module shouldn't go inside if{} if (item == null) { // Create Aggr...
java
public synchronized ModuleItem add(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); // custom module shouldn't go inside if{} if (item == null) { // Create Aggr...
[ "public", "synchronized", "ModuleItem", "add", "(", "String", "[", "]", "path", ",", "int", "index", ")", "{", "if", "(", "path", "==", "null", ")", "return", "null", ";", "if", "(", "path", ".", "length", "==", "0", ")", "return", "this", ";", "Mo...
Find and add a child in the subtree if not found - do it recursively
[ "Find", "and", "add", "a", "child", "in", "the", "subtree", "if", "not", "found", "-", "do", "it", "recursively" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L104-L137
65,552
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.children
public ModuleItem[] children() { if (children == null) return null; ModuleItem[] members = new ModuleItem[children.size()]; children.values().toArray(members); return members; }
java
public ModuleItem[] children() { if (children == null) return null; ModuleItem[] members = new ModuleItem[children.size()]; children.values().toArray(members); return members; }
[ "public", "ModuleItem", "[", "]", "children", "(", ")", "{", "if", "(", "children", "==", "null", ")", "return", "null", ";", "ModuleItem", "[", "]", "members", "=", "new", "ModuleItem", "[", "children", ".", "size", "(", ")", "]", ";", "children", "...
Return an array of children - synchronized?
[ "Return", "an", "array", "of", "children", "-", "synchronized?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L198-L205
65,553
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.remove
public synchronized void remove(ModuleItem item) { if (item == null || children == null) return; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item.getInstance(); if (!(removeInstance instanceof PmiModuleAggregate)) { ...
java
public synchronized void remove(ModuleItem item) { if (item == null || children == null) return; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item.getInstance(); if (!(removeInstance instanceof PmiModuleAggregate)) { ...
[ "public", "synchronized", "void", "remove", "(", "ModuleItem", "item", ")", "{", "if", "(", "item", "==", "null", "||", "children", "==", "null", ")", "return", ";", "// remove from all the parents which have links to it due to aggregate data", "PmiModule", "removeInsta...
Remove a child from it - synchronized
[ "Remove", "a", "child", "from", "it", "-", "synchronized" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L301-L337
65,554
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.listMembers
public DataDescriptor[] listMembers(DataDescriptor dd, boolean jmxBased) { // take care of data members SpdData[] dataList = null; int dataLength = 0; if (!jmxBased) { dataList = instance.listData(); if (dataList != null) dataLength = dataList.len...
java
public DataDescriptor[] listMembers(DataDescriptor dd, boolean jmxBased) { // take care of data members SpdData[] dataList = null; int dataLength = 0; if (!jmxBased) { dataList = instance.listData(); if (dataList != null) dataLength = dataList.len...
[ "public", "DataDescriptor", "[", "]", "listMembers", "(", "DataDescriptor", "dd", ",", "boolean", "jmxBased", ")", "{", "// take care of data members", "SpdData", "[", "]", "dataList", "=", "null", ";", "int", "dataLength", "=", "0", ";", "if", "(", "!", "jm...
dd is the DataDescriptor for this module
[ "dd", "is", "the", "DataDescriptor", "for", "this", "module" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L340-L379
65,555
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.getStats
public StatsImpl getStats(boolean recursive) { // DO THIS METHOD NEED SYNCHRONIZED ACCESS? // When multiple threads get inside the method and stats tree is updated if (recursive) { /* * // if leaf then do not create myStatsWithChildren. Instead return myStats ...
java
public StatsImpl getStats(boolean recursive) { // DO THIS METHOD NEED SYNCHRONIZED ACCESS? // When multiple threads get inside the method and stats tree is updated if (recursive) { /* * // if leaf then do not create myStatsWithChildren. Instead return myStats ...
[ "public", "StatsImpl", "getStats", "(", "boolean", "recursive", ")", "{", "// DO THIS METHOD NEED SYNCHRONIZED ACCESS?", "// When multiple threads get inside the method and stats tree is updated", "if", "(", "recursive", ")", "{", "/*\n * // if leaf then do not create mySta...
is updated.
[ "is", "updated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L571-L661
65,556
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.setInstanceLevel_FG
private void setInstanceLevel_FG(int[] enabled, int[] enabledSync, boolean recursive) { if (instance != null) { // Fine grained instrumentation overrides the old level // First call setFineGrainedInstrumentation. // If fine grained level is undefined called old setInstrumenta...
java
private void setInstanceLevel_FG(int[] enabled, int[] enabledSync, boolean recursive) { if (instance != null) { // Fine grained instrumentation overrides the old level // First call setFineGrainedInstrumentation. // If fine grained level is undefined called old setInstrumenta...
[ "private", "void", "setInstanceLevel_FG", "(", "int", "[", "]", "enabled", ",", "int", "[", "]", "enabledSync", ",", "boolean", "recursive", ")", "{", "if", "(", "instance", "!=", "null", ")", "{", "// Fine grained instrumentation overrides the old level", "// Fir...
add data to parent if the newLevel is higher
[ "add", "data", "to", "parent", "if", "the", "newLevel", "is", "higher" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L753-L780
65,557
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem._cleanChildren
private void _cleanChildren() { //bStatsTreeNeedsUpdate = true; if (children != null) { Iterator values = children.values().iterator(); while (values.hasNext()) { ModuleItem remMI = (ModuleItem) values.next(); remMI.getInstance().cleanup(); ...
java
private void _cleanChildren() { //bStatsTreeNeedsUpdate = true; if (children != null) { Iterator values = children.values().iterator(); while (values.hasNext()) { ModuleItem remMI = (ModuleItem) values.next(); remMI.getInstance().cleanup(); ...
[ "private", "void", "_cleanChildren", "(", ")", "{", "//bStatsTreeNeedsUpdate = true;", "if", "(", "children", "!=", "null", ")", "{", "Iterator", "values", "=", "children", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "values", "....
recursively remove reference to child ModuleItem from children ArrayList
[ "recursively", "remove", "reference", "to", "child", "ModuleItem", "from", "children", "ArrayList" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L898-L914
65,558
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.configureCustomizeBinding
protected void configureCustomizeBinding(Client client, QName portName) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map<String, Object> requestContext = client.getRequestContext(); if (null != requestContext && null != wsrInfo) { PortComponentRefI...
java
protected void configureCustomizeBinding(Client client, QName portName) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map<String, Object> requestContext = client.getRequestContext(); if (null != requestContext && null != wsrInfo) { PortComponentRefI...
[ "protected", "void", "configureCustomizeBinding", "(", "Client", "client", ",", "QName", "portName", ")", "{", "//put all properties defined in ibm-ws-bnd.xml into the client request context", "Map", "<", "String", ",", "Object", ">", "requestContext", "=", "client", ".", ...
Add the LibertyCustomizeBindingOutInterceptor in the out interceptor chain. @param client @param portName
[ "Add", "the", "LibertyCustomizeBindingOutInterceptor", "in", "the", "out", "interceptor", "chain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L134-L165
65,559
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.getWebServiceFeaturesOnPortComponentRef
private WebServiceFeature[] getWebServiceFeaturesOnPortComponentRef(Class serviceEndpointInterface) { WebServiceFeature[] returnArray = {}; if (serviceEndpointInterface != null && wsrInfo != null) { String seiName = serviceEndpointInterface.getName(); PortComponentRefInfo pcr =...
java
private WebServiceFeature[] getWebServiceFeaturesOnPortComponentRef(Class serviceEndpointInterface) { WebServiceFeature[] returnArray = {}; if (serviceEndpointInterface != null && wsrInfo != null) { String seiName = serviceEndpointInterface.getName(); PortComponentRefInfo pcr =...
[ "private", "WebServiceFeature", "[", "]", "getWebServiceFeaturesOnPortComponentRef", "(", "Class", "serviceEndpointInterface", ")", "{", "WebServiceFeature", "[", "]", "returnArray", "=", "{", "}", ";", "if", "(", "serviceEndpointInterface", "!=", "null", "&&", "wsrIn...
Gets an array of features possibly enabled on client's port-component-ref in the deployment descriptor
[ "Gets", "an", "array", "of", "features", "possibly", "enabled", "on", "client", "s", "port", "-", "component", "-", "ref", "in", "the", "deployment", "descriptor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L171-L204
65,560
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.configureClientProperties
private void configureClientProperties() throws IOException { Map<String, String> serviceRefProps = wsrInfo.getProperties(); Iterator<QName> iterator = this.getPorts();//wsrInfo.getBindingPortComponentRefInfoList(); while (null != iterator && iterator.hasNext()) { QName portQName = ...
java
private void configureClientProperties() throws IOException { Map<String, String> serviceRefProps = wsrInfo.getProperties(); Iterator<QName> iterator = this.getPorts();//wsrInfo.getBindingPortComponentRefInfoList(); while (null != iterator && iterator.hasNext()) { QName portQName = ...
[ "private", "void", "configureClientProperties", "(", ")", "throws", "IOException", "{", "Map", "<", "String", ",", "String", ">", "serviceRefProps", "=", "wsrInfo", ".", "getProperties", "(", ")", ";", "Iterator", "<", "QName", ">", "iterator", "=", "this", ...
configure the http conduit properties defined in the custom binding file.
[ "configure", "the", "http", "conduit", "properties", "defined", "in", "the", "custom", "binding", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L209-L222
65,561
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.prepareProperties
private void prepareProperties(QName portQName, Map<String, String> serviceRefProps, Map<String, String> portProps) throws IOException { // Merge the properties form port and service. Map<String, String> allProperties = new HashMap<String, String>(); if (null != serviceRefProps) { a...
java
private void prepareProperties(QName portQName, Map<String, String> serviceRefProps, Map<String, String> portProps) throws IOException { // Merge the properties form port and service. Map<String, String> allProperties = new HashMap<String, String>(); if (null != serviceRefProps) { a...
[ "private", "void", "prepareProperties", "(", "QName", "portQName", ",", "Map", "<", "String", ",", "String", ">", "serviceRefProps", ",", "Map", "<", "String", ",", "String", ">", "portProps", ")", "throws", "IOException", "{", "// Merge the properties form port a...
merge the serviceRef properties and port properties, and update the merged properties in the configAdmin service. @param configAdmin @param serviceRefProps @param portProps @return @throws IOException
[ "merge", "the", "serviceRef", "properties", "and", "port", "properties", "and", "update", "the", "merged", "properties", "in", "the", "configAdmin", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L233-L269
65,562
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.extract
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties, boolean removeProps) { if (null == properties || properties.isEmpty()) { return Collections.<String, String> emptyMap(); } Map<String, String> extractProps = new HashMap<String, String>(); ...
java
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties, boolean removeProps) { if (null == properties || properties.isEmpty()) { return Collections.<String, String> emptyMap(); } Map<String, String> extractProps = new HashMap<String, String>(); ...
[ "protected", "Map", "<", "String", ",", "String", ">", "extract", "(", "String", "propertyPrefix", ",", "Map", "<", "String", ",", "String", ">", "properties", ",", "boolean", "removeProps", ")", "{", "if", "(", "null", "==", "properties", "||", "propertie...
Extract the properties according to the property prefix. @param propertyPrefix @param properties @param removeProps if is true, will remove the properties that have be extracted. @return
[ "Extract", "the", "properties", "according", "to", "the", "property", "prefix", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L279-L299
65,563
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.extract
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties) { return extract(propertyPrefix, properties, true); }
java
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties) { return extract(propertyPrefix, properties, true); }
[ "protected", "Map", "<", "String", ",", "String", ">", "extract", "(", "String", "propertyPrefix", ",", "Map", "<", "String", ",", "String", ">", "properties", ")", "{", "return", "extract", "(", "propertyPrefix", ",", "properties", ",", "true", ")", ";", ...
Extract the properties according to the property prefix, will remove the extracted properties from original properties. @param propertyPrefix @param properties @return
[ "Extract", "the", "properties", "according", "to", "the", "property", "prefix", "will", "remove", "the", "extracted", "properties", "from", "original", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L308-L310
65,564
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java
BasePluginConfigCommandTask.isKnownArgument
private boolean isKnownArgument(String arg) { final String argName = getArgName(arg); for (String key : knownArgs) { if (key.equalsIgnoreCase(argName)) { return true; } } return false; }
java
private boolean isKnownArgument(String arg) { final String argName = getArgName(arg); for (String key : knownArgs) { if (key.equalsIgnoreCase(argName)) { return true; } } return false; }
[ "private", "boolean", "isKnownArgument", "(", "String", "arg", ")", "{", "final", "String", "argName", "=", "getArgName", "(", "arg", ")", ";", "for", "(", "String", "key", ":", "knownArgs", ")", "{", "if", "(", "key", ".", "equalsIgnoreCase", "(", "argN...
Checks if the argument is a known argument to the task. @param arg @return
[ "Checks", "if", "the", "argument", "is", "a", "known", "argument", "to", "the", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java#L153-L161
65,565
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java
BasePluginConfigCommandTask.getTaskHelp
protected String getTaskHelp(String desc, String usage, String optionKeyPrefix, String optionDescPrefix, String addonKey, String footer, Object... args) { StringBuilder scriptHelp = new StringBuilder(); s...
java
protected String getTaskHelp(String desc, String usage, String optionKeyPrefix, String optionDescPrefix, String addonKey, String footer, Object... args) { StringBuilder scriptHelp = new StringBuilder(); s...
[ "protected", "String", "getTaskHelp", "(", "String", "desc", ",", "String", "usage", ",", "String", "optionKeyPrefix", ",", "String", "optionDescPrefix", ",", "String", "addonKey", ",", "String", "footer", ",", "Object", "...", "args", ")", "{", "StringBuilder",...
Generate the formatted task help. @param desc the description NLS key @param usage the usage NLS key @param optionKeyPrefix the option name NLS key prefix @param optionDescPrefix the option description NLS key prefix @param addonKey an addon NLS key prefix @param footer a raw (already translated) String to append to t...
[ "Generate", "the", "formatted", "task", "help", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java#L293-L337
65,566
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getDestination
public String getDestination() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getDestination"); SibTr.exit(tc, "getDestination", destination); } return destination; }
java
public String getDestination() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getDestination"); SibTr.exit(tc, "getDestination", destination); } return destination; }
[ "public", "String", "getDestination", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getDestination\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getDestination\"", ",", "de...
Returns the destination. @return String
[ "Returns", "the", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L91-L100
65,567
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getSelector
public String getSelector() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelector"); SibTr.exit(tc, "getSelector", selector); } return selector; }
java
public String getSelector() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelector"); SibTr.exit(tc, "getSelector", selector); } return selector; }
[ "public", "String", "getSelector", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getSelector\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getSelector\"", ",", "selector", ...
Returns the selector. @return String
[ "Returns", "the", "selector", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L106-L115
65,568
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getSelectorDomain
public int getSelectorDomain() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); SibTr.exit(tc, "getSelectorDomain", new Integer(selectorDomain)); } return selectorDomain; }
java
public int getSelectorDomain() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); SibTr.exit(tc, "getSelectorDomain", new Integer(selectorDomain)); } return selectorDomain; }
[ "public", "int", "getSelectorDomain", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getSelectorDomain\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getSelectorDomain\"", ",",...
Returns the messaging domain in which the selector was sspecified. @return int
[ "Returns", "the", "messaging", "domain", "in", "which", "the", "selector", "was", "sspecified", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L121-L130
65,569
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getUser
public String getUser() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getUser"); SibTr.exit(tc, "getUser", user); } return user; }
java
public String getUser() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getUser"); SibTr.exit(tc, "getUser", user); } return user; }
[ "public", "String", "getUser", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getUser\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getUser\"", ",", "user", ")", ";", ...
Returns the user. @return String
[ "Returns", "the", "user", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L151-L160
65,570
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setDestination
public void setDestination(String destination) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setDestination", destination); this.destination = destination; if (tc.isEntryEnabled()) SibTr.exit(tc, "setDestination"); }
java
public void setDestination(String destination) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setDestination", destination); this.destination = destination; if (tc.isEntryEnabled()) SibTr.exit(tc, "setDestination"); }
[ "public", "void", "setDestination", "(", "String", "destination", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setDestination\"", ",", "destination", ")", ";", "this", ".", "destination", "=", ...
Sets the destination. @param destination The destination to set
[ "Sets", "the", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L166-L175
65,571
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setSelector
public void setSelector(String selector) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setSelector", selector); this.selector = selector; if (tc.isEntryEnabled()) SibTr.exit(tc, "setSelector"); }
java
public void setSelector(String selector) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setSelector", selector); this.selector = selector; if (tc.isEntryEnabled()) SibTr.exit(tc, "setSelector"); }
[ "public", "void", "setSelector", "(", "String", "selector", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setSelector\"", ",", "selector", ")", ";", "this", ".", "selector", "=", "selector", ...
Sets the selector. @param selector The selector to set
[ "Sets", "the", "selector", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L181-L190
65,572
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setTopic
public void setTopic(String topic) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setTopic", topic); this.topic = topic; if (tc.isEntryEnabled()) SibTr.exit(tc, "setTopic"); }
java
public void setTopic(String topic) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setTopic", topic); this.topic = topic; if (tc.isEntryEnabled()) SibTr.exit(tc, "setTopic"); }
[ "public", "void", "setTopic", "(", "String", "topic", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setTopic\"", ",", "topic", ")", ";", "this", ".", "topic", "=", "topic", ";", "if", "("...
Sets the topic. @param topic The topic to set
[ "Sets", "the", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L196-L205
65,573
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.isNoLocal
public boolean isNoLocal() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "isNoLocal"); SibTr.exit(tc, "isNoLocal", new Boolean(noLocal)); } return noLocal; }
java
public boolean isNoLocal() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "isNoLocal"); SibTr.exit(tc, "isNoLocal", new Boolean(noLocal)); } return noLocal; }
[ "public", "boolean", "isNoLocal", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"isNoLocal\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"isNoLocal\"", ",", "new", "Boolean...
Returns the noLocal. @return boolean
[ "Returns", "the", "noLocal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L226-L235
65,574
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setNoLocal
public void setNoLocal(boolean noLocal) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setNoLocal", new Boolean(noLocal)); this.noLocal = noLocal; if (tc.isEntryEnabled()) SibTr.exit(tc, "setNoLocal"); }
java
public void setNoLocal(boolean noLocal) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setNoLocal", new Boolean(noLocal)); this.noLocal = noLocal; if (tc.isEntryEnabled()) SibTr.exit(tc, "setNoLocal"); }
[ "public", "void", "setNoLocal", "(", "boolean", "noLocal", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setNoLocal\"", ",", "new", "Boolean", "(", "noLocal", ")", ")", ";", "this", ".", "n...
Sets the noLocal. @param noLocal The noLocal to set
[ "Sets", "the", "noLocal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L241-L250
65,575
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java
JAXBUtils.namespaceURIToPackage
@FFDCIgnore(URISyntaxException.class) public static String namespaceURIToPackage(String namespaceURI) { try { return nameSpaceURIToPackage(new URI(namespaceURI)); } catch (URISyntaxException ex) { return null; } }
java
@FFDCIgnore(URISyntaxException.class) public static String namespaceURIToPackage(String namespaceURI) { try { return nameSpaceURIToPackage(new URI(namespaceURI)); } catch (URISyntaxException ex) { return null; } }
[ "@", "FFDCIgnore", "(", "URISyntaxException", ".", "class", ")", "public", "static", "String", "namespaceURIToPackage", "(", "String", "namespaceURI", ")", "{", "try", "{", "return", "nameSpaceURIToPackage", "(", "new", "URI", "(", "namespaceURI", ")", ")", ";",...
Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0. @param namespaceURI the namespace URI. @return the package name.
[ "Generates", "a", "Java", "package", "name", "from", "a", "URI", "according", "to", "the", "algorithm", "outlined", "in", "JAXB", "2", ".", "0", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java#L269-L276
65,576
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java
JAXBUtils.nameToIdentifier
public static String nameToIdentifier(String name, IdentifierType type) { if (null == name || name.length() == 0) { return name; } // algorithm will not change an XML name that is already a legal and // conventional (!) Java class, method, or constant identifier bo...
java
public static String nameToIdentifier(String name, IdentifierType type) { if (null == name || name.length() == 0) { return name; } // algorithm will not change an XML name that is already a legal and // conventional (!) Java class, method, or constant identifier bo...
[ "public", "static", "String", "nameToIdentifier", "(", "String", "name", ",", "IdentifierType", "type", ")", "{", "if", "(", "null", "==", "name", "||", "name", ".", "length", "(", ")", "==", "0", ")", "{", "return", "name", ";", "}", "// algorithm will ...
Converts an XML name to a Java identifier according to the mapping algorithm outlined in the JAXB specification @param name the XML name @return the Java identifier
[ "Converts", "an", "XML", "name", "to", "a", "Java", "identifier", "according", "to", "the", "mapping", "algorithm", "outlined", "in", "the", "JAXB", "specification" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java#L402-L445
65,577
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getDefaultSSLSocketFactory
public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty("ssl.Soc...
java
public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty("ssl.Soc...
[ "public", "static", "String", "getDefaultSSLSocketFactory", "(", ")", "{", "if", "(", "defaultSSLSocketFactory", "==", "null", ")", "{", "defaultSSLSocketFactory", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">", "(",...
Get the default SSLSocketFactory from Security. @return String
[ "Get", "the", "default", "SSLSocketFactory", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L203-L214
65,578
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getDefaultSSLServerSocketFactory
public static String getDefaultSSLServerSocketFactory() { if (defaultSSLServerSocketFactory == null) { defaultSSLServerSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.ge...
java
public static String getDefaultSSLServerSocketFactory() { if (defaultSSLServerSocketFactory == null) { defaultSSLServerSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.ge...
[ "public", "static", "String", "getDefaultSSLServerSocketFactory", "(", ")", "{", "if", "(", "defaultSSLServerSocketFactory", "==", "null", ")", "{", "defaultSSLServerSocketFactory", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Stri...
Get the default SSLServerSocketFactory class from Security. @return String
[ "Get", "the", "default", "SSLServerSocketFactory", "class", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L221-L232
65,579
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getKeyManagerFactoryAlgorithm
public static String getKeyManagerFactoryAlgorithm() { if (keyManagerFactoryAlgorithm == null) { keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty...
java
public static String getKeyManagerFactoryAlgorithm() { if (keyManagerFactoryAlgorithm == null) { keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty...
[ "public", "static", "String", "getKeyManagerFactoryAlgorithm", "(", ")", "{", "if", "(", "keyManagerFactoryAlgorithm", "==", "null", ")", "{", "keyManagerFactoryAlgorithm", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">...
Get the key manager factory algorithm default from Security. @return String
[ "Get", "the", "key", "manager", "factory", "algorithm", "default", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L239-L250
65,580
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getTrustManagerFactoryAlgorithm
public static String getTrustManagerFactoryAlgorithm() { if (trustManagerFactoryAlgorithm == null) { trustManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getPr...
java
public static String getTrustManagerFactoryAlgorithm() { if (trustManagerFactoryAlgorithm == null) { trustManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getPr...
[ "public", "static", "String", "getTrustManagerFactoryAlgorithm", "(", ")", "{", "if", "(", "trustManagerFactoryAlgorithm", "==", "null", ")", "{", "trustManagerFactoryAlgorithm", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String"...
Get the trust manager factory algorithm default from Security. @return String
[ "Get", "the", "trust", "manager", "factory", "algorithm", "default", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L257-L268
65,581
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.initializeIBMCMSProvider
public static void initializeIBMCMSProvider() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "initializeIBMCMSProvider"); Provider provider = Security.getProvider(Constants.IBMCMS_NAME); if (provider != null) { if (Trace...
java
public static void initializeIBMCMSProvider() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "initializeIBMCMSProvider"); Provider provider = Security.getProvider(Constants.IBMCMS_NAME); if (provider != null) { if (Trace...
[ "public", "static", "void", "initializeIBMCMSProvider", "(", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"initiali...
Initialize the IBM CMS provider. @throws Exception
[ "Initialize", "the", "IBM", "CMS", "provider", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L275-L307
65,582
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.insertProviderAt
public static void insertProviderAt(Provider newProvider, int slot) { Provider[] provider_list = Security.getProviders(); if (null == provider_list || 0 == provider_list.length) { return; } // add the new provider to the new list at the correct slot #. Provider[] new...
java
public static void insertProviderAt(Provider newProvider, int slot) { Provider[] provider_list = Security.getProviders(); if (null == provider_list || 0 == provider_list.length) { return; } // add the new provider to the new list at the correct slot #. Provider[] new...
[ "public", "static", "void", "insertProviderAt", "(", "Provider", "newProvider", ",", "int", "slot", ")", "{", "Provider", "[", "]", "provider_list", "=", "Security", ".", "getProviders", "(", ")", ";", "if", "(", "null", "==", "provider_list", "||", "0", "...
Insert a provider into Security at the provided slot number. @param newProvider @param slot
[ "Insert", "a", "provider", "into", "Security", "at", "the", "provided", "slot", "number", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L394-L432
65,583
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.removeAllProviders
public static void removeAllProviders() { Provider[] provider_list = Security.getProviders(); for (int i = 0; i < provider_list.length; i++) { if (provider_list[i] != null) { String name = provider_list[i].getName(); if (name != null) { Se...
java
public static void removeAllProviders() { Provider[] provider_list = Security.getProviders(); for (int i = 0; i < provider_list.length; i++) { if (provider_list[i] != null) { String name = provider_list[i].getName(); if (name != null) { Se...
[ "public", "static", "void", "removeAllProviders", "(", ")", "{", "Provider", "[", "]", "provider_list", "=", "Security", ".", "getProviders", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "provider_list", ".", "length", ";", "i", "++"...
Remove all providers from Security.
[ "Remove", "all", "providers", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L437-L448
65,584
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AppConfigChecker.java
AppConfigChecker.validateAsyncOnInterfaces
static void validateAsyncOnInterfaces(Class<?>[] ifaces, TraceComponent tc) { if (ifaces != null) { for (Class<?> iface : ifaces) { // d645943 - Modified the fix integrated for d618337 to include both // the class-level and method-level checks. Since no-interface vie...
java
static void validateAsyncOnInterfaces(Class<?>[] ifaces, TraceComponent tc) { if (ifaces != null) { for (Class<?> iface : ifaces) { // d645943 - Modified the fix integrated for d618337 to include both // the class-level and method-level checks. Since no-interface vie...
[ "static", "void", "validateAsyncOnInterfaces", "(", "Class", "<", "?", ">", "[", "]", "ifaces", ",", "TraceComponent", "tc", ")", "{", "if", "(", "ifaces", "!=", "null", ")", "{", "for", "(", "Class", "<", "?", ">", "iface", ":", "ifaces", ")", "{", ...
F743-13921
[ "F743", "-", "13921" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AppConfigChecker.java#L53-L77
65,585
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.modified
@Modified protected void modified(ComponentContext context) throws Exception { processProperties(context.getProperties()); deregisterJavaMailMBean(); registerJavaMailMBean(); }
java
@Modified protected void modified(ComponentContext context) throws Exception { processProperties(context.getProperties()); deregisterJavaMailMBean(); registerJavaMailMBean(); }
[ "@", "Modified", "protected", "void", "modified", "(", "ComponentContext", "context", ")", "throws", "Exception", "{", "processProperties", "(", "context", ".", "getProperties", "(", ")", ")", ";", "deregisterJavaMailMBean", "(", ")", ";", "registerJavaMailMBean", ...
The Modified method is how the properties that are defined in the mailSession object of the server.xml are extracted and stored in the sessionProperties. @param context @param bundleContext @throws Exception
[ "The", "Modified", "method", "is", "how", "the", "properties", "that", "are", "defined", "in", "the", "mailSession", "object", "of", "the", "server", ".", "xml", "are", "extracted", "and", "stored", "in", "the", "sessionProperties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L132-L138
65,586
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createResource
@Override public Object createResource(ResourceInfo info) throws Exception { Properties propertyNames = createPropertyNames(); Properties props = createProperties(propertyNames); // The listOfPropMap is how the nested properties (name, value pairs) are // pulled from the Nester clas...
java
@Override public Object createResource(ResourceInfo info) throws Exception { Properties propertyNames = createPropertyNames(); Properties props = createProperties(propertyNames); // The listOfPropMap is how the nested properties (name, value pairs) are // pulled from the Nester clas...
[ "@", "Override", "public", "Object", "createResource", "(", "ResourceInfo", "info", ")", "throws", "Exception", "{", "Properties", "propertyNames", "=", "createPropertyNames", "(", ")", ";", "Properties", "props", "=", "createProperties", "(", "propertyNames", ")", ...
The createResource uses the sessionProperties to create a javax.mail.Session object and return it to the caller. The caller uses JNDI look up with the JNDI name defined in the server.xml.
[ "The", "createResource", "uses", "the", "sessionProperties", "to", "create", "a", "javax", ".", "mail", ".", "Session", "object", "and", "return", "it", "to", "the", "caller", ".", "The", "caller", "uses", "JNDI", "look", "up", "with", "the", "JNDI", "name...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L159-L178
65,587
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createProperties
private Properties createProperties(Properties propertyNames) { Properties props = new Properties(); for (String key : propertiesArray) { if (sessionProperties.get(key) != null) { if (!key.equalsIgnoreCase(STOREPROTOCOLCLASSNAME) && !key.equalsIgnoreCase(TRANSPORTPROTOCOLCLAS...
java
private Properties createProperties(Properties propertyNames) { Properties props = new Properties(); for (String key : propertiesArray) { if (sessionProperties.get(key) != null) { if (!key.equalsIgnoreCase(STOREPROTOCOLCLASSNAME) && !key.equalsIgnoreCase(TRANSPORTPROTOCOLCLAS...
[ "private", "Properties", "createProperties", "(", "Properties", "propertyNames", ")", "{", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "for", "(", "String", "key", ":", "propertiesArray", ")", "{", "if", "(", "sessionProperties", ".", "get"...
The createProperties method will iterate through the sessionProperties and put them into the props object so that it can be used to create the javax.mail.Session @param propertyNames @param props
[ "The", "createProperties", "method", "will", "iterate", "through", "the", "sessionProperties", "and", "put", "them", "into", "the", "props", "object", "so", "that", "it", "can", "be", "used", "to", "create", "the", "javax", ".", "mail", ".", "Session" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L187-L207
65,588
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createPropertyNames
private Properties createPropertyNames() { Properties propertyNames = new Properties(); propertyNames.setProperty(HOST, "mail.host"); propertyNames.setProperty(USER, "mail.user"); propertyNames.setProperty(FROM, "mail.from"); propertyNames.setProperty(TRANSPORTPROTOCOL, "ma...
java
private Properties createPropertyNames() { Properties propertyNames = new Properties(); propertyNames.setProperty(HOST, "mail.host"); propertyNames.setProperty(USER, "mail.user"); propertyNames.setProperty(FROM, "mail.from"); propertyNames.setProperty(TRANSPORTPROTOCOL, "ma...
[ "private", "Properties", "createPropertyNames", "(", ")", "{", "Properties", "propertyNames", "=", "new", "Properties", "(", ")", ";", "propertyNames", ".", "setProperty", "(", "HOST", ",", "\"mail.host\"", ")", ";", "propertyNames", ".", "setProperty", "(", "US...
The createPropertyName method sets a property for five special strings that can be set in a different method such as mail.host. These are different way to set certain property values and are unique to these five
[ "The", "createPropertyName", "method", "sets", "a", "property", "for", "five", "special", "strings", "that", "can", "be", "set", "in", "a", "different", "method", "such", "as", "mail", ".", "host", ".", "These", "are", "different", "way", "to", "set", "cer...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L215-L227
65,589
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createSession
private Session createSession(Properties props) throws InvalidPasswordDecodingException, UnsupportedCryptoAlgorithmException { Session session = null; // Since the password attribute in the server.xml is masked // the decryption algorythm is needed to before it can be put // it int...
java
private Session createSession(Properties props) throws InvalidPasswordDecodingException, UnsupportedCryptoAlgorithmException { Session session = null; // Since the password attribute in the server.xml is masked // the decryption algorythm is needed to before it can be put // it int...
[ "private", "Session", "createSession", "(", "Properties", "props", ")", "throws", "InvalidPasswordDecodingException", ",", "UnsupportedCryptoAlgorithmException", "{", "Session", "session", "=", "null", ";", "// Since the password attribute in the server.xml is masked", "// the de...
The createSession method creates a session using the props, if the password is specified in the server.xml then a session is creating using the password. If it is not specified then session is created with out a authenticator. @param props @return session @throws UnsupportedCryptoAlgorithmException @throws InvalidPass...
[ "The", "createSession", "method", "creates", "a", "session", "using", "the", "props", "if", "the", "password", "is", "specified", "in", "the", "server", ".", "xml", "then", "a", "session", "is", "creating", "using", "the", "password", ".", "If", "it", "is"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L240-L272
65,590
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.setMailSessionRegistrar
@Reference(service = MailSessionRegistrar.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL, target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)") protected void setMailSessionRegistrar...
java
@Reference(service = MailSessionRegistrar.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL, target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)") protected void setMailSessionRegistrar...
[ "@", "Reference", "(", "service", "=", "MailSessionRegistrar", ".", "class", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ",", "target", "=", "\"(component.name=com.ibm.ws.javamail.management.j2...
Declarative Services method for setting mail session registrar
[ "Declarative", "Services", "method", "for", "setting", "mail", "session", "registrar" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L277-L284
65,591
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmImpl.java
MPAlarmImpl.reset
void reset(long time, long latest, AlarmListener listener, Object context, long index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "reset", new Object[] { new Long(time), new Long(latest), lis...
java
void reset(long time, long latest, AlarmListener listener, Object context, long index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "reset", new Object[] { new Long(time), new Long(latest), lis...
[ "void", "reset", "(", "long", "time", ",", "long", "latest", ",", "AlarmListener", "listener", ",", "Object", "context", ",", "long", "index", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "...
reset this alarm's values @param time @param latest @param listener @param context
[ "reset", "this", "alarm", "s", "values" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmImpl.java#L131-L155
65,592
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/config/HpelConfigurator.java
HpelConfigurator.init
public static synchronized void init(HpelTraceServiceConfig config) { if (config == null) throw new NullPointerException("LogProviderConfig must not be null"); loggingConfig.compareAndSet(null, config); }
java
public static synchronized void init(HpelTraceServiceConfig config) { if (config == null) throw new NullPointerException("LogProviderConfig must not be null"); loggingConfig.compareAndSet(null, config); }
[ "public", "static", "synchronized", "void", "init", "(", "HpelTraceServiceConfig", "config", ")", "{", "if", "(", "config", "==", "null", ")", "throw", "new", "NullPointerException", "(", "\"LogProviderConfig must not be null\"", ")", ";", "loggingConfig", ".", "com...
Initializes HPEL Configuration proxy
[ "Initializes", "HPEL", "Configuration", "proxy" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/config/HpelConfigurator.java#L28-L33
65,593
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/exceptions/DataStoreAdapterException.java
DataStoreAdapterException.getLinkedException
@Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; } else { t = t.getCause(); } } ...
java
@Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; } else { t = t.getCause(); } } ...
[ "@", "Override", "public", "Exception", "getLinkedException", "(", ")", "{", "//return (Exception) getCause();", "Throwable", "t", "=", "getCause", "(", ")", ";", "while", "(", "t", "!=", "null", ")", "{", "if", "(", "t", "instanceof", "Exception", ")", "{",...
Retrieve the exception that was saved away @return Exception
[ "Retrieve", "the", "exception", "that", "was", "saved", "away" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/exceptions/DataStoreAdapterException.java#L196-L208
65,594
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.lock
public synchronized void lock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "lock", this); boolean interrupted = false; // Attempt to get a lock on the mutex. // if we fail, then that is because the lock // must be held exclusively. while (!tryLock()) try { // Wait f...
java
public synchronized void lock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "lock", this); boolean interrupted = false; // Attempt to get a lock on the mutex. // if we fail, then that is because the lock // must be held exclusively. while (!tryLock()) try { // Wait f...
[ "public", "synchronized", "void", "lock", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"lock\"", ",", "this", ")", ";", "boolean", "interrupted", "=", "false", ";", "// Attempt to get a lo...
This method allows multiple lockers to lock the same mutex, until the lock exclusive is called. Then all lock requesters have to wait until the exclusive lock is released.
[ "This", "method", "allows", "multiple", "lockers", "to", "lock", "the", "same", "mutex", "until", "the", "lock", "exclusive", "is", "called", ".", "Then", "all", "lock", "requesters", "have", "to", "wait", "until", "the", "exclusive", "lock", "is", "released...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L82-L112
65,595
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.tryLock
private boolean tryLock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLock", this); boolean result = false; synchronized (iMutex) { // Check that we aren't exclusively locked. if (!iExclusivelyLocked || iExclusiveLockHolder == Thread.currentThread()) { incrementThr...
java
private boolean tryLock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLock", this); boolean result = false; synchronized (iMutex) { // Check that we aren't exclusively locked. if (!iExclusivelyLocked || iExclusiveLockHolder == Thread.currentThread()) { incrementThr...
[ "private", "boolean", "tryLock", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"tryLock\"", ",", "this", ")", ";", "boolean", "result", "=", "false", ";", "synchronized", "(", "iMutex", ...
This method increments a the number of locks that have been obtained. If the thread requesting the lock happens to be the thread that already has the exclusive lock we let that succeed as we don't want to cause any dead locks ! @return boolean if the lock was achieved.
[ "This", "method", "increments", "a", "the", "number", "of", "locks", "that", "have", "been", "obtained", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L125-L146
65,596
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.incrementThreadLockCount
private void incrementThreadLockCount() { if (tc.isEntryEnabled()) SibTr.entry(tc, "incrementThreadLockCount", this); //get the current thread Thread currentThread = Thread.currentThread(); //get it's current read lock count LockCount count = (LockCount) readerThreads.get(currentThread); ...
java
private void incrementThreadLockCount() { if (tc.isEntryEnabled()) SibTr.entry(tc, "incrementThreadLockCount", this); //get the current thread Thread currentThread = Thread.currentThread(); //get it's current read lock count LockCount count = (LockCount) readerThreads.get(currentThread); ...
[ "private", "void", "incrementThreadLockCount", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"incrementThreadLockCount\"", ",", "this", ")", ";", "//get the current thread", "Thread", "currentThrea...
The mutex must be held before calling this method. Increments the read lock count for a given thread. If this is the first time a given thread has taken a read lock, a new entry is created for it in the HashMap.
[ "The", "mutex", "must", "be", "held", "before", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L155-L176
65,597
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.alienReadLocksHeld
private boolean alienReadLocksHeld() { if (tc.isEntryEnabled()) SibTr.entry(tc, "alienReadLocksHeld", this); boolean locksHeld = false; //if there is more than one thread holding read locks then return true if(readerThreadCount > 1) { locksHeld = true; } //if there is...
java
private boolean alienReadLocksHeld() { if (tc.isEntryEnabled()) SibTr.entry(tc, "alienReadLocksHeld", this); boolean locksHeld = false; //if there is more than one thread holding read locks then return true if(readerThreadCount > 1) { locksHeld = true; } //if there is...
[ "private", "boolean", "alienReadLocksHeld", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"alienReadLocksHeld\"", ",", "this", ")", ";", "boolean", "locksHeld", "=", "false", ";", "//if there...
The mutex must be help before calling this method. Are there any read locks held by threads other than the current one? @return true if there any read locks held by threads other than the current one
[ "The", "mutex", "must", "be", "help", "before", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L303-L331
65,598
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.tryLockExclusive
private boolean tryLockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLockExclusive", this); boolean result = false; // Synchronize on the locking Mutex synchronized (iMutex) { // If it isn't already locked - lock it on this thread. if (!iExclusivelyLocked) { ...
java
private boolean tryLockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLockExclusive", this); boolean result = false; // Synchronize on the locking Mutex synchronized (iMutex) { // If it isn't already locked - lock it on this thread. if (!iExclusivelyLocked) { ...
[ "private", "boolean", "tryLockExclusive", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"tryLockExclusive\"", ",", "this", ")", ";", "boolean", "result", "=", "false", ";", "// Synchronize on...
This method attempts to lock the exclusively and won't succeed until it has the exclusive lock. @return boolean true if it is now the exclusive lock holder, false if a wait is still needed to lock exclusively
[ "This", "method", "attempts", "to", "lock", "the", "exclusively", "and", "won", "t", "succeed", "until", "it", "has", "the", "exclusive", "lock", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L342-L387
65,599
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.unlockExclusive
public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThread() == iExclusiveLockHold...
java
public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThread() == iExclusiveLockHold...
[ "public", "synchronized", "void", "unlockExclusive", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"unlockExclusive\"", ",", "this", ")", ";", "// Synchronize on the locking Mutex.", "synchronized"...
This method unlocks the exclusive lock that was held. It also notifies any lock waiters.
[ "This", "method", "unlocks", "the", "exclusive", "lock", "that", "was", "held", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L395-L432