repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionRequestInfo.java
JmsJcaConnectionRequestInfo.setSICoreConnection
void setSICoreConnection(final SICoreConnection connection) { if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "setSICoreConnection", connection); } _coreConnection = connection; if (TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "setSICoreConnection")...
java
void setSICoreConnection(final SICoreConnection connection) { if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "setSICoreConnection", connection); } _coreConnection = connection; if (TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "setSICoreConnection")...
[ "void", "setSICoreConnection", "(", "final", "SICoreConnection", "connection", ")", "{", "if", "(", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"setSICoreConnection\"", ",", "connection", ")", ...
Sets the connection that was created as a result of this request. @param connection the connection
[ "Sets", "the", "connection", "that", "was", "created", "as", "a", "result", "of", "this", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionRequestInfo.java#L191-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java
ZipFileHandleImpl.open
@Override @Trivial public ZipFile open() throws IOException { String methodName = "open"; synchronized( zipFileLock ) { if ( zipFile == null ) { debug(methodName, "Opening"); if ( zipFileReaper == null ) { zipFile = ZipFileUtils.op...
java
@Override @Trivial public ZipFile open() throws IOException { String methodName = "open"; synchronized( zipFileLock ) { if ( zipFile == null ) { debug(methodName, "Opening"); if ( zipFileReaper == null ) { zipFile = ZipFileUtils.op...
[ "@", "Override", "@", "Trivial", "public", "ZipFile", "open", "(", ")", "throws", "IOException", "{", "String", "methodName", "=", "\"open\"", ";", "synchronized", "(", "zipFileLock", ")", "{", "if", "(", "zipFile", "==", "null", ")", "{", "debug", "(", ...
Open the zip file. Create and assign the zip file if this is the first open. Increase the open count by one. If this is the first open and the zip file could not be created, the open count is not increased. @return The zip file.
[ "Open", "the", "zip", "file", ".", "Create", "and", "assign", "the", "zip", "file", "if", "this", "is", "the", "first", "open", ".", "Increase", "the", "open", "count", "by", "one", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java#L142-L162
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java
ZipFileHandleImpl.getInputStream
@Override @Trivial public InputStream getInputStream(ZipFile useZipFile, ZipEntry zipEntry) throws IOException { String methodName = "getInputStream"; String entryName = zipEntry.getName(); if ( zipEntry.isDirectory() ) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebu...
java
@Override @Trivial public InputStream getInputStream(ZipFile useZipFile, ZipEntry zipEntry) throws IOException { String methodName = "getInputStream"; String entryName = zipEntry.getName(); if ( zipEntry.isDirectory() ) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebu...
[ "@", "Override", "@", "Trivial", "public", "InputStream", "getInputStream", "(", "ZipFile", "useZipFile", ",", "ZipEntry", "zipEntry", ")", "throws", "IOException", "{", "String", "methodName", "=", "\"getInputStream\"", ";", "String", "entryName", "=", "zipEntry", ...
Answer an input stream for an entry of a zip file. When the entry is a class entry which has 8K or fewer bytes, read all of the entry bytes immediately and cache the bytes in this handle. Subsequent input stream requests which locate cached bytes will answer a stream on those bytes. @param useZipFile The zip file fo...
[ "Answer", "an", "input", "stream", "for", "an", "entry", "of", "a", "zip", "file", ".", "When", "the", "entry", "is", "a", "class", "entry", "which", "has", "8K", "or", "fewer", "bytes", "read", "all", "of", "the", "entry", "bytes", "immediately", "and...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java#L276-L365
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java
ZipFileHandleImpl.read
@Trivial private static byte[] read(InputStream inputStream, int expectedRead, String name) throws IOException { byte[] bytes = new byte[expectedRead]; int remainingRead = expectedRead; int totalRead = 0; while ( remainingRead > 0 ) { int nextRead = inputStream.read(byt...
java
@Trivial private static byte[] read(InputStream inputStream, int expectedRead, String name) throws IOException { byte[] bytes = new byte[expectedRead]; int remainingRead = expectedRead; int totalRead = 0; while ( remainingRead > 0 ) { int nextRead = inputStream.read(byt...
[ "@", "Trivial", "private", "static", "byte", "[", "]", "read", "(", "InputStream", "inputStream", ",", "int", "expectedRead", ",", "String", "name", ")", "throws", "IOException", "{", "byte", "[", "]", "bytes", "=", "new", "byte", "[", "expectedRead", "]",...
Read an exact count of bytes from an input stream. @param inputStream The stream from which to read the bytes. @param expectedRead The number of bytes which are to be read. @param name A name associated with the stream. @return The bytes read from the stream. @throws IOException Throw if the read failed, including ...
[ "Read", "an", "exact", "count", "of", "bytes", "from", "an", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileHandleImpl.java#L380-L406
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java
EsaResourceImpl.findVersion
private String findVersion() { WlpInformation wlp = _asset.getWlpInformation(); if (wlp == null) { return null; } Collection<AppliesToFilterInfo> filterInfo = wlp.getAppliesToFilterInfo(); if (filterInfo == null) { return null; } for (App...
java
private String findVersion() { WlpInformation wlp = _asset.getWlpInformation(); if (wlp == null) { return null; } Collection<AppliesToFilterInfo> filterInfo = wlp.getAppliesToFilterInfo(); if (filterInfo == null) { return null; } for (App...
[ "private", "String", "findVersion", "(", ")", "{", "WlpInformation", "wlp", "=", "_asset", ".", "getWlpInformation", "(", ")", ";", "if", "(", "wlp", "==", "null", ")", "{", "return", "null", ";", "}", "Collection", "<", "AppliesToFilterInfo", ">", "filter...
Uses the filter information to return the first version number @return the first version number
[ "Uses", "the", "filter", "information", "to", "return", "the", "first", "version", "number" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java#L121-L138
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java
EsaResourceImpl.addVersionDisplayString
private void addVersionDisplayString() { WlpInformation wlp = _asset.getWlpInformation(); JavaSEVersionRequirements reqs = wlp.getJavaSEVersionRequirements(); if (reqs == null) { return; } String minVersion = reqs.getMinVersion(); // Null means no requiremen...
java
private void addVersionDisplayString() { WlpInformation wlp = _asset.getWlpInformation(); JavaSEVersionRequirements reqs = wlp.getJavaSEVersionRequirements(); if (reqs == null) { return; } String minVersion = reqs.getMinVersion(); // Null means no requiremen...
[ "private", "void", "addVersionDisplayString", "(", ")", "{", "WlpInformation", "wlp", "=", "_asset", ".", "getWlpInformation", "(", ")", ";", "JavaSEVersionRequirements", "reqs", "=", "wlp", ".", "getJavaSEVersionRequirements", "(", ")", ";", "if", "(", "reqs", ...
This generates the string that should be displayed on the website to indicate the supported Java versions. The requirements come from the bundle manifests. The mapping between the two is non-obvious, as it is the intersection between the Java EE requirement and the versions of Java that Liberty supports.
[ "This", "generates", "the", "string", "that", "should", "be", "displayed", "on", "the", "website", "to", "indicate", "the", "supported", "Java", "versions", ".", "The", "requirements", "come", "from", "the", "bundle", "manifests", ".", "The", "mapping", "betwe...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java#L221-L274
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java
EsaResourceImpl.removeRequireFeatureWithToleratesIfExists
private void removeRequireFeatureWithToleratesIfExists(String feature) { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { for (RequireFeatureWithTolerates toCheck : rfwt) { if (toCheck.getFeature()...
java
private void removeRequireFeatureWithToleratesIfExists(String feature) { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { for (RequireFeatureWithTolerates toCheck : rfwt) { if (toCheck.getFeature()...
[ "private", "void", "removeRequireFeatureWithToleratesIfExists", "(", "String", "feature", ")", "{", "Collection", "<", "RequireFeatureWithTolerates", ">", "rfwt", "=", "_asset", ".", "getWlpInformation", "(", ")", ".", "getRequireFeatureWithTolerates", "(", ")", ";", ...
Looks in the underlying asset to see if there is a requireFeatureWithTolerates entry for the supplied feature, and if there is, removes it.
[ "Looks", "in", "the", "underlying", "asset", "to", "see", "if", "there", "is", "a", "requireFeatureWithTolerates", "entry", "for", "the", "supplied", "feature", "and", "if", "there", "is", "removes", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java#L489-L499
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java
EsaResourceImpl.copyRequireFeatureToRequireFeatureWithTolerates
private void copyRequireFeatureToRequireFeatureWithTolerates() { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { // Both fields (with and without tolerates) should exist, as // rfwt should not be crea...
java
private void copyRequireFeatureToRequireFeatureWithTolerates() { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { // Both fields (with and without tolerates) should exist, as // rfwt should not be crea...
[ "private", "void", "copyRequireFeatureToRequireFeatureWithTolerates", "(", ")", "{", "Collection", "<", "RequireFeatureWithTolerates", ">", "rfwt", "=", "_asset", ".", "getWlpInformation", "(", ")", ".", "getRequireFeatureWithTolerates", "(", ")", ";", "if", "(", "rfw...
requireFeature was the old field in the asset which didn't contain tolerates information. The new field is requireFeatureWithTolerates, and for the moment, both fields are being maintained, as older assets in the repository will only have the older field. When older assets are being written to, the data from the older ...
[ "requireFeature", "was", "the", "old", "field", "in", "the", "asset", "which", "didn", "t", "contain", "tolerates", "information", ".", "The", "new", "field", "is", "requireFeatureWithTolerates", "and", "for", "the", "moment", "both", "fields", "are", "being", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/EsaResourceImpl.java#L509-L534
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.1.2.weld/src/com/ibm/ws/cdi/utils/WeldCDIUtils.java
WeldCDIUtils.isClassVetoed
public static boolean isClassVetoed(Class<?> type) { if (type.isAnnotationPresent(Vetoed.class)) { return true; } return isPackageVetoed(type.getPackage()); }
java
public static boolean isClassVetoed(Class<?> type) { if (type.isAnnotationPresent(Vetoed.class)) { return true; } return isPackageVetoed(type.getPackage()); }
[ "public", "static", "boolean", "isClassVetoed", "(", "Class", "<", "?", ">", "type", ")", "{", "if", "(", "type", ".", "isAnnotationPresent", "(", "Vetoed", ".", "class", ")", ")", "{", "return", "true", ";", "}", "return", "isPackageVetoed", "(", "type"...
Return true if the class is vetoed or the package is vetoed @param type class @return true if the class is vetoed or the package is vetoed, false otherwise
[ "Return", "true", "if", "the", "class", "is", "vetoed", "or", "the", "package", "is", "vetoed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.1.2.weld/src/com/ibm/ws/cdi/utils/WeldCDIUtils.java#L52-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java
TwitterEndpointServices.populateCommonAuthzHeaderParams
private Map<String, String> populateCommonAuthzHeaderParams() { Map<String, String> parameters = new HashMap<String, String>(); parameters.put(TwitterConstants.PARAM_OAUTH_CONSUMER_KEY, consumerKey); parameters.put(TwitterConstants.PARAM_OAUTH_NONCE, Utils.generateNonce()); parameters.p...
java
private Map<String, String> populateCommonAuthzHeaderParams() { Map<String, String> parameters = new HashMap<String, String>(); parameters.put(TwitterConstants.PARAM_OAUTH_CONSUMER_KEY, consumerKey); parameters.put(TwitterConstants.PARAM_OAUTH_NONCE, Utils.generateNonce()); parameters.p...
[ "private", "Map", "<", "String", ",", "String", ">", "populateCommonAuthzHeaderParams", "(", ")", "{", "Map", "<", "String", ",", "String", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "parameters", ".", "pu...
Creates a map of parameters and values that are common to all requests that require an Authorization header. @return
[ "Creates", "a", "map", "of", "parameters", "and", "values", "that", "are", "common", "to", "all", "requests", "that", "require", "an", "Authorization", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java#L368-L378
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java
TwitterEndpointServices.signAndCreateAuthzHeader
private String signAndCreateAuthzHeader(String endpointUrl, Map<String, String> parameters) { String signature = computeSignature(requestMethod, endpointUrl, parameters); parameters.put(TwitterConstants.PARAM_OAUTH_SIGNATURE, signature); String authzHeaderString = createAuthorizationHeaderStri...
java
private String signAndCreateAuthzHeader(String endpointUrl, Map<String, String> parameters) { String signature = computeSignature(requestMethod, endpointUrl, parameters); parameters.put(TwitterConstants.PARAM_OAUTH_SIGNATURE, signature); String authzHeaderString = createAuthorizationHeaderStri...
[ "private", "String", "signAndCreateAuthzHeader", "(", "String", "endpointUrl", ",", "Map", "<", "String", ",", "String", ">", "parameters", ")", "{", "String", "signature", "=", "computeSignature", "(", "requestMethod", ",", "endpointUrl", ",", "parameters", ")", ...
Generates the Authorization header with all the requisite content for the specified endpoint request by computing the signature, adding it to the parameters, and generating the Authorization header string. @param endpointUrl @param parameters @return
[ "Generates", "the", "Authorization", "header", "with", "all", "the", "requisite", "content", "for", "the", "specified", "endpoint", "request", "by", "computing", "the", "signature", "adding", "it", "to", "the", "parameters", "and", "generating", "the", "Authorizat...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java#L408-L415
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java
TwitterEndpointServices.populateJsonResponse
public Map<String, Object> populateJsonResponse(String responseBody) throws JoseException { if (responseBody == null || responseBody.isEmpty()) { return null; } return JsonUtil.parseJson(responseBody); }
java
public Map<String, Object> populateJsonResponse(String responseBody) throws JoseException { if (responseBody == null || responseBody.isEmpty()) { return null; } return JsonUtil.parseJson(responseBody); }
[ "public", "Map", "<", "String", ",", "Object", ">", "populateJsonResponse", "(", "String", "responseBody", ")", "throws", "JoseException", "{", "if", "(", "responseBody", "==", "null", "||", "responseBody", ".", "isEmpty", "(", ")", ")", "{", "return", "null...
Populates a Map from the response body. This method expects the responseBody value to be in JSON format. @param responseBody @return {@code null} if the response body was {@code null} or empty. Otherwise returns a Map with all entries and values contained in the response body. @throws JoseException
[ "Populates", "a", "Map", "from", "the", "response", "body", ".", "This", "method", "expects", "the", "responseBody", "value", "to", "be", "in", "JSON", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java#L501-L506
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java
TwitterEndpointServices.executeRequest
@FFDCIgnore(SocialLoginException.class) @Sensitive public Map<String, Object> executeRequest(SocialLoginConfig config, String requestMethod, String authzHeaderString, String url, String endpointType, String verifierValue) { if (endpointType == null) { endpointType = TwitterConstants.TWITTER...
java
@FFDCIgnore(SocialLoginException.class) @Sensitive public Map<String, Object> executeRequest(SocialLoginConfig config, String requestMethod, String authzHeaderString, String url, String endpointType, String verifierValue) { if (endpointType == null) { endpointType = TwitterConstants.TWITTER...
[ "@", "FFDCIgnore", "(", "SocialLoginException", ".", "class", ")", "@", "Sensitive", "public", "Map", "<", "String", ",", "Object", ">", "executeRequest", "(", "SocialLoginConfig", "config", ",", "String", "requestMethod", ",", "String", "authzHeaderString", ",", ...
Sends a request to the specified Twitter endpoint and returns a Map object containing the evaluated response. @param config @param requestMethod @param authzHeaderString @param url @param endpointType @param verifierValue Only used for {@value TwitterConstants#TWITTER_ENDPOINT_ACCESS_TOKEN} requests @return
[ "Sends", "a", "request", "to", "the", "specified", "Twitter", "endpoint", "and", "returns", "a", "Map", "object", "containing", "the", "evaluated", "response", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/TwitterEndpointServices.java#L832-L865
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.updateMonitorService
@FFDCIgnore(IllegalStateException.class) private void updateMonitorService() { if ( !coveringPaths.isEmpty() ) { if ( service == null ) { try { // If we are shutting down, we want to generate the exception quickly. BundleContext bundleConte...
java
@FFDCIgnore(IllegalStateException.class) private void updateMonitorService() { if ( !coveringPaths.isEmpty() ) { if ( service == null ) { try { // If we are shutting down, we want to generate the exception quickly. BundleContext bundleConte...
[ "@", "FFDCIgnore", "(", "IllegalStateException", ".", "class", ")", "private", "void", "updateMonitorService", "(", ")", "{", "if", "(", "!", "coveringPaths", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "service", "==", "null", ")", "{", "try", "{", ...
Update the monitor service according to whether any listeners are registered. That is, if any covering paths are present. When listeners are registered, register the file monitor as a service. When no listeners are registered, unregister the file monitor as a service. Registration as a service is only done when the...
[ "Update", "the", "monitor", "service", "according", "to", "whether", "any", "listeners", "are", "registered", ".", "That", "is", "if", "any", "covering", "paths", "are", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L264-L298
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.updateEnclosingMonitor
private void updateEnclosingMonitor() { if ( !coveringPaths.isEmpty() ) { if ( !listenerRegistered ) { // This container is not yet registered to the enclosing container. // Register this container. ArtifactContainer enclosingRootContainer = entryInEn...
java
private void updateEnclosingMonitor() { if ( !coveringPaths.isEmpty() ) { if ( !listenerRegistered ) { // This container is not yet registered to the enclosing container. // Register this container. ArtifactContainer enclosingRootContainer = entryInEn...
[ "private", "void", "updateEnclosingMonitor", "(", ")", "{", "if", "(", "!", "coveringPaths", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "!", "listenerRegistered", ")", "{", "// This container is not yet registered to the enclosing container.", "// Register this cont...
Update the enclosing monitor according to whether any listeners are registered. That is, if any covering paths are present. When listeners are registered, register the this notifier as a listener on the enclosing entry. When no listeners are registered, remove this notifier as a listener on the enclosing entry. Reg...
[ "Update", "the", "enclosing", "monitor", "according", "to", "whether", "any", "listeners", "are", "registered", ".", "That", "is", "if", "any", "covering", "paths", "are", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L313-L362
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.registerListener
private boolean registerListener(String newPath, ArtifactListenerSelector newListener) { boolean updatedCoveringPaths = addCoveringPath(newPath); Collection<ArtifactListenerSelector> listenersForPath = listeners.get(newPath); if ( listenersForPath == null ) { // Each listeners colle...
java
private boolean registerListener(String newPath, ArtifactListenerSelector newListener) { boolean updatedCoveringPaths = addCoveringPath(newPath); Collection<ArtifactListenerSelector> listenersForPath = listeners.get(newPath); if ( listenersForPath == null ) { // Each listeners colle...
[ "private", "boolean", "registerListener", "(", "String", "newPath", ",", "ArtifactListenerSelector", "newListener", ")", "{", "boolean", "updatedCoveringPaths", "=", "addCoveringPath", "(", "newPath", ")", ";", "Collection", "<", "ArtifactListenerSelector", ">", "listen...
Register a listener to a specified path. Registration has two effects: The listener is put into a table which maps the listener to specified path. The path of the listener are added to the covering paths collection, possibly causing newly covered paths to be removed from the collection. If the new path is already cov...
[ "Register", "a", "listener", "to", "a", "specified", "path", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L465-L477
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.addCoveringPath
private boolean addCoveringPath(String newPath) { int newLen = newPath.length(); Iterator<String> useCoveringPaths = coveringPaths.iterator(); boolean isCovered = false; boolean isCovering = false; while ( !isCovered && useCoveringPaths.hasNext() ) { String coveringP...
java
private boolean addCoveringPath(String newPath) { int newLen = newPath.length(); Iterator<String> useCoveringPaths = coveringPaths.iterator(); boolean isCovered = false; boolean isCovering = false; while ( !isCovered && useCoveringPaths.hasNext() ) { String coveringP...
[ "private", "boolean", "addCoveringPath", "(", "String", "newPath", ")", "{", "int", "newLen", "=", "newPath", ".", "length", "(", ")", ";", "Iterator", "<", "String", ">", "useCoveringPaths", "=", "coveringPaths", ".", "iterator", "(", ")", ";", "boolean", ...
Add a path to the covering paths collection. Do nothing if a path in the collection covers the new path. Add the path and remove any paths covered by the new path if the path is not covered by a path in the collection. @param newPath The path to add to the covering paths collection. @return Answer true or false tel...
[ "Add", "a", "path", "to", "the", "covering", "paths", "collection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L492-L548
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.validateNotification
@Trivial private String validateNotification(Collection<?> added, Collection<?> removed, Collection<?> updated) { boolean isAddition = !added.isEmpty(); boolean isRemoval = !removed.isEmpty(); boolean isUpdate = !updated.isEmpty(); if ( !isAddition && !isRemoval && !isUpdate ) { ...
java
@Trivial private String validateNotification(Collection<?> added, Collection<?> removed, Collection<?> updated) { boolean isAddition = !added.isEmpty(); boolean isRemoval = !removed.isEmpty(); boolean isUpdate = !updated.isEmpty(); if ( !isAddition && !isRemoval && !isUpdate ) { ...
[ "@", "Trivial", "private", "String", "validateNotification", "(", "Collection", "<", "?", ">", "added", ",", "Collection", "<", "?", ">", "removed", ",", "Collection", "<", "?", ">", "updated", ")", "{", "boolean", "isAddition", "=", "!", "added", ".", "...
Validate change data, which is expected to be collections of files or collections of entry paths. Since the single root zip file is registered, the change is expected to be a single element in exactly one of the change collections. Null changes are unexpected. Additions are unexpected. Updates with removals are unex...
[ "Validate", "change", "data", "which", "is", "expected", "to", "be", "collections", "of", "files", "or", "collections", "of", "entry", "paths", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L745-L767
train
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java
ZipFileArtifactNotifier.notifyAllListeners
private void notifyAllListeners(boolean isUpdate, String filter) { // Can't reuse the registered paths collection across the loop // because the listener notification can do processing in a new // thread. Reusing the registered paths could cause a collision // between the listener threa...
java
private void notifyAllListeners(boolean isUpdate, String filter) { // Can't reuse the registered paths collection across the loop // because the listener notification can do processing in a new // thread. Reusing the registered paths could cause a collision // between the listener threa...
[ "private", "void", "notifyAllListeners", "(", "boolean", "isUpdate", ",", "String", "filter", ")", "{", "// Can't reuse the registered paths collection across the loop", "// because the listener notification can do processing in a new", "// thread. Reusing the registered paths could cause...
A notification, which was either an update to the entire zip, or was the removal of the entire zip file, was received. For each listener that is registered, collect the paths for that listener and forward the notification. The notification which is forwarded to each listener is of the same type -- update or removal -...
[ "A", "notification", "which", "was", "either", "an", "update", "to", "the", "entire", "zip", "or", "was", "the", "removal", "of", "the", "entire", "zip", "file", "was", "received", ".", "For", "each", "listener", "that", "is", "registered", "collect", "the...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileArtifactNotifier.java#L788-L840
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/authentication/actions/MessagingLoginAction.java
MessagingLoginAction.getAuthenticationService
public AuthenticationService getAuthenticationService(SecurityService securityService) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getAuthenticationService", securityService); } if(_authenticationService == null) { if (securityService != null) _auth...
java
public AuthenticationService getAuthenticationService(SecurityService securityService) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getAuthenticationService", securityService); } if(_authenticationService == null) { if (securityService != null) _auth...
[ "public", "AuthenticationService", "getAuthenticationService", "(", "SecurityService", "securityService", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "("...
Get Authentication Service from the Liberty Security component It will get the AuthenticationService only if the SecurityService is activated @param securityService @return
[ "Get", "Authentication", "Service", "from", "the", "Liberty", "Security", "component", "It", "will", "get", "the", "AuthenticationService", "only", "if", "the", "SecurityService", "is", "activated" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/authentication/actions/MessagingLoginAction.java#L104-L117
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/authentication/actions/MessagingLoginAction.java
MessagingLoginAction.login
protected Subject login() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "login"); } Subject subject = null; try { /* * Only if we have the AuthenticationService running, we can do * Authentication. If it is not present we cannot do any * auth...
java
protected Subject login() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "login"); } Subject subject = null; try { /* * Only if we have the AuthenticationService running, we can do * Authentication. If it is not present we cannot do any * auth...
[ "protected", "Subject", "login", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"login\"", ")", ";", "...
The method to authenticate a User @return Subject: If the User is authenticated Null : If User is not authenticated
[ "The", "method", "to", "authenticate", "a", "User" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/authentication/actions/MessagingLoginAction.java#L141-L169
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/CommonServerReceiveListener.java
CommonServerReceiveListener.rejectHandshake
private void rejectHandshake(Conversation conversation, int requestNumber, String rejectedField) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rejectHandshake", new Object[] { conversation, requestNumber, rejected...
java
private void rejectHandshake(Conversation conversation, int requestNumber, String rejectedField) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rejectHandshake", new Object[] { conversation, requestNumber, rejected...
[ "private", "void", "rejectHandshake", "(", "Conversation", "conversation", ",", "int", "requestNumber", ",", "String", "rejectedField", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")",...
This method is used to inform the client that we are rejecting their handshake. Typically this will never happen unless a third party client is written, or an internal error occurs. However, we should check for an inproperly formatted handshake and inform the client if such an error occurs. @param conversation @param ...
[ "This", "method", "is", "used", "to", "inform", "the", "client", "that", "we", "are", "rejecting", "their", "handshake", ".", "Typically", "this", "will", "never", "happen", "unless", "a", "third", "party", "client", "is", "written", "or", "an", "internal", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/CommonServerReceiveListener.java#L768-L796
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantApplicationListener.java
CloudantApplicationListener.register
void register(CloudantService svc, ConcurrentMap<ClientKey, Object> clients) { registrations.put(svc, clients); }
java
void register(CloudantService svc, ConcurrentMap<ClientKey, Object> clients) { registrations.put(svc, clients); }
[ "void", "register", "(", "CloudantService", "svc", ",", "ConcurrentMap", "<", "ClientKey", ",", "Object", ">", "clients", ")", "{", "registrations", ".", "put", "(", "svc", ",", "clients", ")", ";", "}" ]
Lazily registers a CloudantService to have its client cache purged of entries related to a stopped application. @param svc CloudantService instance. This is used as a HashMap key because the client cache itself is not suitable as a key. @param clients client cache for the CloudantService.
[ "Lazily", "registers", "a", "CloudantService", "to", "have", "its", "client", "cache", "purged", "of", "entries", "related", "to", "a", "stopped", "application", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantApplicationListener.java#L96-L98
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MessageEndpointFactoryImpl.java
MessageEndpointFactoryImpl.setRRSTransactional
@FFDCIgnore(NoSuchMethodException.class) private void setRRSTransactional() { try { ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec); } catch (NoSuchMethodException x) { ivRRSTransactional = false; } catc...
java
@FFDCIgnore(NoSuchMethodException.class) private void setRRSTransactional() { try { ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec); } catch (NoSuchMethodException x) { ivRRSTransactional = false; } catc...
[ "@", "FFDCIgnore", "(", "NoSuchMethodException", ".", "class", ")", "private", "void", "setRRSTransactional", "(", ")", "{", "try", "{", "ivRRSTransactional", "=", "(", "Boolean", ")", "activationSpec", ".", "getClass", "(", ")", ".", "getMethod", "(", "\"getR...
If an RA wants to enable RRS Transactions, it should return true for the method getRRSTransactional.
[ "If", "an", "RA", "wants", "to", "enable", "RRS", "Transactions", "it", "should", "return", "true", "for", "the", "method", "getRRSTransactional", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MessageEndpointFactoryImpl.java#L262-L271
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MessageEndpointFactoryImpl.java
MessageEndpointFactoryImpl.setJCAVersion
@Override public void setJCAVersion(int majorJCAVer, int minorJCAVer) { majorJCAVersion = majorJCAVer; minorJCAVersion = minorJCAVer; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "MessageEndpointFactoryImpl.setJCAVersionJCA: Version " + majorJCA...
java
@Override public void setJCAVersion(int majorJCAVer, int minorJCAVer) { majorJCAVersion = majorJCAVer; minorJCAVersion = minorJCAVer; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "MessageEndpointFactoryImpl.setJCAVersionJCA: Version " + majorJCA...
[ "@", "Override", "public", "void", "setJCAVersion", "(", "int", "majorJCAVer", ",", "int", "minorJCAVer", ")", "{", "majorJCAVersion", "=", "majorJCAVer", ";", "minorJCAVersion", "=", "minorJCAVer", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "("...
Indicates what version of JCA specification the RA using this MessageEndpointFactory requires compliance with. @see com.ibm.ws.jca.service.WSMessageEndpointFactory#setJCAVersion(int, int)
[ "Indicates", "what", "version", "of", "JCA", "specification", "the", "RA", "using", "this", "MessageEndpointFactory", "requires", "compliance", "with", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MessageEndpointFactoryImpl.java#L394-L401
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java
EJBMethodInfoStack.setup
private void setup(BeanMetaData bmd) { if (!ivSetup) { int slotSize = bmd.container.getEJBRuntime().getMetaDataSlotSize(MethodMetaData.class); for (int i = 0; i < capacity; ++i) { EJBMethodInfoImpl methodInfo = bmd.createEJBMethodInfoImpl(slotSize)...
java
private void setup(BeanMetaData bmd) { if (!ivSetup) { int slotSize = bmd.container.getEJBRuntime().getMetaDataSlotSize(MethodMetaData.class); for (int i = 0; i < capacity; ++i) { EJBMethodInfoImpl methodInfo = bmd.createEJBMethodInfoImpl(slotSize)...
[ "private", "void", "setup", "(", "BeanMetaData", "bmd", ")", "{", "if", "(", "!", "ivSetup", ")", "{", "int", "slotSize", "=", "bmd", ".", "container", ".", "getEJBRuntime", "(", ")", ".", "getMetaDataSlotSize", "(", "MethodMetaData", ".", "class", ")", ...
Construct capacity sized stack
[ "Construct", "capacity", "sized", "stack" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java#L52-L65
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java
EJBMethodInfoStack.done
public final void done(EJBMethodInfoImpl mi) { //d151861 if (orig || (mi == null) || (topOfStack == 0)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "In orig mode returning:" + " orig: " + orig + " t...
java
public final void done(EJBMethodInfoImpl mi) { //d151861 if (orig || (mi == null) || (topOfStack == 0)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "In orig mode returning:" + " orig: " + orig + " t...
[ "public", "final", "void", "done", "(", "EJBMethodInfoImpl", "mi", ")", "{", "//d151861", "if", "(", "orig", "||", "(", "mi", "==", "null", ")", "||", "(", "topOfStack", "==", "0", ")", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", ...
Indicate that the caller is finished with the instance that was last obtained.
[ "Indicate", "that", "the", "caller", "is", "finished", "with", "the", "instance", "that", "was", "last", "obtained", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java#L76-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java
EJBMethodInfoStack.get
final public EJBMethodInfoImpl get(String methodSignature, String methodNameOnly, EJSWrapperBase wrapper, MethodInterface methodInterface, // d164221 TransactionAtt...
java
final public EJBMethodInfoImpl get(String methodSignature, String methodNameOnly, EJSWrapperBase wrapper, MethodInterface methodInterface, // d164221 TransactionAtt...
[ "final", "public", "EJBMethodInfoImpl", "get", "(", "String", "methodSignature", ",", "String", "methodNameOnly", ",", "EJSWrapperBase", "wrapper", ",", "MethodInterface", "methodInterface", ",", "// d164221", "TransactionAttribute", "txAttr", ")", "// 199625", "{", "EJ...
Get an instance of EJBMethodInfoImpl. Either return EJBMethod off the stack or new up a new instance after stack capacity is exhausted returns EJBMethodInfoImpl
[ "Get", "an", "instance", "of", "EJBMethodInfoImpl", ".", "Either", "return", "EJBMethod", "off", "the", "stack", "or", "new", "up", "a", "new", "instance", "after", "stack", "capacity", "is", "exhausted", "returns", "EJBMethodInfoImpl" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBMethodInfoStack.java#L115-L150
train
OpenLiberty/open-liberty
dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/internal/SerializationServiceImpl.java
SerializationServiceImpl.loadClass
Class<?> loadClass(String name) throws ClassNotFoundException { // First, try to find the class by name. ServiceReference<DeserializationClassProvider> provider = classProviders.getReference(name); if (provider != null) { return loadClass(provider, name); } // Next, ...
java
Class<?> loadClass(String name) throws ClassNotFoundException { // First, try to find the class by name. ServiceReference<DeserializationClassProvider> provider = classProviders.getReference(name); if (provider != null) { return loadClass(provider, name); } // Next, ...
[ "Class", "<", "?", ">", "loadClass", "(", "String", "name", ")", "throws", "ClassNotFoundException", "{", "// First, try to find the class by name.", "ServiceReference", "<", "DeserializationClassProvider", ">", "provider", "=", "classProviders", ".", "getReference", "(",...
Attempts to resolve a class from registered class providers. @param name the class name @return the class, or null if not found @throws ClassNotFoundException if a class provider claimed to provide a class or package, but its bundle did not contain the class
[ "Attempts", "to", "resolve", "a", "class", "from", "registered", "class", "providers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/internal/SerializationServiceImpl.java#L247-L265
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java
WSRdbSpiLocalTransactionImpl.begin
public void begin() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "begin", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if (t...
java
public void begin() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "begin", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if (t...
[ "public", "void", "begin", "(", ")", "throws", "ResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"begin\"", ",", "ivMC", ")", ";", "// if the MC marked Stale, it means the user...
Begin a local transaction @exception ResourceException - Possible causes of this exception are: 1) a begin is called but there is already a transaction active for this managedConnection 2) the setAutoCommit failed
[ "Begin", "a", "local", "transaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java#L81-L193
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java
WSRdbSpiLocalTransactionImpl.commit
public void commit() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "commit", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if ...
java
public void commit() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "commit", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if ...
[ "public", "void", "commit", "(", ")", "throws", "ResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"commit\"", ",", "ivMC", ")", ";", "// if the MC marked Stale, it means the us...
Commit a local transaction @exception ResourceException - Possible causes for this exception are: 1) if there is no transaction active that can be committed 2) commit was called from an invalid transaction state
[ "Commit", "a", "local", "transaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java#L202-L306
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java
WSRdbSpiLocalTransactionImpl.rollback
public void rollback() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { ...
java
public void rollback() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { ...
[ "public", "void", "rollback", "(", ")", "throws", "ResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"rollback\"", ",", "ivMC", ")", ";", "// if the MC marked Stale, it means th...
Rollback a local transaction @exception ResourceException - Possible causes for this exception are: 1) if there is no transaction active that can be rolledback 2) rollback was called from an invalid transaction state
[ "Rollback", "a", "local", "transaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbSpiLocalTransactionImpl.java#L338-L448
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java
JsJmsObjectMessageImpl.serializeRealObject
private void serializeRealObject() throws ObjectFailedToSerializeException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "serializeRealObject"); if (hasRealObject) { // If the realObject isn't null, we need to serialize it & set it int...
java
private void serializeRealObject() throws ObjectFailedToSerializeException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "serializeRealObject"); if (hasRealObject) { // If the realObject isn't null, we need to serialize it & set it int...
[ "private", "void", "serializeRealObject", "(", ")", "throws", "ObjectFailedToSerializeException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
Private method to serialize the 'real' object into the payload. This method is only called if we have a 'real' object AND it has not already been serialized Note that this doesn't preclude realObject being null, as null may be the real value set using setRealObject(). @exception ObjectFailedToSerializeException Seria...
[ "Private", "method", "to", "serialize", "the", "real", "object", "into", "the", "payload", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java#L373-L419
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java
JsJmsObjectMessageImpl.deserializeToRealObject
private Serializable deserializeToRealObject() throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deserializeToRealObject"); Serializable obj = null; ObjectInputStream ois = null; byte[] bytes ...
java
private Serializable deserializeToRealObject() throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deserializeToRealObject"); Serializable obj = null; ObjectInputStream ois = null; byte[] bytes ...
[ "private", "Serializable", "deserializeToRealObject", "(", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry",...
Private method to deserialize the 'real' object from the payload. The deserialized object is returned by the method & stored in a SoftReference for potential future use. A SoftReference is used because we still have the serialized obejct in the message itself, and, if the object is large, holding both forms could caus...
[ "Private", "method", "to", "deserialize", "the", "real", "object", "from", "the", "payload", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsObjectMessageImpl.java#L436-L488
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java
ProducerSessionImpl.getConnection
public SICoreConnection getConnection() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIProducerSession.tc, "getConnection", this); SibTr.exit(CoreSPIProducerSession.tc, "getConnection", _conn); ...
java
public SICoreConnection getConnection() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIProducerSession.tc, "getConnection", this); SibTr.exit(CoreSPIProducerSession.tc, "getConnection", _conn); ...
[ "public", "SICoreConnection", "getConnection", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "CoreSPIProducerSession", ".", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr",...
Returns this sessions connection
[ "Returns", "this", "sessions", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java#L608-L617
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java
ProducerSessionImpl.disableDiscriminatorAccessCheckAtSend
void disableDiscriminatorAccessCheckAtSend(String discriminatorAtCreate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disableDiscriminatorAccessCheckAtSend"); _checkDiscriminatorAccessAtSend = false; this._discriminatorAtCreate = discriminatorAtCreate; if...
java
void disableDiscriminatorAccessCheckAtSend(String discriminatorAtCreate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disableDiscriminatorAccessCheckAtSend"); _checkDiscriminatorAccessAtSend = false; this._discriminatorAtCreate = discriminatorAtCreate; if...
[ "void", "disableDiscriminatorAccessCheckAtSend", "(", "String", "discriminatorAtCreate", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"disa...
Disable discriminator access checks at send time
[ "Disable", "discriminator", "access", "checks", "at", "send", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ProducerSessionImpl.java#L696-L706
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/io/async/TimeSlot.java
TimeSlot.addEntry
public void addEntry(TimerWorkItem addItem, long curTime) { // this routine assumes the slot is not full this.mostRecentlyAccessedTime = curTime; this.lastEntryIndex++; this.entries[lastEntryIndex] = addItem; }
java
public void addEntry(TimerWorkItem addItem, long curTime) { // this routine assumes the slot is not full this.mostRecentlyAccessedTime = curTime; this.lastEntryIndex++; this.entries[lastEntryIndex] = addItem; }
[ "public", "void", "addEntry", "(", "TimerWorkItem", "addItem", ",", "long", "curTime", ")", "{", "// this routine assumes the slot is not full", "this", ".", "mostRecentlyAccessedTime", "=", "curTime", ";", "this", ".", "lastEntryIndex", "++", ";", "this", ".", "ent...
Add a timer item. @param addItem @param curTime
[ "Add", "a", "timer", "item", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/TimeSlot.java#L69-L75
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Split.java
Split.getFlows
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-") public List<Flow> getFlows() { if (flows == null) { flows = new ArrayList<Flow>(); } return this.flows; }
java
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-") public List<Flow> getFlows() { if (flows == null) { flows = new ArrayList<Flow>(); } return this.flows; }
[ "@", "Generated", "(", "value", "=", "\"com.ibm.jtc.jax.tools.xjc.Driver\"", ",", "date", "=", "\"2014-06-11T05:49:00-04:00\"", ",", "comments", "=", "\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"", ")", "public", "List", "<", "Flow", ">", "getFlows", "(", ")", "{", ...
Gets the value of the flows property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the flows property. <p> For example, to add a new...
[ "Gets", "the", "value", "of", "the", "flows", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/Split.java#L96-L102
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchemaInterpreterImpl.java
JSchemaInterpreterImpl.decode
public JMFMessage decode(JSchema schema, byte[] contents, int offset, int length) throws JMFMessageCorruptionException { return new JSMessageImpl(schema, contents, offset, length, true); }
java
public JMFMessage decode(JSchema schema, byte[] contents, int offset, int length) throws JMFMessageCorruptionException { return new JSMessageImpl(schema, contents, offset, length, true); }
[ "public", "JMFMessage", "decode", "(", "JSchema", "schema", ",", "byte", "[", "]", "contents", ",", "int", "offset", ",", "int", "length", ")", "throws", "JMFMessageCorruptionException", "{", "return", "new", "JSMessageImpl", "(", "schema", ",", "contents", ",...
Implementation of decode
[ "Implementation", "of", "decode" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchemaInterpreterImpl.java#L39-L42
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java
ServerCommand.read
protected String read(SocketChannel sc) throws IOException { sc.read(buffer); buffer.flip(); decoder.decode(buffer, charBuffer, true); charBuffer.flip(); String result = charBuffer.toString(); // Clear out buffers buffer.clear(); charBuffer.clear(); ...
java
protected String read(SocketChannel sc) throws IOException { sc.read(buffer); buffer.flip(); decoder.decode(buffer, charBuffer, true); charBuffer.flip(); String result = charBuffer.toString(); // Clear out buffers buffer.clear(); charBuffer.clear(); ...
[ "protected", "String", "read", "(", "SocketChannel", "sc", ")", "throws", "IOException", "{", "sc", ".", "read", "(", "buffer", ")", ";", "buffer", ".", "flip", "(", ")", ";", "decoder", ".", "decode", "(", "buffer", ",", "charBuffer", ",", "true", ")"...
Reads a command or command response from a socket channel. <p>This method is not safe for use by multiple concurrent threads. @param sc the socket channel @return the command or command response
[ "Reads", "a", "command", "or", "command", "response", "from", "a", "socket", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java#L73-L88
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java
ServerCommand.write
protected void write(SocketChannel sc, String s) throws IOException { sc.write(encoder.encode(CharBuffer.wrap(s))); }
java
protected void write(SocketChannel sc, String s) throws IOException { sc.write(encoder.encode(CharBuffer.wrap(s))); }
[ "protected", "void", "write", "(", "SocketChannel", "sc", ",", "String", "s", ")", "throws", "IOException", "{", "sc", ".", "write", "(", "encoder", ".", "encode", "(", "CharBuffer", ".", "wrap", "(", "s", ")", ")", ")", ";", "}" ]
Writes a command or command response to a socket channel. <p>This method is not safe for use by multiple concurrent threads. @param sc the socket channel @param s the command or command response
[ "Writes", "a", "command", "or", "command", "response", "to", "a", "socket", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/ServerCommand.java#L98-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java
MPJwtBadMPConfigAsEnvVars.MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml
@Test public void MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_R...
java
@Test public void MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_R...
[ "@", "Test", "public", "void", "MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml", "(", ")", "throws", "Exception", "{", "resourceServer", ".", "reconfigureServerUsingExpandedConfiguration", "(", "_testName", ",", "\"rs_server_AltConfigNotInApp_goodServerXmlConfig.xml\""...
The server will be started with all mp-config properties set to bad values in environment variables. The server.xml has a valid mp_jwt config specified. The config settings should come from server.xml. The test should run successfully . @throws Exception
[ "The", "server", "will", "be", "started", "with", "all", "mp", "-", "config", "properties", "set", "to", "bad", "values", "in", "environment", "variables", ".", "The", "server", ".", "xml", "has", "a", "valid", "mp_jwt", "config", "specified", ".", "The", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java#L66-L73
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java
MPJwtBadMPConfigAsEnvVars.MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml
@Test public void MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml() throws Exception { standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_APP, MpJwtFatConstants.MPJWT_APP_CLASS_NO_MP_CONFIG_IN_APP,...
java
@Test public void MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml() throws Exception { standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_APP, MpJwtFatConstants.MPJWT_APP_CLASS_NO_MP_CONFIG_IN_APP,...
[ "@", "Test", "public", "void", "MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml", "(", ")", "throws", "Exception", "{", "standardTestFlow", "(", "resourceServer", ",", "MpJwtFatConstants", ".", "NO_MP_CONFIG_IN_APP_ROOT_CONTEXT", ",", "MpJwtFatConstants", ".", "N...
The server will be started with all mp-config properties set to bad values in environment variables. The server.xml has NO mp_jwt config specified. The config settings should come from the env vars. The test should fail @throws Exception
[ "The", "server", "will", "be", "started", "with", "all", "mp", "-", "config", "properties", "set", "to", "bad", "values", "in", "environment", "variables", ".", "The", "server", ".", "xml", "has", "NO", "mp_jwt", "config", "specified", ".", "The", "config"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsEnvVars.java#L83-L90
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.doRead
private boolean doRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "doRead, Current buffer, " + _buffer + ", reading from the TCP Channel, readLine : " + _isReadLine); } try { i...
java
private boolean doRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "doRead, Current buffer, " + _buffer + ", reading from the TCP Channel, readLine : " + _isReadLine); } try { i...
[ "private", "boolean", "doRead", "(", "int", "amountToRead", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "...
This method will call the synchronous or asynchronous method depending on how everything is set up @return If we have read any data or not @throws IOException
[ "This", "method", "will", "call", "the", "synchronous", "or", "asynchronous", "method", "depending", "on", "how", "everything", "is", "set", "up" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L87-L111
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.syncRead
private boolean syncRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "syncRead, Executing a synchronous read"); } // Allocate the buffer and set it on the TCP Channel setAndAllocateBuffer(amountToRea...
java
private boolean syncRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "syncRead, Executing a synchronous read"); } // Allocate the buffer and set it on the TCP Channel setAndAllocateBuffer(amountToRea...
[ "private", "boolean", "syncRead", "(", "int", "amountToRead", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", ...
Issues a synchronous read to the TCP Channel. @return If we have read any data or not @throws IOException
[ "Issues", "a", "synchronous", "read", "to", "the", "TCP", "Channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L119-L151
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.immediateRead
private boolean immediateRead(int amountToRead){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "immediateRead, Executing a read"); } if(amountToRead > 1){ //Allocate a new temp buffer, then set the position to 0 and limit to the amo...
java
private boolean immediateRead(int amountToRead){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "immediateRead, Executing a read"); } if(amountToRead > 1){ //Allocate a new temp buffer, then set the position to 0 and limit to the amo...
[ "private", "boolean", "immediateRead", "(", "int", "amountToRead", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"immediateRead, Execu...
This method will execute an immediate read The immediate read will issue a read to the TCP Channel and immediately return with whatever can fit in the buffers This will only ever be called after we had read the 1 byte from the isReady or initialRead methods. As such we will allocate a buffer and add in the 1 byte. This...
[ "This", "method", "will", "execute", "an", "immediate", "read", "The", "immediate", "read", "will", "issue", "a", "read", "to", "the", "TCP", "Channel", "and", "immediately", "return", "with", "whatever", "can", "fit", "in", "the", "buffers", "This", "will",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L163-L212
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.read
public int read() throws IOException { validate(); int rc = -1; if(doRead(1)){ rc = _buffer.get() & 0x000000FF; } _buffer.release(); _buffer = null; return rc; }
java
public int read() throws IOException { validate(); int rc = -1; if(doRead(1)){ rc = _buffer.get() & 0x000000FF; } _buffer.release(); _buffer = null; return rc; }
[ "public", "int", "read", "(", ")", "throws", "IOException", "{", "validate", "(", ")", ";", "int", "rc", "=", "-", "1", ";", "if", "(", "doRead", "(", "1", ")", ")", "{", "rc", "=", "_buffer", ".", "get", "(", ")", "&", "0x000000FF", ";", "}", ...
Read the first available byte @return int - the byte read @throws IOException
[ "Read", "the", "first", "available", "byte" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L220-L232
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.read
public int read(byte[] output, int offset, int length) throws IOException { int size = -1; validate(); if (0 == length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "read(byte[],int,int), Target length was 0"); ...
java
public int read(byte[] output, int offset, int length) throws IOException { int size = -1; validate(); if (0 == length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "read(byte[],int,int), Target length was 0"); ...
[ "public", "int", "read", "(", "byte", "[", "]", "output", ",", "int", "offset", ",", "int", "length", ")", "throws", "IOException", "{", "int", "size", "=", "-", "1", ";", "validate", "(", ")", ";", "if", "(", "0", "==", "length", ")", "{", "if",...
Read into the provided byte array with the length and offset provided @param output @param offset @param length @return int - the number of bytes read @throws IOException
[ "Read", "into", "the", "provided", "byte", "array", "with", "the", "length", "and", "offset", "provided" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L254-L279
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.setAndAllocateBuffer
private void setAndAllocateBuffer(int sizeToAllocate) { if(_buffer == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "setAndAllocateBuffer, Buffer is null, size to allocate is : " + sizeToAllocate); } _buffer = a...
java
private void setAndAllocateBuffer(int sizeToAllocate) { if(_buffer == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "setAndAllocateBuffer, Buffer is null, size to allocate is : " + sizeToAllocate); } _buffer = a...
[ "private", "void", "setAndAllocateBuffer", "(", "int", "sizeToAllocate", ")", "{", "if", "(", "_buffer", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr",...
Allocate the buffer size we need and then pre-configure the buffer to prepare it to be read into Once it has been prepared set the buffer to the TCP Channel
[ "Allocate", "the", "buffer", "size", "we", "need", "and", "then", "pre", "-", "configure", "the", "buffer", "to", "prepare", "it", "to", "be", "read", "into", "Once", "it", "has", "been", "prepared", "set", "the", "buffer", "to", "the", "TCP", "Channel" ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L285-L301
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.validate
private void validate() throws IOException { if (null != _error) { throw _error; } if(!_isReadLine && !_isReady){ //If there is no data available then isReady will have returned false and this throw an IllegalStateException if (TraceComponent.isAnyTra...
java
private void validate() throws IOException { if (null != _error) { throw _error; } if(!_isReadLine && !_isReady){ //If there is no data available then isReady will have returned false and this throw an IllegalStateException if (TraceComponent.isAnyTra...
[ "private", "void", "validate", "(", ")", "throws", "IOException", "{", "if", "(", "null", "!=", "_error", ")", "{", "throw", "_error", ";", "}", "if", "(", "!", "_isReadLine", "&&", "!", "_isReady", ")", "{", "//If there is no data available then isReady will ...
This checks if we have already had an exception thrown. If so it just rethrows that exception This check is done before any reads are done @throws IOException
[ "This", "checks", "if", "we", "have", "already", "had", "an", "exception", "thrown", ".", "If", "so", "it", "just", "rethrows", "that", "exception", "This", "check", "is", "done", "before", "any", "reads", "are", "done" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L309-L320
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.setupReadListener
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
java
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
[ "public", "void", "setupReadListener", "(", "ReadListener", "readListenerl", ",", "SRTUpgradeInputStream31", "srtUpgradeStream", ")", "{", "if", "(", "readListenerl", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
Sets the ReadListener provided by the application to this stream Once the ReadListener is set we will kick off the initial read @param readListenerl
[ "Sets", "the", "ReadListener", "provided", "by", "the", "application", "to", "this", "stream", "Once", "the", "ReadListener", "is", "set", "we", "will", "kick", "off", "the", "initial", "read" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L362-L394
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.initialRead
public void initialRead(){ _isInitialRead = true; if(_buffer != null){ _buffer.release(); _buffer = null; } setAndAllocateBuffer(1); configurePreReadBuffer(1); //This if the first read of the ReadListener, which means force the re...
java
public void initialRead(){ _isInitialRead = true; if(_buffer != null){ _buffer.release(); _buffer = null; } setAndAllocateBuffer(1); configurePreReadBuffer(1); //This if the first read of the ReadListener, which means force the re...
[ "public", "void", "initialRead", "(", ")", "{", "_isInitialRead", "=", "true", ";", "if", "(", "_buffer", "!=", "null", ")", "{", "_buffer", ".", "release", "(", ")", ";", "_buffer", "=", "null", ";", "}", "setAndAllocateBuffer", "(", "1", ")", ";", ...
This method triggers the initial read on the connection, or the read for after the ReadListener.onDataAvailable has run The read done in this method is a forced async read, meaning it will always return on another thread The provided callback will be called when the read is completed and that callback will invoke the R...
[ "This", "method", "triggers", "the", "initial", "read", "on", "the", "connection", "or", "the", "read", "for", "after", "the", "ReadListener", ".", "onDataAvailable", "has", "run", "The", "read", "done", "in", "this", "method", "is", "a", "forced", "async", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L469-L483
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.configurePostInitialReadBuffer
public void configurePostInitialReadBuffer(){ _isInitialRead = false; _isFirstRead = false; _buffer = _tcpContext.getReadInterface().getBuffer(); configurePostReadBuffer(); }
java
public void configurePostInitialReadBuffer(){ _isInitialRead = false; _isFirstRead = false; _buffer = _tcpContext.getReadInterface().getBuffer(); configurePostReadBuffer(); }
[ "public", "void", "configurePostInitialReadBuffer", "(", ")", "{", "_isInitialRead", "=", "false", ";", "_isFirstRead", "=", "false", ";", "_buffer", "=", "_tcpContext", ".", "getReadInterface", "(", ")", ".", "getBuffer", "(", ")", ";", "configurePostReadBuffer",...
Called after the initial read is completed. This will set the first read flag to false, get the buffer from the TCP Channel, and post configure the buffer. Without this method we would lose the first byte we are reading
[ "Called", "after", "the", "initial", "read", "is", "completed", ".", "This", "will", "set", "the", "first", "read", "flag", "to", "false", "get", "the", "buffer", "from", "the", "TCP", "Channel", "and", "post", "configure", "the", "buffer", ".", "Without",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L489-L494
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java
UpgradeInputByteBufferUtil.close
public Boolean close() { _isClosing = true; boolean closeResult = true; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "close, Initial read outstanding : " + _isInitialRead); } if(_isInitialRead){ if (TraceComponent...
java
public Boolean close() { _isClosing = true; boolean closeResult = true; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "close, Initial read outstanding : " + _isInitialRead); } if(_isInitialRead){ if (TraceComponent...
[ "public", "Boolean", "close", "(", ")", "{", "_isClosing", "=", "true", ";", "boolean", "closeResult", "=", "true", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", ...
Close the connection down by immediately timing out any existing read
[ "Close", "the", "connection", "down", "by", "immediately", "timing", "out", "any", "existing", "read" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeInputByteBufferUtil.java#L521-L578
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getDurableSubscriptions
public synchronized int getDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getDurableSubscriptions", new Integer(durableSubscriptions)); return durableSubscriptions; }
java
public synchronized int getDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getDurableSubscriptions", new Integer(durableSubscriptions)); return durableSubscriptions; }
[ "public", "synchronized", "int", "getDurableSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getDurableSubscriptions\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", "...
Get number of durable subscriptions. @return number of durable subscriptions.
[ "Get", "number", "of", "durable", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L149-L161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getNonDurableSubscriptions
public synchronized int getNonDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getNonDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getNonDurableSubscriptions", new Integer(nonDurableSubscriptions)); return nonDurableSubscriptions;...
java
public synchronized int getNonDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getNonDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getNonDurableSubscriptions", new Integer(nonDurableSubscriptions)); return nonDurableSubscriptions;...
[ "public", "synchronized", "int", "getNonDurableSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getNonDurableSubscriptions\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(...
Get number of non-durable subscriptions. @return number of non-durable subscriptions.
[ "Get", "number", "of", "non", "-", "durable", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L168-L180
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java
SubscriptionIndex.getTotalSubscriptions
public synchronized int getTotalSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getTotalSubscriptions"); int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions; if (tc.isEntryEnabled()) SibTr.exit( tc, "getTotalSubscriptions", new Integer(...
java
public synchronized int getTotalSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getTotalSubscriptions"); int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions; if (tc.isEntryEnabled()) SibTr.exit( tc, "getTotalSubscriptions", new Integer(...
[ "public", "synchronized", "int", "getTotalSubscriptions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getTotalSubscriptions\"", ")", ";", "int", "totalSubscriptions", "=", "durableSubscriptions"...
Get total number of subscriptions. @return total number of subscriptions.
[ "Get", "total", "number", "of", "subscriptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/SubscriptionIndex.java#L187-L201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java
GBSInsertHeight.balance
void balance( NodeStack stack, GBSNode q) { GBSNode p; int bpidx = stack.balancePointIndex(); int x = bpidx; GBSNode bpoint = stack.node(x); GBSNode bfather = stack.node(x-1); /* Adjust balance factors in intervening nodes */ if (bpoint.leftChild...
java
void balance( NodeStack stack, GBSNode q) { GBSNode p; int bpidx = stack.balancePointIndex(); int x = bpidx; GBSNode bpoint = stack.node(x); GBSNode bfather = stack.node(x-1); /* Adjust balance factors in intervening nodes */ if (bpoint.leftChild...
[ "void", "balance", "(", "NodeStack", "stack", ",", "GBSNode", "q", ")", "{", "GBSNode", "p", ";", "int", "bpidx", "=", "stack", ".", "balancePointIndex", "(", ")", ";", "int", "x", "=", "bpidx", ";", "GBSNode", "bpoint", "=", "stack", ".", "node", "(...
Restore the height balance of a tree following an insert. @param stack The NodeStack used to do the insert. @param q The root of the newly added fringe.
[ "Restore", "the", "height", "balance", "of", "a", "tree", "following", "an", "insert", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java#L212-L283
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java
GBSInsertHeight.rotateLeft
private void rotateLeft( GBSNode bfather, GBSNode bpoint) { GBSNode bson = bpoint.leftChild(); if (bson.balance() == -1) /* Single LL rotation */ { bpoint.setLeftChild(bson.rightChild()); bson.setRightChild(bpoint); if (bfather.rightChi...
java
private void rotateLeft( GBSNode bfather, GBSNode bpoint) { GBSNode bson = bpoint.leftChild(); if (bson.balance() == -1) /* Single LL rotation */ { bpoint.setLeftChild(bson.rightChild()); bson.setRightChild(bpoint); if (bfather.rightChi...
[ "private", "void", "rotateLeft", "(", "GBSNode", "bfather", ",", "GBSNode", "bpoint", ")", "{", "GBSNode", "bson", "=", "bpoint", ".", "leftChild", "(", ")", ";", "if", "(", "bson", ".", "balance", "(", ")", "==", "-", "1", ")", "/* Single LL rotation ...
Do an LL or LR rotation. @param bfather The father of the balance point. @param bpoint The balance point.
[ "Do", "an", "LL", "or", "LR", "rotation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertHeight.java#L291-L322
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/Entry.java
Entry.getPrevious
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
java
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
[ "public", "Entry", "getPrevious", "(", ")", "{", "checkEntryParent", "(", ")", ";", "Entry", "entry", "=", "null", ";", "if", "(", "!", "isFirst", "(", ")", ")", "{", "entry", "=", "previous", ";", "}", "return", "entry", ";", "}" ]
Unsynchronized. Get the previous entry in the list. @return the previous entry in the list
[ "Unsynchronized", ".", "Get", "the", "previous", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/Entry.java#L53-L65
train
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.analyzeJar
@Override public boolean analyzeJar(Analyzer analyzer) throws Exception { try { if (scanAgain) { //this will only have an effect on the first scan, because subsequent scanAgain //will use the errorMarker to decide if to scan again resetErrorMarker(); ...
java
@Override public boolean analyzeJar(Analyzer analyzer) throws Exception { try { if (scanAgain) { //this will only have an effect on the first scan, because subsequent scanAgain //will use the errorMarker to decide if to scan again resetErrorMarker(); ...
[ "@", "Override", "public", "boolean", "analyzeJar", "(", "Analyzer", "analyzer", ")", "throws", "Exception", "{", "try", "{", "if", "(", "scanAgain", ")", "{", "//this will only have an effect on the first scan, because subsequent scanAgain", "//will use the errorMarker to de...
all class types that need to be exported
[ "all", "class", "types", "that", "need", "to", "be", "exported" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L34-L118
train
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.collectClassDependencies
private void collectClassDependencies (Clazz classInstance, Analyzer analyzer) throws Exception { // retrieve the imports from the known class path Set<TypeRef> importedClasses = classInstance.parseClassFile(); for (TypeRef importedClass:importedClasses) { if (canBeSkipped(importedClass)) // validate the impo...
java
private void collectClassDependencies (Clazz classInstance, Analyzer analyzer) throws Exception { // retrieve the imports from the known class path Set<TypeRef> importedClasses = classInstance.parseClassFile(); for (TypeRef importedClass:importedClasses) { if (canBeSkipped(importedClass)) // validate the impo...
[ "private", "void", "collectClassDependencies", "(", "Clazz", "classInstance", ",", "Analyzer", "analyzer", ")", "throws", "Exception", "{", "// retrieve the imports from the known class path", "Set", "<", "TypeRef", ">", "importedClasses", "=", "classInstance", ".", "pars...
Collect the imports from a class and add the imported classes to the map of all known classes importedReferencedTypes is updated to contain newly added imports allReferencedTypes is updated to avoid the duplicated process @param classInstance @param analyzer @throws Exception
[ "Collect", "the", "imports", "from", "a", "class", "and", "add", "the", "imported", "classes", "to", "the", "map", "of", "all", "known", "classes", "importedReferencedTypes", "is", "updated", "to", "contain", "newly", "added", "imports", "allReferencedTypes", "i...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L239-L256
train
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.canBeSkipped
private boolean canBeSkipped (TypeRef importedClass) { // skip known imported classes and the ones in JRE if (allReferencedTypes.contains(importedClass) || importedReferencedTypes.contains(importedClass) || importedClass.isJava()) return true; // Skip the imported classes which are excluded String classPack...
java
private boolean canBeSkipped (TypeRef importedClass) { // skip known imported classes and the ones in JRE if (allReferencedTypes.contains(importedClass) || importedReferencedTypes.contains(importedClass) || importedClass.isJava()) return true; // Skip the imported classes which are excluded String classPack...
[ "private", "boolean", "canBeSkipped", "(", "TypeRef", "importedClass", ")", "{", "// skip known imported classes and the ones in JRE", "if", "(", "allReferencedTypes", ".", "contains", "(", "importedClass", ")", "||", "importedReferencedTypes", ".", "contains", "(", "impo...
check whether a imported class should be considered in further dependency check @param importedClass @return
[ "check", "whether", "a", "imported", "class", "should", "be", "considered", "in", "further", "dependency", "check" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L262-L275
train
OpenLiberty/open-liberty
dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java
ImportlessPackager.collectPackageDependencies
private Set<PackageRef> collectPackageDependencies() { Set<PackageRef> referencedPackages = new HashSet<PackageRef> (); for (TypeRef newReferencedType:importedReferencedTypes) { PackageRef packageRef = newReferencedType.getPackageRef(); if (referencedPackages.contains(packageRef)) // package already known ...
java
private Set<PackageRef> collectPackageDependencies() { Set<PackageRef> referencedPackages = new HashSet<PackageRef> (); for (TypeRef newReferencedType:importedReferencedTypes) { PackageRef packageRef = newReferencedType.getPackageRef(); if (referencedPackages.contains(packageRef)) // package already known ...
[ "private", "Set", "<", "PackageRef", ">", "collectPackageDependencies", "(", ")", "{", "Set", "<", "PackageRef", ">", "referencedPackages", "=", "new", "HashSet", "<", "PackageRef", ">", "(", ")", ";", "for", "(", "TypeRef", "newReferencedType", ":", "imported...
Collect the referenced packages information from the referenced classes information @return referencedPackages
[ "Collect", "the", "referenced", "packages", "information", "from", "the", "referenced", "classes", "information" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-bndPlugins/src/com/ibm/ws/build/bnd/plugins/ImportlessPackager.java#L297-L307
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/metatype/MetatypeOcd.java
MetatypeOcd.addMetatypeAd
public boolean addMetatypeAd(MetatypeAd metatypeAd) { if (this.metatypeAds == null) this.metatypeAds = new LinkedList<MetatypeAd>(); for (MetatypeAd ad : metatypeAds) if (ad.getID().equals(metatypeAd.getID())) return false; this.metatypeAds.add(metatypeA...
java
public boolean addMetatypeAd(MetatypeAd metatypeAd) { if (this.metatypeAds == null) this.metatypeAds = new LinkedList<MetatypeAd>(); for (MetatypeAd ad : metatypeAds) if (ad.getID().equals(metatypeAd.getID())) return false; this.metatypeAds.add(metatypeA...
[ "public", "boolean", "addMetatypeAd", "(", "MetatypeAd", "metatypeAd", ")", "{", "if", "(", "this", ".", "metatypeAds", "==", "null", ")", "this", ".", "metatypeAds", "=", "new", "LinkedList", "<", "MetatypeAd", ">", "(", ")", ";", "for", "(", "MetatypeAd"...
Adds a metatype AD. @param metatypeAd the MetatypeAd to add @return true if the MetatypeAd was added, else false if it already exists in the list
[ "Adds", "a", "metatype", "AD", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/metatype/MetatypeOcd.java#L171-L181
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannel.java
AsyncSocketChannel.prepareSocket
public synchronized void prepareSocket() throws IOException { if (!prepared) { final long fd = getFileDescriptor(); if (fd == INVALID_SOCKET) { throw new AsyncException(AsyncProperties.aio_handle_unavailable); } channelIdentifier = provider.prepar...
java
public synchronized void prepareSocket() throws IOException { if (!prepared) { final long fd = getFileDescriptor(); if (fd == INVALID_SOCKET) { throw new AsyncException(AsyncProperties.aio_handle_unavailable); } channelIdentifier = provider.prepar...
[ "public", "synchronized", "void", "prepareSocket", "(", ")", "throws", "IOException", "{", "if", "(", "!", "prepared", ")", "{", "final", "long", "fd", "=", "getFileDescriptor", "(", ")", ";", "if", "(", "fd", "==", "INVALID_SOCKET", ")", "{", "throw", "...
Perform initialization steps for this new connection. @throws IOException
[ "Perform", "initialization", "steps", "for", "this", "new", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannel.java#L349-L387
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/TagFileClassInfo.java
TagFileClassInfo.getParameterClassName
public String getParameterClassName(String attributeName, JspCoreContext context) throws JspCoreException { String parameterClassName = null; if (parameterClassNameMap == null) { parameterClassNameMap = new HashMap(); } parameterClassName = (String)parameter...
java
public String getParameterClassName(String attributeName, JspCoreContext context) throws JspCoreException { String parameterClassName = null; if (parameterClassNameMap == null) { parameterClassNameMap = new HashMap(); } parameterClassName = (String)parameter...
[ "public", "String", "getParameterClassName", "(", "String", "attributeName", ",", "JspCoreContext", "context", ")", "throws", "JspCoreException", "{", "String", "parameterClassName", "=", "null", ";", "if", "(", "parameterClassNameMap", "==", "null", ")", "{", "para...
PK36246 && 417178 override method in TagClassInfo, but since we aren't loading a class right now, we don't have to worry about the classpath in the context
[ "PK36246", "&&", "417178", "override", "method", "in", "TagClassInfo", "but", "since", "we", "aren", "t", "loading", "a", "class", "right", "now", "we", "don", "t", "have", "to", "worry", "about", "the", "classpath", "in", "the", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/taglib/TagFileClassInfo.java#L62-L87
train
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ChangeHistory.java
ChangeHistory.rollback
public ReturnCode rollback() { while (!history.isEmpty()) { final Action action = (Action) history.pop(); final ReturnCode ret = action.execute(); if (ret.getCode() != 0) { return ret; } } return ReturnCode.OK; }
java
public ReturnCode rollback() { while (!history.isEmpty()) { final Action action = (Action) history.pop(); final ReturnCode ret = action.execute(); if (ret.getCode() != 0) { return ret; } } return ReturnCode.OK; }
[ "public", "ReturnCode", "rollback", "(", ")", "{", "while", "(", "!", "history", ".", "isEmpty", "(", ")", ")", "{", "final", "Action", "action", "=", "(", "Action", ")", "history", ".", "pop", "(", ")", ";", "final", "ReturnCode", "ret", "=", "actio...
Attempts to undo changes in reverse order of actions taken;
[ "Attempts", "to", "undo", "changes", "in", "reverse", "order", "of", "actions", "taken", ";" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ChangeHistory.java#L102-L111
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLDiscriminatorState.java
SSLDiscriminatorState.updateState
public void updateState(SSLContext context, SSLEngine engine, SSLEngineResult result, WsByteBuffer decNetBuf, int position, int limit) { this.sslContext = context; this.sslEngine = engine; this.sslEngineResult = result; this.decryptedNetBuffer = decNetBuf; this.netBufferPosition ...
java
public void updateState(SSLContext context, SSLEngine engine, SSLEngineResult result, WsByteBuffer decNetBuf, int position, int limit) { this.sslContext = context; this.sslEngine = engine; this.sslEngineResult = result; this.decryptedNetBuffer = decNetBuf; this.netBufferPosition ...
[ "public", "void", "updateState", "(", "SSLContext", "context", ",", "SSLEngine", "engine", ",", "SSLEngineResult", "result", ",", "WsByteBuffer", "decNetBuf", ",", "int", "position", ",", "int", "limit", ")", "{", "this", ".", "sslContext", "=", "context", ";"...
Update this state object with current information. This is called when a YES response comes from the discriminator. The position and limit must be saved here so the ready method can adjust them right away. @param context @param engine @param result @param decNetBuf @param position @param limit
[ "Update", "this", "state", "object", "with", "current", "information", ".", "This", "is", "called", "when", "a", "YES", "response", "comes", "from", "the", "discriminator", ".", "The", "position", "and", "limit", "must", "be", "saved", "here", "so", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLDiscriminatorState.java#L59-L66
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.setXMLBeanInterface
private void setXMLBeanInterface(String homeInterfaceName, String interfaceName) // F743-32443 throws InjectionException { // If a home or business interface was specified in XML, then set that as // the injection type. Both may be null if the XML just provides an // override of an anno...
java
private void setXMLBeanInterface(String homeInterfaceName, String interfaceName) // F743-32443 throws InjectionException { // If a home or business interface was specified in XML, then set that as // the injection type. Both may be null if the XML just provides an // override of an anno...
[ "private", "void", "setXMLBeanInterface", "(", "String", "homeInterfaceName", ",", "String", "interfaceName", ")", "// F743-32443", "throws", "InjectionException", "{", "// If a home or business interface was specified in XML, then set that as", "// the injection type. Both may be nul...
Sets the beanInterface as specified by XML.
[ "Sets", "the", "beanInterface", "as", "specified", "by", "XML", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L265-L300
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.setBindingName
private void setBindingName() // d681743 throws InjectionException { Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings(); if (ejbRefBindings != null) { ivBindingName = ejbRefBindings.get(getJndiName()); if (ivBindingName != null && ivBindin...
java
private void setBindingName() // d681743 throws InjectionException { Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings(); if (ejbRefBindings != null) { ivBindingName = ejbRefBindings.get(getJndiName()); if (ivBindingName != null && ivBindin...
[ "private", "void", "setBindingName", "(", ")", "// d681743", "throws", "InjectionException", "{", "Map", "<", "String", ",", "String", ">", "ejbRefBindings", "=", "ivNameSpaceConfig", ".", "getEJBRefBindings", "(", ")", ";", "if", "(", "ejbRefBindings", "!=", "n...
Returns true if the user has configured a binding for this reference.
[ "Returns", "true", "if", "the", "user", "has", "configured", "a", "binding", "for", "this", "reference", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L305-L329
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java
EJBInjectionBinding.addInjectionTarget
@Override public void addInjectionTarget(Member member) throws InjectionException { // If the beanName attribute was found in the constructor or merge // method, then save the class of where it was located. if (ivBeanName != null && ivBeanNameClass == null) { ...
java
@Override public void addInjectionTarget(Member member) throws InjectionException { // If the beanName attribute was found in the constructor or merge // method, then save the class of where it was located. if (ivBeanName != null && ivBeanNameClass == null) { ...
[ "@", "Override", "public", "void", "addInjectionTarget", "(", "Member", "member", ")", "throws", "InjectionException", "{", "// If the beanName attribute was found in the constructor or merge", "// method, then save the class of where it was located.", "if", "(", "ivBeanName", "!="...
d638111.1
[ "d638111", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejb/injection/processor/EJBInjectionBinding.java#L343-L354
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtThrowMethodAdapter.java
ProbeAtThrowMethodAdapter.visitInsn
@Override public void visitInsn(int opcode) { if (opcode == ATHROW && !enabledListeners.isEmpty()) { String key = createKey(); ProbeImpl probe = getProbe(key); long probeId = probe.getIdentifier(); setProbeInProgress(true); visitInsn(DUP); // thro...
java
@Override public void visitInsn(int opcode) { if (opcode == ATHROW && !enabledListeners.isEmpty()) { String key = createKey(); ProbeImpl probe = getProbe(key); long probeId = probe.getIdentifier(); setProbeInProgress(true); visitInsn(DUP); // thro...
[ "@", "Override", "public", "void", "visitInsn", "(", "int", "opcode", ")", "{", "if", "(", "opcode", "==", "ATHROW", "&&", "!", "enabledListeners", ".", "isEmpty", "(", ")", ")", "{", "String", "key", "=", "createKey", "(", ")", ";", "ProbeImpl", "prob...
Inject code to fire a probe before any throw instruction.
[ "Inject", "code", "to", "fire", "a", "probe", "before", "any", "throw", "instruction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtThrowMethodAdapter.java#L63-L90
train
OpenLiberty/open-liberty
dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java
SQLRecoverableUnitSectionImpl.addData
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
java
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
[ "public", "void", "addData", "(", "int", "index", ",", "byte", "[", "]", "data", ")", "throws", "InternalLogException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"addData\"", ",", "new", "java", ...
recovery method to add data directly to _writtenData array
[ "recovery", "method", "to", "add", "data", "directly", "to", "_writtenData", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java#L327-L368
train
OpenLiberty/open-liberty
dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java
SQLRecoverableUnitSectionImpl.identity
public int identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity)); return _identity; }
java
public int identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity)); return _identity; }
[ "public", "int", "identity", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"identity\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "exit"...
Returns the identity of the recoverable unit section. @return The identity of the recoverable unit section.
[ "Returns", "the", "identity", "of", "the", "recoverable", "unit", "section", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLRecoverableUnitSectionImpl.java#L596-L601
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/hpack/IntegerRepresentation.java
IntegerRepresentation.decode
public static int decode(WsByteBuffer headerBlock, int N) { // if (!headerBlock.hasRemaining()) { // throw new HeaderFieldDecodingException("No length to decode"); // } int I = HpackUtils.getLSB(headerBlock.get(), N); if (I < HpackUtils.ipow(2, N) - 1) { return...
java
public static int decode(WsByteBuffer headerBlock, int N) { // if (!headerBlock.hasRemaining()) { // throw new HeaderFieldDecodingException("No length to decode"); // } int I = HpackUtils.getLSB(headerBlock.get(), N); if (I < HpackUtils.ipow(2, N) - 1) { return...
[ "public", "static", "int", "decode", "(", "WsByteBuffer", "headerBlock", ",", "int", "N", ")", "{", "// if (!headerBlock.hasRemaining()) {", "// throw new HeaderFieldDecodingException(\"No length to decode\");", "// }", "int", "I", "=", "HpackUtils", ".", "getLSB", "(",...
Decodes a provided byte array that was encoded using an N-bit prefix. @param ba @param N @return @throws HeaderFieldDecodingException
[ "Decodes", "a", "provided", "byte", "array", "that", "was", "encoded", "using", "an", "N", "-", "bit", "prefix", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/hpack/IntegerRepresentation.java#L196-L229
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getPadBits
static protected int getPadBits( int bitString) { int val = 0; for (int i = 3; i >= 0; i--) { // // this may look a little odd, but if it isn't done like this pre jdk1.2 // JVM's break! // if (i != 0) { ...
java
static protected int getPadBits( int bitString) { int val = 0; for (int i = 3; i >= 0; i--) { // // this may look a little odd, but if it isn't done like this pre jdk1.2 // JVM's break! // if (i != 0) { ...
[ "static", "protected", "int", "getPadBits", "(", "int", "bitString", ")", "{", "int", "val", "=", "0", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "//", "// this may look a little odd, but if it isn't done like thi...
return the correct number of pad bits for a bit string defined in a 32 bit constant
[ "return", "the", "correct", "number", "of", "pad", "bits", "for", "a", "bit", "string", "defined", "in", "a", "32", "bit", "constant" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L33-L75
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getBytes
static protected byte[] getBytes(int bitString) { int bytes = 4; for (int i = 3; i >= 1; i--) { if ((bitString & (0xFF << (i * 8))) != 0) { break; } bytes--; } byte[] result = new byte[bytes]; for (int i...
java
static protected byte[] getBytes(int bitString) { int bytes = 4; for (int i = 3; i >= 1; i--) { if ((bitString & (0xFF << (i * 8))) != 0) { break; } bytes--; } byte[] result = new byte[bytes]; for (int i...
[ "static", "protected", "byte", "[", "]", "getBytes", "(", "int", "bitString", ")", "{", "int", "bytes", "=", "4", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">=", "1", ";", "i", "--", ")", "{", "if", "(", "(", "bitString", "&", "(", "0x...
return the correct number of bytes for a bit string defined in a 32 bit constant
[ "return", "the", "correct", "number", "of", "bytes", "for", "a", "bit", "string", "defined", "in", "a", "32", "bit", "constant" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L81-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java
DERBitString.getInstance
public static DERBitString getInstance( Object obj) { if (obj == null || obj instanceof DERBitString) { return (DERBitString)obj; } if (obj instanceof ASN1OctetString) { byte[] bytes = ((ASN1OctetString)obj).getOctets(); int ...
java
public static DERBitString getInstance( Object obj) { if (obj == null || obj instanceof DERBitString) { return (DERBitString)obj; } if (obj instanceof ASN1OctetString) { byte[] bytes = ((ASN1OctetString)obj).getOctets(); int ...
[ "public", "static", "DERBitString", "getInstance", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "null", "||", "obj", "instanceof", "DERBitString", ")", "{", "return", "(", "DERBitString", ")", "obj", ";", "}", "if", "(", "obj", "instanceof", "...
return a Bit String from the passed in object @exception IllegalArgumentException if the object cannot be converted.
[ "return", "a", "Bit", "String", "from", "the", "passed", "in", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/DERBitString.java#L107-L132
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.handleBasicAuth
private AuthenticationResult handleBasicAuth(String inRealm, HttpServletRequest req, HttpServletResponse res) { AuthenticationResult result = null; String hdrValue = req.getHeader(BASIC_AUTH_HEADER_NAME); if (hdrValue == null || !hdrValue.startsWith("Basic ")) { result = new Authent...
java
private AuthenticationResult handleBasicAuth(String inRealm, HttpServletRequest req, HttpServletResponse res) { AuthenticationResult result = null; String hdrValue = req.getHeader(BASIC_AUTH_HEADER_NAME); if (hdrValue == null || !hdrValue.startsWith("Basic ")) { result = new Authent...
[ "private", "AuthenticationResult", "handleBasicAuth", "(", "String", "inRealm", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ")", "{", "AuthenticationResult", "result", "=", "null", ";", "String", "hdrValue", "=", "req", ".", "getHeader", "("...
handleBasicAuth generates AuthenticationResult This routine invokes basicAuthenticate which also generates AuthenticationResult.
[ "handleBasicAuth", "generates", "AuthenticationResult", "This", "routine", "invokes", "basicAuthenticate", "which", "also", "generates", "AuthenticationResult", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L95-L118
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.getBasicAuthRealmName
protected String getBasicAuthRealmName(WebRequest webRequest) { SecurityMetadata securityMetadata = webRequest.getSecurityMetadata(); if (securityMetadata != null) { LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration(); if (loginConfig != null && loginConfig....
java
protected String getBasicAuthRealmName(WebRequest webRequest) { SecurityMetadata securityMetadata = webRequest.getSecurityMetadata(); if (securityMetadata != null) { LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration(); if (loginConfig != null && loginConfig....
[ "protected", "String", "getBasicAuthRealmName", "(", "WebRequest", "webRequest", ")", "{", "SecurityMetadata", "securityMetadata", "=", "webRequest", ".", "getSecurityMetadata", "(", ")", ";", "if", "(", "securityMetadata", "!=", "null", ")", "{", "LoginConfiguration"...
Return a realm name if it's defined in the web.xml file. If it's not defined in the web.xml and displayAuthenticationRealm is set to true, then return the userRegistry realm. Otherwise return the realm as "Default Realm". @param webRequest @return realm
[ "Return", "a", "realm", "name", "if", "it", "s", "defined", "in", "the", "web", ".", "xml", "file", ".", "If", "it", "s", "not", "defined", "in", "the", "web", ".", "xml", "and", "displayAuthenticationRealm", "is", "set", "to", "true", "then", "return"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L162-L175
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java
BasicAuthAuthenticator.decodeBasicAuth
@Sensitive protected String decodeBasicAuth(String data, String encoding) { String output = ""; byte decodedByte[] = null; decodedByte = Base64Coder.base64DecodeString(data); if (decodedByte != null && decodedByte.length > 0) { boolean decoded = false; if (enc...
java
@Sensitive protected String decodeBasicAuth(String data, String encoding) { String output = ""; byte decodedByte[] = null; decodedByte = Base64Coder.base64DecodeString(data); if (decodedByte != null && decodedByte.length > 0) { boolean decoded = false; if (enc...
[ "@", "Sensitive", "protected", "String", "decodeBasicAuth", "(", "String", "data", ",", "String", "encoding", ")", "{", "String", "output", "=", "\"\"", ";", "byte", "decodedByte", "[", "]", "=", "null", ";", "decodedByte", "=", "Base64Coder", ".", "base64De...
2. This method intentionally returns empty string in case of error. With that, a caller doesn't need to check null object prior to introspect it.
[ "2", ".", "This", "method", "intentionally", "returns", "empty", "string", "in", "case", "of", "error", ".", "With", "that", "a", "caller", "doesn", "t", "need", "to", "check", "null", "object", "prior", "to", "introspect", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/BasicAuthAuthenticator.java#L180-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isUninstallable
public static boolean isUninstallable(Set<IFixInfo> installedFixes, IFixInfo fixToBeUninstalled) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } if (fixToBeUninstalled != null) { for (IFixInfo fix : installedFixes) { if (...
java
public static boolean isUninstallable(Set<IFixInfo> installedFixes, IFixInfo fixToBeUninstalled) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } if (fixToBeUninstalled != null) { for (IFixInfo fix : installedFixes) { if (...
[ "public", "static", "boolean", "isUninstallable", "(", "Set", "<", "IFixInfo", ">", "installedFixes", ",", "IFixInfo", "fixToBeUninstalled", ")", "{", "if", "(", "Boolean", ".", "valueOf", "(", "System", ".", "getenv", "(", "S_DISABLE", ")", ")", ".", "boole...
Return true if fixToBeUninstalled can be uninstalled. fixToBeUninstalled can only be uninstalled if there are no file conflicts with other fixes in the installedFixes Set that supersedes fixToBeUninstalled @param installedFixes The set of fixes that is already installed, the set does not include the fixToBeUninstalled...
[ "Return", "true", "if", "fixToBeUninstalled", "can", "be", "uninstalled", ".", "fixToBeUninstalled", "can", "only", "be", "uninstalled", "if", "there", "are", "no", "file", "conflicts", "with", "other", "fixes", "in", "the", "installedFixes", "Set", "that", "sup...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L46-L63
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isUninstallable
public boolean isUninstallable(UninstallAsset uninstallAsset, Set<IFixInfo> installedFixes, List<UninstallAsset> uninstallAssets) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } IFixInfo fixToBeUninstalled = uninstallAsset.getIFixInfo(); for...
java
public boolean isUninstallable(UninstallAsset uninstallAsset, Set<IFixInfo> installedFixes, List<UninstallAsset> uninstallAssets) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } IFixInfo fixToBeUninstalled = uninstallAsset.getIFixInfo(); for...
[ "public", "boolean", "isUninstallable", "(", "UninstallAsset", "uninstallAsset", ",", "Set", "<", "IFixInfo", ">", "installedFixes", ",", "List", "<", "UninstallAsset", ">", "uninstallAssets", ")", "{", "if", "(", "Boolean", ".", "valueOf", "(", "System", ".", ...
Verfiy whether the fix is uninstallable and there is no other installed fix still require this feature. @param uninstallAsset fix to be uninstalled @param installedFixes installed fixes @param uninstallAssets the list of fixes that is to be uninstalled @return the true if there is no fix that depends on the uninstall ...
[ "Verfiy", "whether", "the", "fix", "is", "uninstallable", "and", "there", "is", "no", "other", "installed", "fix", "still", "require", "this", "feature", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L74-L90
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.fixRequiredByFeature
public static ArrayList<String> fixRequiredByFeature(String fixApar, Map<String, ProvisioningFeatureDefinition> installedFeatures) { ArrayList<String> dependencies = new ArrayList<String>(); for (ProvisioningFeatureDefinition fd : installedFeatures.values()) { String requireFixes = fd.getHea...
java
public static ArrayList<String> fixRequiredByFeature(String fixApar, Map<String, ProvisioningFeatureDefinition> installedFeatures) { ArrayList<String> dependencies = new ArrayList<String>(); for (ProvisioningFeatureDefinition fd : installedFeatures.values()) { String requireFixes = fd.getHea...
[ "public", "static", "ArrayList", "<", "String", ">", "fixRequiredByFeature", "(", "String", "fixApar", ",", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "installedFeatures", ")", "{", "ArrayList", "<", "String", ">", "dependencies", "=", "new",...
Determine the fix apar is required by one of the installed features @param fixApar fix apar @param installedFeatures installed features @return true if the fix apar is required by one of the installed features, otherwise, return false.
[ "Determine", "the", "fix", "apar", "is", "required", "by", "one", "of", "the", "installed", "features" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L116-L132
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.determineOrder
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { if (list != null) { List<FixDependencyComparator> fixCompareList = new ArrayList<FixDependencyComparator>(); // Initialize the feature comparator for (UninstallAsset asset : list) { fixCom...
java
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { if (list != null) { List<FixDependencyComparator> fixCompareList = new ArrayList<FixDependencyComparator>(); // Initialize the feature comparator for (UninstallAsset asset : list) { fixCom...
[ "public", "List", "<", "UninstallAsset", ">", "determineOrder", "(", "List", "<", "UninstallAsset", ">", "list", ")", "{", "if", "(", "list", "!=", "null", ")", "{", "List", "<", "FixDependencyComparator", ">", "fixCompareList", "=", "new", "ArrayList", "<",...
Determine the order of the fixes according to their dependency @param list list of the fixes @return the sorted fixes list according to the fix dependency
[ "Determine", "the", "order", "of", "the", "fixes", "according", "to", "their", "dependency" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L140-L156
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.isSupersededBy
private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return true, to indicate that this I...
java
private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return true, to indicate that this I...
[ "private", "static", "boolean", "isSupersededBy", "(", "List", "<", "Problem", ">", "apars1", ",", "List", "<", "Problem", ">", "apars2", ")", "{", "boolean", "result", "=", "true", ";", "// Now iterate over the current list of problems, and see if the incoming IFixInfo...
Returns if the apars list apars1 is superseded by apars2. Apars1 is superseded by apars2 if all the apars in apars1 is also included in apars2 @param apars1 Fix to check @param apars2 @return Returns true if apars list apars1 is superseded by apars2. Else return false.
[ "Returns", "if", "the", "apars", "list", "apars1", "is", "superseded", "by", "apars2", ".", "Apars1", "is", "superseded", "by", "apars2", "if", "all", "the", "apars", "in", "apars1", "is", "also", "included", "in", "apars2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L165-L184
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java
FixDependencyChecker.confirmNoFileConflicts
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
java
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
[ "private", "static", "boolean", "confirmNoFileConflicts", "(", "Set", "<", "UpdatedFile", ">", "updatedFiles1", ",", "Set", "<", "UpdatedFile", ">", "updatedFiles2", ")", "{", "for", "(", "Iterator", "<", "UpdatedFile", ">", "iter1", "=", "updatedFiles1", ".", ...
Confirms that UpdatedFile lists does not contain any common files @param updatedFiles1 @param updatedFiles2 @return Return true if there are no conflicts and return false otherwise
[ "Confirms", "that", "UpdatedFile", "lists", "does", "not", "contain", "any", "common", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/FixDependencyChecker.java#L193-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.close
@Override public void close(boolean deleteProgressFile) { final String methodName = "close()"; traceDebug(methodName, "cacheName=" + this.cacheName + " deleteProgressFile=" + deleteProgressFile); if (deleteProgressFile) { // 316654 // remove the InProgress (dummy) file when close...
java
@Override public void close(boolean deleteProgressFile) { final String methodName = "close()"; traceDebug(methodName, "cacheName=" + this.cacheName + " deleteProgressFile=" + deleteProgressFile); if (deleteProgressFile) { // 316654 // remove the InProgress (dummy) file when close...
[ "@", "Override", "public", "void", "close", "(", "boolean", "deleteProgressFile", ")", "{", "final", "String", "methodName", "=", "\"close()\"", ";", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", "this", ".", "cacheName", "+", "\" deleteProgressFile...
Call this method to close the disk file manager and operation.
[ "Call", "this", "method", "to", "close", "the", "disk", "file", "manager", "and", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L608-L622
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeAuxiliaryDepTables
@Override public int writeAuxiliaryDepTables() { int returnCode = htod.writeAuxiliaryDepTables(); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updatePropertyFile(); } return returnCode; }
java
@Override public int writeAuxiliaryDepTables() { int returnCode = htod.writeAuxiliaryDepTables(); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updatePropertyFile(); } return returnCode; }
[ "@", "Override", "public", "int", "writeAuxiliaryDepTables", "(", ")", "{", "int", "returnCode", "=", "htod", ".", "writeAuxiliaryDepTables", "(", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "t...
Call this method to offload auxiliary dependency tables to the disk and update property file.
[ "Call", "this", "method", "to", "offload", "auxiliary", "dependency", "tables", "to", "the", "disk", "and", "update", "property", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L627-L636
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readLastScanFile
private void readLastScanFile() { final String methodName = "readLastScanFile()"; final File f = new File(lastScanFileName); traceDebug(methodName, "cacheName=" + this.cacheName); if (f.exists()) { final CacheOnDisk cod = this; AccessController.doPrivileged(new Pr...
java
private void readLastScanFile() { final String methodName = "readLastScanFile()"; final File f = new File(lastScanFileName); traceDebug(methodName, "cacheName=" + this.cacheName); if (f.exists()) { final CacheOnDisk cod = this; AccessController.doPrivileged(new Pr...
[ "private", "void", "readLastScanFile", "(", ")", "{", "final", "String", "methodName", "=", "\"readLastScanFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "lastScanFileName", ")", ";", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", ...
Call this method to read the timestamp of the last scan in Last Scan file.
[ "Call", "this", "method", "to", "read", "the", "timestamp", "of", "the", "last", "scan", "in", "Last", "Scan", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L641-L676
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.updateLastScanFile
protected void updateLastScanFile() { final String methodName = "updateLastScanFile()"; final File f = new File(lastScanFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
protected void updateLastScanFile() { final String methodName = "updateLastScanFile()"; final File f = new File(lastScanFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
[ "protected", "void", "updateLastScanFile", "(", ")", "{", "final", "String", "methodName", "=", "\"updateLastScanFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "lastScanFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "trac...
Call this method to update the timestamp of the last scan in Last Scan file.
[ "Call", "this", "method", "to", "update", "the", "timestamp", "of", "the", "last", "scan", "in", "Last", "Scan", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L681-L714
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.deletePropertyFile
private void deletePropertyFile() { final String methodName = "deletePropertyFile()"; final File f = new File(htodPropertyFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
private void deletePropertyFile() { final String methodName = "deletePropertyFile()"; final File f = new File(htodPropertyFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
[ "private", "void", "deletePropertyFile", "(", ")", "{", "final", "String", "methodName", "=", "\"deletePropertyFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "htodPropertyFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "tr...
Call this method to delete the HTOD property file.
[ "Call", "this", "method", "to", "delete", "the", "HTOD", "property", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L916-L932
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.deleteDiskCacheFiles
public void deleteDiskCacheFiles() { final String methodName = "deleteDiskCacheFiles()"; final File f = new File(swapDirPath); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { p...
java
public void deleteDiskCacheFiles() { final String methodName = "deleteDiskCacheFiles()"; final File f = new File(swapDirPath); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { p...
[ "public", "void", "deleteDiskCacheFiles", "(", ")", "{", "final", "String", "methodName", "=", "\"deleteDiskCacheFiles()\"", ";", "final", "File", "f", "=", "new", "File", "(", "swapDirPath", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ";", "traceDeb...
Call this method to delete all disk cache files per cache instance.
[ "Call", "this", "method", "to", "delete", "all", "disk", "cache", "files", "per", "cache", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L937-L957
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readAndDeleteInvalidationFile
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
java
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
[ "protected", "ValueSet", "readAndDeleteInvalidationFile", "(", ")", "{", "final", "String", "methodName", "=", "\"readAndDeleteInvalidationFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "invalidationFileName", ")", ";", "final", "CacheOnDisk", "cod", ...
Call this method to read in all invalidation cache ids if the invalidation file exists. and then delete the invalidation file.
[ "Call", "this", "method", "to", "read", "in", "all", "invalidation", "cache", "ids", "if", "the", "invalidation", "file", "exists", ".", "and", "then", "delete", "the", "invalidation", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1076-L1118
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.createInvalidationFile
protected void createInvalidationFile() { final String methodName = "createInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName + " valueSet=" + cod.valueSet.size()); AccessControlle...
java
protected void createInvalidationFile() { final String methodName = "createInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName + " valueSet=" + cod.valueSet.size()); AccessControlle...
[ "protected", "void", "createInvalidationFile", "(", ")", "{", "final", "String", "methodName", "=", "\"createInvalidationFile()\"", ";", "final", "File", "f", "=", "new", "File", "(", "invalidationFileName", ")", ";", "final", "CacheOnDisk", "cod", "=", "this", ...
Call this method to create invalidation file to offload the invalidation cache ids. When the server is restarted, the invalidation cache ids are read back. The LPBT will be called to remove these cache ids from the disk.
[ "Call", "this", "method", "to", "create", "invalidation", "file", "to", "offload", "the", "invalidation", "cache", "ids", ".", "When", "the", "server", "is", "restarted", "the", "invalidation", "cache", "ids", "are", "read", "back", ".", "The", "LPBT", "will...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1124-L1159
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.alarm
public void alarm(final Object alarmContext) { final String methodName = "alarm()"; synchronized (this) { if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) { this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN); ...
java
public void alarm(final Object alarmContext) { final String methodName = "alarm()"; synchronized (this) { if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) { this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN); ...
[ "public", "void", "alarm", "(", "final", "Object", "alarmContext", ")", "{", "final", "String", "methodName", "=", "\"alarm()\"", ";", "synchronized", "(", "this", ")", "{", "if", "(", "!", "stopping", "&&", "!", "this", ".", "htod", ".", "invalidationBuff...
Call this method when the alarm is triggered. It is being checked to see whether a disk cleanup is scheduled to run.
[ "Call", "this", "method", "when", "the", "alarm", "is", "triggered", ".", "It", "is", "being", "checked", "to", "see", "whether", "a", "disk", "cleanup", "is", "scheduled", "to", "run", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1165-L1186
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.clearDiskCache
public void clearDiskCache() { if (htod.clearDiskCache() == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updateLastScanFile(); updatePropertyFile(); createInProgressFile(); } }
java
public void clearDiskCache() { if (htod.clearDiskCache() == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updateLastScanFile(); updatePropertyFile(); createInProgressFile(); } }
[ "public", "void", "clearDiskCache", "(", ")", "{", "if", "(", "htod", ".", "clearDiskCache", "(", ")", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "(", "this", ".", "htod", ".", "diskCacheException", ")", ";", "}", "else", "{", ...
Call this method to clear the disk cache per cache instance.
[ "Call", "this", "method", "to", "clear", "the", "disk", "cache", "per", "cache", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1222-L1230
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.writeCacheEntry
public int writeCacheEntry(CacheEntry ce) { // @A5C int returnCode = htod.writeCacheEntry(ce); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public int writeCacheEntry(CacheEntry ce) { // @A5C int returnCode = htod.writeCacheEntry(ce); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
[ "public", "int", "writeCacheEntry", "(", "CacheEntry", "ce", ")", "{", "// @A5C", "int", "returnCode", "=", "htod", ".", "writeCacheEntry", "(", "ce", ")", ";", "if", "(", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", "stopOnError", "...
Call this method to write a cache entry to the disk.
[ "Call", "this", "method", "to", "write", "a", "cache", "entry", "to", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1235-L1241
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java
CacheOnDisk.readCacheEntry
public CacheEntry readCacheEntry(Object id) { // SKS-O Result result = htod.readCacheEntry(id); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return null; } CacheEntry ...
java
public CacheEntry readCacheEntry(Object id) { // SKS-O Result result = htod.readCacheEntry(id); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return null; } CacheEntry ...
[ "public", "CacheEntry", "readCacheEntry", "(", "Object", "id", ")", "{", "// SKS-O", "Result", "result", "=", "htod", ".", "readCacheEntry", "(", "id", ")", ";", "if", "(", "result", ".", "returnCode", "==", "HTODDynacache", ".", "DISK_EXCEPTION", ")", "{", ...
Call this method to read a cache entry from the disk. @param id - cache id.
[ "Call", "this", "method", "to", "read", "a", "cache", "entry", "from", "the", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1249-L1259
train