org.rhq.enterprise.agent
Class AgentConfigurationUpgrade

java.lang.Object
  extended by org.rhq.enterprise.communications.util.prefs.PreferencesUpgrade
      extended by org.rhq.enterprise.agent.AgentConfigurationUpgrade

public class AgentConfigurationUpgrade
extends PreferencesUpgrade

Upgrades the configuration of the agent preferences.

Author:
John Mazzitelli

Constructor Summary
AgentConfigurationUpgrade()
          Constructor for AgentConfigurationUpgrade.
 
Method Summary
 String getConfigurationSchemaVersionPreference()
           
static void upgradeToLatest(Preferences preferences)
          This is a convenience method that upgrades the given agent preferences to the latest configuration schema version.
 
Methods inherited from class org.rhq.enterprise.communications.util.prefs.PreferencesUpgrade
getConfigurationSchemaVersion, setConfigurationSchemaVersion, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentConfigurationUpgrade

public AgentConfigurationUpgrade()
Constructor for AgentConfigurationUpgrade.

Method Detail

upgradeToLatest

public static void upgradeToLatest(Preferences preferences)
This is a convenience method that upgrades the given agent preferences to the latest configuration schema version.

Parameters:
preferences - the preferences to upgrade

getConfigurationSchemaVersionPreference

public String getConfigurationSchemaVersionPreference()
Specified by:
getConfigurationSchemaVersionPreference in class PreferencesUpgrade


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.