use of org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity in project ovirt-engine by oVirt.
the class GlusterSyncJobTest method createBrick.
private GlusterBrickEntity createBrick(Guid existingVolDistId, VDS server, String brickDir) {
GlusterBrickEntity brick = new GlusterBrickEntity();
brick.setVolumeId(existingVolDistId);
brick.setServerId(server.getId());
brick.setServerName(server.getHostName());
brick.setBrickDirectory(brickDir);
brick.setStatus(GlusterStatus.UP);
return brick;
}
use of org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity in project ovirt-engine by oVirt.
the class RefreshGlusterVolumeDetailsCommandTest method getBricks.
private List<GlusterBrickEntity> getBricks(Guid volumeId, int n) {
List<GlusterBrickEntity> bricks = new ArrayList<>();
GlusterBrickEntity brick;
for (Integer i = 0; i < n; i++) {
brick = new GlusterBrickEntity();
brick.setVolumeId(volumeId);
brick.setBrickDirectory("/tmp/test-vol" + i.toString());
brick.setStatus(GlusterStatus.UP);
bricks.add(brick);
}
return bricks;
}
use of org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity in project ovirt-engine by oVirt.
the class ResetGlusterVolumeBrickCommandTest method getBricks.
private List<GlusterBrickEntity> getBricks(Guid volumeId, String dirPrefix, int n) {
List<GlusterBrickEntity> bricks = new ArrayList<>();
GlusterBrickEntity brick;
for (Integer i = 0; i < n; i++) {
brick = new GlusterBrickEntity();
brick.setVolumeId(volumeId);
brick.setServerId(serverId);
brick.setServerName(serverName);
brick.setBrickDirectory("/tmp/" + dirPrefix + i.toString());
brick.setStatus(GlusterStatus.UP);
bricks.add(brick);
}
return bricks;
}
use of org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity in project ovirt-engine by oVirt.
the class AbstractRemoveGlusterVolumeBricksCommandTest method getInvalidNoOfBricks.
protected List<GlusterBrickEntity> getInvalidNoOfBricks(Guid volumeId) {
List<GlusterBrickEntity> bricks = new ArrayList<>();
GlusterBrickEntity brick = new GlusterBrickEntity();
brick.setVolumeId(volumeId);
brick.setBrickDirectory("/tmp/test-vol1");
brick.setServerId(SERVER_ID);
brick.setStatus(GlusterStatus.UP);
bricks.add(brick);
return bricks;
}
use of org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity in project ovirt-engine by oVirt.
the class AddBricksToGlusterVolumeCommandTest method getBrick.
private GlusterBrickEntity getBrick(Guid volumeId, Guid serverid, String brickDir) {
GlusterBrickEntity brick = new GlusterBrickEntity();
brick.setVolumeId(volumeId);
brick.setServerId(serverid);
brick.setServerName(serverName);
brick.setBrickDirectory(brickDir);
brick.setStatus(GlusterStatus.UP);
return brick;
}
Aggregations