C# Class Raven.Smuggler.SmugglerApi

Inheritance: Raven.Abstractions.Smuggler.SmugglerApiBase
Show file Open project: robashton/ravendb Class Usage Examples

Private Properties

Property Type Description
FlushBatch Task
StripQuotesIfNeeded string

Public Methods

Method Description
ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, Raven.Abstractions.Data.PeriodicBackupStatus backupStatus = null ) : Task
ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, bool lastEtagsFromFile, Raven.Abstractions.Data.PeriodicBackupStatus lastEtag ) : Task
ImportData ( System.Stream stream, SmugglerOptions options ) : Task
SmugglerApi ( SmugglerOptions smugglerOptions, RavenConnectionStringOptions connectionStringOptions ) : System

Protected Methods

Method Description
CreateRequest ( string url, string method = "GET" ) : HttpRavenRequest
CreateStore ( ) : DocumentStore
EnsureDatabaseExists ( ) : Task
ExportAttachments ( Raven.Imports.Newtonsoft.Json.JsonTextWriter jsonWriter, Etag lastEtag ) : Task
GetDocuments ( Etag lastEtag ) : Task>
GetIndexes ( int totalCount ) : Task
GetStats ( ) : Task
GetTransformers ( int totalCount ) : Task
GetVersion ( ) : Task
PutAttachment ( AttachmentExportInfo attachmentExportInfo ) : Task
PutDocument ( RavenJObject document ) : Task
PutIndex ( string indexName, RavenJToken index ) : Task
PutTransformer ( string transformerName, RavenJToken transformer ) : Task
ShowProgress ( string format ) : void
TransformDocument ( RavenJObject document, string transformScript ) : Task

Private Methods

Method Description
FlushBatch ( ) : Task
StripQuotesIfNeeded ( RavenJToken value ) : string

Method Details

CreateRequest() protected method

protected CreateRequest ( string url, string method = "GET" ) : HttpRavenRequest
url string
method string
return HttpRavenRequest

CreateStore() protected method

protected CreateStore ( ) : DocumentStore
return DocumentStore

EnsureDatabaseExists() protected method

protected EnsureDatabaseExists ( ) : Task
return Task

ExportAttachments() protected method

protected ExportAttachments ( Raven.Imports.Newtonsoft.Json.JsonTextWriter jsonWriter, Etag lastEtag ) : Task
jsonWriter Raven.Imports.Newtonsoft.Json.JsonTextWriter
lastEtag Raven.Abstractions.Util.Etag
return Task

ExportData() public method

public ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, Raven.Abstractions.Data.PeriodicBackupStatus backupStatus = null ) : Task
stream System.Stream
options SmugglerOptions
incremental bool
backupStatus Raven.Abstractions.Data.PeriodicBackupStatus
return Task

ExportData() public method

public ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, bool lastEtagsFromFile, Raven.Abstractions.Data.PeriodicBackupStatus lastEtag ) : Task
stream System.Stream
options SmugglerOptions
incremental bool
lastEtagsFromFile bool
lastEtag Raven.Abstractions.Data.PeriodicBackupStatus
return Task

GetDocuments() protected method

protected GetDocuments ( Etag lastEtag ) : Task>
lastEtag Raven.Abstractions.Util.Etag
return Task>

GetIndexes() protected method

protected GetIndexes ( int totalCount ) : Task
totalCount int
return Task

GetStats() protected method

protected GetStats ( ) : Task
return Task

GetTransformers() protected method

protected GetTransformers ( int totalCount ) : Task
totalCount int
return Task

GetVersion() protected method

protected GetVersion ( ) : Task
return Task

ImportData() public method

public ImportData ( System.Stream stream, SmugglerOptions options ) : Task
stream System.Stream
options SmugglerOptions
return Task

PutAttachment() protected method

protected PutAttachment ( AttachmentExportInfo attachmentExportInfo ) : Task
attachmentExportInfo AttachmentExportInfo
return Task

PutDocument() protected method

protected PutDocument ( RavenJObject document ) : Task
document RavenJObject
return Task

PutIndex() protected method

protected PutIndex ( string indexName, RavenJToken index ) : Task
indexName string
index RavenJToken
return Task

PutTransformer() protected method

protected PutTransformer ( string transformerName, RavenJToken transformer ) : Task
transformerName string
transformer RavenJToken
return Task

ShowProgress() protected method

protected ShowProgress ( string format ) : void
format string
return void

SmugglerApi() public method

public SmugglerApi ( SmugglerOptions smugglerOptions, RavenConnectionStringOptions connectionStringOptions ) : System
smugglerOptions SmugglerOptions
connectionStringOptions RavenConnectionStringOptions
return System

TransformDocument() protected method

protected TransformDocument ( RavenJObject document, string transformScript ) : Task
document RavenJObject
transformScript string
return Task