Search in sources :

Example 1 with GetDataSourceUsageRequest

use of com.zimbra.soap.mail.message.GetDataSourceUsageRequest in project zm-mailbox by Zimbra.

the class TestPurgeDataSource method checkDataSourceUsage.

private void checkDataSourceUsage() throws ServiceException {
    GetDataSourceUsageResponse usage = mbox.invokeJaxb(new GetDataSourceUsageRequest());
    long quota = usage.getDataSourceQuota();
    for (DataSourceUsage usg : usage.getUsages()) {
        assertTrue(usg.getId() + " is over quota", usg.getUsage() <= quota);
    }
}
Also used : GetDataSourceUsageResponse(com.zimbra.soap.mail.message.GetDataSourceUsageResponse) DataSourceUsage(com.zimbra.soap.mail.message.DataSourceUsage) GetDataSourceUsageRequest(com.zimbra.soap.mail.message.GetDataSourceUsageRequest)

Aggregations

DataSourceUsage (com.zimbra.soap.mail.message.DataSourceUsage)1 GetDataSourceUsageRequest (com.zimbra.soap.mail.message.GetDataSourceUsageRequest)1 GetDataSourceUsageResponse (com.zimbra.soap.mail.message.GetDataSourceUsageResponse)1