edu.washington.cs.pl_if.plc
Class PLCentralController
java.lang.Object
edu.washington.cs.pl_if.plc.PLCentralController
public class PLCentralController
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLCentralController
public PLCentralController(Credentials cred)
addHostsToSlice
public int addHostsToSlice(String[] hostnames)
getHostsNotInSlice
public PlanetLabHost[] getHostsNotInSlice()
getRandomSites
public PlanetLabHost[] getRandomSites(int num)
getRandomHostFromSite
public PlanetLabHost getRandomHostFromSite(PlanetLabHost oldHost)
getRandomHostFromSite
public PlanetLabHost getRandomHostFromSite(PlanetLabSite site)
getRandomNodes
public PlanetLabHost[] getRandomNodes(int num)
- Send a query for num random nodes. This function only returns nodes in
"boot" state (more likely to be up)
- Parameters:
num
- number of requested nodes
- Returns:
- PlanetLabHost[] of num randomly selected nodes, or all available
nodes if num>=avalable nodes
getAllHosts
public PlanetLabHost[] getAllHosts()
- returns all nodes that are in "boot" state
- Returns:
getAvailableHosts
public PlanetLabHost[] getAvailableHosts()
getHost
public PlanetLabHost getHost(String hostname)
getHost
public PlanetLabHost getHost(int plcHostId)
getSite
public PlanetLabSite getSite(PlanetLabHost host)
setCoMonData
public void setCoMonData(PlanetLabHost[] hosts)
getCoMonProgress
public double getCoMonProgress()