Source:
<code>private void onCreateVolume() { VolumeModel model = (VolumeModel) getWindow(); Guid clusterId = ((VDSGroup) model.getCluster().getSelectedItem()).getId(); GlusterVolumeEntity volume = new GlusterVolumeEntity(); volume.setClusterId(clusterId); volume.setName((String) model.getName().getEntity()); GlusterVolumeType type = (GlusterVolumeType) model.getTypeList().getSelectedItem(); if (type == GlusterVolumeType.STRIPE || type == GlusterVolumeType.DISTRIBUTED_STRIPE) { <START> volume.setStripeCount(Integer.parseInt((String) model.getStripeCount().getEntity())); <END> } else if (type == GlusterVolumeType.REPLICATE || type == GlusterVolumeType.DISTRIBUTED_REPLICATE) { volume.setReplicaCount(Integer.parseInt((String) model.getReplicaCount().getEntity())); } volume.setVolumeType(type); if ((Boolean) model.getTcpTransportType().getEntity()) volume.getTransportTypes().add(TransportType.TCP); if ((Boolean) model.getRdmaTransportType().getEntity()) volume.getTransportTypes().add(TransportType.RDMA); volume.setBricks((List<GlusterBrickEntity>) model.getBricks().getItems()); if ((Boolean) model.getNfs_accecssProtocol().getEntity()) volume.enableNFS(); else volume.disableNFS(); if ((Boolean) model.getCifs_accecssProtocol().getEntity()) volume.enableCifs(); else volume.disableCifs(); volume.setAccessControlList((String) model.getAllowAccess().getEntity()); CreateGlusterVolumeParameters parameter = new CreateGlusterVolumeParameters(volume); Frontend.RunAction(VdcActionType.CreateGlusterVolume, parameter, new IFrontendActionAsyncCallback() { @Override public void Executed(FrontendActionAsyncResult result) { } }); }</code><technical_language>why's stripe count is saved String</technical_language>

Target:
private void onCreateVolume() { VolumeModel model = (VolumeModel) getWindow(); Guid clusterId = ((VDSGroup) model.getCluster().getSelectedItem()).getId(); GlusterVolumeEntity volume = new GlusterVolumeEntity(); volume.setClusterId(clusterId); volume.setName((String) model.getName().getEntity()); GlusterVolumeType type = (GlusterVolumeType) model.getTypeList().getSelectedItem(); if (type == GlusterVolumeType.STRIPE || type == GlusterVolumeType.DISTRIBUTED_STRIPE) { volume.setStripeCount(model.getStripeCountValue()); } else if (type == GlusterVolumeType.REPLICATE || type == GlusterVolumeType.DISTRIBUTED_REPLICATE) { volume.setReplicaCount(model.getReplicaCountValue()); } volume.setVolumeType(type); if ((Boolean) model.getTcpTransportType().getEntity()) volume.getTransportTypes().add(TransportType.TCP); if ((Boolean) model.getRdmaTransportType().getEntity()) volume.getTransportTypes().add(TransportType.RDMA); volume.setBricks((List<GlusterBrickEntity>) model.getBricks().getItems()); if ((Boolean) model.getNfs_accecssProtocol().getEntity()) volume.enableNFS(); else volume.disableNFS(); if ((Boolean) model.getCifs_accecssProtocol().getEntity()) volume.enableCifs(); else volume.disableCifs(); volume.setAccessControlList((String) model.getAllowAccess().getEntity()); CreateGlusterVolumeParameters parameter = new CreateGlusterVolumeParameters(volume); Frontend.RunAction(VdcActionType.CreateGlusterVolume, parameter, new IFrontendActionAsyncCallback() { @Override public void Executed(FrontendActionAsyncResult result) { } }); }