private GlusterVolumeEntity getMultiBrickVolume(Guid volumeId) { GlusterVolumeEntity volume = getGlusterVolume(volumeId); volume.setStatus(GlusterStatus.UP); volume.setBricks(getBricks(volumeId, 2)); volume.setClusterId(CLUSTER_ID); return volume; }
private GlusterVolumeEntity getDistributedVolume(Guid volumeId) { GlusterVolumeEntity volume = getVolume(volumeId); volume.setStatus((volumeId == volumeId1) ? GlusterStatus.UP : GlusterStatus.DOWN); volume.setBricks(getBricks(volumeId, "distrib", 2)); volume.setVolumeType(GlusterVolumeType.DISTRIBUTED_REPLICATE); volume.setClusterId(clusterId); return volume; }
private GlusterVolumeEntity getReplicatedVolume(Guid volumeId, int brickCount) { GlusterVolumeEntity volume = getVolume(volumeId); volume.setStatus(GlusterStatus.UP); volume.setBricks(getBricks(volumeId, "repl", brickCount)); volume.setVolumeType(GlusterVolumeType.REPLICATE); volume.setReplicaCount(brickCount); volume.setClusterId(clusterId); return volume; }