Hi,
How to query WADPerformanceCountersTable using Java microsoft-windowsazure-api.
Need to fileter the result based on PartitionKey.
eg.
TableQuery <DynamicTableEntity> SQL = TableQuery.from(Constants.
"PartitionKey ge '0" + startPartitionKey + "'").where(
"PartitionKey le '0" + endPartitionKey + "'").where(
"DeploymentId eq '" + deploymentId + "'").where(
"RoleInstance eq '" + roleInstance + "'").select(new String[]{"CounterName","DeploymentId","CounterValue", "RoleInstance"});
Its giving following exception:
java.util.NoSuchElementException: An error occurred while enumerating the result, check the original exception for details.
20140108163015 Response: at com.microsoft.windowsazure.services.core.storage.utils.implementation.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:113)
20140108163015 Response: at com.bmc.collector.azure.Performance.getAzureDiagnosticData(Performance.java:311)
20140108163015 Response: at com.bmc.collector.azure.Performance.run(Performance.java:70)
20140108163015 Response: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
20140108163015 Response: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
20140108163015 Response: at java.lang.Thread.run(Thread.java:722)
20140108163015 Response: Caused by: com.microsoft.windowsazure.services.table.client.TableServiceException: Bad Request
20140108163015 Response: at com.microsoft.windowsazure.services.table.client.TableServiceException.generateTableServiceException(TableServiceException.java:57)
20140108163015 Response: at com.microsoft.windowsazure.services.table.client.CloudTableClient.executeQuerySegmentedCore(CloudTableClient.java:807)
20140108163015 Response: at com.microsoft.windowsazure.services.table.client.CloudTableClient$3.execute(CloudTableClient.java:951)
20140108163015 Response: at com.microsoft.windowsazure.services.table.client.CloudTableClient$3.execute(CloudTableClient.java:945)
20140108163015 Response: at com.microsoft.windowsazure.services.core.storage.utils.implementation.ExecutionEngine.executeWithRetry(ExecutionEngine.java:114)
20140108163015 Response: at com.microsoft.windowsazure.services.core.storage.utils.implementation.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:109)