Codota Logo
ResourceUpgradeReport
Code IndexAdd Codota to your IDE (free)

How to use
ResourceUpgradeReport
in
org.rhq.core.domain.resource

Best Java code snippets using org.rhq.core.domain.resource.ResourceUpgradeReport (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.rhq/rhq-jboss-as-7-plugin

result = new ResourceUpgradeReport();
result.setForceGenericPropertyUpgrade(true); // It is critical the name and version get upgraded
result.setNewName(MATCHER.group(1) + MATCHER.group(3));
result.setNewVersion(MATCHER.group(2));
  result = new ResourceUpgradeReport();
result.setNewResourceKey(sb.toString());
origin: org.rhq/rhq-core-client-api

public void fillInFromReport(ResourceUpgradeReport report) {
  setNewDescription(report.getNewDescription());
  setNewName(report.getNewName());
  setNewResourceKey(report.getNewResourceKey());
  setNewPluginConfiguration(report.getNewPluginConfiguration());
  setNewVersion(report.getNewVersion());
  setForceGenericPropertyUpgrade(report.isForceGenericPropertyUpgrade());
}
origin: org.rhq/rhq-core-client-api

@Override
public boolean hasSomethingToUpgrade() {
  return super.hasSomethingToUpgrade() || upgradeErrorMessage != null || upgradeErrorStackTrace != null;
}
origin: org.rhq/rhq-jboss-as-7-plugin

@Override
public ResourceUpgradeReport upgrade(ResourceUpgradeContext inventoriedResource) {
  ResourceUpgradeReport report = new ResourceUpgradeReport();
  boolean upgraded = false;
    if (new File(currentResourceKey).isDirectory()) {
      report.setNewResourceKey(createKeyForLocalResource(serverPluginConfiguration));
    } else if (currentResourceKey.contains(":")) {
      report.setNewResourceKey(createKeyForRemoteResource(currentResourceKey));
    } else {
      upgraded = false;
      if (!configFileCanonicalPath.equals(configFilePath)) {
        upgraded = true;
        report.setNewResourceKey(LOCAL_RESOURCE_KEY_PREFIX + configFileCanonicalPath);
    pluginConfiguration.setSimpleValue("expectedRuntimeProductName",
      serverPluginConfiguration.getProductType().PRODUCT_NAME);
    report.setNewPluginConfiguration(pluginConfiguration);
      .setSimpleValue("supportsPatching", Boolean.toString(supportsPatching(productType, inventoriedResource.getVersion())));
    report.setNewPluginConfiguration(pluginConfiguration);
origin: org.rhq/rhq-jmx-plugin

ResourceUpgradeReport resourceUpgradeReport = new ResourceUpgradeReport();
resourceUpgradeReport.setNewResourceKey(newKey.toString());
return resourceUpgradeReport;
origin: org.rhq/rhq-core-plugin-container

report = new ResourceUpgradeReport();
origin: org.rhq/rhq-core-plugin-container

private Set<Resource> findDuplicitSiblingResources(Resource resource, ResourceUpgradeReport upgradeReport) {
  Resource parent = resource.getParentResource();
  if (parent == null) {
    //there is only a single platform resource on an agent
    return Collections.emptySet();
  }
  Set<Resource> ret = new HashSet<Resource>();
  for (Resource sibling : parent.getChildResources()) {
    //we'd have a resource key conflict if there was a resource
    //of the same type under the same parent that would have the same
    //resource key.
    if (upgradeReport.getNewResourceKey() != null
      && sibling.getResourceType().equals(resource.getResourceType())
      && !sibling.getUuid().equals(resource.getUuid())) {
      if (sibling.getResourceKey().equals(upgradeReport.getNewResourceKey())) {
        ret.add(sibling);
      }
    }
  }
  return ret;
}
origin: org.rhq/rhq-jboss-as-7-plugin

result = new ResourceUpgradeReport();
result.setForceGenericPropertyUpgrade(true); // It is critical the name and version get upgraded
result.setNewName(MATCHER.group(1) + MATCHER.group(3));
  String parentResourceVersion = inventoriedResource.getParentResourceContext().getVersion();
  parentResourceVersion = (null == parentResourceVersion) ? "" : (parentResourceVersion + "/");
  result.setNewVersion(parentResourceVersion + MATCHER.group(2));
} else {
  result.setNewVersion(MATCHER.group(2));
  result = new ResourceUpgradeReport();
result.setNewResourceKey(sb.toString());
origin: org.rhq/rhq-core-plugin-container

if (upgradeReport != null && upgradeReport.hasSomethingToUpgrade()) {
  request.fillInFromReport(upgradeReport);
origin: org.rhq/rhq-jboss-as-7-plugin

  result = new ResourceUpgradeReport();
result.setForceGenericPropertyUpgrade(true); // It is critical the name get upgraded
result.setNewName(sb.toString());
&& ((null == currentVersion && null != parentVersion) || !currentVersion.equals(parentVersion))) {
if (null == result) {
  result = new ResourceUpgradeReport();
result.setForceGenericPropertyUpgrade(true); // It is critical the version get upgraded
result.setNewVersion(parentVersion);
  result = new ResourceUpgradeReport();
result.setNewResourceKey(sb.toString());
org.rhq.core.domain.resourceResourceUpgradeReport

Javadoc

Represents the changes that should be applied to the existing resource in order to upgrade it to conform to the new requirements set by the changed resource component.

Null values of the properties mean no change, non-null values represent the desired new values.

Configuration updates are limited to only changing values for existing properties. The Configuration must still reflect the types configuration definition. Also, updates must be judicious as config values can also be updated by users.

Most used methods

  • <init>
  • getNewResourceKey
  • hasSomethingToUpgrade
  • setNewResourceKey
  • getNewDescription
  • getNewName
  • getNewPluginConfiguration
  • getNewVersion
  • isForceGenericPropertyUpgrade
  • setForceGenericPropertyUpgrade
    In some cases assume the plugin knows best. Set true (with care) to force upgrade of what we call "g
  • setNewName
  • setNewPluginConfiguration
    See class javadoc for restrictions.
  • setNewName,
  • setNewPluginConfiguration,
  • setNewVersion,
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now