public AzureWriter(Uri uri, int numberOfWriters, IWriterClient client, IDrLogging logger) : base(client, logger) { baseUri = uri; blobIndex = 0; bytesWritten = 0; exceededBlockSize = false; }
public static void Initialize(IDrLogging logger) { lock (s_dummy) { if (s_client == null) { s_client = new NotHttpClient(false, 10, 30000, new PeloponneseLogger(logger)); } } }
public StreamWriter(IWriterClient c, IDrLogging l) { client = c; log = new DryadLogger(l); writes = new BufferQueue(); offset = 0; finished = new Task(() => { }); error = null; errorType = ErrorType.IO; }
public DryadLogger(IDrLogging l) { logger = l; }
public static IManagedWriter OpenWriter(string path, int numberOfWriters, IWriterClient client, IDrLogging logger) { try { HttpClient.Initialize(logger); var uri = new Uri(path); return(writers[uri.Scheme](uri, numberOfWriters, client, logger)); } catch (Exception e) { DryadLogger l = new DryadLogger(logger); l.LogError("Caught exception opening writer " + e.ToString()); return(null); } }
private static IManagedWriter OpenAzureWriter(Uri uri, int numberOfWriters, IWriterClient client, IDrLogging logger) { return new AzureWriter(uri, numberOfWriters, client, logger); }
private static IManagedWriter OpenFileWriter(Uri uri, int numberOfWriters, IWriterClient client, IDrLogging logger) { return(new FileWriter(uri, numberOfWriters, client, logger)); }
public AzureReader(Uri path, int numberOfReaders, IReaderClient client, IDrLogging logger) : base(ComputeBufferSize(numberOfReaders), client, logger) { source = path; }
public PeloponneseLogger(IDrLogging l) { logger = l; }
public static IManagedWriter OpenWriter(string path, int numberOfWriters, IWriterClient client, IDrLogging logger) { try { HttpClient.Initialize(logger); var uri = new Uri(path); return writers[uri.Scheme](uri, numberOfWriters, client, logger); } catch (Exception e) { DryadLogger l = new DryadLogger(logger); l.LogError("Caught exception opening writer " + e.ToString()); return null; } }
public FileWriter(Uri uri, int numberOfWriters, IWriterClient client, IDrLogging logger) : base(client, logger) { fileName = uri.AbsolutePath; }
private static IManagedReader OpenAzureReader(Uri uri, int numberOfReaders, IReaderClient client, IDrLogging logger) { return(new AzureReader(uri, numberOfReaders, client, logger)); }
public StreamReader(int bSize, IReaderClient c, IDrLogging logger) { client = c; log = new DryadLogger(logger); bufferSize = bSize; }