spin.demo.complex
Class LatencyService

java.lang.Object
  extended by 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
LatencyService(DirectoryService service)
          Constructor.
 
Method Summary
 Directory[] getChildren(Directory directory)
          Get the children of a directory.
 Directory getRoot()
          Get the root directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatencyService

public LatencyService(DirectoryService service)
Constructor.

Method Detail

getRoot

public Directory getRoot()
Get the root directory.

Specified by:
getRoot in interface DirectoryService
Returns:
the root directory

getChildren

public Directory[] getChildren(Directory directory)
                        throws DirectoryServiceException
Get the children of a directory.

Specified by:
getChildren in interface DirectoryService
Parameters:
directory - directory to get children for
Returns:
children
Throws:
DirectoryServiceException


Copyright © 2007. All Rights Reserved.