spin.demo.complex

Class LatencyService

Implemented Interfaces:
DirectoryService

public class LatencyService
extends java.lang.Object
implements DirectoryService

Service that adds a latency to another service.

Constructor Summary

LatencyService(DirectoryService service)
Constructor.

Method Summary

Directory[]
getChildren(Directory directory)
Get the children of a directory.
Directory
getRoot()
Get the root directory.

Constructor Details

LatencyService

public LatencyService(DirectoryService service)
Constructor.

Method Details

getChildren

public Directory[] getChildren(Directory directory)
            throws DirectoryServiceException
Get the children of a directory.
Parameters:
directory - directory to get children for
Returns:
children

getRoot

public Directory getRoot()
Get the root directory.
Returns:
the root directory