private class ReplicationTest.InvalidationStorageServer extends TestStorageServer
Both of the storage servers in this test are instances of this class. Exactly one should receive a request to delete the file, after the file has been replicated and is then accessed for writing.
client_stub, command_stub, test
Constructor and Description |
---|
InvalidationStorageServer()
Creates the
InvalidationStorageServer . |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Path path)
Checks that a delete request is received for the proper file.
|
copy, create, read, size, start, startSkeletons, stop, write
InvalidationStorageServer()
InvalidationStorageServer
.public boolean delete(Path path)
The path must not be null
, and must be the path to the
proper file. There must be only one invalidation request.
delete
in interface Command
delete
in class TestStorageServer
path
- Path to the file to be deleted.true
if the file or directory is deleted;
false
otherwise.