@Override public Iterator<ListBlobItem> iterator() { return new LogBlobIterator(this.logDirectory, this.startTime, this.endTime, this.operations, this.details, this.options, this.opContext); } }
/** * Checks if another field exists in the record. * * @return * true if another field exists, false otherwise. * @throws IOException */ public boolean hasMoreFieldsInRecord() throws IOException { return this.tryPeekDelimiter(LogRecordStreamReader.FIELD_DELIMITER); }
/** * Checks to see if the end of the stream has been reached. * * @return * true if at the end of the stream, false otherwise. * @throws IOException */ public boolean isEndOfFile() throws IOException { return (this.peek() == -1); }
/** * Gets the minute metrics table for a specific storage service. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * The {@link CloudTable} object for the storage service. * @throws URISyntaxException * @throws StorageException */ public CloudTable getMinuteMetricsTable(StorageService service) throws URISyntaxException, StorageException { return this.getMinuteMetricsTable(service, null); }
/** * Gets the hour metrics table for a specific storage service. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * The {@link CloudTable} object for the storage service. * @throws URISyntaxException * @throws StorageException */ public CloudTable getHourMetricsTable(StorageService service) throws URISyntaxException, StorageException { return this.getHourMetricsTable(service, null); }
/** * Returns an enumerable collection of log blobs, retrieved lazily. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * An enumerable collection of objects that implement <code>ListBlobItem</code> and are retrieved lazily. * @throws URISyntaxException * @throws StorageException */ public Iterable<ListBlobItem> listLogBlobs(StorageService service) throws URISyntaxException, StorageException { return this.listLogBlobs(service, null /* startTime */, null /* endTime */, null /* operations */, null /* details */, null /* options */, null /* operationContext */); }
/** * Returns an enumerable collection of log records, retrieved lazily. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * An enumerable collection of objects that implement <code>ListBlobItem</code> and are retrieved lazily. * @throws URISyntaxException * @throws StorageException */ public Iterable<LogRecord> listLogRecords(StorageService service) throws URISyntaxException, StorageException { return this .listLogRecords(service, null /* startTime */, null /* endTime */, null /* options */, null /* operationContext */); }
/** * Ends the current record by reading the record delimiter and adjusting internal state. * * @throws IOException */ public void endCurrentRecord() throws IOException { this.readDelimiter(LogRecordStreamReader.RECORD_DELIMITER); this.isFirstFieldInRecord = true; }
@Override public Iterator<LogRecord> iterator() { return new LogRecordIterator(this.logBlobIterator); } }
@Before public void analyticsTestMethodSetUp() throws URISyntaxException, StorageException { this.container = AnalyticsTestHelper.getRandomContainerReference(); this.client = AnalyticsTestHelper.createCloudAnalyticsClient(); }
/** * Gets the minute metrics table for a specific storage service. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * The {@link CloudTable} object for the storage service. * @throws URISyntaxException * @throws StorageException */ public CloudTable getMinuteMetricsTable(StorageService service) throws URISyntaxException, StorageException { return this.getMinuteMetricsTable(service, null); }
/** * Gets the hour metrics table for a specific storage service. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * The {@link CloudTable} object for the storage service. * @throws URISyntaxException * @throws StorageException */ public CloudTable getHourMetricsTable(StorageService service) throws URISyntaxException, StorageException { return this.getHourMetricsTable(service, null); }
/** * Returns an enumerable collection of log blobs, retrieved lazily. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * An enumerable collection of objects that implement <code>ListBlobItem</code> and are retrieved lazily. * @throws URISyntaxException * @throws StorageException */ public Iterable<ListBlobItem> listLogBlobs(StorageService service) throws URISyntaxException, StorageException { return this.listLogBlobs(service, null /* startTime */, null /* endTime */, null /* operations */, null /* details */, null /* options */, null /* operationContext */); }
/** * Returns an enumerable collection of log records, retrieved lazily. * * @param service * A {@link StorageService} enumeration value that indicates which storage service to use. * @return * An enumerable collection of objects that implement <code>ListBlobItem</code> and are retrieved lazily. * @throws URISyntaxException * @throws StorageException */ public Iterable<LogRecord> listLogRecords(StorageService service) throws URISyntaxException, StorageException { return this .listLogRecords(service, null /* startTime */, null /* endTime */, null /* options */, null /* operationContext */); }
@Override public Iterator<ListBlobItem> iterator() { return new LogBlobIterator(this.logDirectory, this.startTime, this.endTime, this.operations, this.details, this.options, this.opContext); } }
/** * Checks if another field exists in the record. * * @return * true if another field exists, false otherwise. * @throws IOException */ public boolean hasMoreFieldsInRecord() throws IOException { return this.tryPeekDelimiter(LogRecordStreamReader.FIELD_DELIMITER); }
/** * Checks to see if the end of the stream has been reached. * * @return * true if at the end of the stream, false otherwise. * @throws IOException */ public boolean isEndOfFile() throws IOException { return (this.peek() == -1); }
/** * Ends the current record by reading the record delimiter and adjusting internal state. * * @throws IOException */ public void endCurrentRecord() throws IOException { this.readDelimiter(LogRecordStreamReader.RECORD_DELIMITER); this.isFirstFieldInRecord = true; }
@Override public Iterator<LogRecord> iterator() { return new LogRecordIterator(this.logBlobIterator); } }