spin.demo.complex
Class UnreliableService

java.lang.Object
  extended by spin.demo.complex.UnreliableService
All Implemented Interfaces:
DirectoryService

public class UnreliableService
extends java.lang.Object
implements DirectoryService

Service that adds a unreliability to another service.


Constructor Summary
UnreliableService(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

UnreliableService

public UnreliableService(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.