Package spin.demo.complex
Interface DirectoryService
-
- All Known Implementing Classes:
FileService,LatencyService,UnreliableService
public interface DirectoryServiceA common interface for a directory service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Directory[]getChildren(Directory directory)Get the children of a directory.DirectorygetRoot()Get the root directory.
-
-
-
Method Detail
-
getRoot
Directory getRoot()
Get the root directory.- Returns:
- the root directory
-
getChildren
Directory[] getChildren(Directory directory) throws DirectoryServiceException
Get the children of a directory.- Parameters:
directory- directory to get children for- Returns:
- children
- Throws:
DirectoryServiceException
-
-