private GlusterVolumeEntity getMultiBrickVolume(Guid volumeId) {
   GlusterVolumeEntity volume = getGlusterVolume(volumeId);
   volume.setStatus(GlusterStatus.UP);
   volume.setBricks(getBricks(volumeId, 2));
   volume.setClusterId(CLUSTER_ID);
   return volume;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }