Property | Type | Description | |
---|---|---|---|
LockFactory_Renamed | LockFactory |
Method | Description | |
---|---|---|
ClearCrash ( ) : void | ||
ClearLock ( string name ) : void | ||
Copy ( Directory to, string src, string dest, |
||
Crash ( ) : void |
Simulates a crash of OS or machine by overwriting unsynced files.
|
|
CreateOutput ( string name, IOContext context ) : IndexOutput | ||
CreateSlicer ( string name, IOContext context ) : IndexInputSlicer | ||
DeleteFile ( string name ) : void | ||
Dispose ( ) : void | ||
FailOn ( Failure fail ) : void |
add a Failure object to the list of objects to be evaluated at every potential failure point
|
|
FileExists ( string name ) : bool | ||
FileLength ( string name ) : long | ||
ListAll ( ) : string[] | ||
MakeLock ( string name ) : Lock | ||
MockDirectoryWrapper ( Random random, Directory @delegate ) : NUnit.Framework | ||
OpenInput ( string name, IOContext context ) : IndexInput | ||
RemoveIndexInput ( IndexInput @in, string name ) : void | ||
RemoveIndexOutput ( IndexOutput @out, string name ) : void | ||
ResetMaxUsedSizeInBytes ( ) : void | ||
SizeInBytes ( ) : long | ||
Sync ( ICollection |
Method | Description | |
---|---|---|
AddFileHandle ( IDisposable c, string name, Handle handle ) : void | ||
DeleteFile ( string name, bool forced ) : void | ||
FillOpenTrace ( Exception t, string name, bool input ) : Exception | ||
Init ( ) : void | ||
MaybeThrowDeterministicException ( ) : void |
Iterate through the failures list, giving each object a chance to throw an IOE
|
|
MaybeThrowIOException ( string message ) : void | ||
MaybeThrowIOExceptionOnOpen ( string name ) : void | ||
MaybeYield ( ) : void | ||
MustSync ( ) : bool |
Returns true if #in must sync its files. Currently, only NRTCachingDirectory requires sync'ing its files because otherwise they are cached in an internal RAMDirectory. If other directories require that too, they should be added to this method.
|
|
RemoveOpenFile ( IDisposable c, string name ) : void |
public Copy ( Directory to, string src, string dest, |
||
to | Directory | |
src | string | |
dest | string | |
context | ||
return | void |
public CreateOutput ( string name, IOContext context ) : IndexOutput | ||
name | string | |
context | IOContext | |
return | IndexOutput |
public CreateSlicer ( string name, IOContext context ) : IndexInputSlicer | ||
name | string | |
context | IOContext | |
return | IndexInputSlicer |
public MockDirectoryWrapper ( Random random, Directory @delegate ) : NUnit.Framework | ||
random | Random | |
@delegate | Directory | |
return | NUnit.Framework |
public OpenInput ( string name, IOContext context ) : IndexInput | ||
name | string | |
context | IOContext | |
return | IndexInput |
public RemoveIndexInput ( IndexInput @in, string name ) : void | ||
@in | IndexInput | |
name | string | |
return | void |
public RemoveIndexOutput ( IndexOutput @out, string name ) : void | ||
@out | IndexOutput | |
name | string | |
return | void |