Package spin.demo.complex
Class LatencyService
- java.lang.Object
-
- spin.demo.complex.LatencyService
-
- All Implemented Interfaces:
DirectoryService
public class LatencyService extends java.lang.Object implements DirectoryService
Service that adds a latency to another service.
-
-
Constructor Summary
Constructors Constructor Description LatencyService(DirectoryService service)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Directory[]
getChildren(Directory directory)
Get the children of a directory.Directory
getRoot()
Get the root directory.
-
-
-
Constructor Detail
-
LatencyService
public LatencyService(DirectoryService service)
Constructor.
-
-
Method Detail
-
getRoot
public Directory getRoot()
Get the root directory.- Specified by:
getRoot
in interfaceDirectoryService
- Returns:
- the root directory
-
getChildren
public Directory[] getChildren(Directory directory) throws DirectoryServiceException
Get the children of a directory.- Specified by:
getChildren
in interfaceDirectoryService
- Parameters:
directory
- directory to get children for- Returns:
- children
- Throws:
DirectoryServiceException
-
-