Class RemotePollerServiceConfigMigratorOffline
- java.lang.Object
- 
- org.opennms.upgrade.api.AbstractOnmsUpgrade
- 
- org.opennms.upgrade.implementations.RemotePollerServiceConfigMigratorOffline
 
 
- 
- All Implemented Interfaces:
- OnmsUpgrade
 
 public class RemotePollerServiceConfigMigratorOffline extends AbstractOnmsUpgrade 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.opennms.upgrade.api.AbstractOnmsUpgradeAbstractOnmsUpgrade.VersionOperator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringDEPRECATED_REMOTE_POLLER_SERVICENAMEstatic StringPERSPECTIVE_POLLER_SERVICENAME- 
Fields inherited from class org.opennms.upgrade.api.AbstractOnmsUpgradeZIP_EXT
 
- 
 - 
Constructor SummaryConstructors Constructor Description RemotePollerServiceConfigMigratorOffline()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute.StringgetDescription()Gets the description.intgetOrder()Gets the order.voidpostExecute()Post execute.voidpreExecute()Pre-executebooleanrequiresOnmsRunning()Requires OpenNMS running.voidrollback()Rollback.- 
Methods inherited from class org.opennms.upgrade.api.AbstractOnmsUpgradegetDbConnection, getFiles, getHomeDirectory, getId, getInstalledVersion, getMainProperties, getOpennmsProductDescription, getOpennmsProductName, getOpennmsVersion, getRrdExtension, getRrdProperties, getRrdStrategy, initializeDatasource, isInstalledVersion, isInstalledVersionGreaterOrEqual, isMeridian, isRrdToolEnabled, isStoreByForeignSourceEnabled, isStoreByGroupEnabled, loadProperties, log, printFullSettings, printMainSettings, registerProperties, setProductDescription, setProductName, setVersion, unzipFile, versionToInteger, zipDir, zipFile
 
- 
 
- 
- 
- 
Field Detail- 
DEPRECATED_REMOTE_POLLER_SERVICENAMEpublic static final String DEPRECATED_REMOTE_POLLER_SERVICENAME - See Also:
- Constant Field Values
 
 - 
PERSPECTIVE_POLLER_SERVICENAMEpublic static final String PERSPECTIVE_POLLER_SERVICENAME - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RemotePollerServiceConfigMigratorOfflinepublic RemotePollerServiceConfigMigratorOffline() throws OnmsUpgradeException- Throws:
- OnmsUpgradeException
 
 
- 
 - 
Method Detail- 
getOrderpublic int getOrder() Description copied from interface:OnmsUpgradeGets the order.In order to execute all the implementations of this interface on a specify order, each implementation must return an integer for this purpose. - Returns:
- the order
 
 - 
getDescriptionpublic String getDescription() Description copied from interface:OnmsUpgradeGets the description.This is for informational purposes, and should contain a brief description about what is the purpose of this upgrade class. - Returns:
- the description
 
 - 
preExecutepublic void preExecute() throws OnmsUpgradeExceptionDescription copied from interface:OnmsUpgradePre-executeRuns some checks to ensure that what it would execute() would work. If something is missing, an exception will be thrown Execute backups of the JRBs/RRDs if they are going to be modified. - Throws:
- OnmsUpgradeException- the OpenNMS upgrade exception
 
 - 
postExecutepublic void postExecute() throws OnmsUpgradeExceptionDescription copied from interface:OnmsUpgradePost execute.Runs some clean up tasks after executing the execute() method. If something is wrong, an exception will be thrown - Throws:
- OnmsUpgradeException- the OpenNMS upgrade exception
 
 - 
rollbackpublic void rollback() throws OnmsUpgradeExceptionDescription copied from interface:OnmsUpgradeRollback.Restore the initial state of the OpenNMS files if something went wrong while running the execute() method. Must restore the backups of the files if necessary. - Throws:
- OnmsUpgradeException- the onms upgrade exception
 
 - 
executepublic void execute() throws OnmsUpgradeExceptionDescription copied from interface:OnmsUpgradeExecute.This is the main method, and this is the one where all the upgrade code must be placed. - Throws:
- OnmsUpgradeException- the OpenNMS upgrade exception
 
 - 
requiresOnmsRunningpublic boolean requiresOnmsRunning() Description copied from interface:OnmsUpgradeRequires OpenNMS running.- Returns:
- true, if OpenNMS must be running to execute this upgrade or false if OpenNMS must be stopped.
 
 
- 
 
-