id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
71,000 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installFeatures | public void installFeatures(Collection<String> featureNames, String toExtension, boolean acceptLicense, String userId, String password) throws InstallException {
installFeatures(featureNames, toExtension, acceptLicense, userId, password, 1);
} | java | public void installFeatures(Collection<String> featureNames, String toExtension, boolean acceptLicense, String userId, String password) throws InstallException {
installFeatures(featureNames, toExtension, acceptLicense, userId, password, 1);
} | [
"public",
"void",
"installFeatures",
"(",
"Collection",
"<",
"String",
">",
"featureNames",
",",
"String",
"toExtension",
",",
"boolean",
"acceptLicense",
",",
"String",
"userId",
",",
"String",
"password",
")",
"throws",
"InstallException",
"{",
"installFeatures",
... | Installs the specified features
@param featureNames collection of feature names to be installed
@param toExtension location of a product extension
@param acceptLicense if license is accepted
@param userId userId for repository
@param password password for repository
@throws InstallException | [
"Installs",
"the",
"specified",
"features"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L258-L260 |
71,001 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installFeature | public void installFeature(String esaLocation, String toExtension, boolean acceptLicense) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
... | java | public void installFeature(String esaLocation, String toExtension, boolean acceptLicense) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
... | [
"public",
"void",
"installFeature",
"(",
"String",
"esaLocation",
",",
"String",
"toExtension",
",",
"boolean",
"acceptLicense",
")",
"throws",
"InstallException",
"{",
"fireProgressEvent",
"(",
"InstallProgressEvent",
".",
"CHECK",
",",
"1",
",",
"Messages",
".",
... | Installs the feature found in the given esa location
@param esaLocation location of esa
@param toExtension location of a product extension
@param acceptLicense if license is accepted
@throws InstallException | [
"Installs",
"the",
"feature",
"found",
"in",
"the",
"given",
"esa",
"location"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L374-L383 |
71,002 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installFeatureNoResolve | public void installFeatureNoResolve(String esaLocation, String toExtension, boolean acceptLicense) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
ArrayList<InstallAsset> singleFeatureInstall = new ArrayList<In... | java | public void installFeatureNoResolve(String esaLocation, String toExtension, boolean acceptLicense) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
ArrayList<InstallAsset> singleFeatureInstall = new ArrayList<In... | [
"public",
"void",
"installFeatureNoResolve",
"(",
"String",
"esaLocation",
",",
"String",
"toExtension",
",",
"boolean",
"acceptLicense",
")",
"throws",
"InstallException",
"{",
"fireProgressEvent",
"(",
"InstallProgressEvent",
".",
"CHECK",
",",
"1",
",",
"Messages",... | Installs the feature found in the given esa location without resolving dependencies
@param esaLocation location of esa
@param toExtension location of a product extension
@param acceptLicense if license is accepted
@throws InstallException | [
"Installs",
"the",
"feature",
"found",
"in",
"the",
"given",
"esa",
"location",
"without",
"resolving",
"dependencies"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L393-L409 |
71,003 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installFeature | public void installFeature(Collection<String> featureIds, File fromDir, String toExtension, boolean acceptLicense, boolean offlineOnly) throws InstallException {
//fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
this.installAssets = new... | java | public void installFeature(Collection<String> featureIds, File fromDir, String toExtension, boolean acceptLicense, boolean offlineOnly) throws InstallException {
//fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
this.installAssets = new... | [
"public",
"void",
"installFeature",
"(",
"Collection",
"<",
"String",
">",
"featureIds",
",",
"File",
"fromDir",
",",
"String",
"toExtension",
",",
"boolean",
"acceptLicense",
",",
"boolean",
"offlineOnly",
")",
"throws",
"InstallException",
"{",
"//fireProgressEven... | Installs the features found in the inputed featureIds collection
@param featureIds the feature ids
@param fromDir where the features are located
@param toExtension location of a product extension
@param acceptLicense if license is accepted
@param offlineOnly if features should be installed from local source only
@thro... | [
"Installs",
"the",
"features",
"found",
"in",
"the",
"inputed",
"featureIds",
"collection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L421-L439 |
71,004 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.resolveServerPackage | public ServerPackageAsset resolveServerPackage(File archiveFile) throws InstallException {
ServerPackageAsset spa = (ServerPackageJarAsset.validType(archiveFile.getAbsolutePath().toLowerCase())) ? new ServerPackageJarAsset(archiveFile, false) : new ServerPackageZipAsset(archiveFile, false);
this.instal... | java | public ServerPackageAsset resolveServerPackage(File archiveFile) throws InstallException {
ServerPackageAsset spa = (ServerPackageJarAsset.validType(archiveFile.getAbsolutePath().toLowerCase())) ? new ServerPackageJarAsset(archiveFile, false) : new ServerPackageZipAsset(archiveFile, false);
this.instal... | [
"public",
"ServerPackageAsset",
"resolveServerPackage",
"(",
"File",
"archiveFile",
")",
"throws",
"InstallException",
"{",
"ServerPackageAsset",
"spa",
"=",
"(",
"ServerPackageJarAsset",
".",
"validType",
"(",
"archiveFile",
".",
"getAbsolutePath",
"(",
")",
".",
"to... | Creates a new server package asset from the inputed archive file
@param archiveFile the archive file containing the asset
@return a new ServerPackageAsset from the archive file
@throws InstallException | [
"Creates",
"a",
"new",
"server",
"package",
"asset",
"from",
"the",
"inputed",
"archive",
"file"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L448-L455 |
71,005 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getServerFeaturesToInstall | public Collection<String> getServerFeaturesToInstall(Set<ServerAsset> servers, boolean offlineOnly) throws InstallException, IOException {
Set<String> features = new TreeSet<String>();
Set<String> serverNames = new HashSet<String>(servers.size());
Set<String> allServerNames = new HashSet<String>... | java | public Collection<String> getServerFeaturesToInstall(Set<ServerAsset> servers, boolean offlineOnly) throws InstallException, IOException {
Set<String> features = new TreeSet<String>();
Set<String> serverNames = new HashSet<String>(servers.size());
Set<String> allServerNames = new HashSet<String>... | [
"public",
"Collection",
"<",
"String",
">",
"getServerFeaturesToInstall",
"(",
"Set",
"<",
"ServerAsset",
">",
"servers",
",",
"boolean",
"offlineOnly",
")",
"throws",
"InstallException",
",",
"IOException",
"{",
"Set",
"<",
"String",
">",
"features",
"=",
"new"... | Creates a collection of features required for all servers in the inputed set.
@param servers set of ServerAssets
@param offlineOnly if features should be only retrieved locally
@return Collection of server feature names to install
@throws InstallException
@throws IOException | [
"Creates",
"a",
"collection",
"of",
"features",
"required",
"for",
"all",
"servers",
"in",
"the",
"inputed",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L466-L497 |
71,006 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installFixes | public void installFixes(Collection<String> fixes, String userId, String password) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
List<String> fixesToInstall = new ArrayList<String>(fixes.size());
for ... | java | public void installFixes(Collection<String> fixes, String userId, String password) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));
List<String> fixesToInstall = new ArrayList<String>(fixes.size());
for ... | [
"public",
"void",
"installFixes",
"(",
"Collection",
"<",
"String",
">",
"fixes",
",",
"String",
"userId",
",",
"String",
"password",
")",
"throws",
"InstallException",
"{",
"fireProgressEvent",
"(",
"InstallProgressEvent",
".",
"CHECK",
",",
"1",
",",
"Messages... | Set Director to install the specified fixes including the following tasks
- determine to install the fix or not
- call Resolver to resolve the required fixes
- call Massive Client to download the assets
@param strings | [
"Set",
"Director",
"to",
"install",
"the",
"specified",
"fixes",
"including",
"the",
"following",
"tasks",
"-",
"determine",
"to",
"install",
"the",
"fix",
"or",
"not",
"-",
"call",
"Resolver",
"to",
"resolve",
"the",
"required",
"fixes",
"-",
"call",
"Massi... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L507-L543 |
71,007 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getFeatureLicense | public Set<InstallLicense> getFeatureLicense(Collection<String> featureIds, File fromDir, String toExtension, boolean offlineOnly, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();... | java | public Set<InstallLicense> getFeatureLicense(Collection<String> featureIds, File fromDir, String toExtension, boolean offlineOnly, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getFeatureLicense",
"(",
"Collection",
"<",
"String",
">",
"featureIds",
",",
"File",
"fromDir",
",",
"String",
"toExtension",
",",
"boolean",
"offlineOnly",
",",
"Locale",
"locale",
")",
"throws",
"InstallException",
... | Creates a set of install licenses for all features to be installed
@param featureIds collection of feature ids as strings to get the licenses from
@param fromDir the directory of the features
@param toExtension location of a product extension
@param offlineOnly if features should be only retrieved locally
@param local... | [
"Creates",
"a",
"set",
"of",
"install",
"licenses",
"for",
"all",
"features",
"to",
"be",
"installed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L556-L591 |
71,008 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getFeatureLicense | public Set<InstallLicense> getFeatureLicense(String esaLocation, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
getResolveDirector().resolve(esaLocation, "", product.get... | java | public Set<InstallLicense> getFeatureLicense(String esaLocation, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
getResolveDirector().resolve(esaLocation, "", product.get... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getFeatureLicense",
"(",
"String",
"esaLocation",
",",
"Locale",
"locale",
")",
"throws",
"InstallException",
"{",
"Set",
"<",
"InstallLicense",
">",
"licenses",
"=",
"new",
"HashSet",
"<",
"InstallLicense",
">",
"("... | Gets the licenses for the specified esa location.
@param esaLocation location of esa
@param locale Locale for the license
@return A set of InstallLicenses for the features at the esa location
@throws InstallException | [
"Gets",
"the",
"licenses",
"for",
"the",
"specified",
"esa",
"location",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L601-L627 |
71,009 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getFeatureLicense | public Set<InstallLicense> getFeatureLicense(Collection<String> featureNames, Locale locale, String userId, String password) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
if (featureNames == null || featureNames.isEmpty())
return licenses;
M... | java | public Set<InstallLicense> getFeatureLicense(Collection<String> featureNames, Locale locale, String userId, String password) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
if (featureNames == null || featureNames.isEmpty())
return licenses;
M... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getFeatureLicense",
"(",
"Collection",
"<",
"String",
">",
"featureNames",
",",
"Locale",
"locale",
",",
"String",
"userId",
",",
"String",
"password",
")",
"throws",
"InstallException",
"{",
"Set",
"<",
"InstallLice... | Gets the licenses for the specified feature names
@param featureNames a collection of the feature names
@param locale Locale for the licenses
@param userId userId for the repository
@param password password for the repository
@return A set of installLicenses for the featuresNames
@throws InstallException | [
"Gets",
"the",
"licenses",
"for",
"the",
"specified",
"feature",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L639-L651 |
71,010 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getServerPackageFeatureLicense | public Set<InstallLicense> getServerPackageFeatureLicense(File archive, boolean offlineOnly, Locale locale) throws InstallException {
String aName = archive.getAbsolutePath().toLowerCase();
ServerPackageAsset spa = null;
if (ServerPackageZipAsset.validType(aName)) {
spa = new ServerP... | java | public Set<InstallLicense> getServerPackageFeatureLicense(File archive, boolean offlineOnly, Locale locale) throws InstallException {
String aName = archive.getAbsolutePath().toLowerCase();
ServerPackageAsset spa = null;
if (ServerPackageZipAsset.validType(aName)) {
spa = new ServerP... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getServerPackageFeatureLicense",
"(",
"File",
"archive",
",",
"boolean",
"offlineOnly",
",",
"Locale",
"locale",
")",
"throws",
"InstallException",
"{",
"String",
"aName",
"=",
"archive",
".",
"getAbsolutePath",
"(",
"... | Gets the licenses for the specified archive file
@param archive the archive file
@param offlineOnly if features should be only retrieved locally
@param locale Locale for the licenses
@return A set of InstallLicesese for the features in the archive file
@throws InstallException | [
"Gets",
"the",
"licenses",
"for",
"the",
"specified",
"archive",
"file"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L719-L731 |
71,011 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getServerFeatureLicense | public Set<InstallLicense> getServerFeatureLicense(File serverXML, boolean offlineOnly, Locale locale) throws InstallException, IOException {
if (null != serverXML) {
return getFeatureLicense(new ServerAsset(serverXML).getRequiredFeatures(), locale, null, null);
}
return new HashSet... | java | public Set<InstallLicense> getServerFeatureLicense(File serverXML, boolean offlineOnly, Locale locale) throws InstallException, IOException {
if (null != serverXML) {
return getFeatureLicense(new ServerAsset(serverXML).getRequiredFeatures(), locale, null, null);
}
return new HashSet... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getServerFeatureLicense",
"(",
"File",
"serverXML",
",",
"boolean",
"offlineOnly",
",",
"Locale",
"locale",
")",
"throws",
"InstallException",
",",
"IOException",
"{",
"if",
"(",
"null",
"!=",
"serverXML",
")",
"{",
... | Gets the licenses for the specified server XML file
@param serverXML The server XML file
@param offlineOnly if features should be only retrieved locally
@param locale Locale for the licenses
@return Set of InstallLicenses for the features found in the server XML file
@throws InstallException
@throws IOException | [
"Gets",
"the",
"licenses",
"for",
"the",
"specified",
"server",
"XML",
"file"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L743-L749 |
71,012 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.cleanUp | public void cleanUp() {
fireProgressEvent(InstallProgressEvent.CLEAN_UP, 98, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CLEANING"));
if (installAssets != null) {
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset asset : iaList) {
... | java | public void cleanUp() {
fireProgressEvent(InstallProgressEvent.CLEAN_UP, 98, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CLEANING"));
if (installAssets != null) {
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset asset : iaList) {
... | [
"public",
"void",
"cleanUp",
"(",
")",
"{",
"fireProgressEvent",
"(",
"InstallProgressEvent",
".",
"CLEAN_UP",
",",
"98",
",",
"Messages",
".",
"INSTALL_KERNEL_MESSAGES",
".",
"getLogMessage",
"(",
"\"STATE_CLEANING\"",
")",
")",
";",
"if",
"(",
"installAssets",
... | Clean up the downloaded install assets;
reset installAssets and uninstallAssets. | [
"Clean",
"up",
"the",
"downloaded",
"install",
"assets",
";",
"reset",
"installAssets",
"and",
"uninstallAssets",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L972-L991 |
71,013 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getInstalledFeatureNames | public Collection<String> getInstalledFeatureNames() {
if (installAssets == null)
return null;
Collection<String> installed = new ArrayList<String>();
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset asset : iaList) {
if (asset.isFeature... | java | public Collection<String> getInstalledFeatureNames() {
if (installAssets == null)
return null;
Collection<String> installed = new ArrayList<String>();
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset asset : iaList) {
if (asset.isFeature... | [
"public",
"Collection",
"<",
"String",
">",
"getInstalledFeatureNames",
"(",
")",
"{",
"if",
"(",
"installAssets",
"==",
"null",
")",
"return",
"null",
";",
"Collection",
"<",
"String",
">",
"installed",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")... | Get a collection of installed feature names
@return installed feature name collection | [
"Get",
"a",
"collection",
"of",
"installed",
"feature",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L998-L1016 |
71,014 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.enableConsoleLog | public void enableConsoleLog(Level level, boolean verbose) {
InstallLogUtils.enableConsoleLogging(level, verbose);
InstallLogUtils.enableConsoleErrorLogging(verbose);
} | java | public void enableConsoleLog(Level level, boolean verbose) {
InstallLogUtils.enableConsoleLogging(level, verbose);
InstallLogUtils.enableConsoleErrorLogging(verbose);
} | [
"public",
"void",
"enableConsoleLog",
"(",
"Level",
"level",
",",
"boolean",
"verbose",
")",
"{",
"InstallLogUtils",
".",
"enableConsoleLogging",
"(",
"level",
",",
"verbose",
")",
";",
"InstallLogUtils",
".",
"enableConsoleErrorLogging",
"(",
"verbose",
")",
";",... | Enables console logging amd console error logging
@param level Level of log
@param verbose if verbose should be set | [
"Enables",
"console",
"logging",
"amd",
"console",
"error",
"logging"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1041-L1044 |
71,015 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.reapplyFixIfNeeded | public void reapplyFixIfNeeded() throws ReapplyFixException {
BundleRepositoryRegistry.initializeDefaults(null, false);
Set<String> fixesToReapply = ValidateCommandTask.getFixesToReapply(product.getManifestFileProcessor(), new InstallUtils.InstallCommandConsole());
try {
fireProgress... | java | public void reapplyFixIfNeeded() throws ReapplyFixException {
BundleRepositoryRegistry.initializeDefaults(null, false);
Set<String> fixesToReapply = ValidateCommandTask.getFixesToReapply(product.getManifestFileProcessor(), new InstallUtils.InstallCommandConsole());
try {
fireProgress... | [
"public",
"void",
"reapplyFixIfNeeded",
"(",
")",
"throws",
"ReapplyFixException",
"{",
"BundleRepositoryRegistry",
".",
"initializeDefaults",
"(",
"null",
",",
"false",
")",
";",
"Set",
"<",
"String",
">",
"fixesToReapply",
"=",
"ValidateCommandTask",
".",
"getFixe... | Reinstalls fixes that need to be applied again if any exist
@throws ReapplyFixException | [
"Reinstalls",
"fixes",
"that",
"need",
"to",
"be",
"applied",
"again",
"if",
"any",
"exist"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1051-L1071 |
71,016 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.setScriptsPermission | public void setScriptsPermission(int event) {
if (event == InstallProgressEvent.POST_INSTALL ? setScriptsPermission : getUninstallDirector().needToSetScriptsPermission()) {
fireProgressEvent(event, 95, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_SET_SCRIPTS_PERMISSION"));
try {... | java | public void setScriptsPermission(int event) {
if (event == InstallProgressEvent.POST_INSTALL ? setScriptsPermission : getUninstallDirector().needToSetScriptsPermission()) {
fireProgressEvent(event, 95, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_SET_SCRIPTS_PERMISSION"));
try {... | [
"public",
"void",
"setScriptsPermission",
"(",
"int",
"event",
")",
"{",
"if",
"(",
"event",
"==",
"InstallProgressEvent",
".",
"POST_INSTALL",
"?",
"setScriptsPermission",
":",
"getUninstallDirector",
"(",
")",
".",
"needToSetScriptsPermission",
"(",
")",
")",
"{... | Sets the scripts permissions to executable
@param event what event to set permissions for | [
"Sets",
"the",
"scripts",
"permissions",
"to",
"executable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1078-L1087 |
71,017 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.queryFeatures | public List<EsaResource> queryFeatures(String searchStr) throws InstallException {
List<EsaResource> features = new ArrayList<EsaResource>();
RepositoryConnectionList loginInfo = getResolveDirector().getRepositoryConnectionList(null, null, null, this.getClass().getCanonicalName() + ".queryFeatures");
... | java | public List<EsaResource> queryFeatures(String searchStr) throws InstallException {
List<EsaResource> features = new ArrayList<EsaResource>();
RepositoryConnectionList loginInfo = getResolveDirector().getRepositoryConnectionList(null, null, null, this.getClass().getCanonicalName() + ".queryFeatures");
... | [
"public",
"List",
"<",
"EsaResource",
">",
"queryFeatures",
"(",
"String",
"searchStr",
")",
"throws",
"InstallException",
"{",
"List",
"<",
"EsaResource",
">",
"features",
"=",
"new",
"ArrayList",
"<",
"EsaResource",
">",
"(",
")",
";",
"RepositoryConnectionLis... | Searches for features that match the specified search string
@param searchStr the search string
@return List of EsaResources matching the search string
@throws InstallException | [
"Searches",
"for",
"features",
"that",
"match",
"the",
"specified",
"search",
"string"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1104-L1125 |
71,018 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.downloadAssetsInstallUtility | public Map<String, Collection<String>> downloadAssetsInstallUtility(Set<String> assetsNames, File toDir, DownloadOption downloadOption, String user, String password,
boolean isOverride) throws InstallException {
fireProgressEvent(InstallPro... | java | public Map<String, Collection<String>> downloadAssetsInstallUtility(Set<String> assetsNames, File toDir, DownloadOption downloadOption, String user, String password,
boolean isOverride) throws InstallException {
fireProgressEvent(InstallPro... | [
"public",
"Map",
"<",
"String",
",",
"Collection",
"<",
"String",
">",
">",
"downloadAssetsInstallUtility",
"(",
"Set",
"<",
"String",
">",
"assetsNames",
",",
"File",
"toDir",
",",
"DownloadOption",
"downloadOption",
",",
"String",
"user",
",",
"String",
"pas... | Downloads the assets specified in assetsNames using Install Utility
@param assetsNames Set of asset names to download
@param toDir Location to download assets to
@param downloadOption What dependencies should be downloaded as a DownloadOption object
@param user user id of repository
@param password password of reposit... | [
"Downloads",
"the",
"assets",
"specified",
"in",
"assetsNames",
"using",
"Install",
"Utility"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1293-L1306 |
71,019 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getInstalledCoreFeatures | public Map<String, InstalledFeature> getInstalledCoreFeatures() {
try {
Map<String, InstalledFeature> installedFeatures = new TreeMap<String, InstalledFeature>();
Map<String, ProvisioningFeatureDefinition> fdMap = product.getCoreFeatureDefinitions();
for (Entry<String, Provis... | java | public Map<String, InstalledFeature> getInstalledCoreFeatures() {
try {
Map<String, InstalledFeature> installedFeatures = new TreeMap<String, InstalledFeature>();
Map<String, ProvisioningFeatureDefinition> fdMap = product.getCoreFeatureDefinitions();
for (Entry<String, Provis... | [
"public",
"Map",
"<",
"String",
",",
"InstalledFeature",
">",
"getInstalledCoreFeatures",
"(",
")",
"{",
"try",
"{",
"Map",
"<",
"String",
",",
"InstalledFeature",
">",
"installedFeatures",
"=",
"new",
"TreeMap",
"<",
"String",
",",
"InstalledFeature",
">",
"(... | Gets installed core features
@return Map of feature name to InstalledFeature | [
"Gets",
"installed",
"core",
"features"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1332-L1344 |
71,020 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getInstalledFeatureCollections | public Map<String, InstalledFeatureCollection> getInstalledFeatureCollections() {
try {
Map<String, InstalledFeatureCollection> installedFeatureCollections = new TreeMap<String, InstalledFeatureCollection>();
Map<String, ProvisioningFeatureDefinition> fdMap = product.getFeatureCollection... | java | public Map<String, InstalledFeatureCollection> getInstalledFeatureCollections() {
try {
Map<String, InstalledFeatureCollection> installedFeatureCollections = new TreeMap<String, InstalledFeatureCollection>();
Map<String, ProvisioningFeatureDefinition> fdMap = product.getFeatureCollection... | [
"public",
"Map",
"<",
"String",
",",
"InstalledFeatureCollection",
">",
"getInstalledFeatureCollections",
"(",
")",
"{",
"try",
"{",
"Map",
"<",
"String",
",",
"InstalledFeatureCollection",
">",
"installedFeatureCollections",
"=",
"new",
"TreeMap",
"<",
"String",
",... | Get installed feature collections
@return Map of feature name to InstalledFeatureCollection | [
"Get",
"installed",
"feature",
"collections"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1351-L1363 |
71,021 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installAssets | public void installAssets(Collection<String> assetIds, File fromDir, RepositoryConnectionList loginInfo) throws InstallException {
this.installAssets = new ArrayList<List<InstallAsset>>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
ArrayList<String> unresolvedFeatures... | java | public void installAssets(Collection<String> assetIds, File fromDir, RepositoryConnectionList loginInfo) throws InstallException {
this.installAssets = new ArrayList<List<InstallAsset>>();
ArrayList<InstallAsset> installAssets = new ArrayList<InstallAsset>();
ArrayList<String> unresolvedFeatures... | [
"public",
"void",
"installAssets",
"(",
"Collection",
"<",
"String",
">",
"assetIds",
",",
"File",
"fromDir",
",",
"RepositoryConnectionList",
"loginInfo",
")",
"throws",
"InstallException",
"{",
"this",
".",
"installAssets",
"=",
"new",
"ArrayList",
"<",
"List",
... | Installs the specified assets from a specific directory
@param assetIds Collection of assetIds to install
@param fromDir Directory to get assets from
@param loginInfo RepositoryConnectionList to obtain unresolved features
@throws InstallException | [
"Installs",
"the",
"specified",
"assets",
"from",
"a",
"specific",
"directory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1373-L1390 |
71,022 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.installAssets | public void installAssets(Collection<String> assetIds, RepositoryConnectionList loginInfo) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING_ASSETS"));
if (assetIds == null || assetIds.isEmpty()) {
throw... | java | public void installAssets(Collection<String> assetIds, RepositoryConnectionList loginInfo) throws InstallException {
fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING_ASSETS"));
if (assetIds == null || assetIds.isEmpty()) {
throw... | [
"public",
"void",
"installAssets",
"(",
"Collection",
"<",
"String",
">",
"assetIds",
",",
"RepositoryConnectionList",
"loginInfo",
")",
"throws",
"InstallException",
"{",
"fireProgressEvent",
"(",
"InstallProgressEvent",
".",
"CHECK",
",",
"1",
",",
"Messages",
"."... | Installs the specified assets
@param assetIds Collection of asset Ids
@param loginInfo RepositoryConnectionList to access repository with assets
@throws InstallException | [
"Installs",
"the",
"specified",
"assets"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1399-L1414 |
71,023 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.checkResources | public void checkResources() throws InstallException {
getResolveDirector().checkResources();
if (installAssets != null) {
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset ia : iaList) {
checkResource(ia);
}
}... | java | public void checkResources() throws InstallException {
getResolveDirector().checkResources();
if (installAssets != null) {
for (List<InstallAsset> iaList : installAssets) {
for (InstallAsset ia : iaList) {
checkResource(ia);
}
}... | [
"public",
"void",
"checkResources",
"(",
")",
"throws",
"InstallException",
"{",
"getResolveDirector",
"(",
")",
".",
"checkResources",
"(",
")",
";",
"if",
"(",
"installAssets",
"!=",
"null",
")",
"{",
"for",
"(",
"List",
"<",
"InstallAsset",
">",
"iaList",... | Checks if resources in installAssets are already installed and
if there is enough space in the install directory to install
@throws InstallException | [
"Checks",
"if",
"resources",
"in",
"installAssets",
"are",
"already",
"installed",
"and",
"if",
"there",
"is",
"enough",
"space",
"in",
"the",
"install",
"directory",
"to",
"install"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1506-L1530 |
71,024 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.castToPrintableMessage | public String castToPrintableMessage(long number) {
long i = number / 1048576;
if (i > 0)
return String.valueOf(i) + " MB";
else {
long l = number / 1024;
return String.valueOf(l) + " KB";
}
} | java | public String castToPrintableMessage(long number) {
long i = number / 1048576;
if (i > 0)
return String.valueOf(i) + " MB";
else {
long l = number / 1024;
return String.valueOf(l) + " KB";
}
} | [
"public",
"String",
"castToPrintableMessage",
"(",
"long",
"number",
")",
"{",
"long",
"i",
"=",
"number",
"/",
"1048576",
";",
"if",
"(",
"i",
">",
"0",
")",
"return",
"String",
".",
"valueOf",
"(",
"i",
")",
"+",
"\" MB\"",
";",
"else",
"{",
"long"... | Casts a long to MB or KB
@param number long number to cast
@return number in MB or KB if less than 1048576 | [
"Casts",
"a",
"long",
"to",
"MB",
"or",
"KB"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1538-L1548 |
71,025 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getInstalledAssetNames | public Map<String, Collection<String>> getInstalledAssetNames() {
if (installAssets == null)
return null;
Map<String, Collection<String>> installed = new HashMap<String, Collection<String>>();
Collection<String> installedAddons = new ArrayList<String>();
Collection<String> in... | java | public Map<String, Collection<String>> getInstalledAssetNames() {
if (installAssets == null)
return null;
Map<String, Collection<String>> installed = new HashMap<String, Collection<String>>();
Collection<String> installedAddons = new ArrayList<String>();
Collection<String> in... | [
"public",
"Map",
"<",
"String",
",",
"Collection",
"<",
"String",
">",
">",
"getInstalledAssetNames",
"(",
")",
"{",
"if",
"(",
"installAssets",
"==",
"null",
")",
"return",
"null",
";",
"Map",
"<",
"String",
",",
"Collection",
"<",
"String",
">",
">",
... | Gets the names of assets inside installAssets
@return Map of asset types and collections of asset names | [
"Gets",
"the",
"names",
"of",
"assets",
"inside",
"installAssets"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1601-L1638 |
71,026 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getFeatureLicense | public Set<InstallLicense> getFeatureLicense(Locale locale) throws InstallException {
Map<String, InstallLicenseImpl> licenseIds = new HashMap<String, InstallLicenseImpl>();
getFeatureLicenseFromInstallAssets(locale, licenseIds, getResolveDirector().getLocalInstallAssets());
getFeatureLicenseFro... | java | public Set<InstallLicense> getFeatureLicense(Locale locale) throws InstallException {
Map<String, InstallLicenseImpl> licenseIds = new HashMap<String, InstallLicenseImpl>();
getFeatureLicenseFromInstallAssets(locale, licenseIds, getResolveDirector().getLocalInstallAssets());
getFeatureLicenseFro... | [
"public",
"Set",
"<",
"InstallLicense",
">",
"getFeatureLicense",
"(",
"Locale",
"locale",
")",
"throws",
"InstallException",
"{",
"Map",
"<",
"String",
",",
"InstallLicenseImpl",
">",
"licenseIds",
"=",
"new",
"HashMap",
"<",
"String",
",",
"InstallLicenseImpl",
... | Gets the feature licenses of install assets and resources
@param locale Locale of license
@return Set of InstallLicenses of installed assets
@throws InstallException | [
"Gets",
"the",
"feature",
"licenses",
"of",
"install",
"assets",
"and",
"resources"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1647-L1654 |
71,027 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getSampleLicense | public Collection<String> getSampleLicense(Locale locale) throws InstallException {
Collection<String> licenses = new ArrayList<String>();
for (List<List<RepositoryResource>> targetList : getResolveDirector().getInstallResources().values()) {
for (List<RepositoryResource> mrList : targetList... | java | public Collection<String> getSampleLicense(Locale locale) throws InstallException {
Collection<String> licenses = new ArrayList<String>();
for (List<List<RepositoryResource>> targetList : getResolveDirector().getInstallResources().values()) {
for (List<RepositoryResource> mrList : targetList... | [
"public",
"Collection",
"<",
"String",
">",
"getSampleLicense",
"(",
"Locale",
"locale",
")",
"throws",
"InstallException",
"{",
"Collection",
"<",
"String",
">",
"licenses",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"List",
"... | Gets the sample licenses from install resources
@param locale Locale of license
@return Collection of licenses as Strings for samples
@throws InstallException | [
"Gets",
"the",
"sample",
"licenses",
"from",
"install",
"resources"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1686-L1706 |
71,028 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.getSamplesOrOpenSources | public Collection<String> getSamplesOrOpenSources() {
Collection<String> samplesOrOpenSources = new ArrayList<String>();
Map<String, List<List<RepositoryResource>>> installResources = getResolveDirector().getInstallResources();
if (installResources != null) {
for (List<List<Repositor... | java | public Collection<String> getSamplesOrOpenSources() {
Collection<String> samplesOrOpenSources = new ArrayList<String>();
Map<String, List<List<RepositoryResource>>> installResources = getResolveDirector().getInstallResources();
if (installResources != null) {
for (List<List<Repositor... | [
"public",
"Collection",
"<",
"String",
">",
"getSamplesOrOpenSources",
"(",
")",
"{",
"Collection",
"<",
"String",
">",
"samplesOrOpenSources",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"Map",
"<",
"String",
",",
"List",
"<",
"List",
"<",... | Creates a collection of Sample and Open Source resource names from install resource
@return Collections of Strings of resource names | [
"Creates",
"a",
"collection",
"of",
"Sample",
"and",
"Open",
"Source",
"resource",
"names",
"from",
"install",
"resource"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1713-L1730 |
71,029 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.downloadAssets | public void downloadAssets(String toExtension) throws InstallException {
downloadAssets(getResolveDirector().getInstallResources(), toExtension);
if (getResolveDirector().getLocalInstallAssetsSize() > 0)
this.installAssets.add(getResolveDirector().getLocalInstallAssets());
} | java | public void downloadAssets(String toExtension) throws InstallException {
downloadAssets(getResolveDirector().getInstallResources(), toExtension);
if (getResolveDirector().getLocalInstallAssetsSize() > 0)
this.installAssets.add(getResolveDirector().getLocalInstallAssets());
} | [
"public",
"void",
"downloadAssets",
"(",
"String",
"toExtension",
")",
"throws",
"InstallException",
"{",
"downloadAssets",
"(",
"getResolveDirector",
"(",
")",
".",
"getInstallResources",
"(",
")",
",",
"toExtension",
")",
";",
"if",
"(",
"getResolveDirector",
"(... | Downloads assets in install resources
@param toExtension location of a product extension
@throws InstallException | [
"Downloads",
"assets",
"in",
"install",
"resources"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1738-L1742 |
71,030 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.resolve | public void resolve(String feature, File esaFile, String toExtension) throws InstallException {
getResolveDirector().resolve(feature, esaFile, toExtension);
} | java | public void resolve(String feature, File esaFile, String toExtension) throws InstallException {
getResolveDirector().resolve(feature, esaFile, toExtension);
} | [
"public",
"void",
"resolve",
"(",
"String",
"feature",
",",
"File",
"esaFile",
",",
"String",
"toExtension",
")",
"throws",
"InstallException",
"{",
"getResolveDirector",
"(",
")",
".",
"resolve",
"(",
"feature",
",",
"esaFile",
",",
"toExtension",
")",
";",
... | Resolves feature names
@param feature feature name to resolve
@param esaFile esa file containing feature
@param toExtension location of a product extension
@throws InstallException | [
"Resolves",
"feature",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1798-L1800 |
71,031 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.resolveExistingAssetsFromDirectoryRepo | public boolean resolveExistingAssetsFromDirectoryRepo(Collection<String> featureNames, File repoDir, boolean isOverwrite) throws InstallException {
return getResolveDirector().resolveExistingAssetsFromDirectoryRepo(featureNames, repoDir, isOverwrite);
} | java | public boolean resolveExistingAssetsFromDirectoryRepo(Collection<String> featureNames, File repoDir, boolean isOverwrite) throws InstallException {
return getResolveDirector().resolveExistingAssetsFromDirectoryRepo(featureNames, repoDir, isOverwrite);
} | [
"public",
"boolean",
"resolveExistingAssetsFromDirectoryRepo",
"(",
"Collection",
"<",
"String",
">",
"featureNames",
",",
"File",
"repoDir",
",",
"boolean",
"isOverwrite",
")",
"throws",
"InstallException",
"{",
"return",
"getResolveDirector",
"(",
")",
".",
"resolve... | Resolves existing assets from a specified directory
@param featureNames Collection of feature names to resolve
@param repoDir Repository directory to obtain features from
@param isOverwrite If features should be overwritten with fresh ones
@return
@throws InstallException | [
"Resolves",
"existing",
"assets",
"from",
"a",
"specified",
"directory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1811-L1813 |
71,032 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.uninstall | public void uninstall(Collection<String> ids, boolean force) throws InstallException {
getUninstallDirector().uninstall(ids, force);
} | java | public void uninstall(Collection<String> ids, boolean force) throws InstallException {
getUninstallDirector().uninstall(ids, force);
} | [
"public",
"void",
"uninstall",
"(",
"Collection",
"<",
"String",
">",
"ids",
",",
"boolean",
"force",
")",
"throws",
"InstallException",
"{",
"getUninstallDirector",
"(",
")",
".",
"uninstall",
"(",
"ids",
",",
"force",
")",
";",
"}"
] | Uninstalls the ids
@param ids Collection of ids to uninstall
@param force If uninstallation should be forced
@throws InstallException | [
"Uninstalls",
"the",
"ids"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1828-L1830 |
71,033 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.uninstall | public void uninstall(boolean checkDependency, String[] productIds, Collection<File> toBeDeleted) throws InstallException {
getUninstallDirector().uninstall(checkDependency, productIds, toBeDeleted);
} | java | public void uninstall(boolean checkDependency, String[] productIds, Collection<File> toBeDeleted) throws InstallException {
getUninstallDirector().uninstall(checkDependency, productIds, toBeDeleted);
} | [
"public",
"void",
"uninstall",
"(",
"boolean",
"checkDependency",
",",
"String",
"[",
"]",
"productIds",
",",
"Collection",
"<",
"File",
">",
"toBeDeleted",
")",
"throws",
"InstallException",
"{",
"getUninstallDirector",
"(",
")",
".",
"uninstall",
"(",
"checkDe... | Uninstalls product depending on dependencies
@param checkDependency if uninstall should check for dependencies
@param productIds Ids of product to uninstall
@param toBeDeleted Collection of files to uninstall
@throws InstallException | [
"Uninstalls",
"product",
"depending",
"on",
"dependencies"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1884-L1886 |
71,034 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java | Director.uninstallFeaturesByProductId | public void uninstallFeaturesByProductId(String productId, boolean exceptPlatformFeatures) throws InstallException {
String[] productIds = new String[1];
productIds[0] = productId;
uninstallFeaturesByProductId(productIds, exceptPlatformFeatures);
} | java | public void uninstallFeaturesByProductId(String productId, boolean exceptPlatformFeatures) throws InstallException {
String[] productIds = new String[1];
productIds[0] = productId;
uninstallFeaturesByProductId(productIds, exceptPlatformFeatures);
} | [
"public",
"void",
"uninstallFeaturesByProductId",
"(",
"String",
"productId",
",",
"boolean",
"exceptPlatformFeatures",
")",
"throws",
"InstallException",
"{",
"String",
"[",
"]",
"productIds",
"=",
"new",
"String",
"[",
"1",
"]",
";",
"productIds",
"[",
"0",
"]... | Calls below method to uninstall features by product id
@param productId product id to uninstall
@param exceptPlatformFeatures If platform features should be ignored
@throws InstallException | [
"Calls",
"below",
"method",
"to",
"uninstall",
"features",
"by",
"product",
"id"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java#L1907-L1911 |
71,035 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java | LinkedList.append | public synchronized final void append(Link link)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "append");
Link prev = _dummyTail._getPreviousLink();
link._link(prev, _dummyTail, _nextPositionToIssue++, this);
prev._setNextLink(link);
... | java | public synchronized final void append(Link link)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "append");
Link prev = _dummyTail._getPreviousLink();
link._link(prev, _dummyTail, _nextPositionToIssue++, this);
prev._setNextLink(link);
... | [
"public",
"synchronized",
"final",
"void",
"append",
"(",
"Link",
"link",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | Append a link to the end of the list.
@param link | [
"Append",
"a",
"link",
"to",
"the",
"end",
"of",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java#L91-L101 |
71,036 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java | LinkedList.findFirstMatching | public final AbstractItem findFirstMatching(final Filter filter) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findFirstMatching", filter);
AbstractItem found = null;
Link link = getHead();
while (link != nul... | java | public final AbstractItem findFirstMatching(final Filter filter) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findFirstMatching", filter);
AbstractItem found = null;
Link link = getHead();
while (link != nul... | [
"public",
"final",
"AbstractItem",
"findFirstMatching",
"(",
"final",
"Filter",
"filter",
")",
"throws",
"MessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
"... | Method get returns the first unlocked matching object on the list.
@param filter
@return Link
@throws MessageStoreException | [
"Method",
"get",
"returns",
"the",
"first",
"unlocked",
"matching",
"object",
"on",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java#L110-L150 |
71,037 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java | LinkedList.removeFirstMatching | public final AbstractItem removeFirstMatching(final Filter filter, PersistentTransaction transaction) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeFirstMatching", new Object[] { filter, transaction});
AbstractItem found... | java | public final AbstractItem removeFirstMatching(final Filter filter, PersistentTransaction transaction) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeFirstMatching", new Object[] { filter, transaction});
AbstractItem found... | [
"public",
"final",
"AbstractItem",
"removeFirstMatching",
"(",
"final",
"Filter",
"filter",
",",
"PersistentTransaction",
"transaction",
")",
"throws",
"MessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
... | Method removes the first unlocked matching object on the list destructively under
transactional control.
@param filter
@param transaction
@return AbstractItem
@throws MessageStoreException | [
"Method",
"removes",
"the",
"first",
"unlocked",
"matching",
"object",
"on",
"the",
"list",
"destructively",
"under",
"transactional",
"control",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java#L225-L265 |
71,038 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java | LinkedList.xmlWriteOn | public final void xmlWriteOn(FormattedWriter writer, String tagName) throws IOException
{
Link link = getHead();
if (link != null)
{
writer.newLine();
writer.startTag(tagName);
writer.indent();
while (link != null)
{
... | java | public final void xmlWriteOn(FormattedWriter writer, String tagName) throws IOException
{
Link link = getHead();
if (link != null)
{
writer.newLine();
writer.startTag(tagName);
writer.indent();
while (link != null)
{
... | [
"public",
"final",
"void",
"xmlWriteOn",
"(",
"FormattedWriter",
"writer",
",",
"String",
"tagName",
")",
"throws",
"IOException",
"{",
"Link",
"link",
"=",
"getHead",
"(",
")",
";",
"if",
"(",
"link",
"!=",
"null",
")",
"{",
"writer",
".",
"newLine",
"(... | Used when the transactional list is NOT part of a prioritized list.
@param writer
@param tagName
@throws IOException | [
"Used",
"when",
"the",
"transactional",
"list",
"is",
"NOT",
"part",
"of",
"a",
"prioritized",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java#L274-L294 |
71,039 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java | LinkedList.countLinks | public int countLinks()
{
int count = 0;
Link look = _dummyHead.getNextLogicalLink();
while (look != null && _dummyTail != look)
{
count++;
look = look._getNextLink();
}
return count;
} | java | public int countLinks()
{
int count = 0;
Link look = _dummyHead.getNextLogicalLink();
while (look != null && _dummyTail != look)
{
count++;
look = look._getNextLink();
}
return count;
} | [
"public",
"int",
"countLinks",
"(",
")",
"{",
"int",
"count",
"=",
"0",
";",
"Link",
"look",
"=",
"_dummyHead",
".",
"getNextLogicalLink",
"(",
")",
";",
"while",
"(",
"look",
"!=",
"null",
"&&",
"_dummyTail",
"!=",
"look",
")",
"{",
"count",
"++",
"... | This is a method used by the unit tests to determine the number of links in the list.
It's too inefficient for any other purpose.
@return the number of links | [
"This",
"is",
"a",
"method",
"used",
"by",
"the",
"unit",
"tests",
"to",
"determine",
"the",
"number",
"of",
"links",
"in",
"the",
"list",
".",
"It",
"s",
"too",
"inefficient",
"for",
"any",
"other",
"purpose",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/LinkedList.java#L302-L312 |
71,040 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TimedMap.java | TimedMap.purge | private void purge()
{
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(this, _tc, "purge");
Iterator<Map.Entry<K,TimedValue<V>>> it = _realMap.entrySet().iterator();
while (it.hasNext())
{
Map.Entry<K,TimedValue<V>> entry = it.next();
TimedValue<V> value = en... | java | private void purge()
{
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(this, _tc, "purge");
Iterator<Map.Entry<K,TimedValue<V>>> it = _realMap.entrySet().iterator();
while (it.hasNext())
{
Map.Entry<K,TimedValue<V>> entry = it.next();
TimedValue<V> value = en... | [
"private",
"void",
"purge",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"_tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"_tc",
",",
"\"purge\"",
")",
";",
"Iterator",
"<"... | This method removes any expired data from the map. | [
"This",
"method",
"removes",
"any",
"expired",
"data",
"from",
"the",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TimedMap.java#L538-L558 |
71,041 | OpenLiberty/open-liberty | dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestIdGeneratorPUID.java | RequestIdGeneratorPUID.toBase64 | private static StringBuilder toBase64(long value) {
StringBuilder result = new StringBuilder(23); // Initialize with the size of ID if using Base64
for(int shift=60; shift>=0; shift-=6) {
result.append(Base64[(int)((value >> shift) & 0x3F)]);
}
return result;
} | java | private static StringBuilder toBase64(long value) {
StringBuilder result = new StringBuilder(23); // Initialize with the size of ID if using Base64
for(int shift=60; shift>=0; shift-=6) {
result.append(Base64[(int)((value >> shift) & 0x3F)]);
}
return result;
} | [
"private",
"static",
"StringBuilder",
"toBase64",
"(",
"long",
"value",
")",
"{",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
"23",
")",
";",
"// Initialize with the size of ID if using Base64",
"for",
"(",
"int",
"shift",
"=",
"60",
";",
"shift",... | Return 11 chars of Base64 string for the 64 bits of the value padded with 2 zero bits
@param value long value to translate
@return StringBuilder instance containing characters of the result Base64 string | [
"Return",
"11",
"chars",
"of",
"Base64",
"string",
"for",
"the",
"64",
"bits",
"of",
"the",
"value",
"padded",
"with",
"2",
"zero",
"bits"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestIdGeneratorPUID.java#L51-L57 |
71,042 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/RemoteQueuePointIterator.java | RemoteQueuePointIterator.nextQueue | private void nextQueue()
{
if(super.hasNext())
{
do
{
if(_currentSubIterator != null) _currentSubIterator.finished();
_currentSubIterator = null;
_currentQueue = (SIMPQueueControllable) super.next();
try
{
_currentSubIterator = _curr... | java | private void nextQueue()
{
if(super.hasNext())
{
do
{
if(_currentSubIterator != null) _currentSubIterator.finished();
_currentSubIterator = null;
_currentQueue = (SIMPQueueControllable) super.next();
try
{
_currentSubIterator = _curr... | [
"private",
"void",
"nextQueue",
"(",
")",
"{",
"if",
"(",
"super",
".",
"hasNext",
"(",
")",
")",
"{",
"do",
"{",
"if",
"(",
"_currentSubIterator",
"!=",
"null",
")",
"_currentSubIterator",
".",
"finished",
"(",
")",
";",
"_currentSubIterator",
"=",
"nul... | Move to the next stream which has active ranges | [
"Move",
"to",
"the",
"next",
"stream",
"which",
"has",
"active",
"ranges"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/RemoteQueuePointIterator.java#L45-L78 |
71,043 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java | EventLocal.getContextData | @SuppressWarnings("unchecked")
public static <T> T getContextData(String name) {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
return (T) event.getContextData(name);
}
return null;
} | java | @SuppressWarnings("unchecked")
public static <T> T getContextData(String name) {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
return (T) event.getContextData(name);
}
return null;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
">",
"T",
"getContextData",
"(",
"String",
"name",
")",
"{",
"EventImpl",
"event",
"=",
"(",
"EventImpl",
")",
"CurrentEvent",
".",
"get",
"(",
")",
";",
"if",
"(",
"null",... | Query possible EventLocal context data for the current Event runtime
based on the provided name value. If an EventLocal was created under
the target name then the currently running Event runtime would return
its value.
@param <T>
@param name
@return T, null if not set or the name does not exist | [
"Query",
"possible",
"EventLocal",
"context",
"data",
"for",
"the",
"current",
"Event",
"runtime",
"based",
"on",
"the",
"provided",
"name",
"value",
".",
"If",
"an",
"EventLocal",
"was",
"created",
"under",
"the",
"target",
"name",
"then",
"the",
"currently",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java#L45-L52 |
71,044 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java | EventLocal.getLocal | public static <T> EventLocal<T> getLocal(String name) {
return (EventLocal<T>) eventLocalNames.get(name);
} | java | public static <T> EventLocal<T> getLocal(String name) {
return (EventLocal<T>) eventLocalNames.get(name);
} | [
"public",
"static",
"<",
"T",
">",
"EventLocal",
"<",
"T",
">",
"getLocal",
"(",
"String",
"name",
")",
"{",
"return",
"(",
"EventLocal",
"<",
"T",
">",
")",
"eventLocalNames",
".",
"get",
"(",
"name",
")",
";",
"}"
] | Query possible EventLocal for the current Event based on
the provided name value. If an EventLocal was created under the
target name then the currently running event runtime would return
its value.
@param <T>
@param name
@return T, null if not set or the name does not exist | [
"Query",
"possible",
"EventLocal",
"for",
"the",
"current",
"Event",
"based",
"on",
"the",
"provided",
"name",
"value",
".",
"If",
"an",
"EventLocal",
"was",
"created",
"under",
"the",
"target",
"name",
"then",
"the",
"currently",
"running",
"event",
"runtime"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java#L64-L66 |
71,045 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java | EventLocal.get | public T get() {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null == event) {
return null;
}
return event.get(this);
} | java | public T get() {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null == event) {
return null;
}
return event.get(this);
} | [
"public",
"T",
"get",
"(",
")",
"{",
"EventImpl",
"event",
"=",
"(",
"EventImpl",
")",
"CurrentEvent",
".",
"get",
"(",
")",
";",
"if",
"(",
"null",
"==",
"event",
")",
"{",
"return",
"null",
";",
"}",
"return",
"event",
".",
"get",
"(",
"this",
... | Query the current value, if any, of this EventLocal.
@return T, null if nothing is set | [
"Query",
"the",
"current",
"value",
"if",
"any",
"of",
"this",
"EventLocal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java#L162-L168 |
71,046 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java | EventLocal.set | public void set(T value) {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
event.set(this, value);
}
} | java | public void set(T value) {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
event.set(this, value);
}
} | [
"public",
"void",
"set",
"(",
"T",
"value",
")",
"{",
"EventImpl",
"event",
"=",
"(",
"EventImpl",
")",
"CurrentEvent",
".",
"get",
"(",
")",
";",
"if",
"(",
"null",
"!=",
"event",
")",
"{",
"event",
".",
"set",
"(",
"this",
",",
"value",
")",
";... | Set the value of the current EventLocal to the input item.
@param value | [
"Set",
"the",
"value",
"of",
"the",
"current",
"EventLocal",
"to",
"the",
"input",
"item",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java#L175-L180 |
71,047 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java | EventLocal.remove | public T remove() {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
// Also need to remove name, if specified, from the Event's Set.
if (name != null) {
event.removeEventLocalName(name);
}
return event.remove(this);
... | java | public T remove() {
EventImpl event = (EventImpl) CurrentEvent.get();
if (null != event) {
// Also need to remove name, if specified, from the Event's Set.
if (name != null) {
event.removeEventLocalName(name);
}
return event.remove(this);
... | [
"public",
"T",
"remove",
"(",
")",
"{",
"EventImpl",
"event",
"=",
"(",
"EventImpl",
")",
"CurrentEvent",
".",
"get",
"(",
")",
";",
"if",
"(",
"null",
"!=",
"event",
")",
"{",
"// Also need to remove name, if specified, from the Event's Set.",
"if",
"(",
"nam... | Remove this EventLocal from the current event.
@return T, existing object being removed, null if none present | [
"Remove",
"this",
"EventLocal",
"from",
"the",
"current",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/websphere/event/EventLocal.java#L187-L197 |
71,048 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOutputStreamImpl.java | HttpOutputStreamImpl.validate | protected void validate() throws IOException {
if (null != this.error) {
throw this.error;
}
if (isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "validate - is closed: hc: " + this.hashCode() + " details: " + t... | java | protected void validate() throws IOException {
if (null != this.error) {
throw this.error;
}
if (isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "validate - is closed: hc: " + this.hashCode() + " details: " + t... | [
"protected",
"void",
"validate",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"null",
"!=",
"this",
".",
"error",
")",
"{",
"throw",
"this",
".",
"error",
";",
"}",
"if",
"(",
"isClosed",
"(",
")",
")",
"{",
"if",
"(",
"TraceComponent",
".",
... | Perform validation of the stream before processing external requests
to write data.
@throws IOException | [
"Perform",
"validation",
"of",
"the",
"stream",
"before",
"processing",
"external",
"requests",
"to",
"write",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOutputStreamImpl.java#L214-L228 |
71,049 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOutputStreamImpl.java | HttpOutputStreamImpl.convertFile | @FFDCIgnore({ IOException.class })
private void convertFile(FileChannel fc) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Converting FileChannel to buffers");
}
final WsByteBuffer[] body = new WsByteBuffer[1];
final ... | java | @FFDCIgnore({ IOException.class })
private void convertFile(FileChannel fc) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Converting FileChannel to buffers");
}
final WsByteBuffer[] body = new WsByteBuffer[1];
final ... | [
"@",
"FFDCIgnore",
"(",
"{",
"IOException",
".",
"class",
"}",
")",
"private",
"void",
"convertFile",
"(",
"FileChannel",
"fc",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEna... | User attempted to use the optimized FileChannel writing; however, that
path is currently disabled. This method will read the file and do repeated
write calls until done. This avoids TCP channel doing it in one big block.
@param fc
@throws IOException | [
"User",
"attempted",
"to",
"use",
"the",
"optimized",
"FileChannel",
"writing",
";",
"however",
"that",
"path",
"is",
"currently",
"disabled",
".",
"This",
"method",
"will",
"read",
"the",
"file",
"and",
"do",
"repeated",
"write",
"calls",
"until",
"done",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOutputStreamImpl.java#L325-L361 |
71,050 | OpenLiberty/open-liberty | dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/PUInfoImpl.java | PUInfoImpl.copyInMemoryMappingFiles | private List<InMemoryMappingFile> copyInMemoryMappingFiles(List<InMemoryMappingFile> copyIMMF) {
List<InMemoryMappingFile> immf = new ArrayList<InMemoryMappingFile>();
for (InMemoryMappingFile file : copyIMMF) {
immf.add(new InMemoryMappingFile(file.getMappingFile()));
}
retu... | java | private List<InMemoryMappingFile> copyInMemoryMappingFiles(List<InMemoryMappingFile> copyIMMF) {
List<InMemoryMappingFile> immf = new ArrayList<InMemoryMappingFile>();
for (InMemoryMappingFile file : copyIMMF) {
immf.add(new InMemoryMappingFile(file.getMappingFile()));
}
retu... | [
"private",
"List",
"<",
"InMemoryMappingFile",
">",
"copyInMemoryMappingFiles",
"(",
"List",
"<",
"InMemoryMappingFile",
">",
"copyIMMF",
")",
"{",
"List",
"<",
"InMemoryMappingFile",
">",
"immf",
"=",
"new",
"ArrayList",
"<",
"InMemoryMappingFile",
">",
"(",
")",... | Private method that takes a list of InMemoryMappingFiles and copies them by assigning a new
id while sharing the same underlying byte array. This method avoids unnecessarily create
identical byte arrays. Once all references to a byte array are deleted, the garbage
collector will cleanup the byte array. | [
"Private",
"method",
"that",
"takes",
"a",
"list",
"of",
"InMemoryMappingFiles",
"and",
"copies",
"them",
"by",
"assigning",
"a",
"new",
"id",
"while",
"sharing",
"the",
"same",
"underlying",
"byte",
"array",
".",
"This",
"method",
"avoids",
"unnecessarily",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/PUInfoImpl.java#L109-L115 |
71,051 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannelFactory.java | TCPChannelFactory.createChannel | protected Channel createChannel(ChannelData channelData) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "createChannel");
}
TCPChannelConfiguration newCC = new TCPChannelConfiguration(channelData);
TCPChannel channel... | java | protected Channel createChannel(ChannelData channelData) throws ChannelException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "createChannel");
}
TCPChannelConfiguration newCC = new TCPChannelConfiguration(channelData);
TCPChannel channel... | [
"protected",
"Channel",
"createChannel",
"(",
"ChannelData",
"channelData",
")",
"throws",
"ChannelException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(... | Declared abstract in the ChannelFactoryImpl class.
@param channelData
@return Channel
@throws ChannelException | [
"Declared",
"abstract",
"in",
"the",
"ChannelFactoryImpl",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannelFactory.java#L147-L188 |
71,052 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/security/SecurityViolationException.java | SecurityViolationException.processException | public void processException(HttpServletRequest req, HttpServletResponse res) throws IOException
{
if (redirectURL != null)
{
res.sendRedirect(redirectURL);
return;
}
if (message == null)
{
res.sendError(statusCode);
}
... | java | public void processException(HttpServletRequest req, HttpServletResponse res) throws IOException
{
if (redirectURL != null)
{
res.sendRedirect(redirectURL);
return;
}
if (message == null)
{
res.sendError(statusCode);
}
... | [
"public",
"void",
"processException",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"throws",
"IOException",
"{",
"if",
"(",
"redirectURL",
"!=",
"null",
")",
"{",
"res",
".",
"sendRedirect",
"(",
"redirectURL",
")",
";",
"return",
... | Process security violation exception
@param req - Http servlet request object
@param res - Http servlet response object
@throws IOException if error, otherwise redirects to appropriate error or login page | [
"Process",
"security",
"violation",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/security/SecurityViolationException.java#L84-L100 |
71,053 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java | HashUtils.getMD5String | public static String getMD5String(String str) {
MessageDigest messageDigest = getMessageDigest(MD5);
return getHashString(str, messageDigest);
} | java | public static String getMD5String(String str) {
MessageDigest messageDigest = getMessageDigest(MD5);
return getHashString(str, messageDigest);
} | [
"public",
"static",
"String",
"getMD5String",
"(",
"String",
"str",
")",
"{",
"MessageDigest",
"messageDigest",
"=",
"getMessageDigest",
"(",
"MD5",
")",
";",
"return",
"getHashString",
"(",
"str",
",",
"messageDigest",
")",
";",
"}"
] | Calculate MD5 hash of a String
@param str - the String to hash
@return the MD5 hash value | [
"Calculate",
"MD5",
"hash",
"of",
"a",
"String"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java#L35-L38 |
71,054 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java | HashUtils.getFileMD5String | public static String getFileMD5String(File file) throws IOException {
MessageDigest messageDigest = getMessageDigest(MD5);
return getFileHashString(file, messageDigest);
} | java | public static String getFileMD5String(File file) throws IOException {
MessageDigest messageDigest = getMessageDigest(MD5);
return getFileHashString(file, messageDigest);
} | [
"public",
"static",
"String",
"getFileMD5String",
"(",
"File",
"file",
")",
"throws",
"IOException",
"{",
"MessageDigest",
"messageDigest",
"=",
"getMessageDigest",
"(",
"MD5",
")",
";",
"return",
"getFileHashString",
"(",
"file",
",",
"messageDigest",
")",
";",
... | Calculate MD5 hash of a File
@param file - the File to hash
@return the MD5 hash value
@throws IOException | [
"Calculate",
"MD5",
"hash",
"of",
"a",
"File"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java#L47-L50 |
71,055 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java | HashUtils.getSHA256String | public static String getSHA256String(String str) {
MessageDigest messageDigest = getMessageDigest(SHA256);
return getHashString(str, messageDigest);
} | java | public static String getSHA256String(String str) {
MessageDigest messageDigest = getMessageDigest(SHA256);
return getHashString(str, messageDigest);
} | [
"public",
"static",
"String",
"getSHA256String",
"(",
"String",
"str",
")",
"{",
"MessageDigest",
"messageDigest",
"=",
"getMessageDigest",
"(",
"SHA256",
")",
";",
"return",
"getHashString",
"(",
"str",
",",
"messageDigest",
")",
";",
"}"
] | Calculate SHA-256 hash of a String
@param str - the String to hash
@return the SHA-256 hash value | [
"Calculate",
"SHA",
"-",
"256",
"hash",
"of",
"a",
"String"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java#L58-L61 |
71,056 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java | HashUtils.getFileSHA256String | public static String getFileSHA256String(File file) throws IOException {
MessageDigest messageDigest = getMessageDigest(SHA256);
return getFileHashString(file, messageDigest);
} | java | public static String getFileSHA256String(File file) throws IOException {
MessageDigest messageDigest = getMessageDigest(SHA256);
return getFileHashString(file, messageDigest);
} | [
"public",
"static",
"String",
"getFileSHA256String",
"(",
"File",
"file",
")",
"throws",
"IOException",
"{",
"MessageDigest",
"messageDigest",
"=",
"getMessageDigest",
"(",
"SHA256",
")",
";",
"return",
"getFileHashString",
"(",
"file",
",",
"messageDigest",
")",
... | Calculate SHA-256 hash of a File
@param file - the File to hash
@return the SHA-256 hash value
@throws IOException | [
"Calculate",
"SHA",
"-",
"256",
"hash",
"of",
"a",
"File"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java#L70-L73 |
71,057 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java | HashUtils.getMessageDigest | private static MessageDigest getMessageDigest(String digestType) {
MessageDigest messageDigest;
try {
messageDigest = MessageDigest.getInstance(digestType);
} catch (NoSuchAlgorithmException e) {
//should not happen
throw new RuntimeException(e);
}
... | java | private static MessageDigest getMessageDigest(String digestType) {
MessageDigest messageDigest;
try {
messageDigest = MessageDigest.getInstance(digestType);
} catch (NoSuchAlgorithmException e) {
//should not happen
throw new RuntimeException(e);
}
... | [
"private",
"static",
"MessageDigest",
"getMessageDigest",
"(",
"String",
"digestType",
")",
"{",
"MessageDigest",
"messageDigest",
";",
"try",
"{",
"messageDigest",
"=",
"MessageDigest",
".",
"getInstance",
"(",
"digestType",
")",
";",
"}",
"catch",
"(",
"NoSuchAl... | this code replaces the creation of the message digest in a static code block
as that was found to fail when multi threaded.
@param digestType - MD5 or SHA-256
@return the MessageDigest of the requested type | [
"this",
"code",
"replaces",
"the",
"creation",
"of",
"the",
"message",
"digest",
"in",
"a",
"static",
"code",
"block",
"as",
"that",
"was",
"found",
"to",
"fail",
"when",
"multi",
"threaded",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/HashUtils.java#L121-L130 |
71,058 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java | Engine.install | public void install(InstallAsset installAsset, List<File> filesInstalled, Collection<String> featuresToBeInstalled, ExistsAction existsAction,
Set<String> executableFiles, Map<String, Set<String>> extattrFiles, boolean downloadDependencies,
RestRepositoryConnectionProxy p... | java | public void install(InstallAsset installAsset, List<File> filesInstalled, Collection<String> featuresToBeInstalled, ExistsAction existsAction,
Set<String> executableFiles, Map<String, Set<String>> extattrFiles, boolean downloadDependencies,
RestRepositoryConnectionProxy p... | [
"public",
"void",
"install",
"(",
"InstallAsset",
"installAsset",
",",
"List",
"<",
"File",
">",
"filesInstalled",
",",
"Collection",
"<",
"String",
">",
"featuresToBeInstalled",
",",
"ExistsAction",
"existsAction",
",",
"Set",
"<",
"String",
">",
"executableFiles... | Determines which install method to call based on the type of installAsset
@param installAsset InstallAsset to install
@param filesInstalled List of files to be installed
@param featuresToBeInstalled Collection of feature names to install
@param existsAction Action to take if asset exists
@param executableFiles Set of ... | [
"Determines",
"which",
"install",
"method",
"to",
"call",
"based",
"on",
"the",
"type",
"of",
"installAsset"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java#L67-L84 |
71,059 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java | Engine.installFeatureNoDependencyCheck | public void installFeatureNoDependencyCheck(InstallAsset installAsset, List<File> filesInstalled, Collection<String> featuresToBeInstalled, ExistsAction existsAction,
Set<String> executableFiles, Map<String, Set<String>> extattrFiles, boolean downloadDependencies,
... | java | public void installFeatureNoDependencyCheck(InstallAsset installAsset, List<File> filesInstalled, Collection<String> featuresToBeInstalled, ExistsAction existsAction,
Set<String> executableFiles, Map<String, Set<String>> extattrFiles, boolean downloadDependencies,
... | [
"public",
"void",
"installFeatureNoDependencyCheck",
"(",
"InstallAsset",
"installAsset",
",",
"List",
"<",
"File",
">",
"filesInstalled",
",",
"Collection",
"<",
"String",
">",
"featuresToBeInstalled",
",",
"ExistsAction",
"existsAction",
",",
"Set",
"<",
"String",
... | Installs Feature while skipping dependency check
@param installAsset InstallAsset to install
@param filesInstalled List of files to be installed
@param featuresToBeInstalled Collection of feature names to install
@param existsAction Action to take if asset exists
@param executableFiles Set of executable file names
@pa... | [
"Installs",
"Feature",
"while",
"skipping",
"dependency",
"check"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java#L101-L105 |
71,060 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java | Engine.uninstall | public void uninstall(UninstallAsset uninstallAsset, boolean checkDependency,
List<File> filesRestored) throws IOException, ParserConfigurationException, SAXException, InstallException {
if (uninstallAsset.getType().equals(UninstallAssetType.feature)) {
// Remove the featur... | java | public void uninstall(UninstallAsset uninstallAsset, boolean checkDependency,
List<File> filesRestored) throws IOException, ParserConfigurationException, SAXException, InstallException {
if (uninstallAsset.getType().equals(UninstallAssetType.feature)) {
// Remove the featur... | [
"public",
"void",
"uninstall",
"(",
"UninstallAsset",
"uninstallAsset",
",",
"boolean",
"checkDependency",
",",
"List",
"<",
"File",
">",
"filesRestored",
")",
"throws",
"IOException",
",",
"ParserConfigurationException",
",",
"SAXException",
",",
"InstallException",
... | Determines which install method to call based on the type of uninstallAsset
@param uninstallAsset UninstallAsset to uninstall
@param checkDependency If dependencies should be checked
@param filesRestored Files to be restored
@throws IOException
@throws ParserConfigurationException
@throws SAXException
@throws InstallE... | [
"Determines",
"which",
"install",
"method",
"to",
"call",
"based",
"on",
"the",
"type",
"of",
"uninstallAsset"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java#L118-L128 |
71,061 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java | Engine.preCheck | public void preCheck(UninstallAsset uninstallAsset) throws InstallException {
if (uninstallAsset.getType().equals(UninstallAssetType.feature)) {
ESAAdaptor.preCheck(uninstallAsset, uninstallAsset.getProvisioningFeatureDefinition(),
getBaseDir(uninstallAsset.getProvisi... | java | public void preCheck(UninstallAsset uninstallAsset) throws InstallException {
if (uninstallAsset.getType().equals(UninstallAssetType.feature)) {
ESAAdaptor.preCheck(uninstallAsset, uninstallAsset.getProvisioningFeatureDefinition(),
getBaseDir(uninstallAsset.getProvisi... | [
"public",
"void",
"preCheck",
"(",
"UninstallAsset",
"uninstallAsset",
")",
"throws",
"InstallException",
"{",
"if",
"(",
"uninstallAsset",
".",
"getType",
"(",
")",
".",
"equals",
"(",
"UninstallAssetType",
".",
"feature",
")",
")",
"{",
"ESAAdaptor",
".",
"p... | Determines which preCheck method to call based on the uninstalLAsset type
@param uninstallAsset UninstallAsset to be uninstalled
@param checkDependency If dependencies should be checked
@throws InstallException | [
"Determines",
"which",
"preCheck",
"method",
"to",
"call",
"based",
"on",
"the",
"uninstalLAsset",
"type"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Engine.java#L148-L155 |
71,062 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java | FFDCLogger.append | public final FFDCLogger append(String description, Object value) {
lines.add(description);
lines.add(new StringBuffer().append(TAB).append(value).append(AdapterUtil.EOLN).toString());
return this;
} | java | public final FFDCLogger append(String description, Object value) {
lines.add(description);
lines.add(new StringBuffer().append(TAB).append(value).append(AdapterUtil.EOLN).toString());
return this;
} | [
"public",
"final",
"FFDCLogger",
"append",
"(",
"String",
"description",
",",
"Object",
"value",
")",
"{",
"lines",
".",
"add",
"(",
"description",
")",
";",
"lines",
".",
"add",
"(",
"new",
"StringBuffer",
"(",
")",
".",
"append",
"(",
"TAB",
")",
"."... | Appends FFDC information to the log.
@param description a description of the value.
@param value the value.
@return this FFDC logger. | [
"Appends",
"FFDC",
"information",
"to",
"the",
"log",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java#L55-L60 |
71,063 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java | FFDCLogger.append | public final FFDCLogger append(String info) {
lines.add(new StringBuffer().append(info).append(AdapterUtil.EOLN).toString());
return this;
} | java | public final FFDCLogger append(String info) {
lines.add(new StringBuffer().append(info).append(AdapterUtil.EOLN).toString());
return this;
} | [
"public",
"final",
"FFDCLogger",
"append",
"(",
"String",
"info",
")",
"{",
"lines",
".",
"add",
"(",
"new",
"StringBuffer",
"(",
")",
".",
"append",
"(",
"info",
")",
".",
"append",
"(",
"AdapterUtil",
".",
"EOLN",
")",
".",
"toString",
"(",
")",
")... | Appends a single line of FFDC information.
@param info the information to add.
@return this FFDC logger. | [
"Appends",
"a",
"single",
"line",
"of",
"FFDC",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java#L69-L73 |
71,064 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java | FFDCLogger.append | public final FFDCLogger append(String[] moreLines) {
int numLines = moreLines.length;
for (int i = 0; i < numLines; i++)
lines.add(moreLines[i]);
return this;
} | java | public final FFDCLogger append(String[] moreLines) {
int numLines = moreLines.length;
for (int i = 0; i < numLines; i++)
lines.add(moreLines[i]);
return this;
} | [
"public",
"final",
"FFDCLogger",
"append",
"(",
"String",
"[",
"]",
"moreLines",
")",
"{",
"int",
"numLines",
"=",
"moreLines",
".",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numLines",
";",
"i",
"++",
")",
"lines",
".",
"(",... | Appends output from another FFDC self introspect method.
@param moreLines the output from the other method.
@return this FFDC logger. | [
"Appends",
"output",
"from",
"another",
"FFDC",
"self",
"introspect",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java#L82-L88 |
71,065 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java | FFDCLogger.indent | public final FFDCLogger indent(Object value) {
lines.add(new StringBuffer().append(TAB).append(value).toString());
return this;
} | java | public final FFDCLogger indent(Object value) {
lines.add(new StringBuffer().append(TAB).append(value).toString());
return this;
} | [
"public",
"final",
"FFDCLogger",
"indent",
"(",
"Object",
"value",
")",
"{",
"lines",
".",
"add",
"(",
"new",
"StringBuffer",
"(",
")",
".",
"append",
"(",
"TAB",
")",
".",
"append",
"(",
"value",
")",
".",
"toString",
"(",
")",
")",
";",
"return",
... | Appends an indented line of FFDC information.
@param value the information to add.
@return this FFDC logger. | [
"Appends",
"an",
"indented",
"line",
"of",
"FFDC",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java#L125-L128 |
71,066 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java | FFDCLogger.introspect | public final FFDCLogger introspect(String description, Object value)
{
if (value instanceof FFDCSelfIntrospectable)
append(((FFDCSelfIntrospectable) value).introspectSelf());
else
append(description, value);
return this;
} | java | public final FFDCLogger introspect(String description, Object value)
{
if (value instanceof FFDCSelfIntrospectable)
append(((FFDCSelfIntrospectable) value).introspectSelf());
else
append(description, value);
return this;
} | [
"public",
"final",
"FFDCLogger",
"introspect",
"(",
"String",
"description",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"instanceof",
"FFDCSelfIntrospectable",
")",
"append",
"(",
"(",
"(",
"FFDCSelfIntrospectable",
")",
"value",
")",
".",
"introspect... | Appends the FFDC self introspection information for the object provided. If none is
available then we delegate to the normal append method.
@param description a description of the value.
@param value the value.
@return this FFDC logger. | [
"Appends",
"the",
"FFDC",
"self",
"introspection",
"information",
"for",
"the",
"object",
"provided",
".",
"If",
"none",
"is",
"available",
"then",
"we",
"delegate",
"to",
"the",
"normal",
"append",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/FFDCLogger.java#L139-L147 |
71,067 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java | KernelResolverRepository.getCachedFeature | private ProvisioningFeatureDefinition getCachedFeature(String featureName) {
List<ProvisioningFeatureDefinition> featureList = symbolicNameToFeature.get(featureName);
if (featureList == null) {
featureName = publicNameToSymbolicName.get(featureName.toLowerCase());
if (featureNam... | java | private ProvisioningFeatureDefinition getCachedFeature(String featureName) {
List<ProvisioningFeatureDefinition> featureList = symbolicNameToFeature.get(featureName);
if (featureList == null) {
featureName = publicNameToSymbolicName.get(featureName.toLowerCase());
if (featureNam... | [
"private",
"ProvisioningFeatureDefinition",
"getCachedFeature",
"(",
"String",
"featureName",
")",
"{",
"List",
"<",
"ProvisioningFeatureDefinition",
">",
"featureList",
"=",
"symbolicNameToFeature",
".",
"get",
"(",
"featureName",
")",
";",
"if",
"(",
"featureList",
... | Get a feature by name, but without going and checking the remote repository if we don't know about it
@see #getFeature(String) | [
"Get",
"a",
"feature",
"by",
"name",
"but",
"without",
"going",
"and",
"checking",
"the",
"remote",
"repository",
"if",
"we",
"don",
"t",
"know",
"about",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java#L188-L203 |
71,068 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java | KernelResolverRepository.getResourcesForName | private List<RepositoryResource> getResourcesForName(String resourceName) {
List<RepositoryResource> results = new ArrayList<>();
try {
results.addAll(repositoryConnection.getMatchingEsas(FilterableAttribute.SYMBOLIC_NAME, resourceName));
results.addAll(repositoryConnection.getMa... | java | private List<RepositoryResource> getResourcesForName(String resourceName) {
List<RepositoryResource> results = new ArrayList<>();
try {
results.addAll(repositoryConnection.getMatchingEsas(FilterableAttribute.SYMBOLIC_NAME, resourceName));
results.addAll(repositoryConnection.getMa... | [
"private",
"List",
"<",
"RepositoryResource",
">",
"getResourcesForName",
"(",
"String",
"resourceName",
")",
"{",
"List",
"<",
"RepositoryResource",
">",
"results",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"try",
"{",
"results",
".",
"addAll",
"(",
"re... | Fetch the feature and sample resources that match the given name, whether or not they're applicable to the current product
@param resourceName the short or symbolic name to look for
@return the resources that match that name | [
"Fetch",
"the",
"feature",
"and",
"sample",
"resources",
"that",
"match",
"the",
"given",
"name",
"whether",
"or",
"not",
"they",
"re",
"applicable",
"to",
"the",
"current",
"product"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java#L241-L252 |
71,069 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java | KernelResolverRepository.isApplicable | private boolean isApplicable(RepositoryResource resource) {
if (resource instanceof ApplicableToProduct) {
if (((ApplicableToProduct) resource).getAppliesTo() == null) {
return true; // No appliesTo -> applicable
}
}
return ((RepositoryResourceImpl) resour... | java | private boolean isApplicable(RepositoryResource resource) {
if (resource instanceof ApplicableToProduct) {
if (((ApplicableToProduct) resource).getAppliesTo() == null) {
return true; // No appliesTo -> applicable
}
}
return ((RepositoryResourceImpl) resour... | [
"private",
"boolean",
"isApplicable",
"(",
"RepositoryResource",
"resource",
")",
"{",
"if",
"(",
"resource",
"instanceof",
"ApplicableToProduct",
")",
"{",
"if",
"(",
"(",
"(",
"ApplicableToProduct",
")",
"resource",
")",
".",
"getAppliesTo",
"(",
")",
"==",
... | Return whether the given resource is applicable to the current product definitions.
@param resource the repository resource
@return {@code true} if the resource is applicable, otherwise {@code false} | [
"Return",
"whether",
"the",
"given",
"resource",
"is",
"applicable",
"to",
"the",
"current",
"product",
"definitions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java#L260-L267 |
71,070 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java | KernelResolverRepository.getNonApplicableResourcesForName | public Collection<ApplicableToProduct> getNonApplicableResourcesForName(String resourceName) {
List<ApplicableToProduct> result = nameToNonApplicableResources.get(resourceName);
if (result == null) {
// We don't expect this to happen, if we're looking for non-applicable resources, it's beca... | java | public Collection<ApplicableToProduct> getNonApplicableResourcesForName(String resourceName) {
List<ApplicableToProduct> result = nameToNonApplicableResources.get(resourceName);
if (result == null) {
// We don't expect this to happen, if we're looking for non-applicable resources, it's beca... | [
"public",
"Collection",
"<",
"ApplicableToProduct",
">",
"getNonApplicableResourcesForName",
"(",
"String",
"resourceName",
")",
"{",
"List",
"<",
"ApplicableToProduct",
">",
"result",
"=",
"nameToNonApplicableResources",
".",
"get",
"(",
"resourceName",
")",
";",
"if... | Return all features and samples in the repository with the given name which don't apply to the installed products
@param resourceName a short or symbolic name
@return the features and samples which don't apply to the installed products | [
"Return",
"all",
"features",
"and",
"samples",
"in",
"the",
"repository",
"with",
"the",
"given",
"name",
"which",
"don",
"t",
"apply",
"to",
"the",
"installed",
"products"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverRepository.java#L275-L290 |
71,071 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java | WSJdbcObject.close | protected void close(boolean closeWrapperOnly) throws SQLException
{
TraceComponent tc = getTracer();
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "close");
// Make sure we only get closed o... | java | protected void close(boolean closeWrapperOnly) throws SQLException
{
TraceComponent tc = getTracer();
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "close");
// Make sure we only get closed o... | [
"protected",
"void",
"close",
"(",
"boolean",
"closeWrapperOnly",
")",
"throws",
"SQLException",
"{",
"TraceComponent",
"tc",
"=",
"getTracer",
"(",
")",
";",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if"... | Default close method for all JDBC wrappers, accessible to users. This method closes all
child wrappers and invokes the closeWrapper method implemented by the wrapper subclass.
If the wrapper is already closed, a message stating the wrapper has already been closed
is logged to the trace.
@param closeWrapperOnly boolean... | [
"Default",
"close",
"method",
"for",
"all",
"JDBC",
"wrappers",
"accessible",
"to",
"users",
".",
"This",
"method",
"closes",
"all",
"child",
"wrappers",
"and",
"invokes",
"the",
"closeWrapper",
"method",
"implemented",
"by",
"the",
"wrapper",
"subclass",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java#L124-L171 |
71,072 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java | WSJdbcObject.closeChildWrappers | final void closeChildWrappers()
{
TraceComponent tc = getTracer();
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
// Close any child wrappers in the child wrapper list.
if (childWrappers != null && !childWrappers.isEmpty()) {
if (isTraceOn && tc.isDe... | java | final void closeChildWrappers()
{
TraceComponent tc = getTracer();
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
// Close any child wrappers in the child wrapper list.
if (childWrappers != null && !childWrappers.isEmpty()) {
if (isTraceOn && tc.isDe... | [
"final",
"void",
"closeChildWrappers",
"(",
")",
"{",
"TraceComponent",
"tc",
"=",
"getTracer",
"(",
")",
";",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"// Close any child wrappers in the child wrapper list.",
... | Close all child objects of this wrapper. Errors that occur while closing child objects
should not be thrown. Errors may be logged instead. | [
"Close",
"all",
"child",
"objects",
"of",
"this",
"wrapper",
".",
"Errors",
"that",
"occur",
"while",
"closing",
"child",
"objects",
"should",
"not",
"be",
"thrown",
".",
"Errors",
"may",
"be",
"logged",
"instead",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java#L177-L224 |
71,073 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java | WSJdbcObject.init | final void init(WSJdbcObject parent) {
if (parent != null) {
parentWrapper = parent;
dsConfig = parent.dsConfig;
freeResourcesOnClose = parent.freeResourcesOnClose;
}
if (freeResourcesOnClose) // then initialize data structures to track them
{
... | java | final void init(WSJdbcObject parent) {
if (parent != null) {
parentWrapper = parent;
dsConfig = parent.dsConfig;
freeResourcesOnClose = parent.freeResourcesOnClose;
}
if (freeResourcesOnClose) // then initialize data structures to track them
{
... | [
"final",
"void",
"init",
"(",
"WSJdbcObject",
"parent",
")",
"{",
"if",
"(",
"parent",
"!=",
"null",
")",
"{",
"parentWrapper",
"=",
"parent",
";",
"dsConfig",
"=",
"parent",
".",
"dsConfig",
";",
"freeResourcesOnClose",
"=",
"parent",
".",
"freeResourcesOnC... | Initialize the parent wrapper field and copy some fields from the parent wrapper.
@param parent the parent wrapper, or NULL if initializing a connection wrapper. | [
"Initialize",
"the",
"parent",
"wrapper",
"field",
"and",
"copy",
"some",
"fields",
"from",
"the",
"parent",
"wrapper",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java#L377-L392 |
71,074 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java | WSJdbcObject.introspectAll | protected void introspectAll(FFDCLogger info)
{
info.append(this.toString());
// Allow any wrapper specific info to be inserted first.
introspectWrapperSpecificInfo(info);
// Display generic information.
info.append("Wrapper State: ", state.name());
info.append("... | java | protected void introspectAll(FFDCLogger info)
{
info.append(this.toString());
// Allow any wrapper specific info to be inserted first.
introspectWrapperSpecificInfo(info);
// Display generic information.
info.append("Wrapper State: ", state.name());
info.append("... | [
"protected",
"void",
"introspectAll",
"(",
"FFDCLogger",
"info",
")",
"{",
"info",
".",
"append",
"(",
"this",
".",
"toString",
"(",
")",
")",
";",
"// Allow any wrapper specific info to be inserted first.",
"introspectWrapperSpecificInfo",
"(",
"info",
")",
";",
"/... | Collects generic FFDC information applicable to all JDBC wrappers. Formats this
information to the provided FFDC logger. FFDC information for all child wrappers should
be included in the result.
@param info FFDCLogger on which to record the FFDC information. | [
"Collects",
"generic",
"FFDC",
"information",
"applicable",
"to",
"all",
"JDBC",
"wrappers",
".",
"Formats",
"this",
"information",
"to",
"the",
"provided",
"FFDC",
"logger",
".",
"FFDC",
"information",
"for",
"all",
"child",
"wrappers",
"should",
"be",
"include... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcObject.java#L419-L449 |
71,075 | OpenLiberty/open-liberty | dev/wlp-metatypeValidator/src/com/ibm/ws/metatype/validator/MetatypeValidator.java | MetatypeValidator.gatherMetatypeFilesAndStats | private void gatherMetatypeFilesAndStats() throws IOException, JAXBException {
for (File bundle : directory.listFiles()) {
if (bundle.isFile()) {
analyzeBundle(bundle);
}
}
} | java | private void gatherMetatypeFilesAndStats() throws IOException, JAXBException {
for (File bundle : directory.listFiles()) {
if (bundle.isFile()) {
analyzeBundle(bundle);
}
}
} | [
"private",
"void",
"gatherMetatypeFilesAndStats",
"(",
")",
"throws",
"IOException",
",",
"JAXBException",
"{",
"for",
"(",
"File",
"bundle",
":",
"directory",
".",
"listFiles",
"(",
")",
")",
"{",
"if",
"(",
"bundle",
".",
"isFile",
"(",
")",
")",
"{",
... | Iterates through and gathers the projects to validate along with scanning all the other
projects to gather their information for validating the projects.
@throws IOException
@throws JAXBException | [
"Iterates",
"through",
"and",
"gathers",
"the",
"projects",
"to",
"validate",
"along",
"with",
"scanning",
"all",
"the",
"other",
"projects",
"to",
"gather",
"their",
"information",
"for",
"validating",
"the",
"projects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-metatypeValidator/src/com/ibm/ws/metatype/validator/MetatypeValidator.java#L79-L85 |
71,076 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/AccessHelper.java | AccessHelper.getFreeSpace | static long getFreeSpace(final File fileInFs) {
try {
long result = (long) getInstance().doPrivileged(new PrivilegedAction<Long>() {
public Long run() {
return fileInFs.getFreeSpace() ;
}
});
return result ;
} catch (SecurityException se) {
return -1 ;
}
} | java | static long getFreeSpace(final File fileInFs) {
try {
long result = (long) getInstance().doPrivileged(new PrivilegedAction<Long>() {
public Long run() {
return fileInFs.getFreeSpace() ;
}
});
return result ;
} catch (SecurityException se) {
return -1 ;
}
} | [
"static",
"long",
"getFreeSpace",
"(",
"final",
"File",
"fileInFs",
")",
"{",
"try",
"{",
"long",
"result",
"=",
"(",
"long",
")",
"getInstance",
"(",
")",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Long",
">",
"(",
")",
"{",
"public",
... | Returns free space on a file system containing the passed in file | [
"Returns",
"free",
"space",
"on",
"a",
"file",
"system",
"containing",
"the",
"passed",
"in",
"file"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/AccessHelper.java#L358-L369 |
71,077 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/AccessHelper.java | AccessHelper.createTimer | static Timer createTimer() {
try {
return getInstance().doPrivileged(new PrivilegedAction<Timer>() {
@Override
public Timer run() {
return new Timer(true); // 691649
}
});
} catch (SecurityException se) {
// TODO: Add logging here but be careful since this code is used in logging logic i... | java | static Timer createTimer() {
try {
return getInstance().doPrivileged(new PrivilegedAction<Timer>() {
@Override
public Timer run() {
return new Timer(true); // 691649
}
});
} catch (SecurityException se) {
// TODO: Add logging here but be careful since this code is used in logging logic i... | [
"static",
"Timer",
"createTimer",
"(",
")",
"{",
"try",
"{",
"return",
"getInstance",
"(",
")",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Timer",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"Timer",
"run",
"(",
")",
"{",
"return",
"... | creates a new nameless non-daemon Timer
@return new Timer instance or <code>null</code> on access violation. | [
"creates",
"a",
"new",
"nameless",
"non",
"-",
"daemon",
"Timer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/AccessHelper.java#L391-L404 |
71,078 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/util/ContextualStorage.java | ContextualStorage.getBeanKey | public <T> Object getBeanKey(Contextual<T> bean)
{
if (passivationCapable)
{
// if the
return ((PassivationCapable) bean).getId();
}
return bean;
} | java | public <T> Object getBeanKey(Contextual<T> bean)
{
if (passivationCapable)
{
// if the
return ((PassivationCapable) bean).getId();
}
return bean;
} | [
"public",
"<",
"T",
">",
"Object",
"getBeanKey",
"(",
"Contextual",
"<",
"T",
">",
"bean",
")",
"{",
"if",
"(",
"passivationCapable",
")",
"{",
"// if the",
"return",
"(",
"(",
"PassivationCapable",
")",
"bean",
")",
".",
"getId",
"(",
")",
";",
"}",
... | If the context is a passivating scope then we return
the passivationId of the Bean. Otherwise we use
the Bean directly.
@return the key to use in the context map | [
"If",
"the",
"context",
"is",
"a",
"passivating",
"scope",
"then",
"we",
"return",
"the",
"passivationId",
"of",
"the",
"Bean",
".",
"Otherwise",
"we",
"use",
"the",
"Bean",
"directly",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/util/ContextualStorage.java#L147-L156 |
71,079 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/util/ContextualStorage.java | ContextualStorage.getBean | public Contextual<?> getBean(Object beanKey)
{
if (passivationCapable)
{
return beanManager.getPassivationCapableBean((String) beanKey);
}
else
{
return (Contextual<?>) beanKey;
}
} | java | public Contextual<?> getBean(Object beanKey)
{
if (passivationCapable)
{
return beanManager.getPassivationCapableBean((String) beanKey);
}
else
{
return (Contextual<?>) beanKey;
}
} | [
"public",
"Contextual",
"<",
"?",
">",
"getBean",
"(",
"Object",
"beanKey",
")",
"{",
"if",
"(",
"passivationCapable",
")",
"{",
"return",
"beanManager",
".",
"getPassivationCapableBean",
"(",
"(",
"String",
")",
"beanKey",
")",
";",
"}",
"else",
"{",
"ret... | Restores the Bean from its beanKey.
@see #getBeanKey(javax.enterprise.context.spi.Contextual) | [
"Restores",
"the",
"Bean",
"from",
"its",
"beanKey",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/util/ContextualStorage.java#L162-L172 |
71,080 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceTracker.java | ManagedServiceTracker.addingService | @Override
public ManagedService addingService(ServiceReference<ManagedService> reference) {
String[] pids = getServicePid(reference);
if (pids == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleRegistration(): Invalid service... | java | @Override
public ManagedService addingService(ServiceReference<ManagedService> reference) {
String[] pids = getServicePid(reference);
if (pids == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "handleRegistration(): Invalid service... | [
"@",
"Override",
"public",
"ManagedService",
"addingService",
"(",
"ServiceReference",
"<",
"ManagedService",
">",
"reference",
")",
"{",
"String",
"[",
"]",
"pids",
"=",
"getServicePid",
"(",
"reference",
")",
";",
"if",
"(",
"pids",
"==",
"null",
")",
"{",... | Processes registered ManagedService and updates each with their own
configuration properties.
@param reference | [
"Processes",
"registered",
"ManagedService",
"and",
"updates",
"each",
"with",
"their",
"own",
"configuration",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceTracker.java#L89-L110 |
71,081 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java | WsLogger.createLogRecord | private LogRecord createLogRecord(Level level, String msg, Object[] params, String sourceClassName, String sourceMethodName, String resourceBundleName, Throwable thrown) {
ResourceBundle resourceBundle = null;
if (level.intValue() >= this.ivMinimumLocalizationLevelIntValue) {
if (null == th... | java | private LogRecord createLogRecord(Level level, String msg, Object[] params, String sourceClassName, String sourceMethodName, String resourceBundleName, Throwable thrown) {
ResourceBundle resourceBundle = null;
if (level.intValue() >= this.ivMinimumLocalizationLevelIntValue) {
if (null == th... | [
"private",
"LogRecord",
"createLogRecord",
"(",
"Level",
"level",
",",
"String",
"msg",
",",
"Object",
"[",
"]",
"params",
",",
"String",
"sourceClassName",
",",
"String",
"sourceMethodName",
",",
"String",
"resourceBundleName",
",",
"Throwable",
"thrown",
")",
... | Creates a LogRecord using any available input parameters from the various
Logger methods.
@param level
@param msg
@param params
@param sourceClassName
@param sourceMethodName
@param resourceBundleName
@param thrown
@return LogRecord | [
"Creates",
"a",
"LogRecord",
"using",
"any",
"available",
"input",
"parameters",
"from",
"the",
"various",
"Logger",
"methods",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java#L157-L190 |
71,082 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java | WsLogger.createWsLogRecord | private WsLogRecord createWsLogRecord(Level level, String msg, Object[] params, String sourceClassName, String sourceMethodName, String resourceBundleName,
ResourceBundle resourceBundle, Throwable thrown) {
WsLogRecord logRecord = new WsLogRecord(level, msg);
... | java | private WsLogRecord createWsLogRecord(Level level, String msg, Object[] params, String sourceClassName, String sourceMethodName, String resourceBundleName,
ResourceBundle resourceBundle, Throwable thrown) {
WsLogRecord logRecord = new WsLogRecord(level, msg);
... | [
"private",
"WsLogRecord",
"createWsLogRecord",
"(",
"Level",
"level",
",",
"String",
"msg",
",",
"Object",
"[",
"]",
"params",
",",
"String",
"sourceClassName",
",",
"String",
"sourceMethodName",
",",
"String",
"resourceBundleName",
",",
"ResourceBundle",
"resourceB... | Construct a WsLogRecord with the given level and message values.
@param level
the logging Level value. Must NOT be null
@param msg
the message. May be a text message, pre-localized message or a
message key (in a resource bundle).
@param sourceClassName
@param sourceMethodName
@param resourceBundleName
@param resourceB... | [
"Construct",
"a",
"WsLogRecord",
"with",
"the",
"given",
"level",
"and",
"message",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java#L206-L254 |
71,083 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java | WsLogger.computeResourceBundleName | private String computeResourceBundleName() {
Logger logger = this;
while (logger != null) {
String name = logger.getResourceBundleName();
if (name != null) {
return name;
}
logger = logger.getParent();
}
return null;
} | java | private String computeResourceBundleName() {
Logger logger = this;
while (logger != null) {
String name = logger.getResourceBundleName();
if (name != null) {
return name;
}
logger = logger.getParent();
}
return null;
} | [
"private",
"String",
"computeResourceBundleName",
"(",
")",
"{",
"Logger",
"logger",
"=",
"this",
";",
"while",
"(",
"logger",
"!=",
"null",
")",
"{",
"String",
"name",
"=",
"logger",
".",
"getResourceBundleName",
"(",
")",
";",
"if",
"(",
"name",
"!=",
... | Worker method to determine the resource bundle name to use for logger. If
set, this is just the resource bundle name of this logger. If not set,
move up through the list of parents and find the first non-null resource
bundle name.
@return String the resource bundle name | [
"Worker",
"method",
"to",
"determine",
"the",
"resource",
"bundle",
"name",
"to",
"use",
"for",
"logger",
".",
"If",
"set",
"this",
"is",
"just",
"the",
"resource",
"bundle",
"name",
"of",
"this",
"logger",
".",
"If",
"not",
"set",
"move",
"up",
"through... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/WsLogger.java#L592-L604 |
71,084 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.introspectViaReflection | private void introspectViaReflection() {
{
Class<?> memberClass = _member.getClass();
if (memberClass.isArray()) {
int length = Array.getLength(_member);
Class<?> componentType = memberClass.getComponentType();
if (componentType.isPrimitive... | java | private void introspectViaReflection() {
{
Class<?> memberClass = _member.getClass();
if (memberClass.isArray()) {
int length = Array.getLength(_member);
Class<?> componentType = memberClass.getComponentType();
if (componentType.isPrimitive... | [
"private",
"void",
"introspectViaReflection",
"(",
")",
"{",
"{",
"Class",
"<",
"?",
">",
"memberClass",
"=",
"_member",
".",
"getClass",
"(",
")",
";",
"if",
"(",
"memberClass",
".",
"isArray",
"(",
")",
")",
"{",
"int",
"length",
"=",
"Array",
".",
... | Introspect the object via reflection | [
"Introspect",
"the",
"object",
"via",
"reflection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L172-L212 |
71,085 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.addNewChild | private void addNewChild(String name, Object value) {
IntrospectionLevelMember prospectiveMember = new IntrospectionLevelMember(_level + 1, name, makeDescription(value), makeMember(value), _allKnownMembersInThisTree);
if (makeMember(value) != null) {
// OK, we'd like to introspect the object... | java | private void addNewChild(String name, Object value) {
IntrospectionLevelMember prospectiveMember = new IntrospectionLevelMember(_level + 1, name, makeDescription(value), makeMember(value), _allKnownMembersInThisTree);
if (makeMember(value) != null) {
// OK, we'd like to introspect the object... | [
"private",
"void",
"addNewChild",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"IntrospectionLevelMember",
"prospectiveMember",
"=",
"new",
"IntrospectionLevelMember",
"(",
"_level",
"+",
"1",
",",
"name",
",",
"makeDescription",
"(",
"value",
")",
"... | Add a new IntrospectionLevelMember to _children List (Checking to see if
the new child should be introspected further
@param name
The name of the new child
@param value
The value of the new child | [
"Add",
"a",
"new",
"IntrospectionLevelMember",
"to",
"_children",
"List",
"(",
"Checking",
"to",
"see",
"if",
"the",
"new",
"child",
"should",
"be",
"introspected",
"further"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L256-L269 |
71,086 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.getFieldValue | private Object getFieldValue(final Field field) {
Object field_value = AccessController.doPrivileged(new PrivilegedAction<Object>() {
@Override
public Object run() {
try {
Object value = field.get(_member);
// Don't dump sensitive ... | java | private Object getFieldValue(final Field field) {
Object field_value = AccessController.doPrivileged(new PrivilegedAction<Object>() {
@Override
public Object run() {
try {
Object value = field.get(_member);
// Don't dump sensitive ... | [
"private",
"Object",
"getFieldValue",
"(",
"final",
"Field",
"field",
")",
"{",
"Object",
"field_value",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Object",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"Object",
"run"... | Return the value of the member's field
@param field
The field to be queried
@return The value of the field | [
"Return",
"the",
"value",
"of",
"the",
"member",
"s",
"field"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L278-L300 |
71,087 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.getFields | private Field[] getFields(final Class<?> currentClass) {
final Field[] objectFields = AccessController.doPrivileged(new PrivilegedAction<Field[]>() {
@Override
public Field[] run() {
try {
Field[] tempObjectFields = currentClass.getDeclaredFields();
... | java | private Field[] getFields(final Class<?> currentClass) {
final Field[] objectFields = AccessController.doPrivileged(new PrivilegedAction<Field[]>() {
@Override
public Field[] run() {
try {
Field[] tempObjectFields = currentClass.getDeclaredFields();
... | [
"private",
"Field",
"[",
"]",
"getFields",
"(",
"final",
"Class",
"<",
"?",
">",
"currentClass",
")",
"{",
"final",
"Field",
"[",
"]",
"objectFields",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"Field",
"[",
"]",
">"... | Return the fields in a particular class
@param currentClass
The class to be introspected
@return the fields of the class | [
"Return",
"the",
"fields",
"in",
"a",
"particular",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L309-L330 |
71,088 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.makeDescription | private String makeDescription(Object value) {
String answer; // Not initialized, so the compiler tells if we miss a
// case
if (value == null) {
answer = "null";
} else if (value instanceof String) {
answer = "\"" + value + "\"";
} else {
... | java | private String makeDescription(Object value) {
String answer; // Not initialized, so the compiler tells if we miss a
// case
if (value == null) {
answer = "null";
} else if (value instanceof String) {
answer = "\"" + value + "\"";
} else {
... | [
"private",
"String",
"makeDescription",
"(",
"Object",
"value",
")",
"{",
"String",
"answer",
";",
"// Not initialized, so the compiler tells if we miss a",
"// case",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"answer",
"=",
"\"null\"",
";",
"}",
"else",
"if",
... | Make a string that describes this object
@param value
The value needing a description
@return The description | [
"Make",
"a",
"string",
"that",
"describes",
"this",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L339-L363 |
71,089 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java | IntrospectionLevelMember.print | public void print(IncidentStream is, int maxDepth) {
StringBuffer fullName = new StringBuffer();
for (int i = 0; i < _level; i++)
fullName.append(" ");
fullName.append(_name);
is.writeLine(fullName.toString(), _description);
if (_level < maxDepth) {
List<... | java | public void print(IncidentStream is, int maxDepth) {
StringBuffer fullName = new StringBuffer();
for (int i = 0; i < _level; i++)
fullName.append(" ");
fullName.append(_name);
is.writeLine(fullName.toString(), _description);
if (_level < maxDepth) {
List<... | [
"public",
"void",
"print",
"(",
"IncidentStream",
"is",
",",
"int",
"maxDepth",
")",
"{",
"StringBuffer",
"fullName",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_level",
";",
"i",
"++",
")",
"fullName... | Print this IntrospectionLevelMember to an incident stream
@param is
The incident stream
@param maxDepth
The maximum depth to descend | [
"Print",
"this",
"IntrospectionLevelMember",
"to",
"an",
"incident",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IntrospectionLevelMember.java#L435-L447 |
71,090 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorFactory.java | RecoveryDirectorFactory.recoveryDirector | public static RecoveryDirector recoveryDirector() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryDirector");
// If the recovery director is null its an error in JET
if (_recoveryDirector == null)
{
final InternalLogException ile ... | java | public static RecoveryDirector recoveryDirector() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryDirector");
// If the recovery director is null its an error in JET
if (_recoveryDirector == null)
{
final InternalLogException ile ... | [
"public",
"static",
"RecoveryDirector",
"recoveryDirector",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"recoveryDirector\"",
")",
";",
"// If the recovery director i... | Returns the singleton instance of the RecoveryDirector class. This method
uses reflection rather then a direct reference to the underlying class to avoid
a cyclic build dependency.
@return RecoveryDirector The singleton instance of the RecoveryDirectorImpl. | [
"Returns",
"the",
"singleton",
"instance",
"of",
"the",
"RecoveryDirector",
"class",
".",
"This",
"method",
"uses",
"reflection",
"rather",
"then",
"a",
"direct",
"reference",
"to",
"the",
"underlying",
"class",
"to",
"avoid",
"a",
"cyclic",
"build",
"dependency... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorFactory.java#L55-L72 |
71,091 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorFactory.java | RecoveryDirectorFactory.createRecoveryDirector | public static RecoveryDirector createRecoveryDirector()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "createRecoveryDirector");
_recoveryDirector = LibertyRecoveryDirectorImpl.instance();
if (tc.isEntryEnabled())
Tr.exit(tc, "createRecoveryDirector", _recoveryDirector);
... | java | public static RecoveryDirector createRecoveryDirector()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "createRecoveryDirector");
_recoveryDirector = LibertyRecoveryDirectorImpl.instance();
if (tc.isEntryEnabled())
Tr.exit(tc, "createRecoveryDirector", _recoveryDirector);
... | [
"public",
"static",
"RecoveryDirector",
"createRecoveryDirector",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"createRecoveryDirector\"",
")",
";",
"_recoveryDirector",
"=",
"LibertyRecoveryDirectorIm... | Create a RecoveryDirector singleton
@return RecoveryDirector instance | [
"Create",
"a",
"RecoveryDirector",
"singleton"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorFactory.java#L79-L88 |
71,092 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/freemarker/FreeMarkerTag.java | FreeMarkerTag.session | protected Map session(){
Map session;
try{
SimpleHash sessionHash = (SimpleHash)get("session");
session = sessionHash.toMap();
}catch(Exception e){
logger().warn("failed to get a session map in context, returning session without data!!!", e);
sess... | java | protected Map session(){
Map session;
try{
SimpleHash sessionHash = (SimpleHash)get("session");
session = sessionHash.toMap();
}catch(Exception e){
logger().warn("failed to get a session map in context, returning session without data!!!", e);
sess... | [
"protected",
"Map",
"session",
"(",
")",
"{",
"Map",
"session",
";",
"try",
"{",
"SimpleHash",
"sessionHash",
"=",
"(",
"SimpleHash",
")",
"get",
"(",
"\"session\"",
")",
";",
"session",
"=",
"sessionHash",
".",
"toMap",
"(",
")",
";",
"}",
"catch",
"(... | Returns reference to a current session map.
@return reference to a current session map. | [
"Returns",
"reference",
"to",
"a",
"current",
"session",
"map",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/freemarker/FreeMarkerTag.java#L435-L445 |
71,093 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/AppController.java | AppController.render | protected RenderBuilder render(){
String template = Router.getControllerPath(getClass()) + "/" + RequestContext.getRoute().getActionName();
return super.render(template, values());
} | java | protected RenderBuilder render(){
String template = Router.getControllerPath(getClass()) + "/" + RequestContext.getRoute().getActionName();
return super.render(template, values());
} | [
"protected",
"RenderBuilder",
"render",
"(",
")",
"{",
"String",
"template",
"=",
"Router",
".",
"getControllerPath",
"(",
"getClass",
"(",
")",
")",
"+",
"\"/\"",
"+",
"RequestContext",
".",
"getRoute",
"(",
")",
".",
"getActionName",
"(",
")",
";",
"retu... | Use this method in order to override a layout, status code, and content type.
@return instance of {@link RenderBuilder}, which is used to provide additional parameters. | [
"Use",
"this",
"method",
"in",
"order",
"to",
"override",
"a",
"layout",
"status",
"code",
"and",
"content",
"type",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/AppController.java#L63-L67 |
71,094 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/AppController.java | AppController.actionSupportsHttpMethod | public boolean actionSupportsHttpMethod(String actionMethodName, HttpMethod httpMethod) {
if (restful()) {
return restfulActionSupportsHttpMethod(actionMethodName, httpMethod) || standardActionSupportsHttpMethod(actionMethodName, httpMethod);
} else {
return standardActionSupport... | java | public boolean actionSupportsHttpMethod(String actionMethodName, HttpMethod httpMethod) {
if (restful()) {
return restfulActionSupportsHttpMethod(actionMethodName, httpMethod) || standardActionSupportsHttpMethod(actionMethodName, httpMethod);
} else {
return standardActionSupport... | [
"public",
"boolean",
"actionSupportsHttpMethod",
"(",
"String",
"actionMethodName",
",",
"HttpMethod",
"httpMethod",
")",
"{",
"if",
"(",
"restful",
"(",
")",
")",
"{",
"return",
"restfulActionSupportsHttpMethod",
"(",
"actionMethodName",
",",
"httpMethod",
")",
"||... | Checks if the action supports an HTTP method, according to its configuration.
@param actionMethodName name of action method.
@param httpMethod http method
@return true if supports, false if does not. | [
"Checks",
"if",
"the",
"action",
"supports",
"an",
"HTTP",
"method",
"according",
"to",
"its",
"configuration",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/AppController.java#L111-L117 |
71,095 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/Router.java | Router.recognize | protected Route recognize(String uri, HttpMethod httpMethod) throws ClassLoadException {
if (uri.endsWith("/") && uri.length() > 1) {
uri = uri.substring(0, uri.length() - 1);
}
ControllerPath controllerPath = getControllerPath(uri);
Route route = matchCustom(uri, controll... | java | protected Route recognize(String uri, HttpMethod httpMethod) throws ClassLoadException {
if (uri.endsWith("/") && uri.length() > 1) {
uri = uri.substring(0, uri.length() - 1);
}
ControllerPath controllerPath = getControllerPath(uri);
Route route = matchCustom(uri, controll... | [
"protected",
"Route",
"recognize",
"(",
"String",
"uri",
",",
"HttpMethod",
"httpMethod",
")",
"throws",
"ClassLoadException",
"{",
"if",
"(",
"uri",
".",
"endsWith",
"(",
"\"/\"",
")",
"&&",
"uri",
".",
"length",
"(",
")",
">",
"1",
")",
"{",
"uri",
"... | This is a main method for recognizing a route to a controller; used when a request is received.
@param uri URI of incoming request.
@param httpMethod http method of the request.
@return instance of a <code>Route</code> if one is found, null if not. | [
"This",
"is",
"a",
"main",
"method",
"for",
"recognizing",
"a",
"route",
"to",
"a",
"controller",
";",
"used",
"when",
"a",
"request",
"is",
"received",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/Router.java#L65-L97 |
71,096 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/Router.java | Router.matchStandard | private Route matchStandard(String uri, ControllerPath controllerPathObject, AppController controller, HttpMethod method) {
String controllerPath = (controllerPathObject.getControllerPackage() != null ? "/" + controllerPathObject.getControllerPackage().replace(".", "/") : "") + "/" + controllerPathObject.getCo... | java | private Route matchStandard(String uri, ControllerPath controllerPathObject, AppController controller, HttpMethod method) {
String controllerPath = (controllerPathObject.getControllerPackage() != null ? "/" + controllerPathObject.getControllerPackage().replace(".", "/") : "") + "/" + controllerPathObject.getCo... | [
"private",
"Route",
"matchStandard",
"(",
"String",
"uri",
",",
"ControllerPath",
"controllerPathObject",
",",
"AppController",
"controller",
",",
"HttpMethod",
"method",
")",
"{",
"String",
"controllerPath",
"=",
"(",
"controllerPathObject",
".",
"getControllerPackage"... | Will match a standard, non-restful route.
@param uri request URI
@return instance of a <code>Route</code> if one is found, null if not. | [
"Will",
"match",
"a",
"standard",
"non",
"-",
"restful",
"route",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/Router.java#L124-L154 |
71,097 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/Router.java | Router.findControllerNamePart | protected static String findControllerNamePart(String pack, String uri) {
String temp = uri.startsWith("/") ? uri.substring(1) : uri;
temp = temp.replace("/", ".");
if (temp.length() > pack.length())
temp = temp.substring(pack.length() + 1);
if (temp.equals("") )
... | java | protected static String findControllerNamePart(String pack, String uri) {
String temp = uri.startsWith("/") ? uri.substring(1) : uri;
temp = temp.replace("/", ".");
if (temp.length() > pack.length())
temp = temp.substring(pack.length() + 1);
if (temp.equals("") )
... | [
"protected",
"static",
"String",
"findControllerNamePart",
"(",
"String",
"pack",
",",
"String",
"uri",
")",
"{",
"String",
"temp",
"=",
"uri",
".",
"startsWith",
"(",
"\"/\"",
")",
"?",
"uri",
".",
"substring",
"(",
"1",
")",
":",
"uri",
";",
"temp",
... | Now that we know that this controller is under a package, need to find the controller short name.
@param pack part of the package of the controller, taken from URI: value between "app.controllers" and controller name.
@param uri uri from request
@return controller name | [
"Now",
"that",
"we",
"know",
"that",
"this",
"controller",
"is",
"under",
"a",
"package",
"need",
"to",
"find",
"the",
"controller",
"short",
"name",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/Router.java#L388-L398 |
71,098 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/Router.java | Router.findPackageSuffix | protected String findPackageSuffix(String uri) {
String temp = uri.startsWith("/") ? uri.substring(1) : uri;
temp = temp.replace(".", "_");
temp = temp.replace("/", ".");
//find all matches
List<String> candidates = new ArrayList<>();
for (String pack : Configuration.g... | java | protected String findPackageSuffix(String uri) {
String temp = uri.startsWith("/") ? uri.substring(1) : uri;
temp = temp.replace(".", "_");
temp = temp.replace("/", ".");
//find all matches
List<String> candidates = new ArrayList<>();
for (String pack : Configuration.g... | [
"protected",
"String",
"findPackageSuffix",
"(",
"String",
"uri",
")",
"{",
"String",
"temp",
"=",
"uri",
".",
"startsWith",
"(",
"\"/\"",
")",
"?",
"uri",
".",
"substring",
"(",
"1",
")",
":",
"uri",
";",
"temp",
"=",
"temp",
".",
"replace",
"(",
"\... | Finds a part of a package name which can be found in between "app.controllers" and short name of class.
@param uri uri from request
@return a part of a package name which can be found in between "app.controllers" and short name of class, or null
if not found | [
"Finds",
"a",
"part",
"of",
"a",
"package",
"name",
"which",
"can",
"be",
"found",
"in",
"between",
"app",
".",
"controllers",
"and",
"short",
"name",
"of",
"class",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/Router.java#L407-L432 |
71,099 | javalite/activeweb | activeweb/src/main/java/org/javalite/activeweb/RouteBuilder.java | RouteBuilder.to | public <T extends AppController> RouteBuilder to(Class<T> type) {
boolean hasControllerSegment = false;
for (Segment segment : segments) {
hasControllerSegment = segment.controller;
}
if (type != null && hasControllerSegment) {
throw new IllegalArgumentExceptio... | java | public <T extends AppController> RouteBuilder to(Class<T> type) {
boolean hasControllerSegment = false;
for (Segment segment : segments) {
hasControllerSegment = segment.controller;
}
if (type != null && hasControllerSegment) {
throw new IllegalArgumentExceptio... | [
"public",
"<",
"T",
"extends",
"AppController",
">",
"RouteBuilder",
"to",
"(",
"Class",
"<",
"T",
">",
"type",
")",
"{",
"boolean",
"hasControllerSegment",
"=",
"false",
";",
"for",
"(",
"Segment",
"segment",
":",
"segments",
")",
"{",
"hasControllerSegment... | Allows to wire a route to a controller.
@param type class of controller to which a route is mapped
@return instance of {@link RouteBuilder}. | [
"Allows",
"to",
"wire",
"a",
"route",
"to",
"a",
"controller",
"."
] | f25f589da94852b6f5625182360732e0861794a6 | https://github.com/javalite/activeweb/blob/f25f589da94852b6f5625182360732e0861794a6/activeweb/src/main/java/org/javalite/activeweb/RouteBuilder.java#L116-L129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.