Search in sources :

Example 1 with StopUAVProcessAction

use of com.creditease.uav.feature.upgrade.action.uav.StopUAVProcessAction in project uavstack by uavorg.

the class UpgradeAgent method registerActionsAccordingUpgradeTarget.

@SuppressWarnings("unused")
private void registerActionsAccordingUpgradeTarget() {
    if (this.upgradeContext.isUAVContext()) {
        StopUAVProcessAction stopAction = new StopUAVProcessAction(this.feature, this.upgradeContext, engine);
        OverrideFileAction overrideFileAction = new UAVOverrideFileAction(this.feature, this.upgradeContext, engine);
        StartUAVProcessAction startAction = new StartUAVProcessAction(this.feature, this.upgradeContext, engine);
    } else {
        OverrideFileAction overrideFileAction = new ThirdpartySoftwareOverrideFileAction(this.feature, this.upgradeContext, engine);
    }
}
Also used : StopUAVProcessAction(com.creditease.uav.feature.upgrade.action.uav.StopUAVProcessAction) UAVOverrideFileAction(com.creditease.uav.feature.upgrade.action.uav.UAVOverrideFileAction) StartUAVProcessAction(com.creditease.uav.feature.upgrade.action.uav.StartUAVProcessAction) UAVOverrideFileAction(com.creditease.uav.feature.upgrade.action.uav.UAVOverrideFileAction) OverrideFileAction(com.creditease.uav.feature.upgrade.action.OverrideFileAction) ThirdpartySoftwareOverrideFileAction(com.creditease.uav.feature.upgrade.action.thirdparty.ThirdpartySoftwareOverrideFileAction) ThirdpartySoftwareOverrideFileAction(com.creditease.uav.feature.upgrade.action.thirdparty.ThirdpartySoftwareOverrideFileAction)

Aggregations

OverrideFileAction (com.creditease.uav.feature.upgrade.action.OverrideFileAction)1 ThirdpartySoftwareOverrideFileAction (com.creditease.uav.feature.upgrade.action.thirdparty.ThirdpartySoftwareOverrideFileAction)1 StartUAVProcessAction (com.creditease.uav.feature.upgrade.action.uav.StartUAVProcessAction)1 StopUAVProcessAction (com.creditease.uav.feature.upgrade.action.uav.StopUAVProcessAction)1 UAVOverrideFileAction (com.creditease.uav.feature.upgrade.action.uav.UAVOverrideFileAction)1