use of org.ovirt.engine.core.common.businessentities.gluster.StatsInfo in project ovirt-engine by oVirt.
the class VolumeProfileStatisticsModel method onNfsServerSelectionChange.
private void onNfsServerSelectionChange(UIMessages messages) {
if (getNfsServers().getSelectedItem() == null) {
return;
}
int index = getProfileInfo().getNfsProfileDetails().indexOf(getNfsServers().getSelectedItem());
if (index < 0) {
return;
}
List<GlusterVolumeProfileStats> nfsProfileStats = getProfileInfo().getNfsProfileDetails();
StatsInfo selectedNfsServerCummulativeProfile = nfsProfileStats.get(index).getProfileStats().get(0);
StatsInfo selectedNfsServerIntervalProfile = nfsProfileStats.get(index).getProfileStats().get(1);
populateCummulativeStatistics(selectedNfsServerCummulativeProfile.getFopStats(), getNfsServerProfileStats());
nfsProfileRunTime = formatRunTime(messages, selectedNfsServerCummulativeProfile.getDurationFormatted(), selectedNfsServerIntervalProfile.getDurationFormatted());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("nfsProfileRunTimeChanged"));
nfsBytesRead = formatDataRead(messages, selectedNfsServerCummulativeProfile.getTotalRead(), selectedNfsServerIntervalProfile.getTotalRead());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("nfsProfileDataRead"));
nfsBytesWritten = formatDataWritten(messages, selectedNfsServerCummulativeProfile.getTotalWrite(), selectedNfsServerIntervalProfile.getTotalWrite());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("nfsProfileDataWritten"));
}
use of org.ovirt.engine.core.common.businessentities.gluster.StatsInfo in project ovirt-engine by oVirt.
the class VolumeProfileStatisticsModel method onBrickSelectionChange.
private void onBrickSelectionChange(UIMessages messages) {
if (getBricks().getSelectedItem() == null) {
return;
}
int index = getProfileInfo().getBrickProfileDetails().indexOf(getBricks().getSelectedItem());
if (index < 0) {
return;
}
List<BrickProfileDetails> profileStats = getProfileInfo().getBrickProfileDetails();
StatsInfo selectedBrickProfileCummulativeStats = profileStats.get(index).getProfileStats().get(0);
StatsInfo selectedBrickProfileIntervalStats = profileStats.get(index).getProfileStats().get(1);
populateCummulativeStatistics(selectedBrickProfileCummulativeStats.getFopStats(), getCumulativeStatistics());
profileRunTime = formatRunTime(messages, selectedBrickProfileCummulativeStats.getDurationFormatted(), selectedBrickProfileIntervalStats.getDurationFormatted());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("brickProfileRunTimeChanged"));
bytesRead = formatDataRead(messages, selectedBrickProfileCummulativeStats.getTotalRead(), selectedBrickProfileIntervalStats.getTotalRead());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("brickProfileDataRead"));
bytesWritten = formatDataWritten(messages, selectedBrickProfileCummulativeStats.getTotalWrite(), selectedBrickProfileIntervalStats.getTotalWrite());
// $NON-NLS-1$
onPropertyChanged(new PropertyChangedEventArgs("brickProfileDataWritten"));
}
Aggregations