Search in sources :

Example 1 with PingRoutingCommand

use of com.cloud.legacymodel.communication.command.PingRoutingCommand in project cosmic by MissionCriticalCloud.

the class VirtualMachineManagerImpl method processCommands.

@Override
public boolean processCommands(final long agentId, final long seq, final Command[] cmds) {
    boolean processed = false;
    for (final Command cmd : cmds) {
        if (cmd instanceof PingRoutingCommand) {
            final PingRoutingCommand ping = (PingRoutingCommand) cmd;
            if (ping.getHostVmStateReport() != null) {
                _syncMgr.processHostVmStatePingReport(agentId, ping.getHostVmStateReport());
            }
            // take the chance to scan VMs that are stuck in transitional states
            // and are missing from the report
            scanStalledVMInTransitionStateOnUpHost(agentId);
            processed = true;
        }
    }
    return processed;
}
Also used : PlugNicCommand(com.cloud.legacymodel.communication.command.PlugNicCommand) StartupCommand(com.cloud.legacymodel.communication.command.startup.StartupCommand) UnPlugNicCommand(com.cloud.legacymodel.communication.command.UnPlugNicCommand) MigrateCommand(com.cloud.legacymodel.communication.command.MigrateCommand) ScaleVmCommand(com.cloud.legacymodel.communication.command.ScaleVmCommand) ShutdownEventCommand(com.cloud.legacymodel.communication.command.agentcontrol.ShutdownEventCommand) StopCommand(com.cloud.legacymodel.communication.command.StopCommand) RestoreVMSnapshotCommand(com.cloud.legacymodel.communication.command.RestoreVMSnapshotCommand) AttachOrDettachConfigDriveCommand(com.cloud.legacymodel.communication.command.AttachOrDettachConfigDriveCommand) Command(com.cloud.legacymodel.communication.command.Command) AgentControlCommand(com.cloud.legacymodel.communication.command.agentcontrol.AgentControlCommand) StartCommand(com.cloud.legacymodel.communication.command.StartCommand) CheckVirtualMachineCommand(com.cloud.legacymodel.communication.command.CheckVirtualMachineCommand) PingRoutingCommand(com.cloud.legacymodel.communication.command.PingRoutingCommand) RebootCommand(com.cloud.legacymodel.communication.command.RebootCommand) PrepareForMigrationCommand(com.cloud.legacymodel.communication.command.PrepareForMigrationCommand) ClusterVMMetaDataSyncCommand(com.cloud.legacymodel.communication.command.ClusterVMMetaDataSyncCommand) StartupRoutingCommand(com.cloud.legacymodel.communication.command.startup.StartupRoutingCommand) PingRoutingCommand(com.cloud.legacymodel.communication.command.PingRoutingCommand)

Aggregations

AttachOrDettachConfigDriveCommand (com.cloud.legacymodel.communication.command.AttachOrDettachConfigDriveCommand)1 CheckVirtualMachineCommand (com.cloud.legacymodel.communication.command.CheckVirtualMachineCommand)1 ClusterVMMetaDataSyncCommand (com.cloud.legacymodel.communication.command.ClusterVMMetaDataSyncCommand)1 Command (com.cloud.legacymodel.communication.command.Command)1 MigrateCommand (com.cloud.legacymodel.communication.command.MigrateCommand)1 PingRoutingCommand (com.cloud.legacymodel.communication.command.PingRoutingCommand)1 PlugNicCommand (com.cloud.legacymodel.communication.command.PlugNicCommand)1 PrepareForMigrationCommand (com.cloud.legacymodel.communication.command.PrepareForMigrationCommand)1 RebootCommand (com.cloud.legacymodel.communication.command.RebootCommand)1 RestoreVMSnapshotCommand (com.cloud.legacymodel.communication.command.RestoreVMSnapshotCommand)1 ScaleVmCommand (com.cloud.legacymodel.communication.command.ScaleVmCommand)1 StartCommand (com.cloud.legacymodel.communication.command.StartCommand)1 StopCommand (com.cloud.legacymodel.communication.command.StopCommand)1 UnPlugNicCommand (com.cloud.legacymodel.communication.command.UnPlugNicCommand)1 AgentControlCommand (com.cloud.legacymodel.communication.command.agentcontrol.AgentControlCommand)1 ShutdownEventCommand (com.cloud.legacymodel.communication.command.agentcontrol.ShutdownEventCommand)1 StartupCommand (com.cloud.legacymodel.communication.command.startup.StartupCommand)1 StartupRoutingCommand (com.cloud.legacymodel.communication.command.startup.StartupRoutingCommand)1