spin.demo.complex
Class UnreliableService
java.lang.Object
spin.demo.complex.UnreliableService
- DirectoryService
public class UnreliableService
extends java.lang.Object
implements DirectoryService
Service that adds a unreliability to another service.
Directory[] | getChildren(Directory directory) - Get the children of a directory.
|
Directory | getRoot() - Get the root directory.
|
UnreliableService
public UnreliableService(DirectoryService service)
Constructor.
getChildren
public Directory[] getChildren(Directory directory)
throws DirectoryServiceException
Get the children of a directory.
directory
- directory to get children for
getRoot
public Directory getRoot()
Get the root directory.