getServerByName implemented for RimuHosting

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2394 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
ivan@ivan.net.nz 2009-12-10 09:42:17 +00:00
parent 3e00559d78
commit 9c2628cdba
1 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,10 @@ public class RimuHostingComputeService implements ComputeService {
@Override
public SortedSet<org.jclouds.compute.Server> getServerByName(String id) {
throw new UnsupportedOperationException();
SortedSet<org.jclouds.compute.Server> serverSet = new TreeSet<org.jclouds.compute.Server>();
for(Server rhServer : rhClient.getInstanceList()){
serverSet.add(new RimuHostingServer(rhServer, rhClient));
}
return serverSet;
}
}