package org.zstack.storage.fusionstor.primary; import org.zstack.storage.fusionstor.primary.FusionstorPrimaryStorageBase.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by frank on 7/28/2015. */ public class FusionstorPrimaryStorageSimulatorConfig { public static class FusionstorPrimaryStorageConfig { public long totalCapacity; public long availCapacity; public String fsid; } public volatile boolean monInitSuccess = true; public Map<String, FusionstorPrimaryStorageConfig> config = new HashMap<String, FusionstorPrimaryStorageConfig>(); public List<CreateEmptyVolumeCmd> createEmptyVolumeCmds = new ArrayList<CreateEmptyVolumeCmd>(); public List<DeleteCmd> deleteCmds = new ArrayList<DeleteCmd>(); public List<CreateSnapshotCmd> createSnapshotCmds = new ArrayList<CreateSnapshotCmd>(); public Map<String, Long> createSnapshotCmdSize = new HashMap<String, Long>(); public List<DeleteSnapshotCmd> deleteSnapshotCmds = new ArrayList<DeleteSnapshotCmd>(); public List<ProtectSnapshotCmd> protectSnapshotCmds = new ArrayList<ProtectSnapshotCmd>(); public List<UnprotectedSnapshotCmd> unprotectedSnapshotCmds = new ArrayList<UnprotectedSnapshotCmd>(); public List<CloneCmd> cloneCmds = new ArrayList<CloneCmd>(); public List<FlattenCmd> flattenCmds = new ArrayList<FlattenCmd>(); public List<CpCmd> cpCmds = new ArrayList<CpCmd>(); public List<SftpDownloadCmd> sftpDownloadCmds = new ArrayList<SftpDownloadCmd>(); public List<SftpUpLoadCmd> sftpUpLoadCmds = new ArrayList<SftpUpLoadCmd>(); public List<RollbackSnapshotCmd> rollbackSnapshotCmds = new ArrayList<RollbackSnapshotCmd>(); public List<CreateKvmSecretCmd> createKvmSecretCmds = new ArrayList<CreateKvmSecretCmd>(); public List<DeletePoolCmd> deletePoolCmds = new ArrayList<DeletePoolCmd>(); public Map<String, Long> cpCmdSize = new HashMap<String, Long>(); public Map<String, Long> cpCmdActualSize = new HashMap<String, Long>(); public Map<String, Long> getVolumeActualSizeCmdSize = new HashMap<String, Long>(); public List<GetVolumeSizeCmd> getVolumeSizeCmds = new ArrayList<GetVolumeSizeCmd>(); public Map<String, Long> getVolumeSizeCmdSize = new HashMap<String, Long>(); public Map<String, Long> getVolumeSizeCmdActualSize = new HashMap<String, Long>(); public Map<String, Boolean> pingCmdSuccess = new HashMap<String, Boolean>(); public Map<String, Boolean> pingCmdOperationFailure = new HashMap<String, Boolean>(); public List<GetFactsCmd> getFactsCmds = new ArrayList<GetFactsCmd>(); public Map<String, String> getFactsCmdFsid = new HashMap<String, String>(); }