Pass on new command

This commit is contained in:
Mike Tutkowski 2014-10-20 16:04:06 -06:00
parent 8766c8ad43
commit 15c8d8caf6
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import org.apache.cloudstack.storage.command.CreateObjectCommand;
import org.apache.cloudstack.storage.command.DeleteCommand;
import org.apache.cloudstack.storage.command.DettachCommand;
import org.apache.cloudstack.storage.command.IntroduceObjectCmd;
import org.apache.cloudstack.storage.command.SnapshotAndCopyCommand;
import org.apache.cloudstack.storage.command.StorageSubSystemCommand;
import com.cloud.agent.api.Answer;
@ -61,7 +62,10 @@ public class StorageSubsystemCommandHandlerBase implements StorageSubsystemComma
return execute((DettachCommand)command);
} else if (command instanceof IntroduceObjectCmd) {
return processor.introduceObject((IntroduceObjectCmd)command);
} else if (command instanceof SnapshotAndCopyCommand) {
return processor.snapshotAndCopy((SnapshotAndCopyCommand)command);
}
return new Answer((Command)command, false, "not implemented yet");
}