/** * Queries the service for the {@link ServiceStats}. * * @return A {@link ServiceStats} object for the given storage service. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public ServiceStats getServiceStats() throws StorageException { return this.getServiceStats(null /* options */, null /* opContext */); }
/** * Queries the service for the {@link ServiceStats}. * * @return A {@link ServiceStats} object for the given storage service. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public ServiceStats getServiceStats() throws StorageException { return this.getServiceStats(null /* options */, null /* opContext */); }
@Test @Category({ CloudTests.class }) public void testGetServiceStats() throws StorageException { CloudBlobClient bClient = BlobTestHelper.createCloudBlobClient(); bClient.getDefaultRequestOptions().setLocationMode(LocationMode.SECONDARY_ONLY); BlobTestHelper.verifyServiceStats(bClient.getServiceStats()); }