Package spin.demo.complex
Class UnreliableService
java.lang.Object
spin.demo.complex.UnreliableService
- All Implemented Interfaces:
DirectoryService
Service that adds a unreliability to another service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildren(Directory directory) Get the children of a directory.getRoot()Get the root directory.
-
Constructor Details
-
UnreliableService
Constructor.
-
-
Method Details
-
getRoot
Get the root directory.- Specified by:
getRootin interfaceDirectoryService- Returns:
- the root directory
-
getChildren
Get the children of a directory.- Specified by:
getChildrenin interfaceDirectoryService- Parameters:
directory- directory to get children for- Returns:
- children
- Throws:
DirectoryServiceException
-